Search code examples
c++openglxlib

Xlib Fatal IO Error: 11 (resource temporarily unavailable) caused by not using XCloseDisplay()


I'm using X11 and when I run my program the window displays fine, but when I quit the following error is outputted in the console:

XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0" after 58 requests (58 known processed) with 0 events remaining.

I have looked in the documentation but I can't find out anything on what this actually means.


Solution

  • The error is because I quit the application without closing the display using XCloseDisplay().