Bug 193281 - KWin sometimes freezes in XQueryPointer
Summary: KWin sometimes freezes in XQueryPointer
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-19 22:04 UTC by Dima Ryazanov
Modified: 2009-08-11 03:31 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dima Ryazanov 2009-05-19 22:04:32 UTC
Version:            (using KDE 4.2.2)
OS:                Linux
Installed from:    Ubuntu Packages

Once in a while, when debugging another application, kwin freezes:

#0  0x00007f54ee85a463 in __select_nocancel () from /lib/libc.so.6
#1  0x00007f54ebfda356 in ?? () from /usr/lib/libxcb.so.1
#2  0x00007f54ebfdbbdd in xcb_wait_for_reply () from /usr/lib/libxcb.so.1
#3  0x00007f54f0b2358e in _XReply () from /usr/lib/libX11.so.6
#4  0x00007f54f0b10b4f in XQueryPointer () from /usr/lib/libX11.so.6
#5  0x00007f54f3741509 in KWin::Workspace::cursorPos (this=0x12440e0)
    at /build/buildd/kdebase-workspace-4.2.2/kwin/workspace.cpp:2674
#6  0x00007f54f37415fa in KWin::Workspace::checkCursorPos (this=0x8)
    at /build/buildd/kdebase-workspace-4.2.2/kwin/workspace.cpp:2703
#7  0x00007f54f374741a in KWin::Workspace::qt_metacall (this=0x12440e0,
    _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>,
    _a=0x7ffffbbff690)
    at /build/buildd/kdebase-workspace-4.2.2/obj-x86_64-linux-gnu/kwin/workspace.moc:446
#8  0x00007f54f136e134 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#9  0x00007f54f1368a43 in QObject::event () from /usr/lib/libQtCore.so.4
#10 0x00007f54f1a7dc3d in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#11 0x00007f54f1a859ba in QApplication::notify () from /usr/lib/libQtGui.so.4
#12 0x00007f54f2eeeabb in KApplication::notify () from /usr/lib/libkdeui.so.5
#13 0x00007f54f1359d61 in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#14 0x00007f54f1385ab6 in ?? () from /usr/lib/libQtCore.so.4
#15 0x00007f54f13821fd in ?? () from /usr/lib/libQtCore.so.4
#16 0x00007f54ed113d5b in g_main_context_dispatch ()
   from /usr/lib/libglib-2.0.so.0
#17 0x00007f54ed11752d in ?? () from /usr/lib/libglib-2.0.so.0
#18 0x00007f54ed1176eb in g_main_context_iteration ()
   from /usr/lib/libglib-2.0.so.0
#19 0x00007f54f138215f in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#20 0x00007f54f1b0fa6f in ?? () from /usr/lib/libQtGui.so.4
#21 0x00007f54f1358682 in QEventLoop::processEvents ()
   from /usr/lib/libQtCore.so.4
#22 0x00007f54f135880d in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#23 0x00007f54f135acbd in QCoreApplication::exec ()
   from /usr/lib/libQtCore.so.4
#24 0x00007f54f375e86f in kdemain (argc=3, argv=0x7ffffbc00588)
    at /build/buildd/kdebase-workspace-4.2.2/kwin/main.cpp:519
#25 0x00007f54ee799466 in __libc_start_main () from /lib/libc.so.6
#26 0x00000000004007e9 in _start ()

Killing the other application sometimes unfreezes it, but usually, I have to kill kwin and restart it.
Comment 1 Martin Flöser 2009-05-19 22:09:48 UTC
probably related to mouse polling. Can you try to disable the track mouse effect?
Comment 2 Dima Ryazanov 2009-05-19 23:33:40 UTC
Ok, disabled it. I'll see if this still happens.
Comment 3 lucas 2009-05-20 04:57:20 UTC
If it freezes in XQueryPointer() (Which is a blocking call that waits for communication from the X server) then it certainly isn't a KWin problem.
Comment 4 Dima Ryazanov 2009-08-11 03:31:08 UTC
So would this be a bug in the X server?

I filed an Ubuntu bug about this: https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/400374
But I'm not really sure who is at fault here.