Bug 189389 - Searching text strings in certain "searchable" PDFs crashes program suddenly.
Summary: Searching text strings in certain "searchable" PDFs crashes program suddenly.
Status: RESOLVED WORKSFORME
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-11 18:51 UTC by David Lentini
Modified: 2012-08-08 21:27 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
PDF file that is subject of crash report. (90.31 KB, application/download)
2009-04-11 18:55 UTC, David Lentini
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Lentini 2009-04-11 18:51:52 UTC
Version:            (using KDE 4.2.2)
OS:                Linux
Installed from:    Ubuntu Packages

I can open and view a certain "searchable" PDF in Okular, but if I type a search string longer than two letters, the program suddenly crashes.  Just before the crash, it appears to highlight the text string in the Find window, even though I'm still typing.
Comment 1 David Lentini 2009-04-11 18:55:18 UTC
Created attachment 32762 [details]
PDF file that is subject of crash report.
Comment 2 Pino Toscano 2009-04-11 20:04:56 UTC
Hi,

the crash is not reproducible here with the document provided.
Please provide a backtrace, as explained in:
http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports
Comment 3 Reuben Budiardja 2009-06-18 23:59:17 UTC
I am having this same problem as described with a document I have. Sometime I have to hit F3 several time to do "Find Next" to trigger the crash. Furthermore, with my document (URL below), I can trigger the crash just by scrolling up and down the page. I'm using Okular with KDE 4.2.3 on Fedora 10. 

Unfortunately I don't have any useful backtrace yet as my system doesn't seem to set up to do that. I will try to do that as soon as I have a chance, but I thought I report this with the document in case someone can reproduce it.

Here's the URL for the document because it's too big to be attached:
http://eagle.phys.utk.edu/reubendb/tmp/pelham.pdf
Comment 4 Reuben Budiardja 2009-06-19 02:04:25 UTC
Backtrace related to my previous report, with the same document. 
---------------------------------------------------------------

Application: Okular (okular), signal SIGSEGV
0x00000034b0ea7f81 in nanosleep () from /lib64/libc.so.6
Current language:  auto; currently c
[Current thread is 1 (Thread 0x7fc44c650810 (LWP 9208))]

Thread 1 (Thread 0x7fc44c650810 (LWP 9208)):
[KCrash Handler]
#5  Form::findWidgetByRef (this=0x0, aref={num = 170, gen = 0}) at Form.cc:1231
#6  0x00000039c9092987 in AnnotWidget::initialize (this=0x295f9d0, xrefA=<value optimized out>, catalog=0x26670d0, dict=0x26b9920) at Annot.cc:1735
#7  0x00000039c9092c4b in AnnotWidget (this=0x295f9d0, xrefA=0x2667030, dict=0x26b9920, catalog=0x26670d0, obj=<value optimized out>) at Annot.cc:1714
#8  0x00000039c9094dd2 in Annots::createAnnot (this=<value optimized out>, xref=0x2667030, dict=0x26b9920, catalog=0x26670d0, obj=0x7fff5748aeb0) at Annot.cc:3394
#9  0x00000039c9095088 in Annots (this=0x2c240c0, xref=0x2667030, catalog=0x26670d0, annotsObj=0x7fff5748af70) at Annot.cc:3333
#10 0x00000039c90f7cc1 in Page::displaySlice (this=0x2662940, out=0x2b62f30, hDPI=72, vDPI=72, rotate=<value optimized out>, useMediaBox=<value optimized out>, crop=<value optimized out>, 
    sliceX=<value optimized out>, sliceY=-1, sliceW=-1, sliceH=-1, printing=0, catalog=0x26670d0, abortCheckCbk=0, abortCheckCbkData=0x0, annotDisplayDecideCbk=0, annotDisplayDecideCbkData=0x0)
    at Page.cc:421
#11 0x00007fc445026424 in Poppler::Page::textList (this=0x29e84d0, rotate=Poppler::Page::Rotate0) at poppler-page.cc:341
#12 0x00007fc445280a2b in PDFGenerator::textPage (this=0x2668ed0, page=0x2688860) at /usr/src/debug/kdegraphics-4.2.3/okular/generators/poppler/generator_pdf.cpp:813
#13 0x00007fc4476fdecb in Okular::Generator::generateTextPage (this=0x0, page=0xaa) at /usr/src/debug/kdegraphics-4.2.3/okular/core/generator.cpp:258
#14 0x00007fc4476f4fb7 in Okular::DocumentPrivate::doContinueNextMatchSearch (this=0x238a7e0, pagesToNotifySet=0x2be7e10, theMatch=0x0, currentPage=9, searchID=1, text=@0x2990df0, 
    theCaseSensitivity=0, moveViewport=true, color=@0x2b303c0, noDialogs=false, donePages=1) at /usr/src/debug/kdegraphics-4.2.3/okular/core/document.cpp:1018
#15 0x00007fc4476f6285 in Okular::Document::qt_metacall (this=0x2382f50, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x26c3af0)
    at /usr/src/debug/kdegraphics-4.2.3/x86_64-redhat-linux-gnu/okular/document.moc:151
#16 0x00007fc44d635a78 in QObject::event (this=0x2382f50, e=0x2c1da90) at kernel/qobject.cpp:1118
#17 0x00007fc44ca7f46d in QApplicationPrivate::notify_helper (this=0x21f0770, receiver=0x2382f50, e=0x2c1da90) at kernel/qapplication.cpp:4057
#18 0x00007fc44ca876ea in QApplication::notify (this=0x7fff5748bf60, receiver=0x2382f50, e=0x2c1da90) at kernel/qapplication.cpp:4022
#19 0x00007fc44e44517b in KApplication::notify (this=0x7fff5748bf60, receiver=0x2382f50, event=0x2c1da90) at /usr/src/debug/kdelibs-4.2.3/kdeui/kernel/kapplication.cpp:307
#20 0x00007fc44d6257dc in QCoreApplication::notifyInternal (this=0x7fff5748bf60, receiver=0x2382f50, event=0x2c1da90) at kernel/qcoreapplication.cpp:610
#21 0x00007fc44d62644a in QCoreApplication::sendEvent () at kernel/qcoreapplication.h:213
#22 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x21de380) at kernel/qcoreapplication.cpp:1247
#23 0x00007fc44d64f3f3 in QCoreApplication::sendPostedEvents () at kernel/qcoreapplication.h:218
#24 postEventSourceDispatch (s=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:209
#25 0x00000039c06377bb in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#26 0x00000039c063af8d in ?? () from /lib64/libglib-2.0.so.0
#27 0x00000039c063b14b in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#28 0x00007fc44d64f07f in QEventDispatcherGlib::processEvents (this=0x21f0930, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:324
#29 0x00007fc44cb1675f in QGuiEventDispatcherGlib::processEvents (this=0x0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#30 0x00007fc44d624082 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#31 0x00007fc44d62444d in QEventLoop::exec (this=0x7fff5748bee0, flags=) at kernel/qeventloop.cpp:200
#32 0x00007fc44d626714 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#33 0x0000000000407554 in main (argc=<value optimized out>, argv=<value optimized out>) at /usr/src/debug/kdegraphics-4.2.3/okular/shell/main.cpp:81
Comment 5 Pino Toscano 2009-06-19 02:10:39 UTC
(In reply to comment #4)
> [KCrash Handler]
> #5  Form::findWidgetByRef (this=0x0, aref={num = 170, gen = 0}) at Form.cc:1231
> #6  0x00000039c9092987 in AnnotWidget::initialize (this=0x295f9d0, xrefA=<value
> optimized out>, catalog=0x26670d0, dict=0x26b9920) at Annot.cc:1735
> #7  0x00000039c9092c4b in AnnotWidget (this=0x295f9d0, xrefA=0x2667030,
> dict=0x26b9920, catalog=0x26670d0, obj=<value optimized out>) at Annot.cc:1714
> #8  0x00000039c9094dd2 in Annots::createAnnot (this=<value optimized out>,
> xref=0x2667030, dict=0x26b9920, catalog=0x26670d0, obj=0x7fff5748aeb0) at
> Annot.cc:3394
> #9  0x00000039c9095088 in Annots (this=0x2c240c0, xref=0x2667030,
> catalog=0x26670d0, annotsObj=0x7fff5748af70) at Annot.cc:3333

This has nothing to do with search, but it was an old bug in the Poppler library.
Looks like you still have some 0.8.x version of it, right? In case, you're suggested to update to Poppler 0.10.x.
Comment 6 Pino Toscano 2009-07-28 13:24:57 UTC
Hi David,

if you have news about this issue, please do tell.
Comment 7 David Lentini 2009-07-28 13:48:52 UTC
Hi, Pino!

I have no additional news; the bug has not appeared lately.

On Tue, Jul 28, 2009 at 07:25, Pino Toscano<pino@kde.org> wrote:
> https://bugs.kde.org/show_bug.cgi?id=189389
>
>
> Pino Toscano <pino@kde.org> changed:
>
>           What    |Removed                     |Added
> ----------------------------------------------------------------------------
>             Status|UNCONFIRMED                 |NEEDSINFO
>         Resolution|                            |BACKTRACE
>
>
>
>
> --- Comment #6 from Pino Toscano <pino kde org>  2009-07-28 13:24:57 ---
> Hi David,
>
> if you have news about this issue, please do tell.
>
> --
> Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You reported the bug.
>
Comment 8 Albert Astals Cid 2012-08-08 21:27:28 UTC
User can't reproduce anymore, works for me