<div dir="ltr"><div>No the monitor is floating.<br><br></div>Nick<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Nov 9, 2014 at 10:43 AM, Alistair Buxton <span dir="ltr"><<a href="mailto:a.j.buxton@gmail.com" target="_blank">a.j.buxton@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 8 November 2014 16:57, Nick Schermer <<a href="mailto:nick@xfce.org">nick@xfce.org</a>> wrote:<br>
> I've seen the Ubuntu bug reports about this and also looked through the<br>
> problem. The assert would not help in this case and I'll try to explain why.<br>
><br>
> The null error is caused by an memory corruption or refcount issue (file has<br>
> already been freed, but used in another thread). If you enable assert you<br>
> will never catch the issue because writing in the console or the check<br>
> macros (thise use a hashtable for type lookup in the main thread) delays the<br>
> function long enough to finish using the file in the other thread. And it<br>
> will go wrong elsewhere.<br>
><br>
> I was able to reproduce the bug in some case and with a normal<br>
> g_return_if_fail it did not properly catch the free.<br>
><br>
> Also in gdb the crash did not occur because the thread order was different<br>
> or slower.<br>
<br>
</span>This sounds like it could be related to finalization sequence.<br>
<br>
For example:<br>
<br>
<a href="http://git.xfce.org/xfce/thunar/tree/thunar/thunar-list-model.c#n421" target="_blank">http://git.xfce.org/xfce/thunar/tree/thunar/thunar-list-model.c#n421</a><br>
<br>
Shouldn't the file monitor signal be disconnected before freeing the<br>
rows? The monitor callback will attempt to use them.<br>
<br>
Also, shouldn't the monitor be unref'd in dispose?<br>
<br>
GObject docs: "the dispose handler is supposed to release all<br>
references to other member objects"<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Alistair Buxton<br>
<a href="mailto:a.j.buxton@gmail.com">a.j.buxton@gmail.com</a><br>
_______________________________________________<br>
Xfce4-dev mailing list<br>
<a href="mailto:Xfce4-dev@xfce.org">Xfce4-dev@xfce.org</a><br>
<a href="https://mail.xfce.org/mailman/listinfo/xfce4-dev" target="_blank">https://mail.xfce.org/mailman/listinfo/xfce4-dev</a><br>
</div></div></blockquote></div><br></div>