myth tv setup crash due to libx11-6

Running myttv-setup on a debian box was crashing with following error:

mythtv-setup: ../../src/xcb_lock.c:77: _XGetXCBBuffer: Assertion `((int) ((xcb_req) - (dpy->request)) >= 0)' failed.


Searching around found the solution at

In summary the mythtv-setup program uses libxcb in an incorrect manner, and the backwards compatibility workaround has been disabled in the newer debian releses of the library.

Summary of fix for debian testing is:

Get old version of the ilbrary package:

Install it : dpkg -i libx11-6_1.0.3-7_i386.deb

Make fix permanent during syste upgrades:

Show current automatic update setting for libx11-6: dpkg --get-selections | grep libx11-6

Disable automatic upgrades: echo "libx11-6 hold" | dpkg --set-selections


Thanks mate!

I have just switched to Debian and this was not a good start.

Thanks for a quick fix.