Infinite loop bug with XCB. How can I fix this?

37 Views Asked by At

I'm programming a window manager using the XCB library. I started getting these error messages:

XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":5"
      after 807 requests (807 known processed) with 0 events remaining.
XIO:  fatal IO error 104 (Connection reset by peer) on X server ":5"
      after 794 requests (785 known processed) with 0 events remaining.

I expect they're from some sort of infinite loop I created, because these messages happen when I try to reparent a client window to put it into a new "frame" window, in order to give the client window titlebars and other decorations.

However, despite this, my window manager keeps running, and these errors don't show up until I close the window manager.

How would I be able to diagnose and fix a bug like this?

0

There are 0 best solutions below