Bug 325810

Summary: Okular crashes on zoom selection
Product: [Applications] okular Reporter: ruben.mueller
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED FIXED    
Severity: crash CC: aacid, fabiodurso, kdebug, kovmate, sahir.bhatnagar, tobiasmue
Priority: NOR Keywords: drkonqi
Version: 0.17.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description ruben.mueller 2013-10-09 12:56:18 UTC
Application: okular (0.17.2)
KDE Platform Version: 4.11.2
Qt Version: 4.8.4
Operating System: Linux 3.11.0-11-generic x86_64
Distribution: Ubuntu Saucy Salamander (development branch)

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

while okular was waiting while pdf was reloading (...lyx was compiling the pdf new) i clicked on the zoom selector too choose 200%. this killed okular immediatly.
reproducable.

-- Backtrace:
Application: Okular (okular), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f87501e67c0 (LWP 3641))]

Thread 2 (Thread 0x7f8736c8e700 (LWP 3643)):
#0  0x00007f8749de5b80 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f8749de7cdb in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f8749de85b3 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f8749de879c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f874dbeea76 in QEventDispatcherGlib::processEvents (this=0x7f87300008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00007f874dbc05ef in QEventLoop::processEvents (this=this@entry=0x7f8736c8dd70, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f874dbc08e5 in QEventLoop::exec (this=this@entry=0x7f8736c8dd70, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007f874dabf88f in QThread::exec (this=this@entry=0x36a47d0) at thread/qthread.cpp:542
#8  0x00007f874dba1d13 in QInotifyFileSystemWatcherEngine::run (this=0x36a47d0) at io/qfilesystemwatcher_inotify.cpp:265
#9  0x00007f874dac1f2f in QThreadPrivate::start (arg=0x36a47d0) at thread/qthread_unix.cpp:338
#10 0x00007f874a2c0f6e in start_thread (arg=0x7f8736c8e700) at pthread_create.c:311
#11 0x00007f874d1faecd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7f87501e67c0 (LWP 3641)):
[KCrash Handler]
#6  0x00007f874d137f77 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#7  0x00007f874d13b5e8 in __GI_abort () at abort.c:90
#8  0x00007f874dab7912 in qt_message_output (msgType=msgType@entry=QtFatalMsg, buf=0x41b6698 "ASSERT: \"d\" in file /usr/include/qt4/QtCore/qscopedpointer.h, line 112") at global/qglobal.cpp:2347
#9  0x00007f874dab7c79 in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=msgType@entry=QtFatalMsg, msg=msg@entry=0x7f874dc22a80 "ASSERT: \"%s\" in file %s, line %d", ap=ap@entry=0x7fff192dddf8) at global/qglobal.cpp:2393
#10 0x00007f874dab8484 in qFatal (msg=msg@entry=0x7f874dc22a80 "ASSERT: \"%s\" in file %s, line %d") at global/qglobal.cpp:2576
#11 0x00007f874dab84c6 in qt_assert (assertion=assertion@entry=0x7f873a2fa699 "d", file=file@entry=0x7f873a2f9c50 "/usr/include/qt4/QtCore/qscopedpointer.h", line=line@entry=112) at global/qglobal.cpp:2021
#12 0x00007f873a2d2c30 in operator-> (this=<synthetic pointer>) at /usr/include/qt4/QtCore/qscopedpointer.h:112
#13 Poppler::Document::info (this=<optimized out>, type=...) at poppler-document.cc:272
#14 0x00007f873a525722 in PDFGenerator::metaData (this=0x2128260, key=..., option=...) at ../../../generators/poppler/generator_pdf.cpp:1240
#15 0x00007f873e8b1296 in Okular::Document::metaData (this=<optimized out>, key=..., option=...) at ../core/document.cpp:2749
#16 0x00007f873eb7634f in Okular::Part::setWindowTitleFromDocument (this=0x1d36210) at ../part.cpp:1029
#17 0x00007f873eb855bd in Okular::Part::qt_static_metacall (_o=0xe39, _id=3641, _a=0x7fff192de150, _c=<optimized out>) at ./part.moc:229
#18 0x00007f874dbd5a58 in QMetaObject::activate (sender=sender@entry=0x1d36210, m=m@entry=0x7f874fff5d60 <KParts::ReadOnlyPart::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x0) at kernel/qobject.cpp:3539
#19 0x00007f874fdc9e53 in KParts::ReadOnlyPart::completed (this=this@entry=0x1d36210) at ./part.moc:253
#20 0x00007f874fdcaccd in KParts::ReadOnlyPartPrivate::openLocalFile (this=this@entry=0x1d364e0) at ../../kparts/part.cpp:594
#21 0x00007f874fdcc20e in KParts::ReadOnlyPart::openUrl (this=this@entry=0x1d36210, url=...) at ../../kparts/part.cpp:555
#22 0x00007f873eb7a743 in Okular::Part::slotDoFileDirty (this=0x1d36210) at ../part.cpp:1627
#23 0x00007f873eb85525 in Okular::Part::qt_static_metacall (_o=0xe39, _id=3641, _a=0x7fff192de3d0, _c=<optimized out>) at ./part.moc:238
#24 0x00007f874dbd5a58 in QMetaObject::activate (sender=0x1f9b9e0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3539
#25 0x00007f874dbd9be1 in QObject::event (this=0x1f9b9e0, e=<optimized out>) at kernel/qobject.cpp:1156
#26 0x00007f874e5b2dfc in QApplicationPrivate::notify_helper (this=this@entry=0x1b44790, receiver=receiver@entry=0x1f9b9e0, e=e@entry=0x7fff192de7d0) at kernel/qapplication.cpp:4567
#27 0x00007f874e5b9470 in QApplication::notify (this=this@entry=0x7fff192dec10, receiver=receiver@entry=0x1f9b9e0, e=e@entry=0x7fff192de7d0) at kernel/qapplication.cpp:4353
#28 0x00007f874f2bca6a in KApplication::notify (this=0x7fff192dec10, receiver=0x1f9b9e0, event=0x7fff192de7d0) at ../../kdeui/kernel/kapplication.cpp:311
#29 0x00007f874dbc18bd in QCoreApplication::notifyInternal (this=0x7fff192dec10, receiver=0x1f9b9e0, event=0x7fff192de7d0) at kernel/qcoreapplication.cpp:946
#30 0x00007f874dbf1403 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#31 QTimerInfoList::activateTimers (this=0x1b35e60) at kernel/qeventdispatcher_unix.cpp:622
#32 0x00007f874dbee7d9 in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:186
#33 idleTimerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:233
#34 0x00007f8749de83a6 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#35 0x00007f8749de86f8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#36 0x00007f8749de879c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#37 0x00007f874dbeea55 in QEventDispatcherGlib::processEvents (this=0x1b33d10, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#38 0x00007f874e6549d6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#39 0x00007f874dbc05ef in QEventLoop::processEvents (this=this@entry=0x7fff192dea50, flags=...) at kernel/qeventloop.cpp:149
#40 0x00007f874dbc08e5 in QEventLoop::exec (this=this@entry=0x7fff192dea50, flags=...) at kernel/qeventloop.cpp:204
#41 0x00007f874dbc5e5b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#42 0x00007f874e5b134c in QApplication::exec () at kernel/qapplication.cpp:3828
#43 0x0000000000408276 in main (argc=<optimized out>, argv=<optimized out>) at ../../shell/main.cpp:100

Possible duplicates by query: bug 324432, bug 321758, bug 316495, bug 313194, bug 313047.

Reported using DrKonqi
Comment 1 Fabio D'Urso 2013-10-09 14:55:00 UTC
I'm not able to reproduce the situation. The zoom selector is disabled while reloading, am I missing something?
Comment 2 ruben.mueller 2013-10-09 15:12:19 UTC
Yes it was grayed out and disabled. nevertheless it crashed.

But... After a new boot it is no more reproducible.
Maybe it was caused by another program / temporary setting?

Greetings.
Comment 3 Albert Astals Cid 2013-10-10 00:17:58 UTC
By looking at the backtrace it seems to me that the fact that you were chaning the zoom is annecdotical, basically it crashed inside poppler whilte trying to access a null member, i've added code to check for that (that tbh seems like should almost never happen) to the next poppler version.

Thanks for the report :-)
Comment 4 Albert Astals Cid 2014-02-06 23:59:09 UTC
*** Bug 330858 has been marked as a duplicate of this bug. ***
Comment 5 Albert Astals Cid 2014-02-20 21:20:47 UTC
*** Bug 331327 has been marked as a duplicate of this bug. ***
Comment 6 Jekyll Wu 2014-03-28 02:16:17 UTC
*** Bug 332693 has been marked as a duplicate of this bug. ***
Comment 7 Albert Astals Cid 2014-05-04 20:15:47 UTC
*** Bug 334348 has been marked as a duplicate of this bug. ***