Bug 331365 - Okular crashed upon trying to print
Summary: Okular crashed upon trying to print
Status: RESOLVED UPSTREAM
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.18.2
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords: drkonqi
: 334792 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-02-21 06:35 UTC by bugs5.kde.org
Modified: 2014-05-15 18:36 UTC (History)
1 user (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 bugs5.kde.org 2014-02-21 06:35:13 UTC
Application: okular (0.18.2)
KDE Platform Version: 4.12.2
Qt Version: 4.8.6
Operating System: Linux 3.13.0-11-generic x86_64
Distribution: Ubuntu Trusty Tahr (development branch)

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

I was opening a PDF file and wanted to print it. Since the layout has to be exact, I set the margins in the printer settings to 0 and and when I pressed to print it, okular just crashed.

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

Thread 4 (Thread 0x7fe4c2ca3700 (LWP 5456)):
#0  0x00007fe4d710671d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fe4d3cf6004 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fe4d3cf610c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fe4d7b0a836 in QEventDispatcherGlib::processEvents (this=0x7fe4bc0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#4  0x00007fe4d7adc09f in QEventLoop::processEvents (this=this@entry=0x7fe4c2ca2de0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fe4d7adc395 in QEventLoop::exec (this=this@entry=0x7fe4c2ca2de0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007fe4d79d8c4f in QThread::exec (this=this@entry=0x23e5970) at thread/qthread.cpp:537
#7  0x00007fe4d7abd813 in QInotifyFileSystemWatcherEngine::run (this=0x23e5970) at io/qfilesystemwatcher_inotify.cpp:265
#8  0x00007fe4d79db31f in QThreadPrivate::start (arg=0x23e5970) at thread/qthread_unix.cpp:349
#9  0x00007fe4d41d0182 in start_thread (arg=0x7fe4c2ca3700) at pthread_create.c:312
#10 0x00007fe4d7113b2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7fe4c24a2700 (LWP 5461)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fe4d79db806 in wait (time=18446744073709551615, this=0x255ec00) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x255e838, mutex=mutex@entry=0x255e830, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007fe4d89acdb6 in QFileInfoGatherer::run (this=0x255e820) at dialogs/qfileinfogatherer.cpp:214
#4  0x00007fe4d79db31f in QThreadPrivate::start (arg=0x255e820) at thread/qthread_unix.cpp:349
#5  0x00007fe4d41d0182 in start_thread (arg=0x7fe4c24a2700) at pthread_create.c:312
#6  0x00007fe4d7113b2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7fe4c1ca1700 (LWP 5462)):
#0  0x00007fe4d710671d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fe4d3cf6004 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fe4d3cf610c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fe4d7b0a836 in QEventDispatcherGlib::processEvents (this=0x7fe4b80760b0, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#4  0x00007fe4d7adc09f in QEventLoop::processEvents (this=this@entry=0x7fe4c1ca0de0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fe4d7adc395 in QEventLoop::exec (this=this@entry=0x7fe4c1ca0de0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007fe4d79d8c4f in QThread::exec (this=this@entry=0x243b9b0) at thread/qthread.cpp:537
#7  0x00007fe4d7abd813 in QInotifyFileSystemWatcherEngine::run (this=0x243b9b0) at io/qfilesystemwatcher_inotify.cpp:265
#8  0x00007fe4d79db31f in QThreadPrivate::start (arg=0x243b9b0) at thread/qthread_unix.cpp:349
#9  0x00007fe4d41d0182 in start_thread (arg=0x7fe4c1ca1700) at pthread_create.c:312
#10 0x00007fe4d7113b2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7fe4da0f77c0 (LWP 5454)):
[KCrash Handler]
#5  __strcmp_ssse3 () at ../sysdeps/x86_64/multiarch/../strcmp.S:1108
#6  0x00007fe4d8962031 in QPrintPropertiesDialog::addItemToOptions (this=this@entry=0x27f7e80, parent=parent@entry=0x2843810, options=..., markedOptions=...) at dialogs/qprintdialog_unix.cpp:363
#7  0x00007fe4d8961fc9 in QPrintPropertiesDialog::addItemToOptions (this=this@entry=0x27f7e80, parent=0x2405b00, options=..., markedOptions=...) at dialogs/qprintdialog_unix.cpp:367
#8  0x00007fe4d89620ff in QPrintPropertiesDialog::setupPrinter (this=0x27f7e80) at dialogs/qprintdialog_unix.cpp:301
#9  0x00007fe4d8962555 in QUnixPrintWidgetPrivate::setupPrinter (this=0x2557fa0) at dialogs/qprintdialog_unix.cpp:1051
#10 0x00007fe4d8962742 in QPrintDialogPrivate::setupPrinter (this=<optimized out>) at dialogs/qprintdialog_unix.cpp:520
#11 0x00007fe4d89627bd in QPrintDialog::accept (this=0x1ec51e0) at dialogs/qprintdialog_unix.cpp:652
#12 0x00007fe4d7af1868 in QMetaObject::activate (sender=0x2560a70, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3539
#13 0x00007fe4d7af1868 in QMetaObject::activate (sender=sender@entry=0x258b040, m=m@entry=0x7fe4d8fa5290 <QAbstractButton::staticMetaObject>, local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x7fff4349e7f0) at kernel/qobject.cpp:3539
#14 0x00007fe4d8b1e0f2 in QAbstractButton::clicked (this=this@entry=0x258b040, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:219
#15 0x00007fe4d88819f3 in QAbstractButtonPrivate::emitClicked (this=this@entry=0x258b070) at widgets/qabstractbutton.cpp:548
#16 0x00007fe4d8882b63 in QAbstractButtonPrivate::click (this=this@entry=0x258b070) at widgets/qabstractbutton.cpp:541
#17 0x00007fe4d8882c4c in QAbstractButton::mouseReleaseEvent (this=0x258b040, e=0x7fff4349ece0) at widgets/qabstractbutton.cpp:1123
#18 0x00007fe4d851f50a in QWidget::event (this=0x258b040, event=0x7fff4349ece0) at kernel/qwidget.cpp:8376
#19 0x00007fe4d84cfe2c in QApplicationPrivate::notify_helper (this=this@entry=0x1c0f530, receiver=receiver@entry=0x258b040, e=e@entry=0x7fff4349ece0) at kernel/qapplication.cpp:4567
#20 0x00007fe4d84d65dd in QApplication::notify (this=<optimized out>, receiver=0x258b040, e=0x7fff4349ece0) at kernel/qapplication.cpp:4110
#21 0x00007fe4d91dcaaa in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#22 0x00007fe4d7add4cd in QCoreApplication::notifyInternal (this=0x7fff434a0840, receiver=receiver@entry=0x258b040, event=event@entry=0x7fff4349ece0) at kernel/qcoreapplication.cpp:953
#23 0x00007fe4d84d5d93 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#24 QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x258b040, event=event@entry=0x7fff4349ece0, alienWidget=alienWidget@entry=0x258b040, nativeWidget=nativeWidget@entry=0x1ec51e0, buttonDown=buttonDown@entry=0x7fe4d8fb7578 <qt_button_down>, lastMouseReceiver=..., spontaneous=spontaneous@entry=true) at kernel/qapplication.cpp:3178
#25 0x00007fe4d854a9cb in QETWidget::translateMouseEvent (this=this@entry=0x1ec51e0, event=event@entry=0x7fff4349f060) at kernel/qapplication_x11.cpp:4634
#26 0x00007fe4d854a269 in QApplication::x11ProcessEvent (this=0x7fff434a0840, event=event@entry=0x7fff4349f060) at kernel/qapplication_x11.cpp:3627
#27 0x00007fe4d8571b02 in x11EventSourceDispatch (s=0x1c16800, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#28 0x00007fe4d3cf5e24 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#29 0x00007fe4d3cf6068 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x00007fe4d3cf610c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x00007fe4d7b0a815 in QEventDispatcherGlib::processEvents (this=0x1bd8b50, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#32 0x00007fe4d8571bb6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#33 0x00007fe4d7adc09f in QEventLoop::processEvents (this=this@entry=0x7fff4349f440, flags=...) at kernel/qeventloop.cpp:149
#34 0x00007fe4d7adc395 in QEventLoop::exec (this=this@entry=0x7fff4349f440, flags=...) at kernel/qeventloop.cpp:204
#35 0x00007fe4d897700c in QDialog::exec (this=0x1ec51e0) at dialogs/qdialog.cpp:562
#36 0x00007fe4c8556087 in Okular::Part::slotPrint (this=0x1d97970) at ../part.cpp:2555
#37 0x00007fe4c8557915 in Okular::Part::qt_static_metacall (_o=0xffffffffffffff70, _id=39198848, _a=0x7fff4349f640, _c=<optimized out>) at ./part.moc:233
#38 0x00007fe4d7af1868 in QMetaObject::activate (sender=sender@entry=0x2202f50, m=m@entry=0x7fe4d8f7bd70 <QAction::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7fff4349f640) at kernel/qobject.cpp:3539
#39 0x00007fe4d84c9a62 in QAction::triggered (this=this@entry=0x2202f50, _t1=false) at .moc/release-shared/moc_qaction.cpp:276
#40 0x00007fe4d84cb433 in QAction::activate (this=0x2202f50, event=event@entry=QAction::Trigger) at kernel/qaction.cpp:1257
#41 0x00007fe4d84cb58c in QAction::event (this=<optimized out>, e=<optimized out>) at kernel/qaction.cpp:1183
#42 0x00007fe4d9106daf in KAction::event(QEvent*) () from /usr/lib/libkdeui.so.5
#43 0x00007fe4d84cfe2c in QApplicationPrivate::notify_helper (this=this@entry=0x1c0f530, receiver=receiver@entry=0x2202f50, e=e@entry=0x7fff4349f9e0) at kernel/qapplication.cpp:4567
#44 0x00007fe4d84d64a0 in QApplication::notify (this=0x7fff434a0840, receiver=0x2202f50, e=0x7fff4349f9e0) at kernel/qapplication.cpp:4353
#45 0x00007fe4d91dcaaa in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#46 0x00007fe4d7add4cd in QCoreApplication::notifyInternal (this=0x7fff434a0840, receiver=0x2202f50, event=event@entry=0x7fff4349f9e0) at kernel/qcoreapplication.cpp:953
#47 0x00007fe4d85012a6 in sendEvent (event=0x7fff4349f9e0, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#48 QShortcutMap::dispatchEvent (this=this@entry=0x1c0f658, e=e@entry=0x7fff4349fd20) at kernel/qshortcutmap.cpp:887
#49 0x00007fe4d85013dc in QShortcutMap::tryShortcutEvent (this=0x1c0f658, o=o@entry=0x2150130, e=e@entry=0x7fff4349fd20) at kernel/qshortcutmap.cpp:367
#50 0x00007fe4d84d7773 in QApplication::notify (this=0x7fff434a0840, receiver=0x2150130, e=0x7fff4349fd20) at kernel/qapplication.cpp:3991
#51 0x00007fe4d91dcaaa in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#52 0x00007fe4d7add4cd in QCoreApplication::notifyInternal (this=0x7fff434a0840, receiver=receiver@entry=0x2150130, event=event@entry=0x7fff4349fd20) at kernel/qcoreapplication.cpp:953
#53 0x00007fe4d84ce556 in sendSpontaneousEvent (event=event@entry=0x7fff4349fd20, receiver=receiver@entry=0x2150130) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:234
#54 qt_sendSpontaneousEvent (receiver=receiver@entry=0x2150130, event=event@entry=0x7fff4349fd20) at kernel/qapplication.cpp:5565
#55 0x00007fe4d856eff7 in QKeyMapper::sendKeyEvent (keyWidget=keyWidget@entry=0x2150130, grab=grab@entry=false, type=QEvent::KeyPress, code=80, modifiers=..., text=..., autorepeat=autorepeat@entry=false, count=1, nativeScanCode=33, nativeVirtualKey=112, nativeModifiers=20) at kernel/qkeymapper_x11.cpp:1866
#56 0x00007fe4d856f399 in QKeyMapperPrivate::translateKeyEvent (this=0x1c6f350, keyWidget=keyWidget@entry=0x2150130, event=event@entry=0x7fff434a02b0, grab=grab@entry=false) at kernel/qkeymapper_x11.cpp:1836
#57 0x00007fe4d85493f7 in QApplication::x11ProcessEvent (this=0x7fff434a0840, event=event@entry=0x7fff434a02b0) at kernel/qapplication_x11.cpp:3642
#58 0x00007fe4d8571b02 in x11EventSourceDispatch (s=0x1c16800, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#59 0x00007fe4d3cf5e24 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#60 0x00007fe4d3cf6068 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#61 0x00007fe4d3cf610c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#62 0x00007fe4d7b0a815 in QEventDispatcherGlib::processEvents (this=0x1bd8b50, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#63 0x00007fe4d8571bb6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#64 0x00007fe4d7adc09f in QEventLoop::processEvents (this=this@entry=0x7fff434a0680, flags=...) at kernel/qeventloop.cpp:149
#65 0x00007fe4d7adc395 in QEventLoop::exec (this=this@entry=0x7fff434a0680, flags=...) at kernel/qeventloop.cpp:204
#66 0x00007fe4d7ae1b69 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1225
#67 0x00007fe4d84ce37c in QApplication::exec () at kernel/qapplication.cpp:3828
#68 0x00000000004082d6 in main (argc=<optimized out>, argv=<optimized out>) at ../../shell/main.cpp:100

Reported using DrKonqi
Comment 1 Albert Astals Cid 2014-02-23 16:40:36 UTC
Hi, unfortunately this crash is happening inside Qt (in QPrintPropertiesDialog::addItemToOptions precisely), nothing we Okular developers can do much to fix. Please open a bug about this crash in the upstream Qt bug tracker at http://bugreports.qt-project.org/

Thanks for caring about Okular!
Comment 2 Christoph Feck 2014-05-15 18:36:25 UTC
*** Bug 334792 has been marked as a duplicate of this bug. ***