GNOME Bugzilla – Bug 649588
crash when sending a notification: "Gdk-CRITICAL **: gdk_visual_get_red_pixel_details: assertion `GDK_IS_VISUAL (visual)' failed"
Last modified: 2011-08-28 18:22:30 UTC
Created attachment 187371 [details] backtrace from gdb notification-daemon crashes when sending a notification with "notify-send foo bar". To reproduce: 1. start notification-daemon in a terminal 2. run 'notify-send foo bar' in another terminal notification-daemon will say: ---------------- ** (notification-daemon:26468): DEBUG: Adding id 1 Gdk-CRITICAL **: gdk_visual_get_red_pixel_details: assertion `GDK_IS_VISUAL (visual)' failed aborting... ---------------- I recompiled notification-daemon with -g in C{,XX}FLAGS and got a backtrace (attached). There are still some ?? in it, should I recompile some other packages as well? Distribution: Arch Linux Architecture: x86_64 notification-daemon version: 0.7.1 gdk-pixbuf2 version: 2.23.3 gtk3 version: 3.0.9 I am not running gnome at all (awesome window manager here).
Thanks for taking the time to report this bug. Unfortunately, that stack trace is missing some elements that will help a lot to solve the problem, so it will be hard for the developers to fix that crash. Can you get us a stack trace with debugging symbols (for gtk3 and glib2)? Please see http://live.gnome.org/GettingTraces for more information on how to do so and reopen this bug or report a new one. Thanks in advance!
Created attachment 187431 [details] backtrace from gdb, now with glib2 and gtk3 recompiled with debug symbols
>Can you get us a stack trace with debugging symbols (for gtk3 and glib2)? Done.
Created attachment 188644 [details] backtrace for assertion `GDK_IS_WINDOW (window)' failed
Err, looks like I forgot to post my comment first. Anyway I am seeing a similar crash as well, not with GDK_IS_VISUAL but GDK_IS_WINDOW.
(In reply to comment #5) > Err, looks like I forgot to post my comment first. Anyway I am seeing a similar > crash as well, not with GDK_IS_VISUAL but GDK_IS_WINDOW. FWIW I'm seeing this crash on both Fedora and OpenBSD.
(In reply to comment #6) > (In reply to comment #5) > > Err, looks like I forgot to post my comment first. Anyway I am seeing a similar > > crash as well, not with GDK_IS_VISUAL but GDK_IS_WINDOW. > > FWIW I'm seeing this crash on both Fedora and OpenBSD. Reverting the following commit to gtk+: http://git.gnome.org/browse/gtk+/commit/?h=gtk-3-0&id=0cf31b35eb10cb5bc08048ecdc141c949efec4cc made the GDK_IS_WINDOW assertion failed crash go away for me.
@Antoine, your issue is totally different and doesn't belong here. Also it was fixed already in git. original: Gdk-CRITICAL **: gdk_visual_get_red_pixel_details: assertion `GDK_IS_VISUAL you: Gtk-CRITICAL **: gtk_cairo_should_draw_window: assertion `GDK_IS_WINDOW (window)' failed
Hi, I'm on a current Fedora LXDE Spin with notification-daemon (i.e. minimal gnome3). I experience the same problem. If you need Info, I'll happily provide them Klaus
I am running Debian sid with fluxbox. Switching to GNOME solves this particular issue and `notify-send foo bar` is successful, but it seems to be feasible to me that this might be a WM issue (I have not investigated it in any serious manner). It seems that the people having issues are running different window managers.
it does work because gnome uses the notification from gdu. ps x | grep notification
At bugs.debian.org there is a bug marked as "Forwarded to https://bugzilla.gnome.org/show_bug.cgi?id=649588" but I cannot see any interaction between these to threads. Here the bug has an UNCONFIRMED status, so I would like to assure everyone is informed. There is even a draft patch suggesting the source of the problem. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=637067
I have located the bug in gtk_tray_icon_get_visual_property(). Therefore, the bug is unrelated to notification-daemon. I attach a patch fixing the problem. This is a regression introduced in december 2010.
Created attachment 194938 [details] [review] Fix gtk_tray_icon_get_visual_property() [PATCH] Fix gtk_tray_icon_get_visual_property() when visual not available. This fixes a regression introduced in commit 3518bbe28ff76a0d484df0093f6b5289edd2bebb. gdk_visual_get_*_pixel_details() should not be called with a NULL visual.
this bug needs to be moved to gtk product
re-assigning
Review of attachment 194938 [details] [review]: looks good to me.
commit 6754614ac1ce8f72c0d0ec2369408ac61e080dab Author: Vincent Bernat <bernat@luffy.cx> Date: Sat Aug 27 20:06:26 2011 +0200 trayicon-x11: Fix warnings when visual is not available. This fixes a regression introduced in commit b1a1685a33eca16979e63d79915395af0b36. gdk_visual_get_*_pixel_details() should not be called with a NULL visual. https://bugzilla.gnome.org/show_bug.cgi?id=649588