The tutorial should have a section on error handling
Submitted by Steven Stewart-Gallus
Assigned to xcb mailing list dummy
The tutorial briefly mentions it in a few points but doesn't really give a good explanation. This is especially confusing because XCB has two kinds of errors. Errors that the X server sends the program (for example, the client violates the protocol or the server runs out of memory) and errors that the program generates internally (for example, an out of memory error or some low level operating system socket system call generates an IO error).
GUI code is flakey in general and I already run my GUI in a separate process to protect against program exits in library code and corruption but I'd still like to do some obvious error checking.