GNOME Bugzilla – Bug 497415
Failed assertion upon exit
Last modified: 2007-12-14 20:55:49 UTC
Steps to reproduce the bug easily: 1. run "baobab /" in a terminal 2. close the window while it is scanning the disk 3. It displays: (baobab:9989): Gtk-CRITICAL **: gtk_main_quit: assertion `main_loops != NULL' failed A quick analysis shows that in this situation, GTK+ is already exiting, but on_delete_activate calls gtk_main_quit again, which seems to cause this error. Original bug: http://bugs.debian.org/447016 by Francesco Potortì
Since the scan of a dir iterates the main loop manually the normal main loop was never properly started in this case. Hence the assertion. I fixed this on trunk by starting the dir scan in an idle only after the real main loop has been started.