#943708 virt-manager crashes: python3: ../../src/xcb_io.c:263: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed.

#943708#5
Date:
2019-10-28 11:38:51 UTC
From:
To:
virt-manager crashes on me quite often. It's been doing this for the last year or so, but never before then. I think it was when I first upgraded to 2.0.0, but not sure.

Today I upgraded from 1:2.0.0-3 to 1:2.2.1-2 to see if it was still crashing and indeed it is.

When run with --debug, I get this output on a crash:

[xcb] Unknown sequence number while processing queue
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
python3: ../../src/xcb_io.c:263: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed.
Aborted

Most often happens when there is a visual change on the screen induced by:
	Right-clicking to open a menu.
	Clicking on a window to move it.
	Highlighting and selecting text.
	Opening an image file to display.

There is no question in my mind that it's being triggered by user activity, as it always crashes when I do something. It happens pretty randomly about twice a day with 4-8 hours of usage. I don't think there's anything specific I can do to reliably reproduce it.