DRI2GetBuffersWithFormat hangs waiting for X.org

Joris Dobbelsteen joris.dobbelsteen at sioux.eu
Wed Dec 1 05:32:39 PST 2010


On Wed, 2010-12-01 at 12:58 +0200, Pauli Nieminen wrote:
> [snip]
> > Could this multi-threaded usage of libX11 cause it to hang?
> >
> > What we see is that our drawing thread gets stuck in a poll on the
> > socket while calling _XReply (after _XReply has called _XSend). However,
> > a second thread is seen reading from a socket for inputs.
> >
> 
> Does someone set the connection to thread safe mode?
> 
> If yes then xcb might be causing the problem.
> 
DirectFB calls InitThreads() at initialization.

But, how should I be doing that?

I've currently tried to move to xcb_wait_for_event() function instead of
XPending() and XNextEvent() calls. This seems to consistently hang my
connection.

- Joris

[snip]



More information about the xorg-devel mailing list