GNOME Bugzilla – Bug 348708
gtk_style_detach: assertion `style->attach_count > 0' failed if gtk_widget_realize in destroy handler
Last modified: 2006-08-05 21:43:10 UTC
(<unknown>:6345): Gtk-CRITICAL **: gtk_style_detach: assertion `style->attach_count > 0' failed Observed in notification-daemon (libnotify). Diagnosis: occurs if gtk_widget_realize() called in that widget's destroy handler. Test case to follow.
Created attachment 69614 [details] gdetach.c Test case. The assert happens after the destroy handler returns; adding gtk_widget_unrealize stops the crash from happening.
+ Trace 69627
Calling realize in destroy is not something that should be expected to work...
Oh - notification-daemon bug is http://trac.galago-project.org/ticket/77 chipx86 applied my patch, so notification-daemon doesn't crash any more. (Workaround is to unrealize before exiting destroy.)
(In reply to comment #3) > Calling realize in destroy is not something that should be expected to work... OK; evil behaviour, only observed once, easy workaround. Closing.