Hang in XIQueryDevice -> _XReply
Observed the hang in X11lib and below is backtrace. We are using the QT5 in our application and observed this issue when the application was ideal. Not sure USB Keyboard reconnect can cause to XIQueryDevice and the recursive call of _XRelpy?
#0 0xf777faf9 in __kernel_vsyscall ()
#1 0xf775c673 in pthread_cond_wait () from /lib/libpthread.so.0
#2 0xf5e9573c in ?? () from /usr/lib/libX11.so.6
#3 0xf5ea7931 in _XReply () from /usr/lib/libX11.so.6
#4 0xf5eaa192 in ?? () from /usr/lib/libX11.so.6
#5 0xf5ea9a41 in _XError () from /usr/lib/libX11.so.6
#6 0xf5ea680e in ?? () from /usr/lib/libX11.so.6
#7 0xf5ea68af in ?? () from /usr/lib/libX11.so.6
#8 0xf5ea78eb in _XReply () from /usr/lib/libX11.so.6
#9 0xf1020ad4 in XIQueryDevice () from /usr/lib/libXi.so.6
#10 0xf1124e80 in QXcbConnection::handleEnterEvent() ()
from /usr/lib/libQt5XcbQpa.so.5
#11 0xf110fbdc in QXcbWindow::handleEnterNotifyEvent(int, int, int, int, unsigned char, unsigned char, unsigned int) () from /usr/lib/libQt5XcbQpa.so.5
#12 0xf111011a in QXcbWindow::handleXIEnterLeave(xcb_ge_event_t*) ()
from /usr/lib/libQt5XcbQpa.so.5
#13 0xf1127f10 in QXcbConnection::xi2HandleEvent(xcb_ge_event_t*) ()
from /usr/lib/libQt5XcbQpa.so.5
#14 0xf10f9809 in QXcbConnection::handleXcbEvent(xcb_generic_event_t*) ()
from /usr/lib/libQt5XcbQpa.so.5
#15 0xf10f9c63 in QXcbConnection::processXcbEvents() ()
from /usr/lib/libQt5XcbQpa.so.5
Edited by Ghost User