GNOME Bugzilla – Bug 166145
Fix for random crashes when unloading the smooth engine
Last modified: 2005-02-07 02:59:57 UTC
The use of g_quark_from_static_string() in modules that are loaded and unloaded dynamically is causing crashes in random applications. This patch changes the theme engine to use g_quark_from_string() which makes a copy of the string so it doesn't have to be there for the entire lifecycle of the app. I've been unable to cause any crashes when changing themes after applying this. I would recommend that this be backported to the stable branch too since we've had this bug for ages it seems.
Created attachment 36909 [details] [review] patch to fix crash
*** Bug 165942 has been marked as a duplicate of this bug. ***
*** Bug 166018 has been marked as a duplicate of this bug. ***
whoops. Looks like I should have commented and commited yesterday. I figured out the problem almost immediately after 166018 was posted but got busy at work and forgot. This crasher had been hapening for quite some time on the Smooth 0.6 branch but I couldn't find it, and then it simply stopped happening so I (wrongly) presumed something else I had done fixed it. I will get this patch into cvs immediately, thanks Kjartan and Matthias.
Done. I Will be releasing a 0.6.0.1 bugfix release of Smooth today, and am going to push for a 2.6.1 gtk engines release asap.
Thanks a bunch for the quick response. I think this will have quite a positive impact on the stability of the new releases on the whole.
*** Bug 166418 has been marked as a duplicate of this bug. ***