Bug 170427 - Okular crashes while opening pdf file
Summary: Okular crashes while opening pdf file
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-05 00:01 UTC by Anıl Konaç
Modified: 2011-08-25 20:23 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Valgrind log of okular (7.90 KB, text/plain)
2008-09-05 17:19 UTC, Anıl Konaç
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anıl Konaç 2008-09-05 00:01:04 UTC
Version:            (using KDE 4.1.1)
OS:                Linux
Installed from:    Debian testing/unstable Packages

I have a e-book(pdf) about calculus. When i try to open this file okular starts to load for a while and crashes. I think the problem is about size of the pdf since its 84,1 mb. I can open much more smaller pdf files without any problem.

Uygulama: Okular (okular), sinyal SIGFPE
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0xb60fc700 (LWP 8022)]
[New Thread 0xb2563b90 (LWP 8038)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
0xb7f48424 in __kernel_vsyscall ()
[Current thread is 0 (LWP 8022)]

Thread 2 (Thread 0xb2563b90 (LWP 8038)):
#0  0xb7f48424 in __kernel_vsyscall ()
#1  0xb6a27e26 in nanosleep () from /lib/i686/cmov/libc.so.6
#2  0xb6a27c3f in sleep () from /lib/i686/cmov/libc.so.6
#3  0xb7b8bc98 in ?? () from /usr/lib/libkdeui.so.5
#4  0x00000000 in ?? ()

Thread 1 (Thread 0xb60fc700 (LWP 8022)):
#0  0xb7f48424 in __kernel_vsyscall ()
#1  0xb6a64931 in select () from /lib/i686/cmov/libc.so.6
#2  0xb61c823f in ?? () from /usr/lib/libxcb.so.1
#3  0x00000009 in ?? ()
#4  0xbfb62fac in ?? ()
#5  0xbfb62f2c in ?? ()
#6  0x00000000 in ?? ()
#0  0xb7f48424 in __kernel_vsyscall ()
Comment 1 Pino Toscano 2008-09-05 03:05:29 UTC
Unfortunately, this backtrace is of no use.
Please read http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports for providing a more detailed one.
Comment 2 Anıl Konaç 2008-09-05 14:17:49 UTC
Ok, i read the page. I installed kdegraphics-dbg package from experimental. Now kde doesn't give me backtrace after crash.
So i run gdb for okular. gdb shows
 
#0  0xb638c257 in ?? () from /usr/lib/libfreetype.so.6
#1  0x00393487 in ?? ()
#2  0x000003e8 in ?? ()
#3  0xb2894408 in ?? ()
#4  0xb6370806 in FT_Stream_ReadAt () from /usr/lib/libfreetype.so.6
#5  0xb638c3d1 in ?? () from /usr/lib/libfreetype.so.6
#6  0x00000000 in ?? ()

after "backtrace" command.
There is explanation for "??" but i couldn't find a -dbg package for freetype.
Then i run valgrind

Annotation "Widget" not supported                                                                                                 
Annotation "Widget" not supported                                                                                                 
KCrash: Application 'okular' crashing...                                                                                          
okular: Fatal IO error: client killed                                                                                             
sock_file=/home/anil/.kde4/socket-anil-deb/kdeinit4__0                                                                            
kDebugStream called after destruction (from void KDirWatchPrivate::removeEntry(KDirWatch*, const QString&, KDirWatchPrivate::Entry*) file /tmp/buildd/kde4libs-4.1.1/kio/kio/kdirwatch.cpp line 771)                                                                
path= "/home/anil/.local/share//user-places.xbel" sub_entry: 0x0                                                                  
kDebugStream called after destruction (from void KDirWatchPrivate::removeEntry(KDirWatch*, const QString&, KDirWatchPrivate::Entry*) file /tmp/buildd/kde4libs-4.1.1/kio/kio/kdirwatch.cpp line 771)                                                                
path= "/home/anil/.local/share" sub_entry: 0xa926a34                                                                              
kDebugStream called after destruction (from void KDirWatchPrivate::removeEntry(KDirWatch*, KDirWatchPrivate::Entry*, KDirWatchPrivate::Entry*) file /tmp/buildd/kde4libs-4.1.1/kio/kio/kdirwatch.cpp line 821)                                                      
Cancelled INotify (fd 43, 1) for "/home/anil/.local/share"                                                                        
kDebugStream called after destruction (from void KDirWatchPrivate::removeEntry(KDirWatch*, KDirWatchPrivate::Entry*, KDirWatchPrivate::Entry*) file /tmp/buildd/kde4libs-4.1.1/kio/kio/kdirwatch.cpp line 846)
Removed Dir "/home/anil/.local/share" for "/home/anil/.local/share//user-places.xbel" [""]
kDebugStream called after destruction (from void KDirWatchPrivate::removeEntry(KDirWatch*, KDirWatchPrivate::Entry*, KDirWatchPrivate::Entry*) file /tmp/buildd/kde4libs-4.1.1/kio/kio/kdirwatch.cpp line 846)
Removed File "/home/anil/.local/share//user-places.xbel" for "" ["KDirWatch-2"]
==8961==
==8961== ERROR SUMMARY: 11 errors from 4 contexts (suppressed: 348 from 7)
==8961== malloc/free: in use at exit: 10,477,960 bytes in 107,567 blocks.
==8961== malloc/free: 1,225,992 allocs, 1,118,425 frees, 124,332,187 bytes allocated.
==8961== For counts of detected errors, rerun with: -v
==8961== searching for pointers to 107,567 not-freed blocks.
==8961== checked 38,158,140 bytes.
==8961==
==8961== LEAK SUMMARY:
==8961==    definitely lost: 7,472 bytes in 332 blocks.
==8961==      possibly lost: 16,352 bytes in 782 blocks.
==8961==    still reachable: 10,454,136 bytes in 106,453 blocks.
==8961==         suppressed: 0 bytes in 0 blocks.
==8961== Rerun with --leak-check=full to see details of leaked memory.


I couldn't attached log file because of this error

==9705== Can't create log file '/home/anil/okular' (Permission denied); giving up!
valgrind: Bad option '--log-file=<file> (didn't work out for some reason.)'; aborting.

Comment 3 Albert Astals Cid 2008-09-05 16:38:13 UTC
File size is not a problem. 

The valgrind output without the logfile is worthless, please see how you tried to write to /home/anil/okular and you did not have permission to do so

By the way, having the file would help
Comment 4 Anıl Konaç 2008-09-05 17:19:40 UTC
Created attachment 27255 [details]
Valgrind log of okular
Comment 5 Pino Toscano 2008-09-05 17:25:28 UTC
You can also try the following: open okular and in the settings, performance section, disable the "background generation".
Then, restart okular within gdb like:
$ gdb --args okular thedocument.pdf
(gdb) run
and when it crashes:
(gdb) thread apply all bt
Comment 6 Anıl Konaç 2008-09-06 14:01:41 UTC
After the command 
(gdb) thread apply all bt
it gives this output:

#0  0xb6421257 in ?? () from /usr/lib/libfreetype.so.6
#1  0x00393487 in ?? ()
#2  0x000003e8 in ?? ()
#3  0xbfaccb68 in ?? ()
#4  0xb6405806 in FT_Stream_ReadAt () from /usr/lib/libfreetype.so.6
#5  0xb64213d1 in ?? () from /usr/lib/libfreetype.so.6
#6  0x00000000 in ?? ()

Sorry, its same :/
Comment 7 Brad Hards 2008-11-29 06:09:05 UTC
Anil, please install the debug packages for freetype and poppler, and try again.
Comment 8 Brad Hards 2008-11-29 09:48:50 UTC
Three Okular bugs, all involving SIGFPE, perhaps all in freetype:
#170427
#176304
#176320
Comment 9 Darryl 2008-12-03 23:22:00 UTC
Okular crashes when I try open any pdf files. The version I'm using is 0.7.80 on kde 4.1.81-1.3-x86_64
For some reason I don't have any debug info, sorry.
I'm using openSuse 11, if that matters.

Thanks.
Comment 10 Brad Hards 2008-12-04 07:21:16 UTC
Darryl: have you tried installing debug packages? If your backtrace doesn't match the one provided, you need to raise a new bug report.
Comment 11 Anıl Konaç 2009-01-02 23:17:10 UTC
Hello,
i've installed many debuginfo packages including kdegraphics, freetype and poppler, but i changed my OS to f9.

KDE Version:  0.7.3 (KDE 4.1.3 (KDE 4.1.3), 4.1.3-4.fc9 Fedora)
Operating System:  Linux (i686) release 2.6.27.9-73.fc9.i686

Okular crashes again when trying to open the same file. But this time i managed to get a good(i think) bactrace using gdb:

Thread 4 (Thread 0xb4fe6b90 (LWP 8590)):
#0  Form::findWidgetByRef (this=0x0, aref={num = 155, gen = 0}) at Form.cc:1231
#1  0x010e1104 in AnnotWidget::initialize (this=0xb440e9a8, xrefA=0x95337a0,
    catalog=0x9533be0, dict=0xb4472c38) at Annot.cc:1735
#2  0x010e1414 in AnnotWidget (this=0xb440e9a8, xrefA=0x95337a0,
    dict=0xb4472c38, catalog=0x9533be0, obj=0xb4fe5fa4) at Annot.cc:1714
#3  0x010e3832 in Annots::createAnnot (this=0xb4400468, xref=0x95337a0,
    dict=0xb4472c38, catalog=0x9533be0, obj=0xb4fe5fa4) at Annot.cc:3394
#4  0x010e3b4a in Annots (this=0xb4400468, xref=0x95337a0, catalog=0x9533be0,
    annotsObj=0xb4fe604c) at Annot.cc:3333
#5  0x011499d6 in Page::displaySlice (this=0x9559580, out=0x9458180,
    hDPI=41.058823529411768, vDPI=41, rotate=0, useMediaBox=0, crop=1,
    sliceX=-1, sliceY=-1, sliceW=-1, sliceH=-1, printing=0, catalog=0x9533be0,
    abortCheckCbk=0, abortCheckCbkData=0x0, annotDisplayDecideCbk=0,
    annotDisplayDecideCbkData=0x0) at Page.cc:421
#6  0x0114d860 in PDFDoc::displayPageSlice (this=0x9530e88, out=0x9458180,
    page=2, hDPI=41.058823529411768, vDPI=41, rotate=0, useMediaBox=0, crop=1,
    printing=0, sliceX=-1, sliceY=-1, sliceW=-1, sliceH=-1, abortCheckCbk=0,
    abortCheckCbkData=0x0, annotDisplayDecideCbk=0,
    annotDisplayDecideCbkData=0x0) at PDFDoc.cc:405
#7  0x01037178 in Poppler::Page::renderToImage (this=0x984b098,
    xres=41.058823529411768, yres=41, x=-1, y=-1, w=-1, h=-1,
    rotate=Poppler::Page::Rotate0) at poppler-page.cc:188
#8  0x00170ea3 in PDFPixmapGeneratorThread::run (this=0x9528b30)
Comment 12 Pino Toscano 2009-01-02 23:20:33 UTC
Hi,

> i changed my OS to f9.
> [...]
> #0  Form::findWidgetByRef (this=0x0, aref={num = 155, gen = 0}) at Form.cc:1231
> #1  0x010e1104 in AnnotWidget::initialize (this=0xb440e9a8, xrefA=0x95337a0,
>     catalog=0x9533be0, dict=0xb4472c38) at Annot.cc:1735

This is (was) a known Poppler bug (so not depending on Okular); from what I knew, Fedora 9 has an old Poppler version, and that's probably the cause of it.
Please make sure to update to a more recent version.
Comment 13 Pino Toscano 2009-03-30 18:19:46 UTC
Hi Anıl,

can you still reproduce the problem with more recent versions of Okular and Poppler?
Comment 14 Pino Toscano 2009-07-28 13:23:04 UTC
Hi Anıl,

if you have news about this issue, please do tell.
Comment 15 Albert Astals Cid 2011-08-25 20:23:53 UTC
User did not care to answer, closing