GLFW crash under Linux Ubuntu 8.04

adrian-m wrote on Saturday, September 13, 2008:

I experimented a what i would call a random crash under ubuntu 8.04 using version 2.6 revision 0 of the glfw library. I don’t know if it was me doing something wrong(i was playing the a cross platform game i wrote). I managed to extract the following information from the console of netbeans 6.01:

X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 42 (X_SetInputFocus)
Serial number of failed request: 1166280
Current serial number in output stream: 1166288
Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb6d4e767]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_lock+0x2e) [0xb6d4e81e]
#2 /usr/lib/libX11.so.6 [0xb7afc518]
#3 /usr/lib/libX11.so.6(XUndefineCursor+0x25) [0xb7af2a25]
#4 /usr/lib/libglfw.so(_glfwPlatformShowMouseCursor+0x67) [0xb7fbf0c6]
#5 /usr/lib/libglfw.so(glfwEnable+0x5e) [0xb7fbb492]
#6 /usr/lib/libglfw.so(glfwCloseWindow+0x2a) [0xb7fbdd16]
#7 /usr/lib/libglfw.so(_glfwPlatformTerminate+0x2b) [0xb7fbe2d7]
#8 /usr/lib/libglfw.so(glfwTerminate+0x20) [0xb7fbc468]
#9 /usr/lib/libglfw.so(_glfwTerminate_atexit+0x17) [0xb7fbe41d]
#10 /lib/tls/i686/cmov/libc.so.6(exit+0xd4) [0xb7bd2084]
#11 /usr/lib/libX11.so.6 [0xb7af563e]
#12 /usr/lib/libX11.so.6(_XError+0xfe) [0xb7af573e]
#13 /usr/lib/libX11.so.6 [0xb7afce5c]
#14 /usr/lib/libX11.so.6(_XReply+0x15a) [0xb7afd21a]
#15 /usr/lib/libX11.so.6(XGrabPointer+0x9c) [0xb7adca3c]
#16 /usr/lib/libglfw.so(_glfwPlatformPollEvents+0x72a) [0xb7fc0566]
#17 /usr/lib/libglfw.so(glfwPollEvents+0x2e) [0xb7fbdb1b]
#18 /usr/lib/libglfw.so(glfwSwapBuffers+0x32) [0xb7fbdb8d]

What do you guys think it happened?

elmindreda wrote on Saturday, September 13, 2008:

Nope, I don’t think that’s your fault. I get that too, on random occasions using various window managers (yes, that’s vague). I think it’s me having missed something important in the Xlib code. I’ve reopened the corresponding tracker item. Please add any and all details of the environment in which it occurred, so I can track the bug down once and for all.

https://sourceforge.net/tracker/index.php?func=detail&aid=1612825&group_id=72569&atid=534938

adrian-m wrote on Saturday, September 13, 2008:

That’s interesting. I would be happy to help but i don’t know what you mean by “details of the environment”. If there is a way to be more specific i would gladly collect information that would be useful. It happened two times up to this point so i think i can make it crash fairly easy. I’m using Netbeans 6.01.

elmindreda wrote on Saturday, September 13, 2008:

Your CPU architecture, *nix distribution name and version, the name of your window manager or desktop environment, version of X.org, that sort of thing.