GNOME Bugzilla – Bug 648936
segfault while populating thumb view
Last modified: 2011-10-25 19:19:39 UTC
https://bugzilla.redhat.com/show_bug.cgi?id=693083 has a stacktrace of a crash during thumb view population. Direct link here: https://bugzilla.redhat.com/attachment.cgi?id=489582 Looking at the code, a few things jump out: 1. cheese_thumb_view_thread_append_item takes the gtk lock when accessing the list store 2. cheese_thumb_view append_item does not To be really correct, in a multithreaded app all gtk calls have to be protected by the gtk lock. In this case, things would probably work out ok, if you at least make sure that all accesses to the list store are protected by the lock, since thats the one data structure that is shared here.
is that fixed by http://git.gnome.org/browse/cheese/commit/?id=9151f56c7a15fe03e4bf6e7e7e9cce0c9fd6bce1 ?
It may fix this instance, yes
Created attachment 187535 [details] [review] Patch guarding gtk_calls I made a patch to protect the gtk calls. I think I covered everything. Can someone review this?
Comment on attachment 187535 [details] [review] Patch guarding gtk_calls I came up with a simpler approach of doing the thumbnail processing in an idle handler. This removes the need to use the GDK lock, and the associated complexity of using threads. I pushed my changes to master as commit 3cfeb415b27e9f667607d5adf1a1cdf4248b652c.