Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Python & OpenCV 3.1: imshow fail when called in different thread

Hi guys,

I'm trying to build a multi-threading application. Each thread captures a video and display each frame of the video with imshow till the end. However, the script fails with:

xcb] Unknown request in queue while dequeuing [xcb] Most likely this is a multi-threaded client and XInitThreads has not been called [xcb] Aborting, sorry about that. python: ../../src/xcb_io.c:179: dequeue_pending_request: assertion "!xcb_xlib_unknown_req_in_deq" failed.

Any idea on how to solve this with Python?