GNOME Bugzilla – Bug 107806
KSnapshot freezes X (keep grab)
Last modified: 2004-12-22 21:47:04 UTC
Initial bug report : http://qa.mandrakesoft.com/show_bug.cgi?id=1961 With metacity 2.4.34. running KSnapshot (KDE 3.1) under metacity and choosing "Save capture" freezes the entire desktop (metacity doesn't popup save dialog and seems to keep keyboard and mouse grab) => you need to kill all KDE process and metacity to get access to your desktop again.. It might be related to the SM problem in QT 3.1 ..
run metacity with METACITY_VERBOSE=1 METACITY_USE_LOGFILE=1 and it should say why it sticks the grab.
Created attachment 14837 [details] metacity log
Created attachment 14838 [details] metacity log
Take the second log file, first one is a wrong file.. I've truncated the file since metacity is looping on ERRORS: 2 traps remain ERRORS: 1 traps
On my system ksnapshot uses all RAM and gets killed. Maybe it is expecting to be able to interact with other apps while it has a server grab? In any case, I can't reproduce metacity doing anything wrong on my system, though yes metacity hangs while ksnapshot is sitting there with a grab eating all RAM, that is unavoidable.
Strange, here, when I switch to sawfish, ksnapshot doesn't have any problem, nor under KDE.. I think it is asking kded (or another KDE process) to popup the SaveAs filedialog ..
I would try getting a backtrace of both metacity and ksnapshot during the hang.
Created attachment 14840 [details] tarball of ksnapshot and metacity traces
Havoc, could you have a look at this bug : http://qa.mandrakesoft.com/show_bug.cgi?id=708 It contains a small test case which is probably the same problem than knapshot.. I haven't test it yet, I plan to test it on Monday..
Ah, bug 106217 has the same thing in the log file, and also does not happen for me. Does Mandrake have any metacity patches? Maybe send those. *** This bug has been marked as a duplicate of 106217 ***