Bug 272867 - okular crashed when I tried to open a .mobi file
Summary: okular crashed when I tried to open a .mobi file
Status: RESOLVED DUPLICATE of bug 274425
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: kdecore (show other bugs)
Version: 4.5
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-09 17:07 UTC by Francis (Grizzly) Smit
Modified: 2013-07-04 23:07 UTC (History)
3 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 Francis (Grizzly) Smit 2011-05-09 17:07:26 UTC
Application: okular (0.11.2)
KDE Platform Version: 4.5.5 (KDE 4.5.5)
Qt Version: 4.7.0
Operating System: Linux 2.6.35-23-generic i686
Distribution: Ubuntu 10.10

-- Information about the crash:
- What I was doing when the application crashed:

opening a .mobi file with okular
thats it it crashed but when I tried agian it was fine

The crash can be reproduced some of the time.

-- Backtrace:
Application: Okular (okular), signal: Segmentation fault
[Current thread is 1 (Thread 0xb7840710 (LWP 10980))]

Thread 2 (Thread 0xb7528b70 (LWP 10983)):
#0  0x005fe416 in __kernel_vsyscall ()
#1  0x00532df6 in poll () from /lib/libc.so.6
#2  0x0371da1b in g_poll () from /lib/libglib-2.0.so.0
#3  0x0371043c in ?? () from /lib/libglib-2.0.so.0
#4  0x03710ba7 in g_main_loop_run () from /lib/libglib-2.0.so.0
#5  0x07ec59c4 in ?? () from /usr/lib/libgio-2.0.so.0
#6  0x0373748f in ?? () from /lib/libglib-2.0.so.0
#7  0x005d3cc9 in start_thread () from /lib/libpthread.so.0
#8  0x0054169e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb7840710 (LWP 10980)):
[KCrash Handler]
#7  d_func (this=0x0) at ../../kdecore/sycoca/ksycocaentry.h:155
#8  KSycocaEntry::name (this=0x0) at ../../kdecore/sycoca/ksycocaentry.cpp:158
#9  0x02808d5c in Okular::Document::openDocument (this=0x89804a0, docFile=..., url=..., _mime=...) at ../../okular/core/document.cpp:1563
#10 0x0250165b in Okular::Part::openFile (this=0x8974518) at ../../okular/part.cpp:934
#11 0x00ec2549 in KParts::ReadOnlyPart::openUrl (this=0x8974518, url=...) at ../../kparts/part.cpp:557
#12 0x024f4067 in Okular::Part::openUrl (this=0x8974518, _url=...) at ../../okular/part.cpp:1055
#13 0x0804f502 in Shell::openUrl (this=0x8963650, url=...) at ../../../okular/shell/shell.cpp:133
#14 0x0804f618 in Shell::delayedOpen (this=0x8963650) at ../../../okular/shell/shell.cpp:116
#15 0x0804fe45 in Shell::qt_metacall (this=0x8963650, _c=QMetaObject::InvokeMetaMethod, _id=57, _a=0x8af9f38) at ./shell.moc:94
#16 0x073aa8ca in QMetaObject::metacall (object=0x8963650, cl=3213069057, idx=57, argv=0x8af9f38) at kernel/qmetaobject.cpp:237
#17 0x073b5df6 in QMetaCallEvent::placeMetaCall (this=0x8a522c0, object=0x8963650) at kernel/qobject.cpp:534
#18 0x073b76a2 in QObject::event (this=0x8963650, e=0xbf838bf8) at kernel/qobject.cpp:1219
#19 0x0107f936 in QWidget::event (this=0x8963650, event=0x8a522c0) at kernel/qwidget.cpp:8646
#20 0x014c0917 in QMainWindow::event (this=0x8963650, event=0x8a522c0) at widgets/qmainwindow.cpp:1417
#21 0x00b5e164 in KMainWindow::event (this=0x8963650, ev=0x8a522c0) at ../../kdeui/widgets/kmainwindow.cpp:1100
#22 0x00ba6a4f in KXmlGuiWindow::event (this=0x8963650, ev=0x8a522c0) at ../../kdeui/xmlgui/kxmlguiwindow.cpp:132
#23 0x01021fdc in QApplicationPrivate::notify_helper (this=0x87d9dd0, receiver=0x8963650, e=0x8a522c0) at kernel/qapplication.cpp:4396
#24 0x010280e9 in QApplication::notify (this=0xbf839bc0, receiver=0x8963650, e=0x8a522c0) at kernel/qapplication.cpp:4361
#25 0x00a66d8a in KApplication::notify (this=0xbf839bc0, receiver=0x8963650, event=0x8a522c0) at ../../kdeui/kernel/kapplication.cpp:310
#26 0x073a4b3b in QCoreApplication::notifyInternal (this=0xbf839bc0, receiver=0x8963650, event=0x8a522c0) at kernel/qcoreapplication.cpp:732
#27 0x073a7d8b in sendEvent (receiver=0x0, event_type=0, data=0x87c4e80) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#28 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x87c4e80) at kernel/qcoreapplication.cpp:1373
#29 0x073a7f4d in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1266
#30 0x073d3a74 in sendPostedEvents (s=0x87db990) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#31 postEventSourceDispatch (s=0x87db990) at kernel/qeventdispatcher_glib.cpp:277
#32 0x0370c855 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#33 0x03710668 in ?? () from /lib/libglib-2.0.so.0
#34 0x03710848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#35 0x073d3565 in QEventDispatcherGlib::processEvents (this=0x87c4b40, flags=...) at kernel/qeventdispatcher_glib.cpp:415
#36 0x010e3be5 in QGuiEventDispatcherGlib::processEvents (this=0x87c4b40, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#37 0x073a3609 in QEventLoop::processEvents (this=0xbf839ac4, flags=) at kernel/qeventloop.cpp:149
#38 0x073a3a8a in QEventLoop::exec (this=0xbf839ac4, flags=...) at kernel/qeventloop.cpp:201
#39 0x073a800f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#40 0x01020e07 in QApplication::exec () at kernel/qapplication.cpp:3672
#41 0x0804e6d9 in main (argc=6, argv=0xbf839db4) at ../../../okular/shell/main.cpp:82

Reported using DrKonqi
Comment 1 Albert Astals Cid 2011-05-09 21:05:25 UTC
It is crashing in
KMimeType::Ptr newmime = KMimeType::findByFileContent( docFile );
loadingMimeByContent = true;
if ( newmime->name() != mime->name() )    <-------
with mime->name() already being used in the previous lines, and KMimeType::findByFileContent says the returned mime will never be null, but it seems it was, so i'm reassigning this to kdelibs
Comment 2 Maarten De Meyer 2013-02-18 16:22:07 UTC
*** Bug 315354 has been marked as a duplicate of this bug. ***
Comment 3 Dawit Alemayehu 2013-07-04 23:07:43 UTC

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