Bug 68173

Summary: Kicker hangs when selecting text in Acrobat reader
Product: [Applications] klipper Reporter: Ralf Holzer <kdebugs>
Component: generalAssignee: Carsten Pfeiffer <pfeiffer>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Ralf Holzer 2003-11-14 04:14:11 UTC
Version:           unknown (using KDE 3.1.93 (CVS >= 20031111), compiled sources)
Compiler:          gcc version 3.3 20030226 (prerelease) (SuSE Linux)
OS:          Linux (i686) release 2.4.22

If I select text in Acrobat Reader 5 and manually select "copy" from the file menu,
the kicker panel freezes. It seems to get stuck here:

ClipboardPoll::checkTimestamp(ClipboardPoll::SelectionData&) (this=0x8203bb0, data=@0x8203c68) at clipboardpoll.cpp:134
134         for(;
(gdb) next
139             while( XCheckTypedWindowEvent( qt_xdisplay(), winId(), SelectionNotify, &ev ))


Here is a backtrace:

#0  0x412fe555 in nanosleep () from /lib/libpthread.so.0
#1  0x4234d055 in ClipboardPoll::checkTimestamp(ClipboardPoll::SelectionData&) (this=0x8203bb0, data=@0x2d) at clipboardpoll.cpp:177
#2  0x4234ce75 in ClipboardPoll::timeout() (this=0x8203bb0) at clipboardpoll.cpp:108
#3  0x4234d279 in ClipboardPoll::qt_invoke(int, QUObject*) (this=0x8203bb0, _id=45, _o=0xbfffee30) at clipboardpoll.moc:92
#4  0x40d35e57 in QObject::activate_signal(QConnectionList*, QUObject*) (this=0x8203c24, clist=0x8237830, o=0xbfffee30) at kernel/qobject.cpp:2333
#5  0x40d35cf6 in QObject::activate_signal(int) (this=0x8203c24, signal=2) at kernel/qobject.cpp:2302
#6  0x4107bdfa in QTimer::timeout() (this=0x8203c24) at .moc/debug-shared-mt/moc_qtimer.cpp:82
#7  0x40d5a633 in QTimer::event(QEvent*) (this=0x8203c24, e=0xbffff0a0) at kernel/qtimer.cpp:219
#8  0x40cd3035 in QApplication::internalNotify(QObject*, QEvent*) (this=0xbffff2b0, receiver=0x8203c24, e=0xbffff0a0) at kernel/qapplication.cpp:2582
#9  0x40cd24f2 in QApplication::notify(QObject*, QEvent*) (this=0xbffff2b0, receiver=0x8203c24, e=0xbffff0a0) at kernel/qapplication.cpp:2305
#10 0x40837413 in KApplication::notify(QObject*, QEvent*) (this=0xbffff2b0, receiver=0x8203c24, event=0xbffff0a0) at kapplication.cpp:509
#11 0x40c69f99 in QApplication::sendEvent(QObject*, QEvent*) (receiver=0x8203c24, event=0xbffff0a0) at kernel/qapplication.h:490
#12 0x40cc0f68 in QEventLoop::activateTimers() (this=0x80abb38) at kernel/qeventloop_unix.cpp:557
#13 0x40c7bab2 in QEventLoop::processEvents(unsigned) (this=0x80abb38, flags=4) at kernel/qeventloop_x11.cpp:346
#14 0x40ce89fe in QEventLoop::enterLoop() (this=0x80abb38) at kernel/qeventloop.cpp:198
#15 0x40ce891a in QEventLoop::exec() (this=0x80abb38) at kernel/qeventloop.cpp:145
#16 0x40cd31b5 in QApplication::exec() (this=0xbffff2b0) at kernel/qapplication.cpp:2705
#17 0x4006436c in kdemain (argc=1, argv=0xbffff4e4) at main.cpp:148
#18 0x08048629 in main (argc=1, argv=0xbffff4e4) at kicker.la.cpp:2
#19 0x414628ae in __libc_start_main () from /lib/libc.so.6
Comment 1 Lubos Lunak 2004-11-11 19:18:00 UTC
CVS commit by lunakl: 

Make polling for the selection TIMESTAMP asynchronous. Acrobat Reader
for some strange reason needs a lot of time to respond to such a simple
request.
BUG: 68173


  M +79 -61    clipboardpoll.cpp   1.8
  M +4 -1      clipboardpoll.h   1.4