Bug 211148

Summary: Okular crashed while scrolling [QRegion::cleanUp, QRegion::operator=, QRegion::operator-=]
Product: [Applications] okular Reporter: Kelvie Wong <kelvie>
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED DUPLICATE    
Severity: crash CC: andresbajotierra, mpartap
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Kelvie Wong 2009-10-19 23:38:00 UTC
Application: okular (0.9.80)
KDE Version: 4.3.72 (KDE 4.3.72 (KDE 4.4 >= 20091015)) (Compiled from sources)
Qt Version: 4.6.0
Operating System: Linux 2.6.32-rc2-00301-gf0a221e x86_64
Distribution: "Gentoo Base System release 2.0.1"

What I was doing when the application crashed:
The backtrace is attached, I just turned off the table of contents sidebar, resized the window, and scrolled down again.

The PDF I used was this one, if it matters:
http://atomoptics.uoregon.edu/~dsteck/teaching/optics/optics-notes.pdf

 -- Backtrace:
Application: Okular (okular), signal: Aborted
[KCrash Handler]
#5  0x00007fd876e33a75 in raise () from /lib/libc.so.6
#6  0x00007fd876e34ebe in abort () from /lib/libc.so.6
#7  0x00007fd876e6c9ab in __libc_message () from /lib/libc.so.6
#8  0x00007fd876e71ccc in malloc_printerr () from /lib/libc.so.6
#9  0x00007fd877c1f206 in QRegion::cleanUp(QRegion::QRegionData*) () from /usr/lib64/qt4/libQtGui.so.4
#10 0x00007fd877c1f402 in QRegion::operator=(QRegion const&) () from /usr/lib64/qt4/libQtGui.so.4
#11 0x00007fd877c1fdda in QRegion::operator-=(QRegion const&) () from /usr/lib64/qt4/libQtGui.so.4
#12 0x00007fd86a5503d0 in PageView::drawDocumentOnPainter (this=<value optimized out>, contentsRect=<value optimized out>, p=0x7fffb3945d30)
    at /home/kelvie/src/git/kde/kdegraphics/okular/ui/pageview.cpp:2398
#13 0x00007fd86a550dca in PageView::paintEvent (this=0x8e82a0, pe=<value optimized out>) at /home/kelvie/src/git/kde/kdegraphics/okular/ui/pageview.cpp:1200
#14 0x00007fd877b00a38 in QWidget::event(QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#15 0x00007fd877e47b86 in QFrame::event(QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#16 0x00007fd86a555f9d in PageView::viewportEvent (this=0x8e82a0, e=0x7fffb3946580) at /home/kelvie/src/git/kde/kdegraphics/okular/ui/pageview.cpp:2240
#17 0x00007fd8787ea2b6 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
#18 0x00007fd877aacd7c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#19 0x00007fd877ab5b20 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#20 0x00007fd879674be6 in KApplication::notify (this=0x7fffb39493d0, receiver=0x8e7420, event=0x7fffb3946580) at /home/kelvie/src/git/kde/kdelibs/kdeui/kernel/kapplication.cpp:302
#21 0x00007fd8787eae8b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
#22 0x00007fd877b01e89 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/qt4/libQtGui.so.4
#23 0x00007fd877c90ca5 in QWidgetBackingStore::sync() () from /usr/lib64/qt4/libQtGui.so.4
#24 0x00007fd877af3e72 in QWidgetPrivate::syncBackingStore() () from /usr/lib64/qt4/libQtGui.so.4
#25 0x00007fd877b01186 in QWidget::event(QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#26 0x00007fd877e606bb in QMainWindow::event(QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#27 0x00007fd87978b213 in KXmlGuiWindow::event (this=0x2b71, ev=0x2b71) at /home/kelvie/src/git/kde/kdelibs/kdeui/xmlgui/kxmlguiwindow.cpp:131
#28 0x00007fd877aacdac in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#29 0x00007fd877ab5b20 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#30 0x00007fd879674be6 in KApplication::notify (this=0x7fffb39493d0, receiver=0x73f700, event=0x7fffb39472d0) at /home/kelvie/src/git/kde/kdelibs/kdeui/kernel/kapplication.cpp:302
#31 0x00007fd8787eae8b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
#32 0x00007fd877c8e577 in sendUpdateRequest(QWidget*, bool) () from /usr/lib64/qt4/libQtGui.so.4
#33 0x00007fd877c912a7 in QWidgetBackingStore::markDirty(QRect const&, QWidget*, bool, bool) () from /usr/lib64/qt4/libQtGui.so.4
#34 0x00007fd877af63cb in QWidget::repaint(QRect const&) () from /usr/lib64/qt4/libQtGui.so.4
#35 0x00007fd86a551550 in PageView::scrollContentsBy (this=0x8e82a0, dx=<value optimized out>, dy=<value optimized out>) at /home/kelvie/src/git/kde/kdegraphics/okular/ui/pageview.cpp:2252
#36 0x00007fd877ec9f60 in QAbstractScrollArea::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib64/qt4/libQtGui.so.4
#37 0x00007fd86a559fa0 in PageView::qt_metacall (this=0x2b71, _c=11121, _id=6, _a=0xffffffffffffffff) at /home/kelvie/src/tmp/build/kde/kdegraphics/okular/pageview.moc:151
#38 0x00007fd8787fdd9a in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/qt4/libQtCore.so.4
#39 0x00007fd8780a4a6e in QAbstractSlider::valueChanged(int) () from /usr/lib64/qt4/libQtGui.so.4
#40 0x00007fd877e0ade2 in QAbstractSlider::wheelEvent(QWheelEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#41 0x00007fd877b00e8f in QWidget::event(QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#42 0x00007fd877aacdac in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#43 0x00007fd877ab6f1f in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#44 0x00007fd879674be6 in KApplication::notify (this=0x7fffb39493d0, receiver=0x8e8970, event=0x7fffb3948590) at /home/kelvie/src/git/kde/kdelibs/kdeui/kernel/kapplication.cpp:302
#45 0x00007fd8787eae8b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
#46 0x00007fd86a5571a9 in PageView::wheelEvent (this=0x8e82a0, e=0x7fffb3948590) at /home/kelvie/src/git/kde/kdegraphics/okular/ui/pageview.cpp:2172
#47 0x00007fd877b00e8f in QWidget::event(QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#48 0x00007fd877e47b86 in QFrame::event(QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#49 0x00007fd86a555f9d in PageView::viewportEvent (this=0x8e82a0, e=0x7fffb3948590) at /home/kelvie/src/git/kde/kdegraphics/okular/ui/pageview.cpp:2240
#50 0x00007fd8787ea2b6 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
#51 0x00007fd877aacd7c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#52 0x00007fd877ab6f1f in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#53 0x00007fd879674be6 in KApplication::notify (this=0x7fffb39493d0, receiver=0x8e7420, event=0x7fffb3948590) at /home/kelvie/src/git/kde/kdelibs/kdeui/kernel/kapplication.cpp:302
#54 0x00007fd8787eae8b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
#55 0x00007fd877b11bc7 in QETWidget::translateWheelEvent(int, int, int, QFlags<Qt::MouseButton>, QFlags<Qt::KeyboardModifier>, Qt::Orientation) () from /usr/lib64/qt4/libQtGui.so.4
#56 0x00007fd877b1e1ca in QETWidget::translateMouseEvent(_XEvent const*) () from /usr/lib64/qt4/libQtGui.so.4
#57 0x00007fd877b1cdfa in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#58 0x00007fd877b42e94 in x11EventSourceDispatch(_GSource*, int (*)(void*), void*) () from /usr/lib64/qt4/libQtGui.so.4
#59 0x00007fd873185402 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#60 0x00007fd8731886eb in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#61 0x00007fd873188bbf in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#62 0x00007fd8788140d3 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#63 0x00007fd877b427ae in QGuiEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtGui.so.4
#64 0x00007fd8787e97e2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#65 0x00007fd8787e9bb4 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#66 0x00007fd8787ed89b in QCoreApplication::exec() () from /usr/lib64/qt4/libQtCore.so.4
#67 0x00000000004089fc in main (argc=<value optimized out>, argv=<value optimized out>) at /home/kelvie/src/git/kde/kdegraphics/okular/shell/main.cpp:81

Reported using DrKonqi
Comment 1 Albert Astals Cid 2009-10-21 00:03:57 UTC
Sadly this backtrace is not of much use, i doubt we can make much use of it :-/ but thanks for the report
Comment 2 Marcel Partap 2009-11-20 14:26:14 UTC
[Same bug, better backtrace?]

Application: okular (0.9.80)
KDE Version: 4.3.75 (KDE 4.3.75 (KDE 4.4 >= 20091113)) (Compiled from sources)
Qt Version: 4.6.0
Operating System: Linux 2.6.31-gentoo-r6 x86_64
Distribution: "Gentoo Base System release 2.0.1"

 -- Backtrace:
Application: Okular (okular), signal: Aborted
The current source language is "auto; currently c".
[Current thread is 1 (Thread 0x7f412a305750 (LWP 26842))]

Thread 2 (Thread 0x7f4116ce8910 (LWP 26843)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f4127f1ee4b in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0xaed4c0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0xaed4c0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f4127f1ad78 in QSemaphore::acquire (this=0xaf06a0, n=1) at thread/qsemaphore.cpp:142
#4  0x00007f411b09934f in GSRendererThread::run (this=0xaf0690) at /usr/src/debug/kde-base/okular-9999/okular-9999/okular/generators/spectre/rendererthread.cpp:50
#5  0x00007f4127f1ded5 in QThreadPrivate::start (arg=0xaf0690) at thread/qthread_unix.cpp:244
#6  0x00007f4127c94664 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#7  0x00007f41266e57cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f412a305750 (LWP 26842)):
[KCrash Handler]
#5  0x00007f412664a085 in *__GI_raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#6  0x00007f412664b4b0 in *__GI_abort () at abort.c:88
#7  0x00007f412668488d in __libc_message (do_abort=2, fmt=
    0x7fffcff19250 "893a7224233d96cb72fd88691c0b4-x86-64.cache-2\n7f412a344000-7f412a34b000 r--s 00000000 08:21 2695944", ' ' <repeats 20 times>, "/var/cache/fontconfig/f349e9996a5320f6dd491cedd2b1f964-x86-64.cache-2\n7f412a34b000"...) at ../sysdeps/unix/sysv/linux/libc_fatal.c:170
#8  0x00007f4126689e36 in malloc_printerr (action=3, str=0x7f41267328ea "free(): invalid pointer", ptr=<value optimized out>) at malloc.c:6196
#9  0x00007f41274ac445 in QWidgetBackingStore::sync (this=0x867980) at painting/qbackingstore.cpp:1241
#10 0x00007f4127302662 in QWidgetPrivate::syncBackingStore (this=0x7b0e00) at kernel/qwidget.cpp:1662
#11 0x00007f412730ee66 in QWidget::event (this=0x7b0c80, event=0x7fffcff1a5f0) at kernel/qwidget.cpp:8265
#12 0x00007f41276696ab in QMainWindow::event (this=0x7b0c80, event=0x7fffcff1a5f0) at widgets/qmainwindow.cpp:1434
#13 0x00007f4128fb9155 in KXmlGuiWindow::event (this=0x68da, ev=0x68da) at /usr/src/debug/kde-base/kdelibs-9999/kdelibs-9999/kdeui/xmlgui/kxmlguiwindow.cpp:131
#14 0x00007f41272ba08c in QApplicationPrivate::notify_helper (this=0x62d7d0, receiver=0x7b0c80, e=0x7fffcff1a5f0) at kernel/qapplication.cpp:4242
#15 0x00007f41272c2a3a in QApplication::notify (this=0x7fffcff1c920, receiver=<value optimized out>, e=0x7fffcff1a5f0) at kernel/qapplication.cpp:4125
#16 0x00007f4128ea1e08 in KApplication::notify (this=0x7fffcff1c920, receiver=0x7b0c80, event=0x7fffcff1a5f0) at /usr/src/debug/kde-base/kdelibs-9999/kdelibs-9999/kdeui/kernel/kapplication.cpp:302
#17 0x00007f412800efab in QCoreApplication::notifyInternal (this=0x7fffcff1c920, receiver=0x7b0c80, event=0x7fffcff1a5f0) at kernel/qcoreapplication.cpp:704
#18 0x00007f41274a9d5f in QCoreApplication::sendEvent (widget=0x7b0c80, updateImmediately=<value optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:215
#19 sendUpdateRequest (widget=0x7b0c80, updateImmediately=<value optimized out>) at painting/qbackingstore.cpp:503
#20 0x00007f41274aca37 in QWidgetBackingStore::markDirty (this=0x867980, rect=..., widget=0x8e8920, updateImmediately=true, invalidateBuffer=2) at painting/qbackingstore.cpp:667
#21 0x00007f41273048c7 in QWidget::repaint (this=0x8e8920, rect=...) at kernel/qwidget.cpp:10007
#22 0x00007f411d701cc2 in PageView::scrollContentsBy (this=0x8ec0f0, dx=<value optimized out>, dy=<value optimized out>) at /usr/src/debug/kde-base/okular-9999/okular-9999/okular/ui/pageview.cpp:2252
#23 0x00007f41276d1930 in QAbstractScrollArea::qt_metacall (this=0x8ec0f0, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0x7fffcff1a970) at .moc/release-shared/moc_qabstractscrollarea.cpp:85
#24 0x00007f411d70d275 in PageView::qt_metacall (this=0x68da, _c=26842, _id=6, _a=0xffffffffffffffff) at /usr/src/debug/kde-base/okular-9999/okular-9999_build/okular/pageview.moc:151
#25 0x00007f4128021c6b in QMetaObject::activate (sender=0x8579b0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3282
#26 0x00007f41278bbf8e in QAbstractSlider::valueChanged (this=0x68da, _t1=8580) at .moc/release-shared/moc_qabstractslider.cpp:182
#27 0x00007f4127613ea0 in QAbstractSlider::wheelEvent (this=0x8579b0, e=0x7fffcff1ba60) at widgets/qabstractslider.cpp:724
#28 0x00007f412730eb5f in QWidget::event (this=0x8579b0, event=0x7fffcff1ba60) at kernel/qwidget.cpp:7981
#29 0x00007f41272ba08c in QApplicationPrivate::notify_helper (this=0x62d7d0, receiver=0x8579b0, e=0x7fffcff1ba60) at kernel/qapplication.cpp:4242
#30 0x00007f41272c42dd in QApplication::notify (this=<value optimized out>, receiver=<value optimized out>, e=0x7fffcff1ba60) at kernel/qapplication.cpp:3877
#31 0x00007f4128ea1e08 in KApplication::notify (this=0x7fffcff1c920, receiver=0x8579b0, event=0x7fffcff1ba60) at /usr/src/debug/kde-base/kdelibs-9999/kdelibs-9999/kdeui/kernel/kapplication.cpp:302
#32 0x00007f412800efab in QCoreApplication::notifyInternal (this=0x7fffcff1c920, receiver=0x8579b0, event=0x7fffcff1ba60) at kernel/qcoreapplication.cpp:704
#33 0x00007f411d70b0dd in PageView::wheelEvent (this=0x8ec0f0, e=0x7fffcff1ba60) at /usr/src/debug/kde-base/okular-9999/okular-9999/okular/ui/pageview.cpp:2172
#34 0x00007f412730eb5f in QWidget::event (this=0x8ec0f0, event=0x7fffcff1ba60) at kernel/qwidget.cpp:7981
#35 0x00007f4127650b1e in QFrame::event (this=0x8ec0f0, e=0x7fffcff1ba60) at widgets/qframe.cpp:557
#36 0x00007f411d704866 in PageView::viewportEvent (this=0x8ec0f0, e=0x7fffcff1ba60) at /usr/src/debug/kde-base/okular-9999/okular-9999/okular/ui/pageview.cpp:2240
#37 0x00007f412800e3de in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value optimized out>, receiver=0x8e8920, event=0x7fffcff1ba60) at kernel/qcoreapplication.cpp:819
#38 0x00007f41272ba06c in QApplicationPrivate::notify_helper (this=0x62d7d0, receiver=0x8e8920, e=0x7fffcff1ba60) at kernel/qapplication.cpp:4238
#39 0x00007f41272c42dd in QApplication::notify (this=<value optimized out>, receiver=<value optimized out>, e=0x7fffcff1ba60) at kernel/qapplication.cpp:3877
#40 0x00007f4128ea1e08 in KApplication::notify (this=0x7fffcff1c920, receiver=0x8e8920, event=0x7fffcff1ba60) at /usr/src/debug/kde-base/kdelibs-9999/kdelibs-9999/kdeui/kernel/kapplication.cpp:302
#41 0x00007f412800efab in QCoreApplication::notifyInternal (this=0x7fffcff1c920, receiver=0x8e8920, event=0x7fffcff1ba60) at kernel/qcoreapplication.cpp:704
#42 0x00007f4127325e50 in QCoreApplication::sendSpontaneousEvent (this=<value optimized out>, global_x=<value optimized out>, global_y=<value optimized out>, delta=<value optimized out>, buttons=)
    at ../../src/corelib/kernel/qcoreapplication.h:218
#43 QETWidget::translateWheelEvent (this=<value optimized out>, global_x=<value optimized out>, global_y=<value optimized out>, delta=<value optimized out>, buttons=)
    at kernel/qapplication_x11.cpp:4405
#44 0x00007f41273323bd in QETWidget::translateMouseEvent (this=0x7b0c80, event=0x7fffcff1c540) at kernel/qapplication_x11.cpp:4183
#45 0x00007f4127331019 in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fffcff1c540) at kernel/qapplication_x11.cpp:3501
#46 0x00007f4127357354 in x11EventSourceDispatch (s=0x631690, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#47 0x00007f4122d8d7c3 in g_main_dispatch (context=0x630520) at gmain.c:1960
#48 IA__g_main_context_dispatch (context=0x630520) at gmain.c:2513
#49 0x00007f4122d90ff0 in g_main_context_iterate (context=0x630520, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:2591
#50 0x00007f4122d91108 in IA__g_main_context_iteration (context=0x630520, may_block=1) at gmain.c:2654
#51 0x00007f412803843e in QEventDispatcherGlib::processEvents (this=0x62d760, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:407
#52 0x00007f4127356ca6 in QGuiEventDispatcherGlib::processEvents (this=0x68da, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#53 0x00007f412800d8d2 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#54 0x00007f412800dc9d in QEventLoop::exec (this=0x7fffcff1c870, flags=) at kernel/qeventloop.cpp:201
#55 0x00007f412801197b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#56 0x00000000004088fb in main (argc=<value optimized out>, argv=<value optimized out>) at /usr/src/debug/kde-base/okular-9999/okular-9999/okular/shell/main.cpp:81
The current source language is "auto; currently asm".
The current source language is "auto; currently c".

Possible duplicates by query: bug 211148, bug 193312, bug 208881, bug 209657.
Comment 3 Dario Andres 2009-12-19 16:43:55 UTC
"malloc_printer" could be related to bug 196207.
If you can reproduce this crash all the times, can you try running Okular using the command "MALLOC_CHECK=   okular" from Konsole and checking if it also crashes ? 
Thanks
Comment 4 Pino Toscano 2009-12-26 18:35:57 UTC

*** This bug has been marked as a duplicate of bug 196207 ***