Bug 158186 - crash when opening pdf file
Summary: crash when opening pdf file
Status: RESOLVED DUPLICATE of bug 156299
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-21 20:52 UTC by Ivo Anjo
Modified: 2008-02-26 23:21 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Opening this pdf file makes okular crash (276.84 KB, application/file)
2008-02-21 20:57 UTC, Ivo Anjo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ivo Anjo 2008-02-21 20:52:03 UTC
Version:            (using KDE 4.0.1)
Installed from:    SuSE RPMs
OS:                Linux

How to reproduce: open attached pdf file (or go to http://global.msi.com.tw/index.php?func=downloaddetail&type=manual&maincat_no=1&prod_no=281 and download the english manual for the MSI 694T Pro motherboard).

Tried to install -debuginfo packages on my openSUSE system, but still couldn't get a decent backtrace.

File opens ok on evince/kpdf/adobe reader.
Comment 1 Ivo Anjo 2008-02-21 20:57:08 UTC
Created attachment 23655 [details]
Opening this pdf file makes okular crash

Could not get the attachment below 1mb, so used pdftk and narrowed it down to
the range that seems to be crashing:
pdftk E6309v5.1.pdf cat 70-80 output okular-crash-E6309v5.1.pdf

Original can still be downloaded from above given url.
Comment 2 Pino Toscano 2008-02-21 22:19:54 UTC
Poppler version, please.

And, to get an useful backtrace, first disable the background generation in the settings, then try again.
Comment 3 Ivo Anjo 2008-02-21 22:46:54 UTC
I've been looking into the debuginfo packages, and it's pretty much impossible to find the -debuginfo package for the poppler I have, and trying to change it causes dependency trouble.

Seems like I have two poppler versions installed:
poppler-0.5.4-101.2
libpoppler-qt4-2-0.6.1-6.1
poppler-qt-0.5.4-101.2
libpoppler2-0.6.1-6.1
I'm guessing okular is using version 0.6.1 , which is pretty old, but the only one I can have installed without having to uninstall half of kde3 (and texlive).

If there's no problem opening this pdf in newer poppler versions I agree that this should be marked as RESOLVED.
Comment 4 Pino Toscano 2008-02-26 19:58:16 UTC
Not much time ago, I heard OpenSuSE using poppler 0.5.4 by default for Okular.
Please double check, and in case it is still the case, please recompile or ask OpenSuSE to provide Okular packages using poppler 0.6.x.
Comment 5 Ivo Anjo 2008-02-26 23:12:51 UTC
I think it's using version 0.6.1, not 0.5.4:

$ ldd /usr/lib/kde4/okularGenerator_poppler.so  | grep pop              libpoppler-qt4.so.2 => /usr/lib/libpoppler-qt4.so.2 (0xb7e85000)
        libpoppler.so.2 => /usr/lib/libpoppler.so.2 (0xb7cfa000)

$ rpm -qf /usr/lib/libpoppler.so.2 /usr/lib/libpoppler-qt4.so.2
libpoppler2-0.6.1-6.1
libpoppler-qt4-2-0.6.1-6.1
Comment 6 Ivo Anjo 2008-02-26 23:18:00 UTC
I tried again and this time was able to get the following backtrace:

[?1034h(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 0xb65526d0 (LWP 5582)]
[KCrash handler]
#6  0xb355b7bb in Page::getDefaultCTM () from /usr/lib/libpoppler.so.2
#7  0xb3657714 in Poppler::cvtUserToDev () from /usr/lib/libpoppler-qt4.so.2
#8  0xb3657f51 in Poppler::LinkDestination::LinkDestination ()
   from /usr/lib/libpoppler-qt4.so.2
#9  0xb36482d1 in Poppler::DocumentData::addTocChildren ()
   from /usr/lib/libpoppler-qt4.so.2
#10 0xb3648136 in Poppler::DocumentData::addTocChildren ()
   from /usr/lib/libpoppler-qt4.so.2
#11 0xb36462d3 in Poppler::Document::toc () from /usr/lib/libpoppler-qt4.so.2
#12 0xb369b819 in ?? () from /usr/lib/kde4/okularGenerator_poppler.so
#13 0x083149e8 in ?? ()
#14 0xb4eb230e in ?? () from /usr/lib/kde4/okularpart.so
#15 0xb4e95000 in ?? ()
#16 0x000bbcc8 in ?? ()
#17 0xb4df8f80 in ?? () from /usr/lib/libokularcore.so.1
#18 0xb4f4fff4 in ?? () from /usr/lib/kde4/okularpart.so
#19 0x08147bd8 in ?? ()
#20 0xb4f4fff4 in ?? () from /usr/lib/kde4/okularpart.so
#21 0x08147bd8 in ?? ()
#22 0x081480b8 in ?? ()
#23 0xbfd8d398 in ?? ()
#24 0xb4e2ceb0 in Okular::Document::documentSynopsis ()
   from /usr/lib/libokularcore.so.1
Backtrace stopped: frame did not save the PC
#0  0xffffe410 in __kernel_vsyscall ()

Don't know if it helps or if it's still too much incomplete.
Comment 7 Pino Toscano 2008-02-26 23:21:42 UTC
Same backtrace as bug #156299, and same resolution (update to poppler 0.6.4).

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