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 637949 - Apps crash on start when using startup notification
Apps crash on start when using startup notification
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: X11
2.91.x
Other Linux
: Normal blocker
: ---
Assigned To: gtk-bugs
gtk-bugs
: 637960 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-12-24 12:57 UTC by Vincent Untz
Modified: 2010-12-27 06:04 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Vincent Untz 2010-12-24 12:57:38 UTC
I can't start most apps from .desktop files (from gnome-panel, gnome-shell, or even nautilus). It turns out it's a crash happening in gdk when startup notification is used.

Program received signal SIGSEGV, Segmentation fault.
0xb7200941 in XInternAtom () from /usr/lib/libX11.so.6
(gdb) bt
  • #0 XInternAtom
    from /usr/lib/libX11.so.6
  • #1 gdk_x11_atom_to_xatom_for_display
    at gdkproperty-x11.c line 246
  • #2 gdk_x11_get_xatom_by_name_for_display
    at gdkproperty-x11.c line 470
  • #3 gdk_x11_display_set_startup_notification_id
    at gdkdisplay-x11.c line 2289
  • #4 _gdk_x11_display_make_default
    at gdkdisplay-x11.c line 1913
  • #5 gdk_x11_display_manager_set_default_display
    at gdkdisplaymanager-x11.c line 73
  • #6 gdk_display_manager_set_default_display
    at gdkdisplaymanager.c line 260
  • #7 _gdk_x11_display_manager_add_display
    at gdkdisplaymanager-x11.c line 115
  • #8 gdk_x11_display_init
    at gdkdisplay-x11.c line 171
  • #9 g_type_create_instance
    at gtype.c line 1887
  • #10 g_object_constructor
    at gobject.c line 1603
  • #11 g_object_newv
  • #12 g_object_new
    at gobject.c line 1298
  • #13 _gdk_x11_display_open
    at gdkdisplay-x11.c line 1221
  • #14 gdk_x11_display_manager_open_display
    at gdkdisplaymanager-x11.c line 52
  • #15 gdk_display_manager_open_display
    at gdkdisplaymanager.c line 287
  • #16 gdk_display_open
    at gdkdisplay.c line 2281
  • #17 gdk_display_open_default_libgtk_only
    at gdk.c line 316
  • #18 gtk_init_check
    at gtkmain.c line 1063
  • #19 gtk_init
    at gtkmain.c line 1107
  • #20 main
    at gcalctool.c line 260

Comment 1 Vincent Untz 2010-12-24 13:17:18 UTC
XInternAtom() is called with display = NULL, so I guess the GdkDisplay isn't completely initialized.
Comment 2 Vincent Untz 2010-12-24 13:18:57 UTC
Oh, and if people want to enjoy gdb in such a case: edit a .desktop file that has StartupNotify=true (for example, gcalctool.desktop) and replace the Exec line with "xterm -e gdb gcalctool".

Or define the right environment variable (DESKTOP_STARTUP_ID).
Comment 3 Javier Jardón (IRC: jjardon) 2010-12-24 15:51:43 UTC
*** Bug 637960 has been marked as a duplicate of this bug. ***
Comment 4 Matthias Clasen 2010-12-27 06:04:57 UTC
Sorry about that, should be fixed now