GNOME Bugzilla – Bug 392632
crash in gThumb Image Viewer: repeatedly pressing Ctrl...
Last modified: 2007-02-07 19:07:27 UTC
What were you doing when the application crashed? repeatedly pressing Ctrl-Shift-E Distribution: Fedora Core release 6 (Zod) Gnome Release: 2.16.0 2006-09-04 (Red Hat, Inc) BugBuddy Version: 2.16.0 System: Linux 2.6.18-1.2849.fc6 #1 SMP Fri Nov 10 12:45:28 EST 2006 i686 X Vendor: The X.Org Foundation X Vendor Release: 70101000 Selinux: Enforcing Accessibility: Disabled ----------- .xsession-errors --------------------- VM file ui compiled to 786313 bytes of code ui loaded in 4596672 bytes on the hunk UI menu load time = 479 milli seconds UI menu load time = 53 milli seconds UI menu load time = 51 milli seconds ]\quit ----- CL_Shutdown ----- Closing SDL audio device... SDL audio device shut down. RE_Shutdown( 1 ) ----------------------- ----- CL_Shutdown ----- ----------------------- ** (bug-buddy:3974): WARNING **: Couldn't load icon for Open Folder -------------------------------------------------- Memory status: size: 252551168 vsize: 0 resident: 252551168 share: 0 rss: 20262912 rss_rlim: 0 CPU usage: start_time: 1167893470 rtime: 0 utime: 331 stime: 0 cutime:304 cstime: 0 timeout: 27 it_real_value: 0 frequency: 0 Backtrace was generated from '/usr/bin/gthumb' (no debugging symbols found) Using host libthread_db library "/lib/libthread_db.so.1". (no debugging symbols found) [Thread debugging using libthread_db enabled] [New Thread -1208568112 (LWP 3951)] [New Thread -1439241328 (LWP 3963)] [New Thread -1428751472 (LWP 3962)] [New Thread -1418261616 (LWP 3961)] [New Thread -1407771760 (LWP 3960)] [New Thread -1344832624 (LWP 3954)] [New Thread -1251714160 (LWP 3953)] (no debugging symbols found) 0x00b9d402 in __kernel_vsyscall ()
+ Trace 99236
Thread 1 (Thread -1208568112 (LWP 3951))
*** Bug 392721 has been marked as a duplicate of this bug. ***
Better stacktrace in bug 392721.
Each time when the Ctrl-Shift-E is pressed, in the function gth_window_activate_action_alter_image_adjust_levels, a new gth_pixbuf_op object is created, but the gth-browser/gth-viewer can only hold one gth_pixbuf_op object, the old is lost but it has a live timeout (the step function). The multiple pressing, causes multiples gth_pixbuf_op operations, when the first ends it set priv->pixop to NULL, then when the nexts ends segfault. Maybe the best solution is to disable the gtk_action when a gth_pixbuf_op operation starts, and reenable when finish. What you think?
Created attachment 82096 [details] [review] ignore a new gth_pixbuf_op when there already one running A quick fix, to avoid the segfault.
patch committed to svn trunk, thanks.