Bug 163885 - Dolphin crashes on pdf preview
Summary: Dolphin crashes on pdf preview
Status: RESOLVED WORKSFORME
Alias: None
Product: unknown
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-12 11:15 UTC by Luca Gambetta
Modified: 2008-07-21 08:43 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
A pdf file (38.91 KB, application/pdf)
2008-07-12 09:13 UTC, Luca Gambetta
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luca Gambetta 2008-06-12 11:15:47 UTC
Version:            (using Devel)
Installed from:    Compiled sources
OS:                Linux

I'm browsing a directory with some pdf files, when I moved the mouse over one of those Dolphin crashed with the following backtrace:

Application: Dolphin (dolphin), signal SIGILL
(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0xb61b46d0 (LWP 7132)]
[KCrash handler]
#6  0xb7a51e76 in PdfParser::parseDictionaryOrStream ()
   from /opt/kdemod/lib/libstreamanalyzer.so.0
#7  0xb7a52635 in PdfParser::parseObjectStreamObject ()
   from /opt/kdemod/lib/libstreamanalyzer.so.0
#8  0xb7a52956 in PdfParser::parseObjectStreamObjectDef ()
   from /opt/kdemod/lib/libstreamanalyzer.so.0
#9  0xb7a52b49 in PdfParser::parse ()
   from /opt/kdemod/lib/libstreamanalyzer.so.0
#10 0xb7a4b201 in PdfEndAnalyzer::analyze ()
   from /opt/kdemod/lib/libstreamanalyzer.so.0
#11 0xb7a34c8c in Strigi::StreamAnalyzerPrivate::analyze ()
   from /opt/kdemod/lib/libstreamanalyzer.so.0
#12 0xb7f0199c in KFileMetaInfoPrivate::init ()
   from /opt/kdemod/lib/libkio.so.5
#13 0xb7f0370a in KFileMetaInfo::KFileMetaInfo ()
   from /opt/kdemod/lib/libkio.so.5
#14 0x0807fc5f in _start ()
#0  0xb80b5424 in __kernel_vsyscall ()


Okular correctly opens the file. With other file types it works correctly. I'm using KDE 4.0.82, a snapshot for Arch Linux called KDE4Mod.
Comment 1 Luca Gambetta 2008-07-04 09:21:14 UTC
Still happening with KDE 4.0.85, here's the backtrace:
Application: Dolphin (dolphin), signal SIGILL
[Thread debugging using libthread_db enabled]
[New Thread 0xb60196d0 (LWP 4310)]
[KCrash handler]
#6  0xb78c42dc in PdfParser::parseDictionaryOrStream ()
   from /opt/kdemod/lib/libstreamanalyzer.so.0
#7  0xb78c4ba5 in PdfParser::parseObjectStreamObject ()
   from /opt/kdemod/lib/libstreamanalyzer.so.0
#8  0xb78c4ec6 in PdfParser::parseObjectStreamObjectDef ()
   from /opt/kdemod/lib/libstreamanalyzer.so.0
#9  0xb78c50b9 in PdfParser::parse ()
   from /opt/kdemod/lib/libstreamanalyzer.so.0
#10 0xb78bd1f1 in PdfEndAnalyzer::analyze ()
   from /opt/kdemod/lib/libstreamanalyzer.so.0
#11 0xb78a6d0c in Strigi::StreamAnalyzerPrivate::analyze ()
   from /opt/kdemod/lib/libstreamanalyzer.so.0
#12 0xb7d7af95 in KFileMetaInfoPrivate::init ()
   from /opt/kdemod/lib/libkio.so.5
#13 0xb7d7ccfa in KFileMetaInfo::KFileMetaInfo ()
   from /opt/kdemod/lib/libkio.so.5
#14 0x0807fb92 in InfoSidebarPage::showMetaInfo ()
#15 0x0807ff3a in InfoSidebarPage::showItemInfo ()
#16 0x08080650 in InfoSidebarPage::qt_metacall ()
#17 0xb751ed9d in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#18 0xb751fab1 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#19 0xb7556fc0 in QTimer::timeout () from /usr/lib/libQtCore.so.4
#20 0xb75255a7 in QTimer::timerEvent () from /usr/lib/libQtCore.so.4
#21 0xb7519fd0 in QObject::event () from /usr/lib/libQtCore.so.4
#22 0xb685d8b3 in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#23 0xb6864fa2 in QApplication::notify () from /usr/lib/libQtGui.so.4
#24 0xb7b0f774 in KApplication::notify () from /opt/kdemod/lib/libkdeui.so.5
#25 0xb750b8dc in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#26 0xb7536dae in ?? () from /usr/lib/libQtCore.so.4
#27 0xb753372d in ?? () from /usr/lib/libQtCore.so.4
#28 0xb62310e8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#29 0xb6234783 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#30 0xb6234941 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#31 0xb753369d in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#32 0xb68ec92e in ?? () from /usr/lib/libQtGui.so.4
#33 0xb750a1cf in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#34 0xb750a390 in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#35 0xb750c72d in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#36 0xb685d764 in QApplication::exec () from /usr/lib/libQtGui.so.4
#37 0x0808205d in main ()
#0  0xb7f33424 in __kernel_vsyscall ()
Comment 2 Luca Gambetta 2008-07-11 11:53:28 UTC
This doesn't happen with the latest KDE 4.1 RC1, so for me it is resolved ;)
Comment 3 Luca Gambetta 2008-07-11 12:53:14 UTC
I can't close this bug. It seemed to work, then I changed the widget style and the bug reappeared. Tried to revert to to old style but the bug is still here...
Comment 4 Jos van den Oever 2008-07-12 01:31:13 UTC
Can you attach an offending (small) pdf file?
Comment 5 Luca Gambetta 2008-07-12 09:13:18 UTC
Created attachment 26053 [details]
A pdf file

Application: Dolphin (dolphin), signal SIGILL
[Thread debugging using libthread_db enabled]
[New Thread 0xb60c6700 (LWP 4262)]
[KCrash handler]
#6  0xb797e3bc in PdfParser::parseDictionaryOrStream ()
   from /opt/kdemod/lib/libstreamanalyzer.so.0
#7  0xb797ec85 in PdfParser::parseObjectStreamObject ()
   from /opt/kdemod/lib/libstreamanalyzer.so.0
#8  0xb797efa6 in PdfParser::parseObjectStreamObjectDef ()
   from /opt/kdemod/lib/libstreamanalyzer.so.0
#9  0xb797f199 in PdfParser::parse ()
   from /opt/kdemod/lib/libstreamanalyzer.so.0
#10 0xb79771f1 in PdfEndAnalyzer::analyze ()
   from /opt/kdemod/lib/libstreamanalyzer.so.0
#11 0xb7960d0c in Strigi::StreamAnalyzerPrivate::analyze ()
   from /opt/kdemod/lib/libstreamanalyzer.so.0
#12 0xb7e36445 in KFileMetaInfoPrivate::init ()
   from /opt/kdemod/lib/libkio.so.5
#13 0xb7e3818e in KFileMetaInfo::KFileMetaInfo ()
   from /opt/kdemod/lib/libkio.so.5
#14 0x0807fb67 in InfoSidebarPage::showMetaInfo ()
#15 0x0807ff28 in InfoSidebarPage::showItemInfo ()
#16 0x08080640 in InfoSidebarPage::qt_metacall ()
#17 0xb75d7ee5 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#18 0xb75d8bf9 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#19 0xb760fcf0 in QTimer::timeout () from /usr/lib/libQtCore.so.4
#20 0xb75de6f7 in QTimer::timerEvent () from /usr/lib/libQtCore.so.4
#21 0xb75d3118 in QObject::event () from /usr/lib/libQtCore.so.4
#22 0xb69108d3 in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#23 0xb6917fb2 in QApplication::notify () from /usr/lib/libQtGui.so.4
#24 0xb7bc9fb4 in KApplication::notify () from /opt/kdemod/lib/libkdeui.so.5
#25 0xb75c4a3a in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#26 0xb75f005e in ?? () from /usr/lib/libQtCore.so.4
#27 0xb75ec9dd in ?? () from /usr/lib/libQtCore.so.4
#28 0xb62e20e8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#29 0xb62e5783 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#30 0xb62e5941 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#31 0xb75ec94d in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#32 0xb699f98e in ?? () from /usr/lib/libQtGui.so.4
#33 0xb75c332f in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#34 0xb75c34f0 in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#35 0xb75c5869 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#36 0xb6910784 in QApplication::exec () from /usr/lib/libQtGui.so.4
#37 0x0808204d in main ()
#0  0xb7ff0424 in __kernel_vsyscall ()
Comment 6 Luca Gambetta 2008-07-12 09:16:15 UTC
You can also try with:

http://grillorama.beppegrillo.it/schiavimoderni/download.php?item=schiavi-moderni

But this happens with all the pdf I have on my PC (of course also big PDF). I can open them directly with Okular, without problems.
Comment 7 Luca Gambetta 2008-07-15 11:22:02 UTC
More on this bug. KDE 4.1RC1, with a fresh install (rm -rf ~/.kde).
Today Dolphin just worked: hovering a PDF file produced the right preview into the information panel. Then I changed the current directory and tried to hover another PDF: then the crash triggered. After that crash, I launched Dolphin and moved to the first directory (the one in which every PDF preview worked well) and I got a crash when hovering the PDF!
I noted that the backtrace was different between the first crash and the following. The first time it crashed with:


Application: Dolphin (dolphin), signal SIGILL
[Thread debugging using libthread_db enabled]
[New Thread 0xb610b700 (LWP 16490)]
[KCrash handler]
#6  0xb79c5248 in PdfParser::skipXRef ()
   from /opt/kdemod/lib/libstreamanalyzer.so.0
#7  0xb79c7199 in PdfParser::parse ()
   from /opt/kdemod/lib/libstreamanalyzer.so.0
#8  0xb79bf1f1 in PdfEndAnalyzer::analyze ()
   from /opt/kdemod/lib/libstreamanalyzer.so.0
#9  0xb79a8d0c in Strigi::StreamAnalyzerPrivate::analyze ()
   from /opt/kdemod/lib/libstreamanalyzer.so.0
#10 0xb7e77445 in KFileMetaInfoPrivate::init ()
   from /opt/kdemod/lib/libkio.so.5
#11 0xb7e7918e in KFileMetaInfo::KFileMetaInfo ()
   from /opt/kdemod/lib/libkio.so.5
#12 0x0807fb67 in InfoSidebarPage::showMetaInfo ()
#13 0x0807ff28 in InfoSidebarPage::showItemInfo ()
#14 0x08080640 in InfoSidebarPage::qt_metacall ()
#15 0xb761fee5 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#16 0xb7620bf9 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#17 0xb7657cf0 in QTimer::timeout () from /usr/lib/libQtCore.so.4
#18 0xb76266f7 in QTimer::timerEvent () from /usr/lib/libQtCore.so.4
#19 0xb761b118 in QObject::event () from /usr/lib/libQtCore.so.4
#20 0xb69558d3 in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#21 0xb695cfb2 in QApplication::notify () from /usr/lib/libQtGui.so.4
#22 0xb7c0afb4 in KApplication::notify () from /opt/kdemod/lib/libkdeui.so.5
#23 0xb760ca3a in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#24 0xb763805e in ?? () from /usr/lib/libQtCore.so.4
#25 0xb76349dd in ?? () from /usr/lib/libQtCore.so.4
#26 0xb63270e8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#27 0xb632a783 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#28 0xb632a941 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#29 0xb763494d in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#30 0xb69e498e in ?? () from /usr/lib/libQtGui.so.4
#31 0xb760b32f in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#32 0xb760b4f0 in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#33 0xb760d869 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#34 0xb6955784 in QApplication::exec () from /usr/lib/libQtGui.so.4
#35 0x0808204d in main ()
#0  0xb8031424 in __kernel_vsyscall ()

Then the following time it always crashed with:

Application: Dolphin (dolphin), signal SIGILL
[Thread debugging using libthread_db enabled]
[New Thread 0xb5fd2700 (LWP 16508)]
[KCrash handler]
#6  0xb788d4c6 in PdfParser::parseDictionaryOrStream ()
   from /opt/kdemod/lib/libstreamanalyzer.so.0
#7  0xb788dc85 in PdfParser::parseObjectStreamObject ()
   from /opt/kdemod/lib/libstreamanalyzer.so.0
#8  0xb788dfa6 in PdfParser::parseObjectStreamObjectDef ()
   from /opt/kdemod/lib/libstreamanalyzer.so.0
#9  0xb788e199 in PdfParser::parse ()
   from /opt/kdemod/lib/libstreamanalyzer.so.0
#10 0xb78861f1 in PdfEndAnalyzer::analyze ()
   from /opt/kdemod/lib/libstreamanalyzer.so.0
#11 0xb786fd0c in Strigi::StreamAnalyzerPrivate::analyze ()
   from /opt/kdemod/lib/libstreamanalyzer.so.0
#12 0xb7d3e445 in KFileMetaInfoPrivate::init ()
   from /opt/kdemod/lib/libkio.so.5
#13 0xb7d4018e in KFileMetaInfo::KFileMetaInfo ()
   from /opt/kdemod/lib/libkio.so.5
#14 0x0807fb67 in InfoSidebarPage::showMetaInfo ()
#15 0x0807ff28 in InfoSidebarPage::showItemInfo ()
#16 0x08080640 in InfoSidebarPage::qt_metacall ()
#17 0xb74e6ee5 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#18 0xb74e7bf9 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#19 0xb751ecf0 in QTimer::timeout () from /usr/lib/libQtCore.so.4
#20 0xb74ed6f7 in QTimer::timerEvent () from /usr/lib/libQtCore.so.4
#21 0xb74e2118 in QObject::event () from /usr/lib/libQtCore.so.4
#22 0xb681c8d3 in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#23 0xb6823fb2 in QApplication::notify () from /usr/lib/libQtGui.so.4
#24 0xb7ad1fb4 in KApplication::notify () from /opt/kdemod/lib/libkdeui.so.5
#25 0xb74d3a3a in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#26 0xb74ff05e in ?? () from /usr/lib/libQtCore.so.4
#27 0xb74fb9dd in ?? () from /usr/lib/libQtCore.so.4
#28 0xb61ee0e8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#29 0xb61f1783 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#30 0xb61f1941 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#31 0xb74fb94d in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#32 0xb68ab98e in ?? () from /usr/lib/libQtGui.so.4
#33 0xb74d232f in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#34 0xb74d24f0 in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#35 0xb74d4869 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#36 0xb681c784 in QApplication::exec () from /usr/lib/libQtGui.so.4
#37 0x0808204d in main ()
#0  0xb7ef8424 in __kernel_vsyscall ()

Comment 8 Jos van den Oever 2008-07-17 12:29:10 UTC
I've tried to reproduce this bug in trunk (both strigi and KDE).
Programs I tried on your pdf:
 valgrind kfile4 --av $file
 valgrind xmlindexer $file
 hovering over the file in dolphin with the information pane activated.

Nothing could reproduce it.

Anyone else?
Comment 9 Luca Gambetta 2008-07-17 12:49:16 UTC
My distro is Arch Linux x86, with the KDEmod4 binary packages, KDE version 4.1RC1. All of KDE4 resides in the /opt/kdemod directory. This bug also happens in the File Chooser dialog if I have the preview mode enabled, only on PDF files.
The strange thing is that it used to crash even on audio files, but only for some days (the I upgraded the system) 
Comment 10 Jos van den Oever 2008-07-17 13:43:04 UTC
Some fixes in strigi are not in RC1 yet, but they are not related to pdf files. What compiler and processor do you have?

Comment 11 Luca Gambetta 2008-07-17 15:35:36 UTC
[luca@accipigna page]$ gcc --version
gcc (GCC) 4.3.1 20080626 (prerelease)

I'm on AMD Athlon 64, but because the KDE4 packages are created on another machine, I really can tell you what are the real compile time specs.
Comment 12 Luca Gambetta 2008-07-21 08:43:00 UTC
With the latest upgrade to KDE 4.0.99 the problem completely desappeared, so I close this bug.