GNOME Bugzilla – Bug 761106
symbol-tree plugin crashes builder when disabling it
Last modified: 2016-01-26 09:39:54 UTC
Created attachment 319707 [details] Full backtrace Disabling the system-tree extension results in a crash due to a mishandled situation with the ref count of the extension, which should be a GObject instead of a GtkWidget, resulting in a backtrace like this one:
+ Trace 235931
Mentioned this on IRC yesterday and got a quick reply from Christian: <hergertme> 07:20:15> msanchez, symbol tree is almost guaranteed to crash, because the extension inherits from GtkWidget, so the reference counting is broken (since extensions are expected to be GObject, and not floating) <hergertme> 07:20:57> msanchez, i thought i didn't allow disabling on it, but essentially the fix is to make a workbench addin object, that then creates a Symbol tree panel, and adds it to the workbench. that way the extension object is a regular gobject Reporting this bug to track down the issue, and a possible patch for it
Created attachment 319708 [details] [review] Patch proposal See attached a patch implementing the proposal approach. Let me know what you think, thanks!
Created attachment 319710 [details] [review] Patch proposal I uploaded the wrong patch it seems (wrong commit log). This is the one to review, sorry for the confusion!
Thanks so much for doing this! You're on a roll.
No problem, happy to help.