GNOME Bugzilla – Bug 352377
Warning when setting group/contact submenu (?)
Last modified: 2006-08-24 05:58:27 UTC
What were you doing when the application crashed? Not sure :/ Distribution: Ubuntu 6.10 (edgy) Gnome Release: 2.15.91 2006-08-08 (Ubuntu) BugBuddy Version: 2.15.90 Memory status: size: 35287040 vsize: 0 resident: 35287040 share: 0 rss: 18268160 rss_rlim: 0 CPU usage: start_time: 1156248324 rtime: 0 utime: 223 stime: 0 cutime:203 cstime: 0 timeout: 20 it_real_value: 0 frequency: 0 Backtrace was generated from '/usr/local/bin/gossip' Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1". [Thread debugging using libthread_db enabled] [New Thread -1226721088 (LWP 14786)] 0xffffe410 in __kernel_vsyscall ()
+ Trace 70813
Thread 1 (Thread -1226721088 (LWP 14786))
The reason this is a crash is because gnome 2.15 aborts on critical warnings during the development period, not really critical, but we should still fix it.
Took the liberty to guess from the backtrace what the action was here.
What version is this really? 0.14 didn't use UI manager so it must be a CVS version. Could you try with the latest CVS?
Say thank you to the new bug-buddy, I never bothered with the old one :). (Lazy!) This is _not_ 0.14, blame gossip.desktop for that, and me not running autofoo. It is indeed very recent cvs (yesterday i think). I'll do a clean compilation and see if it changes anything. Also, I can't right click (macbook pro). But it is probably related to the contact dialog, since I did view an contact info dialog via edit->contact->contact information. Crashed a few seconds later, but maybe the info is fetched via a callback method, and with network latency involved... :=) Just guessing :)
Aah thanks! Updating the summary again :) The code in queestion looks a bit suspicious, the menus should not be handled like that (in button press event on the menu...). We'll have to fix that. I'm not sure if that is really related to the bug, but at least the stack trace says so. The way to handle menu merging like that is to use the merging features of the ui manager, and do the merging when the item (group/contact) is selected.
The bug was actually just an unref too many. But my comments above are still valid, we should use the merge API.
I agree, but currently Glade doesn't use the UI manager from what I can see, OR perhaps you know something I don't? You did mention checking how gimp does this, should we still do that? Or can we wait for a newer version of glade (glade3) or even the glade addition to gtk+ to fix this?
We can wait until glade or something else supports ui manager, I guess.