GNOME Bugzilla – Bug 684938
gedit and evince hits BadWindow XErrors when run from different "contexts" with GTK 3.6
Last modified: 2012-09-27 12:51:13 UTC
The issue has been reported on https://bugs.launchpad.net/ubuntu/+source/gtk+3.0/+bug/1047431 Using GNOME 3.6 "I can reproduce the bug by following these steps: 1) open a file (in gedit) from a command line 2) open a file (in gedit) from nautilus."" Stacktrace: https://launchpadlibrarian.net/115064882/Stacktrace.txt "#0 g_logv (log_domain=0x7fe53cb82f06 "Gdk", log_level=G_LOG_LEVEL_ERROR, format=<optimized out>, args=args@entry=0x7fff961060b8) at /build/buildd/glib2.0-2.33.12/./glib/gmessages.c:974 domain = 0x0 data = <optimized out> depth = <optimized out> log_func = 0x7fe53afb05c0 <g_log_default_handler> domain_fatal_mask = <optimized out> masquerade_fatal = <optimized out> test_level = <optimized out> was_fatal = <optimized out> was_recursion = <optimized out> msg = 0x2b40880 "The program 'gedit' received an X Window System error.\nThis probably reflects a bug in the program.\nThe error was 'BadWindow (invalid Window parameter)'.\n (Details: serial 246 error_code 3 request_co"... msg_alloc = 0x2b40880 "The program 'gedit' received an X Window System error.\nThis probably reflects a bug in the program.\nThe error was 'BadWindow (invalid Window parameter)'.\n (Details: serial 246 error_code 3 request_co"... i = 2
+ Trace 230918
it doesn't happen if gedit is run with "GDK_SYNCHRONIZE=1 gedit" the issue happens under wmaker as well so it's not wm dependant
looking to when the reports started it seems the issue started with gtk+ 3.5.16
Fixed by: http://git.gnome.org/browse/gtk+/commit/?id=f9d77959a4518699a96b3c85ddc18d0ff01aeac5