Bug 173244 - Crash at search
Summary: Crash at search
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-21 18:39 UTC by smalcom
Modified: 2008-11-20 18:59 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description smalcom 2008-10-21 18:39:42 UTC
viewing pdf-document, press ctrl-f and in search editbox type "version" after 1 second okular crashed. In attachment pdf-file.

Crash report:
Програма: Okular (okular), сигнал SIGABRT
0xb68ec43c in nanosleep () from /lib/libc.so.6

Thread 1 (Thread 0xb62836d0 (LWP 8541)):
[KCrash Handler]
#5  0xb6881c66 in raise () from /lib/libc.so.6
#6  0xb6883571 in abort () from /lib/libc.so.6
#7  0xb75dbf75 in qt_message_output (msgType=QtFatalMsg, buf=0xbfc8f93c "ASSERT failure in QVector<T>::at: \"index out of range\", file /usr/lib/qt/include/QtCore/qvector.h, line 317")
    at global/qglobal.cpp:2102
#8  0xb75dc059 in qFatal (msg=0xb7721688 "ASSERT failure in %s: \"%s\", file %s, line %d") at global/qglobal.cpp:2303
#9  0xb75dc0ac in qt_assert_x (where=0xb4c65efd "QVector<T>::at", what=0xb4c64c22 "index out of range", file=0xb4c65938 "/usr/lib/qt/include/QtCore/qvector.h", line=317) at global/qglobal.cpp:1880
#10 0xb4c1033f in Okular::DocumentPrivate::textGenerationDone (this=0x81c9ec8, page=0x8102f68) at /usr/lib/qt/include/QtCore/qvector.h:317
#11 0xb4c2e50e in Okular::Generator::signalTextGenerationDone (this=0x83b5d20, page=0x8102f68, textPage=0x9c4d670)
    at /mnt/sdb1/software/PC-compatible/_nix/desktop/kde/src/kde4/svn/kdegraphics/okular/core/generator.cpp:360
#12 0xb4c2e62e in Okular::Generator::generateTextPage (this=0x83b5d20, page=0x8102f68) at /mnt/sdb1/software/PC-compatible/_nix/desktop/kde/src/kde4/svn/kdegraphics/okular/core/generator.cpp:261
#13 0xb4c122c1 in Okular::Document::requestTextPage (this=0x8173288, page=0) at /mnt/sdb1/software/PC-compatible/_nix/desktop/kde/src/kde4/svn/kdegraphics/okular/core/document.cpp:2149
#14 0xb4c175ba in Okular::DocumentPrivate::doContinueNextMatchSearch (this=0x81c9ec8, pagesToNotifySet=0x97e2d70, theMatch=0x0, currentPage=0, searchID=1, text=@0x942c628, theCaseSensitivity=0, 
    moveViewport=true, color=@0x96106f0, noDialogs=false, donePages=1) at /mnt/sdb1/software/PC-compatible/_nix/desktop/kde/src/kde4/svn/kdegraphics/okular/core/document.cpp:882
#15 0xb4c25a62 in Okular::Document::qt_metacall (this=0x8173288, _c=QMetaObject::InvokeMetaMethod, _id=26, _a=0xa4aa2c8)
    at /mnt/sdb1/software/PC-compatible/_nix/desktop/kde/src/kde4/svn/build/okular/document.moc:150
#16 0xb76dcf4b in QMetaCallEvent::placeMetaCall (this=0xa4d1320, object=0x8173288) at kernel/qobject.cpp:529
#17 0xb76de2b9 in QObject::event (this=0x8173288, e=0xa4d1320) at kernel/qobject.cpp:1146
#18 0xb6c1c843 in QApplicationPrivate::notify_helper (this=0x807a008, receiver=0x8173288, e=0xa4d1320) at kernel/qapplication.cpp:3803
#19 0xb6c21459 in QApplication::notify (this=0xbfc923dc, receiver=0x8173288, e=0xa4d1320) at kernel/qapplication.cpp:3393
#20 0xb7c35f31 in KApplication::notify (this=0xbfc923dc, receiver=0x8173288, event=0xa4d1320)
    at /mnt/sdb1/software/PC-compatible/_nix/desktop/kde/src/kde4/svn/kdelibs/kdeui/kernel/kapplication.cpp:307
#21 0xb76ce756 in QCoreApplication::notifyInternal (this=0xbfc923dc, receiver=0x8173288, event=0xa4d1320) at kernel/qcoreapplication.cpp:587
#22 0xb76cfb2e in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x8054310) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:209
#23 0xb76cfd4d in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1091
#24 0xb76f9c2f in postEventSourceDispatch (s=0x807c6c0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:214
#25 0xb64f8146 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#26 0xb64fb4f3 in ?? () from /usr/lib/libglib-2.0.so.0
#27 0x0807c638 in ?? ()
#28 0x00000000 in ?? ()
Comment 1 smalcom 2008-10-21 21:03:44 UTC
pdf file size 4.5M and i cant attach it. but if need use link
www.roundsolutions.com/techdocs/docs/80000ST10028_Easy_GPRS_User_Guide_r4.pdf
Comment 2 Albert Astals Cid 2008-10-21 22:20:14 UTC
Can you always reproduce the crash?
Are you compiling the code yourself?

If so can you put

KMessageBox::information( m_parent->widget(), QString("%1 %2 %3 %4").arg(m_maxAllocatedTextPages).arg(pageToKick).arg(page->number()).arg(m_pagesVector.count())); 

after

if (pageToKick != page->number()) // this should never happen but better be safe than sorry
{

in core/document.cpp

And tell us how the information message says?
Comment 3 smalcom 2008-10-21 22:32:06 UTC
>>Can you always reproduce the crash?
im trying but

>>Are you compiling the code yourself? 
so often as i can do svn up. CMAKE_RELWITHDEBINFO... -O3 -g1

>>If so can you put
yes
Comment 4 smalcom 2008-10-21 23:52:59 UTC
built kdegraphics-r874571. no messages(( i cant repeat this bug.
Comment 5 smalcom 2008-11-20 18:59:52 UTC
at new revisions no troubles... yet.