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 519910 - crash in Image Viewer: I saved a new picture in...
crash in Image Viewer: I saved a new picture in...
Status: RESOLVED FIXED
Product: eog
Classification: Core
Component: general
2.21.x
Other All
: High critical
: ---
Assigned To: Felix Riemann
EOG Maintainers
: 509668 518015 521637 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-03-02 14:43 UTC by freggy1
Modified: 2008-03-10 19:32 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22



Description freggy1 2008-03-02 14:43:56 UTC
Version: 2.21.92

What were you doing when the application crashed?
I saved a new picture in The Gimp in PNG format, while nautilus was open, viewing the directory where I saved the new picture


Distribution: Mandriva Linux release 2008.1 (Cooker) for x86_64
Gnome Release: 2.21.92 2008-02-26 (Mandriva)
BugBuddy Version: 2.21.90

System: Linux 2.6.24.2-desktop-4.1mdv #1 SMP Fri Feb 22 18:42:58 CET 2008 x86_64
X Vendor: The X.Org Foundation
X Vendor Release: 10400090
Selinux: No
Accessibility: Enabled
GTK+ Theme: MurrinaGilouche
Icon Theme: OSX

Memory status: size: 378753024 vsize: 378753024 resident: 33832960 share: 14188544 rss: 33832960 rss_rlim: 18446744073709551615
CPU usage: start_time: 1204462779 rtime: 1273 utime: 1151 stime: 122 cutime:0 cstime: 0 timeout: 0 it_real_value: 0 frequency: 100

Backtrace was generated from '/usr/bin/eog'

Using host libthread_db library "/lib64/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 47845089531504 (LWP 29619)]
[New Thread 1082399056 (LWP 29621)]
[New Thread 1082132816 (LWP 29620)]
0x00002b83c70cae8e in waitpid () from /lib64/libpthread.so.0

Thread 1 (Thread 47845089531504 (LWP 29619))

  • #0 waitpid
    from /lib64/libpthread.so.0
  • #1 IA__g_spawn_sync
    at gspawn.c line 374
  • #2 IA__g_spawn_command_line_sync
    at gspawn.c line 682
  • #3 g_free
    at gmem.c line 187
  • #4 <signal handler called>
  • #5 update_image_pos
    at eog-window.c line 654
  • #6 eog_window_list_store_image_added
    at eog-window.c line 4725
  • #7 IA__g_closure_invoke
    at gclosure.c line 490
  • #8 signal_emit_unlocked_R
    at gsignal.c line 2440
  • #9 IA__g_signal_emit_valist
    at gsignal.c line 2199
  • #10 IA__g_signal_emit
    at gsignal.c line 2243
  • #11 IA__gtk_list_store_insert
    at gtkliststore.c line 1032
  • #12 eog_list_store_append_image
    at eog-list-store.c line 352
  • #13 vfs_monitor_dir_cb
    at eog-list-store.c line 430
  • #14 actually_dispatch_callback
    at gnome-vfs-monitor.c line 284
  • #15 IA__g_main_context_dispatch
    at gmain.c line 2065
  • #16 g_main_context_iterate
    at gmain.c line 2698
  • #17 IA__g_main_loop_run
    at gmain.c line 2906
  • #18 IA__gtk_main
    at gtkmain.c line 1163
  • #19 main
    at main.c line 221
  • #0 waitpid
    from /lib64/libpthread.so.0


----------- .xsession-errors (13 sec old) ---------------------
** Message: ATK_ROLE_TOOLTIP object found, but doesn't look like a tooltip.
** Message: ATK_ROLE_TOOLTIP object found, but doesn't look like a tooltip.
** Message: ATK_ROLE_TOOLTIP object found, but doesn't look like a tooltip.
** Message: ATK_ROLE_TOOLTIP object found, but doesn't look like a tooltip.
** Message: ATK_ROLE_TOOLTIP object found, but doesn't look like a tooltip.
  PIPE: appletviewer wrote: url http://years.25@hotmail.com _blank
GCJ PLUGIN: thread 0x6081d0: plugin_in_pipe_callback
GCJ PLUGIN: thread 0x6081d0: plugin_in_pipe_callback: opening URL http://years.25@hotmail.com
GCJ PLUGIN: thread 0x6081d0: plugin_in_pipe_callback: URL target _blank
  PIPE: plugin read: url http://years.25@hotmail.com _blank
GCJ PLUGIN: thread 0x6081d0: plugin_in_pipe_callback return
Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x7000122 (GIMP)
Window manager warning: meta_window_activate called by a pager with a 0 timestamp; the pager needs to be fixed.
(eog:29619): GLib-GObject-WARNING **: invalid unclassed pointer in cast to `EogWindow'
--------------------------------------------------
Comment 1 Felix Riemann 2008-03-03 16:06:06 UTC
Ah yes, I was able to reproduce it myself now.
This happens if you have multiple EOG windows open watching images in the same folder and the close one or more of them. We don't disconnect two callbacks then, so the closed (and destroyed) windows still want to update the collection which makes EOG crash.

Patch follows.
Comment 2 Felix Riemann 2008-03-03 16:16:34 UTC
Fixed it by disconnecting the callbacks upon window disposal:

2008-03-03  Felix Riemann  <>

	* src/eog-window.c: (eog_window_dispose):
	Disconnect collection update callbacks when disposing a window to
	avoid spurious calls when another window watches the same folder which
	results in EOG crashing. Fixes bug #519910.
----------------------------------------------------------------------------------
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
Comment 3 Felix Riemann 2008-03-03 16:24:50 UTC
*** Bug 509668 has been marked as a duplicate of this bug. ***
Comment 4 Felix Riemann 2008-03-05 19:29:27 UTC
*** Bug 518015 has been marked as a duplicate of this bug. ***
Comment 5 Felix Riemann 2008-03-10 19:32:18 UTC
*** Bug 521637 has been marked as a duplicate of this bug. ***