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 766233 - Crash when server does not support XI2
Crash when server does not support XI2
Product: gtk+
Classification: Platform
Component: Backend: X11
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
Depends on:
Reported: 2016-05-10 16:00 UTC by Jan Alexander Steffens (heftig)
Modified: 2016-05-11 01:30 UTC
See Also:
GNOME target: ---
GNOME version: ---

Description Jan Alexander Steffens (heftig) 2016-05-10 16:00:00 UTC
Commit d236fd7 added a call to XIGetClientPointer to gdkdisplay-x11.c, which crashes on X servers that do not support XI2, such as X2Go (NX).
Comment 1 Matthias Clasen 2016-05-10 21:55:15 UTC
Can you be more specific about "crashes" - it is certainly not supposed to crash, that would be an Xlib bug.
Comment 2 Matthias Clasen 2016-05-10 21:58:53 UTC
We should probably catch the X errors that may occur here. Is that what you are seeing ?
Comment 3 Jan Alexander Steffens (heftig) 2016-05-10 21:59:56 UTC
(meld:2673): Gdk-ERROR **: The program 'meld' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadRequest (invalid request code or no such operation)'.
(Details: serial 513 error_code 1 request_code 131 (XInputExtension) minor_code 45)

A stack trace with GDK_SYNCHRONIZE=1:

Stack trace of thread 28925:
#0  0x00007f0f12a437eb g_logv (
#1  0x00007f0f12a4395f g_log (
#2  0x00007f0f12fabad8 _gdk_x11_display_error_event (
#3  0x00007f0f12fb7ca9 gdk_x_error (
#4  0x00007f0f11a7587d _XError (
#5  0x00007f0f11a727c7 n/a (
#6  0x00007f0f11a73935 _XReply (
#7  0x00007f0f10e56214 XIGetClientPointer (
#8  0x00007f0f12faa627 gdk_x11_display_get_default_seat (
#9  0x00007f0f135526a8 gtk_tooltip_trigger_tooltip_query (
#10 0x00007f0f12a5ae4d g_slist_foreach (
#11 0x00007f0f1358f0b9 tooltip_query_idle (
#12 0x00007f0f12f7b988 gdk_threads_dispatch (
#13 0x00007f0f12a3cdba g_main_context_dispatch (
#14 0x00007f0f12a3d160 g_main_context_iterate.isra.29 (
#15 0x00007f0f12a3d482 g_main_loop_run (
#16 0x000000000040513b main (pasystray)
#17 0x00007f0f11493710 __libc_start_main (
#18 0x0000000000405189 n/a (pasystray)