Bug 211635 - Okular crashes during fast scroll (page down) [QString::free, ~QString, QTextStreamPrivate::putNumber]
Summary: Okular crashes during fast scroll (page down) [QString::free, ~QString, QText...
Status: RESOLVED DUPLICATE of bug 196207
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
Depends on:
Reported: 2009-10-24 13:33 UTC by Tomas Vavra
Modified: 2009-12-26 18:36 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Vavra 2009-10-24 13:33:06 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.7.0
Operating System: Linux 2.6.30-1-amd64 x86_64
Distribution: Debian GNU/Linux testing (squeeze)

What I was doing when the application crashed:
I am experiencing this crash during fast scroll. I updated kde from trunk today and also tried with qt 4.7.0 (git trunk).

 -- Backtrace:
Application: Okular (okular), signal: Aborted
[KCrash Handler]
#5  0x00007f23265bbf25 in raise () from /lib/libc.so.6
#6  0x00007f23265bed60 in abort () from /lib/libc.so.6
#7  0x00007f23265f155d in ?? () from /lib/libc.so.6
#8  0x00007f23265fadb6 in ?? () from /lib/libc.so.6
#9  0x00007f232802fa2c in QString::free (d=0x231da50) at tools/qstring.cpp:1108
#10 0x00007f2328082f30 in ~QString (this=0x25eb8e0, number=1124, negative=false) at ../../include/QtCore/../../src/corelib/tools/qstring.h:868
#11 QTextStreamPrivate::putNumber (this=0x25eb8e0, number=1124, negative=false) at io/qtextstream.cpp:2310
#12 0x00007f23280832f9 in QTextStream::operator<< (this=0x2692310, i=9529) at io/qtextstream.cpp:2387
#13 0x00007f2315ceb94c in QDebug::operator<<(int) () from /opt/kde4/lib/libokularcore.so.1
#14 0x00007f2315d06356 in Okular::Document::requestPixmaps(QLinkedList<Okular::PixmapRequest*> const&, QFlags<Okular::Document::PixmapRequestFlag>) () from /opt/kde4/lib/libokularcore.so.1
#15 0x00007f2315d063b3 in Okular::Document::requestPixmaps(QLinkedList<Okular::PixmapRequest*> const&) () from /opt/kde4/lib/libokularcore.so.1
#16 0x00007f2315fffc99 in PageView::slotRequestVisiblePixmaps(int) () from /opt/kde4/lib/kde4/okularpart.so
#17 0x00007f2316008935 in PageView::qt_metacall(QMetaObject::Call, int, void**) () from /opt/kde4/lib/kde4/okularpart.so
#18 0x00007f23280f12b7 in QMetaObject::activate (sender=0x1ed6e20, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3391
#19 0x00007f23278fd28e in QAbstractSlider::valueChanged (this=0x2539, _t1=1182500) at .moc/release-shared/moc_qabstractslider.cpp:182
#20 0x00007f2315ffd37b in PageView::keyPressEvent(QKeyEvent*) () from /opt/kde4/lib/kde4/okularpart.so
#21 0x00007f23272ce8e1 in QWidget::event (this=0x1f17570, event=0x7fff3b198500) at kernel/qwidget.cpp:7951
#22 0x00007f232766e31b in QFrame::event (this=0x1f17570, e=0x7fff3b198500) at widgets/qframe.cpp:557
#23 0x00007f23276f835b in QAbstractScrollArea::event (this=0x1f17570, e=0x7fff3b198500) at widgets/qabstractscrollarea.cpp:944
#24 0x00007f23272799bd in QApplicationPrivate::notify_helper (this=0x1ceebb0, receiver=0x1f17570, e=0x7fff3b198500) at kernel/qapplication.cpp:4250
#25 0x00007f232728171c in QApplication::notify (this=<value optimized out>, receiver=0x1f17570, e=0x7fff3b198500) at kernel/qapplication.cpp:3734
#26 0x00007f2328f9d56b in KApplication::notify(QObject*, QEvent*) () from /opt/kde4/lib/libkdeui.so.5
#27 0x00007f23280ddb7c in QCoreApplication::notifyInternal (this=0x7fff3b1994c0, receiver=0x1f17570, event=0x7fff3b198500) at kernel/qcoreapplication.cpp:704
#28 0x00007f232731cc04 in QKeyMapper::sendKeyEvent (keyWidget=0x1f17570, grab=<value optimized out>, type=QEvent::KeyPress, code=16777239, modifiers=..., text=..., autorepeat=true, count=1, 
    nativeScanCode=117, nativeVirtualKey=65366, nativeModifiers=0) at kernel/qkeymapper_x11.cpp:1675
#29 0x00007f232731eed9 in QKeyMapperPrivate::translateKeyEvent (this=0x1d36b80, keyWidget=0x1f17570, event=0x7fff3b199110, grab=57) at kernel/qkeymapper_x11.cpp:1645
#30 0x00007f23272f8a7d in QApplication::x11ProcessEvent (this=0x7fff3b1994c0, event=0x7fff3b199110) at kernel/qapplication_x11.cpp:3392
#31 0x00007f23273220f2 in x11EventSourceDispatch (s=0x1cf2a60, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#32 0x00007f2322d6f12a in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#33 0x00007f2322d72988 in ?? () from /lib/libglib-2.0.so.0
#34 0x00007f2322d72b3c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#35 0x00007f232810753c in QEventDispatcherGlib::processEvents (this=0x1cd68b0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:407
#36 0x00007f2327321c8f in QGuiEventDispatcherGlib::processEvents (this=0x2539, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#37 0x00007f23280dc482 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#38 0x00007f23280dc854 in QEventLoop::exec (this=0x7fff3b199440, flags=...) at kernel/qeventloop.cpp:201
#39 0x00007f23280dece6 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#40 0x0000000000408374 in main ()

Reported using DrKonqi
Comment 1 Albert Astals Cid 2009-10-24 15:28:24 UTC
can you reproduce under valgrind? Have you recomplied everything? this seems like a case of miscompilation as it's crashing on QString destructor
Comment 2 Tomas Vavra 2009-10-24 17:46:42 UTC
I will try with valgrind. I recompiled qt and deleted old folder before install. For KDE I am using kdesvn-build. And today with param --refresh-build. Last time when I tried use valgrind okular was very slow and I weren't able to reproduce.
Comment 3 Tomas Vavra 2009-10-24 18:07:30 UTC
Just tried with valgrind, but no luck not reproducible. Let say very slow in valgrind to reproduce. Any other idea?
Comment 4 Albert Astals Cid 2009-10-25 23:27:22 UTC
Just to be sure i understand it right. You say you already recompiled Okular after installing qt, right?

Also, can you reproduce the crash "at will"? Or happens randomly from time to time?
Comment 5 Tomas Vavra 2009-10-26 09:12:03 UTC
I can generate crash when I open PDF and press Page Down. Its crashes after 5 sec or let say 20 pages (approx). 
I recompiled okular of course. Today I will try clean build and try reproduce.

We will see
Comment 6 Pino Toscano 2009-12-26 18:36:49 UTC

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