GNOME Bugzilla – Bug 585860
glade-3 segfault at glade_design_view_get_layout
Last modified: 2009-06-18 20:30:12 UTC
this report has been filed here: https://bugs.edge.launchpad.net/ubuntu/+source/glade-3/+bug/386995 version of glade is 3.6.3 "Dear all, when I start glade-3 in 2.26 (any version), select File/Open... and choose the glade file gui.glade, it crashes with the output given in the attached file." file: http://launchpadlibrarian.net/27897543/gui.glade "Thread 3 (Thread 0xb64ffb90 (LWP 8554)):
+ Trace 216010
Thread 1 (Thread 0xb7276710 (LWP 8549))
I'm seeing similar crashes when working the with the GtkBuilder files for Anjuta's Git and Subversion plugins. Everything was fine until I added a boolean property to a custom widget I use in those projects (for which there is a glade catalog in the Anjuta tree.) Ever since then, I've had this crash. I have no idea why adding one simple property to a widget catalog would cause this, but I've worked up a hack to get around it. It seems that for some reason, design views don't always get associated with projects properly, such that glade_design_view_get_from_project can return NULL. I assume that this should never happen, and I have no idea why it does, but checking the validity of the return of this function seems to stop these problems here, and I can load my builder files again.
Created attachment 136901 [details] Hack to work around this crash
Thanks, that hack is going to be the correct fix in this case. The design view can be null when loading a project, usually we dont expect to hit glade_widget_show() while loading a project, but its possible that glade_widget_show() is triggered somehow by the backend during the load process. If you have git access then please commit this patch (with a changelog entry indicating also the bug number please), otherwise let me know I'll take care of it...
Ok, great. I've committed the patch to git.