Bug 284616

Summary: Okular crashes in QSpiAccessible
Product: [Applications] okular Reporter: michaelcochez
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED DOWNSTREAM    
Severity: crash CC: aacid, gladhorn, jmillan, prashastha.p
Priority: NOR    
Version: 0.13.1   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description michaelcochez 2011-10-21 13:08:11 UTC
Application: okular (0.13.1)
KDE Platform Version: 4.7.1 (4.7.1)
Qt Version: 4.7.4
Operating System: Linux 3.0.0-12-generic x86_64
Distribution: Ubuntu 11.10

-- Information about the crash:
- What I was doing when the application crashed:

I selected (multiple times in a row) an empty area (mo text)

The selection was started from the rightbottom corner and ended at the lefttop corner of the selected area.

The crash can be reproduced some of the time.

-- Backtrace:
Application: Okular (okular), signal: Segmentation fault
[Current thread is 1 (Thread 0x7fa109fde780 (LWP 3376))]

Thread 2 (Thread 0x7fa0f5e36700 (LWP 3378)):
#0  0x00007fa10720b773 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fa1040f9f68 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fa1040fa792 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fa0fe6a4516 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007fa10411f2b6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fa1045cbefc in start_thread (arg=0x7fa0f5e36700) at pthread_create.c:304
#6  0x00007fa10721789d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fa109fde780 (LWP 3376)):
[KCrash Handler]
#6  0x00007fa0e8db3118 in QSpiAccessibleBridge::notifyAccessibilityUpdate(int, QAccessibleInterface*, int) () from /usr/lib/qt4/plugins/accessiblebridge/libqspiaccessiblebridge.so
#7  0x00007fa108ac8299 in QAccessible::updateAccessibility (o=<optimized out>, who=2, reason=QAccessible::Focus) at accessible/qaccessible_unix.cpp:107
#8  0x00007fa1089fc32c in QMenuPrivate::activateAction (this=0x21abb90, action=0x23102b0, action_e=QAction::Hover, self=true) at widgets/qmenu.cpp:1104
#9  0x00007fa1089fa637 in QMenuPrivate::setCurrentAction (this=0x21abb90, action=0x23102b0, popup=225, reason=QMenuPrivate::SelectedFromElsewhere, activateFirst=false) at widgets/qmenu.cpp:575
#10 0x00007fa1089fe9a5 in QMenu::mouseMoveEvent (this=0x7fff9e24a720, e=0x7fff9e249a70) at widgets/qmenu.cpp:2803
#11 0x00007fa108612cce in QWidget::event (this=0x7fff9e24a720, event=0x7fff9e249a70) at kernel/qwidget.cpp:8280
#12 0x00007fa1089fd7fb in QMenu::event (this=0x7fff9e24a720, e=0x7fff9e249a70) at widgets/qmenu.cpp:2405
#13 0x00007fa1085c2424 in notify_helper (e=0x7fff9e249a70, receiver=0x7fff9e24a720, this=0x16bb670) at kernel/qapplication.cpp:4486
#14 QApplicationPrivate::notify_helper (this=0x16bb670, receiver=0x7fff9e24a720, e=0x7fff9e249a70) at kernel/qapplication.cpp:4458
#15 0x00007fa1085c7c6b in QApplication::notify (this=<optimized out>, receiver=0x7fff9e24a720, e=0x7fff9e249a70) at kernel/qapplication.cpp:4047
#16 0x00007fa1092d61e6 in KApplication::notify (this=0x7fff9e24c1b0, receiver=0x7fff9e24a720, event=0x7fff9e249a70) at ../../kdeui/kernel/kapplication.cpp:311
#17 0x00007fa107bc1afc in QCoreApplication::notifyInternal (this=0x7fff9e24c1b0, receiver=0x7fff9e24a720, event=0x7fff9e249a70) at kernel/qcoreapplication.cpp:787
#18 0x00007fa1085c33f2 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#19 QApplicationPrivate::sendMouseEvent (receiver=0x7fff9e24a720, event=0x7fff9e249a70, alienWidget=0x0, nativeWidget=0x7fff9e24a720, buttonDown=0x0, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3146
#20 0x00007fa108643001 in QETWidget::translateMouseEvent (this=0x7fff9e24a720, event=<optimized out>) at kernel/qapplication_x11.cpp:4502
#21 0x00007fa1086418be in QApplication::x11ProcessEvent (this=0x7fff9e24c1b0, event=0x7fff9e24a290) at kernel/qapplication_x11.cpp:3690
#22 0x00007fa10866a412 in x11EventSourceDispatch (s=0x16be5b0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#23 0x00007fa1040f9a5d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#24 0x00007fa1040fa258 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007fa1040fa429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007fa107beced6 in QEventDispatcherGlib::processEvents (this=0x16ba7f0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#27 0x00007fa10866a07e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#28 0x00007fa107bc0cf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#29 0x00007fa107bc0ef7 in QEventLoop::exec (this=0x7fff9e24a660, flags=...) at kernel/qeventloop.cpp:201
#30 0x00007fa1089f9711 in QMenu::exec (this=<optimized out>, p=..., action=0x0) at widgets/qmenu.cpp:2049
#31 0x00007fa0ec112b2b in ?? () from /usr/lib/kde4/okularpart.so
#32 0x00007fa108612c9a in QWidget::event (this=0x1d4dd80, event=0x7fff9e24b550) at kernel/qwidget.cpp:8295
#33 0x00007fa1089bb4f6 in QFrame::event (this=0x1d4dd80, e=0x7fff9e24b550) at widgets/qframe.cpp:557
#34 0x00007fa0ec1071bd in ?? () from /usr/lib/kde4/okularpart.so
#35 0x00007fa107bc1c88 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<optimized out>, receiver=0x1d4d4e0, event=0x7fff9e24b550) at kernel/qcoreapplication.cpp:902
#36 0x00007fa1085c23ef in notify_helper (e=0x7fff9e24b550, receiver=0x1d4d4e0, this=0x16bb670) at kernel/qapplication.cpp:4482
#37 QApplicationPrivate::notify_helper (this=0x16bb670, receiver=0x1d4d4e0, e=0x7fff9e24b550) at kernel/qapplication.cpp:4458
#38 0x00007fa1085c7c6b in QApplication::notify (this=<optimized out>, receiver=0x1d4d4e0, e=0x7fff9e24b550) at kernel/qapplication.cpp:4047
#39 0x00007fa1092d61e6 in KApplication::notify (this=0x7fff9e24c1b0, receiver=0x1d4d4e0, event=0x7fff9e24b550) at ../../kdeui/kernel/kapplication.cpp:311
#40 0x00007fa107bc1afc in QCoreApplication::notifyInternal (this=0x7fff9e24c1b0, receiver=0x1d4d4e0, event=0x7fff9e24b550) at kernel/qcoreapplication.cpp:787
#41 0x00007fa1085c33f2 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#42 QApplicationPrivate::sendMouseEvent (receiver=0x1d4d4e0, event=0x7fff9e24b550, alienWidget=0x1d4d4e0, nativeWidget=0x19b64a0, buttonDown=0x1d4d4e0, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3146
#43 0x00007fa108642945 in QETWidget::translateMouseEvent (this=0x19b64a0, event=<optimized out>) at kernel/qapplication_x11.cpp:4568
#44 0x00007fa1086418be in QApplication::x11ProcessEvent (this=0x7fff9e24c1b0, event=0x7fff9e24bd70) at kernel/qapplication_x11.cpp:3690
#45 0x00007fa10866a412 in x11EventSourceDispatch (s=0x16be5b0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#46 0x00007fa1040f9a5d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#47 0x00007fa1040fa258 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#48 0x00007fa1040fa429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#49 0x00007fa107beced6 in QEventDispatcherGlib::processEvents (this=0x16ba7f0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#50 0x00007fa10866a07e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#51 0x00007fa107bc0cf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#52 0x00007fa107bc0ef7 in QEventLoop::exec (this=0x7fff9e24c140, flags=...) at kernel/qeventloop.cpp:201
#53 0x00007fa107bc5789 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064
#54 0x0000000000407a36 in ?? ()
#55 0x00007fa10715730d in __libc_start_main (main=0x407650, argc=6, ubp_av=0x7fff9e24c688, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff9e24c678) at libc-start.c:226
#56 0x0000000000408259 in _start ()

Reported using DrKonqi
Comment 1 Albert Astals Cid 2011-10-21 13:16:21 UTC
Frederik, Jose, it seems to be crashing on the QSpiAccessibleBridge thing, that is yours, right? Any idea of what might be happening?
Comment 2 Frederik Gladhorn 2011-10-21 14:01:18 UTC
The version of qt-at-spi that Ubuntu ships is crash prone and outdated.
If you don't have accessibility needs, remove qt-at-spi.
Comment 3 Albert Astals Cid 2011-10-21 14:16:18 UTC
As discussed with Frederik and Jonathan Riddel of the KUbuntu team this is an unfortunate mix of the versions shipped with Ubuntu. The crash does not exist anymore in the newer versions of qt-at-spi. Our suggestion is that you go to the ubuntu bug tracker and open a bug report against qt-at-spi and mention that the version shipped in Ubuntu 11.10 is making lots of KDE programs (Okular between them) crash.

Thanks for the report and sorry we can no do anything to help you.
Comment 5 Albert Astals Cid 2011-10-26 09:15:18 UTC
*** Bug 284986 has been marked as a duplicate of this bug. ***