GNOME Bugzilla – Bug 325308
gThumb crash when reaching the end of a directory during fullscreen viewing
Last modified: 2006-03-22 08:18:59 UTC
Distribution: Ubuntu 6.04 (dapper) Package: gthumb Severity: Normal Version: GNOME2.13.3 2.7.1 Gnome-Distributor: Ubuntu Synopsis: gThumb crash when reaching the end of a directory during fullscreen viewing Bugzilla-Product: gthumb Bugzilla-Component: general Bugzilla-Version: 2.7.1 BugBuddy-GnomeVersion: 2.0 (2.13.0) Description: How often does this happen? Always. Debugging Information: Backtrace was generated from '/usr/bin/gthumb' (no debugging symbols found) Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1". (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) [Thread debugging using libthread_db enabled] [New Thread -1209067840 (LWP 5645)] [New Thread -1299194960 (LWP 5662)] [New Thread -1290802256 (LWP 5661)] [New Thread -1282409552 (LWP 5660)] [New Thread -1263178832 (LWP 5659)] [New Thread -1272411216 (LWP 5658)] [New Thread -1253934160 (LWP 5652)] [New Thread -1245541456 (LWP 5651)] [New Thread -1237148752 (LWP 5650)] [New Thread -1228756048 (LWP 5649)] [New Thread -1228461136 (LWP 5648)] [New Thread -1219822672 (LWP 5647)] [New Thread -1211409488 (LWP 5646)] 0xffffe410 in __kernel_vsyscall ()
+ Trace 64864
Thread 1 (Thread -1209067840 (LWP 5645))
------- Bug created by bug-buddy at 2005-12-30 16:21 ------- Unknown version 2.7.1 in product gthumb. Setting version to "2.7.x".
It seems to me that load_prev_image and load_next_image in gth-fullscreen.c can trigger gtk_window_close on the fullscreen window. In viewer_key_press_cb, there is: || case GDK_Escape: || case GDK_q: || case GDK_v: || case GDK_f: || case GDK_F11: -- gth_window_close (window); 34 retval = TRUE; 34 break; retval is set to TRUE, so the event is not propagated and nothing more can happer to window. but later there is: 34 /* Load next image. */ || case GDK_space: || case GDK_n: || case GDK_Page_Down: -- load_next_image (fullscreen); 34 retval = TRUE; 34 break; 34 34 /* Load previous image. */ || case GDK_p: || case GDK_b: || case GDK_BackSpace: || case GDK_Page_Up: -- load_prev_image (fullscreen); 34 break; 34 34 /* Show first image. */ retval is not changed so that it finished to be treated by image_viewer_key_down that ask for a scroll of a widget whose window has been destroyed. if i add "retvall = TRUE;" after "load_next_image" the problem disappear.
I commited a patch that blocks event propagation by default as you suggested, and removed Left and Right as shortcuts to move to the next/prev image as they are already used to scroll the image horizontally. thanks for the bug report.
*** Bug 328995 has been marked as a duplicate of this bug. ***
*** Bug 335336 has been marked as a duplicate of this bug. ***