After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 750142 - Crash after changing and renaming file.
Crash after changing and renaming file.
Status: RESOLVED FIXED
Product: gthumb
Classification: Other
Component: general
3.4.x
Other Linux
: High critical
: ---
Assigned To: Paolo Bacchilega
Paolo Bacchilega
: 763474 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2015-05-30 12:24 UTC by markus.enzenberger
Modified: 2016-03-10 21:19 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description markus.enzenberger 2015-05-30 12:24:46 UTC
I can always reproduce the following bug in gThumb 3.2.8 (tested in Ubunut 15.04):

(1) select a file and make some changes to it, for example adjust colors (without saving the file afterwards)
(2) rename the file form the Edit menu
(3) select a different file

gThumb always crashes when showing the Save Changes message dialog. The text in the message dialog still refers to the file by its old name (before the renaming).
Comment 1 Michael Chudobiak 2015-12-16 14:44:00 UTC
Can confirm in 3.4.x, by doing:

1) select a file (x.jpg)
2) make a change (say, rotate it)
3) press "F2" to rename it to "y.jpg"
4) Click "save" when prompted by the "Save changes to file 'x.jpg'" dialog - note the use of the old name in the dialog title.
5) Crash
Comment 2 Michael Chudobiak 2015-12-17 18:54:16 UTC
Program received signal SIGSEGV, Segmentation fault.
0x00000000004a4e2b in gth_viewer_page_save (self=0x0, file=0x0, 
    func=0x44bc00 <ask_whether_to_save__file_saved_cb>, data=0x297cb80)
    at gth-viewer-page.c:156
156		GTH_VIEWER_PAGE_GET_INTERFACE (self)->save (self, file, func, data);

Thread 1 (Thread 0x7ffff7f9e9c0 (LWP 19765))

  • #0 gth_viewer_page_save
    at gth-viewer-page.c line 156
  • #7 <emit signal ??? on instance 0x3247350 [GtkButton] or 0x3288290 [GtkMessageDialog]>
    at gsignal.c line 3361
  • #8 gtk_button_do_release
    at gtkbutton.c line 1899
  • #9 gtk_real_button_released
    at gtkbutton.c line 2017
  • #13 <emit signal ??? on instance 0x3247350 [GtkButton]>
    at gsignal.c line 3361
  • #14 multipress_released_cb
    at gtkbutton.c line 613
  • #15 ffi_call_unix64
    at ../src/x86/unix64.S line 76
  • #16 ffi_call
    at ../src/x86/ffi64.c line 525
  • #17 g_cclosure_marshal_generic_va
    at gclosure.c line 1561
  • #18 _g_closure_invoke_va
    at gclosure.c line 831
  • #19 g_signal_emit_valist
    at gsignal.c line 3214
  • #20 g_signal_emit
    at gsignal.c line 3361
  • #21 gtk_gesture_multi_press_end
    at gtkgesturemultipress.c line 273
  • #22 g_cclosure_marshal_VOID__BOXEDv
    at gmarshal.c line 1950
  • #23 _g_closure_invoke_va
    at gclosure.c line 831
  • #24 g_signal_emit_valist
    at gsignal.c line 3214
  • #25 g_signal_emit
    at gsignal.c line 3361
  • #26 _gtk_gesture_check_recognized
    at gtkgesture.c line 275
  • #27 _gtk_gesture_check_recognized
    at gtkgesture.c line 315
  • #28 gtk_gesture_handle_event
    at gtkgesture.c line 624
  • #29 gtk_gesture_single_handle_event
    at gtkgesturesingle.c line 220
  • #30 gtk_event_controller_handle_event
    at gtkeventcontroller.c line 224
  • #31 _gtk_widget_run_controllers
    at gtkwidget.c line 7442
  • #32 _gtk_marshal_BOOLEAN__BOXEDv
    at gtkmarshalers.c line 130
  • #33 _g_closure_invoke_va
    at gclosure.c line 831
  • #34 g_signal_emit_valist
    at gsignal.c line 3214
  • #35 g_signal_emit
    at gsignal.c line 3361
  • #36 gtk_widget_event_internal
    at gtkwidget.c line 7787
  • #37 propagate_event
    at gtkmain.c line 2418
  • #38 propagate_event
    at gtkmain.c line 2520
  • #39 gtk_main_do_event
    at gtkmain.c line 1751
  • #40 gdk_event_source_dispatch
    at gdkeventsource.c line 364
  • #41 g_main_context_dispatch
    at gmain.c line 3122
  • #42 g_main_context_dispatch
    at gmain.c line 3737
  • #43 g_main_context_iterate
    at gmain.c line 3808
  • #44 g_main_context_iteration
    at gmain.c line 3869
  • #45 g_application_run
    at gapplication.c line 2308
  • #46 main
    at main.c line 493

Comment 3 Paolo Bacchilega 2015-12-23 17:47:21 UTC
This problem has been fixed now. The fix will be available in version 3.4.2 and higher.
Comment 4 Michael Chudobiak 2016-03-10 21:19:53 UTC
*** Bug 763474 has been marked as a duplicate of this bug. ***