Bug 246201 - okular crash when reading some pdf files
Summary: okular crash when reading some pdf files
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 0.10.2
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-30 00:55 UTC by lelongdunet
Modified: 2011-03-16 20:59 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lelongdunet 2010-07-30 00:55:46 UTC
Application: okular (0.10.2)
KDE Platform Version: 4.4.2 (KDE 4.4.2)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-24-generic x86_64
Distribution: Ubuntu 10.04.1 LTS

-- Information about the crash:
Cela arrive avec certains fichiers notament "http://pgfplots.sourceforge.net/pgfplots.pdf". Parfois ca s'ouvre, mais au moins une fois sur deux il y a plantage. En général lorsque le fichier s'est ouvert une fois ca semble ne plus replanter jusqu'à la fin de la session.
kubuntu 10.04 64bits

The crash can be reproduced some of the time.

 -- Backtrace:
Application: Okular (okular), signal: Aborted
pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
	in ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
[Current thread is 1 (Thread 0x7fc490255760 (LWP 28726))]

Thread 2 (Thread 0x7fc4816ae710 (LWP 28728)):
[KCrash Handler]
#5  0x00007fc48d47ba75 in *__GI_raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#6  0x00007fc48d47f5c0 in *__GI_abort () at abort.c:92
#7  0x00007fc48d4b54fb in __libc_message (do_abort=<value optimized out>, fmt=<value optimized out>) at ../sysdeps/unix/sysv/linux/libc_fatal.c:189
#8  0x00007fc48d4bf5b6 in malloc_printerr (action=3, str=0x7fc48d592c98 "double free or corruption (out)", ptr=<value optimized out>) at malloc.c:6264
#9  0x00007fc48d4c5e53 in *__GI___libc_free (mem=<value optimized out>) at malloc.c:3738
#10 0x00007fc481c9831a in ~ObjectStream (this=0x2963dd0, __in_chrg=<value optimized out>) at XRef.cc:213
#11 0x00007fc481c99ada in XRef::fetch (this=0x2633390, num=28728, gen=6, obj=0x7fc4816ad8f0) at XRef.cc:1001
#12 0x00007fc481c57108 in GfxFontDict (this=0x2ae3d80, xref=<value optimized out>, fontDictRef=<value optimized out>, fontDict=<value optimized out>) at GfxFont.cc:2089
#13 0x00007fc481c40a57 in GfxResources (this=0x2ae3200, xref=0x2633390, resDict=0x29f7550, nextA=0x0) at Gfx.cc:327
#14 0x00007fc481c437c9 in Gfx (this=0x2b31920, xrefA=<value optimized out>, outA=0x2b2ff00, pageNum=178, resDict=0x29f7550, catalogA=<value optimized out>, hDPI=<value optimized out>, 
    vDPI=<value optimized out>, box=0x7fc4816ada80, cropBox=0x0, rotate=0, abortCheckCbkA=0, abortCheckCbkDataA=0x0) at Gfx.cc:523
#15 0x00007fc481c8765e in Page::createGfx (this=0x2a0de30, out=0x2b2ff00, hDPI=<value optimized out>, vDPI=<value optimized out>, rotate=0, useMediaBox=<value optimized out>, crop=0, 
    sliceX=<value optimized out>, sliceY=-1, sliceW=-1, sliceH=-1, printing=0, catalog=0x28b1bf0, abortCheckCbk=0, abortCheckCbkData=0x0, annotDisplayDecideCbk=0, annotDisplayDecideCbkData=0x0)
    at Page.cc:440
#16 0x00007fc481c878fb in Page::displaySlice (this=0x2a0de30, out=0x2b2ff00, hDPI=0, vDPI=0, rotate=8, useMediaBox=<value optimized out>, crop=1, sliceX=-1, sliceY=-1, sliceW=-1, sliceH=-1, 
    printing=0, catalog=0x28b1bf0, abortCheckCbk=0, abortCheckCbkData=0x0, annotDisplayDecideCbk=0, annotDisplayDecideCbkData=0x0) at Page.cc:469
#17 0x00007fc481f9ff9b in Poppler::Page::renderToImage (this=0x2b10b50, xres=<value optimized out>, yres=<value optimized out>, x=<value optimized out>, y=<value optimized out>, w=-1, h=-1, 
    rotate=Poppler::Page::Rotate0) at poppler-page.cc:211
#18 0x00007fc482208705 in PDFPixmapGeneratorThread::run (this=0x28b3000) at ../../../../okular/generators/poppler/generator_pdf.cpp:1836
#19 0x00007fc48e7ef775 in QThreadPrivate::start (arg=0x28b3000) at thread/qthread_unix.cpp:248
#20 0x00007fc48b9ed9ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#21 0x00007fc48d52e6fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#22 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fc490255760 (LWP 28726)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fc48e7eeea3 in QMutexPrivate::wait (this=0x2acd0e0, timeout=-1) at thread/qmutex_unix.cpp:84
#2  0x00007fc48e7eaa05 in QMutex::lock (this=0x2ae8070) at thread/qmutex.cpp:205
#3  0x00007fc482204255 in PDFGenerator::embeddedFiles (this=0x2961fb0) at ../../../../okular/generators/poppler/generator_pdf.cpp:703
#4  0x00007fc4855f2933 in Okular::Part::openFile (this=0x26548b0) at ../../okular/part.cpp:943
#5  0x00007fc48fe4a117 in KParts::ReadOnlyPart::openUrl (this=0x26548b0, url=<value optimized out>) at ../../kparts/part.cpp:557
#6  0x00007fc4855e704a in Okular::Part::openUrl (this=0x26548b0, _url=<value optimized out>) at ../../okular/part.cpp:1049
#7  0x0000000000409a8a in Shell::openUrl (this=0x2647e40, url=...) at ../../../okular/shell/shell.cpp:130
#8  0x000000000040a3ac in Shell::qt_metacall (this=0x2647e40, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7fffa5e35f70) at ./shell.moc:94
#9  0x00007fc48e8f6e3f in QMetaObject::activate (sender=0x293c2a0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3293
#10 0x00007fc48e8fe65f in QSingleShotTimer::timerEvent (this=0x293c2a0) at kernel/qtimer.cpp:308
#11 0x00007fc48e8f3a63 in QObject::event (this=0x293c2a0, e=0x7fffa5e366d0) at kernel/qobject.cpp:1212
#12 0x00007fc48dc9d22c in QApplicationPrivate::notify_helper (this=0x2569d20, receiver=0x293c2a0, e=0x7fffa5e366d0) at kernel/qapplication.cpp:4300
#13 0x00007fc48dca36fb in QApplication::notify (this=0x7fffa5e36a20, receiver=0x293c2a0, e=0x7fffa5e366d0) at kernel/qapplication.cpp:4183
#14 0x00007fc48f545526 in KApplication::notify (this=0x7fffa5e36a20, receiver=0x293c2a0, event=0x7fffa5e366d0) at ../../kdeui/kernel/kapplication.cpp:302
#15 0x00007fc48e8e406c in QCoreApplication::notifyInternal (this=0x7fffa5e36a20, receiver=0x293c2a0, event=0x7fffa5e366d0) at kernel/qcoreapplication.cpp:704
#16 0x00007fc48e910d42 in QCoreApplication::sendEvent (this=0x256da40) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#17 QTimerInfoList::activateTimers (this=0x256da40) at kernel/qeventdispatcher_unix.cpp:603
#18 0x00007fc48e90d824 in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:184
#19 0x00007fc489c0d8c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#20 0x00007fc489c11748 in ?? () from /lib/libglib-2.0.so.0
#21 0x00007fc489c118fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#22 0x00007fc48e90d513 in QEventDispatcherGlib::processEvents (this=0x2552380, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#23 0x00007fc48dd4d46e in QGuiEventDispatcherGlib::processEvents (this=0x2acd12c, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#24 0x00007fc48e8e2992 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#25 0x00007fc48e8e2d6c in QEventLoop::exec (this=0x7fffa5e36970, flags=) at kernel/qeventloop.cpp:201
#26 0x00007fc48e8e6aab in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#27 0x000000000040889c in main (argc=<value optimized out>, argv=<value optimized out>) at ../../../okular/shell/main.cpp:82

Reported using DrKonqi
Comment 1 Mathieu Lornac 2010-07-30 01:13:12 UTC
It happens with some files and in particular with that one:
"http://pgfplots.sourceforge.net/pgfplots.pdf".
Sometimes the file opening is fine, but it fails about one time out of 2.

Most of the time, when the file has been opened once, it doens't fail anymore until the end of the session.

kubuntu 10.04 64bits

The crash can be reproduced some of the time.
Comment 2 Albert Astals Cid 2010-07-30 20:48:47 UTC
Please next time report bugs in english.

Can you please try upgrading to KDE 4.4.5 and see if you still get the crashes?

For Kubuntu you can see here http://techie-buzz.com/foss/upgrade-to-kde-sc-4-4-5-in-kubuntu-10-04-lucid-lynx.html how to upgrade to KDE 4.4.5

Take into account there is a small possibility that upgrading breaks your system so don't blame me if it happens.
Comment 3 Pino Toscano 2010-08-26 11:51:36 UTC
Also, which version of the poppler library do you have?
Comment 4 Albert Astals Cid 2011-03-16 20:59:21 UTC
Closing as the user did not answer for a long time