<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi Francesco,</p>
    <p>This effectively can happen, the call might fail and it does not
      set a reason for the failure. I assume you are initializing your
      error pointer, you can like the following<span class="keywordflow"></span><br>
      <span class="keywordflow"></span></p>
    <pre class="fragment"><span class="keywordflow">...</span>
<span class="keywordflow">GError *error = NULL;</span>
<span class="keywordflow">result = g_dbus_proxy_call_finish(proxy, res, &error);

if</span> (error != NULL) {
    g_warning(<span class="stringliteral">"... %s"</span>, error->message);
    g_error_free(error);
    <span class="keywordflow">return</span>;
}

<span class="keywordflow">if</span> (result == NULL) {
  g_warning(<span class="stringliteral">"Failed with no specific error"</span>);
  <span class="keywordflow">return</span>;
}
</pre>
    Cheers,<br>
    Ali<br>
    <br>
    <div class="moz-cite-prefix">On 04/29/2017 05:26 PM, Francesco Pasa
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAGi9HoJP2ev8imXKNTXp+j6AR131LA9mq6YQTUqWJiZCq5LqTg@mail.gmail.com">
      <div dir="ltr">
        <div class="gmail_default"
          style="font-family:verdana,sans-serif">Hi All,<br>
          <br>
        </div>
        <div class="gmail_default"
          style="font-family:verdana,sans-serif">I am debugging the GTK3
          port of Thunar. We have a rather serious bug affecting almost
          all file operations (copy, rename, move, etc), which results
          in a crash (segfault) of the program. I debugged a little and
          it seems that the error is coming from the funtion<br>
          <br>
          <pre class="gmail-programlisting"><a href="https://developer.gnome.org/gio/glib-GVariant.html#GVariant" moz-do-not-send="true"><span class="gmail-returnvalue">GVariant</span></a> *
g_dbus_proxy_call_finish (<em class="gmail-parameter"><code><a class="gmail-link" href="https://developer.gnome.org/gio/stable/GDBusProxy.html" title="GDBusProxy" moz-do-not-send="true"><span class="gmail-type">GDBusProxy</span></a> *proxy</code></em>,
                          <em class="gmail-parameter"><code><a class="gmail-link" href="https://developer.gnome.org/gio/stable/GAsyncResult.html" title="GAsyncResult" moz-do-not-send="true"><span class="gmail-type">GAsyncResult</span></a> *res</code></em>,
                          <em class="gmail-parameter"><code><a href="https://developer.gnome.org/gio/glib-Error-Reporting.html#GError" moz-do-not-send="true"><span class="gmail-type">GError</span></a> **error</code></em>);</pre>
        </div>
        <div class="gmail_default"
          style="font-family:verdana,sans-serif">which is supposed to
          return NULL in case of errors, and fill the error pointer with
          a description of the error. It does return NULL, but the error
          pointer seems to be uninitialized (the bug goes away if I
          manually fill the error pointer with some random data and
          g_error_new).<br>
          <br>
        </div>
        <div class="gmail_default"
          style="font-family:verdana,sans-serif">Does somebody now if
          this is a bug in glib? <br>
          <br>
        </div>
        <div class="gmail_default"
          style="font-family:verdana,sans-serif">Thanks in advance,<br>
        </div>
        <div class="gmail_default"
          style="font-family:verdana,sans-serif">Francesco Pasa<br>
        </div>
        <div class="gmail_default"
          style="font-family:verdana,sans-serif"><br>
          <br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Xfce4-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Xfce4-dev@xfce.org">Xfce4-dev@xfce.org</a>
<a class="moz-txt-link-freetext" href="https://mail.xfce.org/mailman/listinfo/xfce4-dev">https://mail.xfce.org/mailman/listinfo/xfce4-dev</a></pre>
    </blockquote>
    <br>
  </body>
</html>