Bug 329881 - Okular crashed opening the print dialogue
Summary: Okular crashed opening the print dialogue
Status: RESOLVED UPSTREAM
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.17.5
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2014-01-12 18:09 UTC by idoitprone
Modified: 2014-01-13 16:32 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 idoitprone 2014-01-12 18:09:22 UTC
Application: okular (0.17.5)
KDE Platform Version: 4.11.5
Qt Version: 4.8.5
Operating System: Linux 3.13.0-0.rc6.git0.1.fc21.x86_64 x86_64
Distribution (Platform): Fedora RPMs

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

Okular crashed or freezes while opening a print dialogue. The application have the same behavior regardless of file formats.

Currently running Fedora 20 
Qt: 4.8.5
KDE: 4.11.5

The crash can be reproduced every time.

-- Backtrace:
Application: Okular (okular), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
81	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[KCrash Handler]
#6  0x000000000000003c in ?? ()
#7  0x00007f4bb2792d79 in cups_dnssd_get_device (data=0x7fff6c3b7cb0, serviceName=0x275067c "EPSON WorkForce 545 @ jdom macbook", regtype=0x27506a4 "_ipps._tcp", replyDomain=0x27506b4 "local") at dest.c:2918
#8  0x0000003a12608c96 in avahi_service_browser_event (client=client@entry=0x2749700, event=event@entry=AVAHI_BROWSER_NEW, message=message@entry=0x2738a50) at browser.c:775
#9  0x0000003a126051ea in filter_func (bus=<optimized out>, message=0x2738a50, userdata=0x2749700) at client.c:245
#10 0x000000384c41006e in dbus_connection_dispatch (connection=0x2749bf0) at dbus-connection.c:4631
#11 0x0000003a1260b936 in dispatch_timeout_callback (t=<optimized out>, userdata=0x27494a0) at ../avahi-common/dbus-watch-glue.c:105
#12 0x0000003a0c607c18 in avahi_simple_poll_dispatch (s=0x2738c90) at simple-watch.c:570
#13 0x0000003a0c607cd5 in avahi_simple_poll_iterate (s=<optimized out>, timeout=timeout@entry=250) at simple-watch.c:605
#14 0x00007f4bb279553e in cupsEnumDests (flags=<optimized out>, msec=<optimized out>, cancel=0x0, type=0, mask=<optimized out>, cb=0x3a325e55e0 <enum_dest_cb(void*, unsigned int, cups_dest_t*)>, user_data=0x7fff6c3b7d40) at dest.c:1057
#15 0x0000003a325e6687 in resolveCups () at painting/qcups.cpp:159
#16 0x0000003a325e6825 in QCUPSSupport::isAvailable () at painting/qcups.cpp:295
#17 0x0000003a3253de8e in QPdfBaseEngine::QPdfBaseEngine (this=0x2461940, dd=..., f=...) at painting/qpdf.cpp:924
#18 0x0000003a32553dfb in QPSPrintEngine::QPSPrintEngine (this=0x2461940, m=QPrinter::ScreenResolution) at painting/qprintengine_ps.cpp:667
#19 0x0000003a32555fd7 in QPrinterPrivate::createDefaultEngines (this=this@entry=0x2717c20) at painting/qprinter.cpp:198
#20 0x0000003a325578d4 in QPrinter::init (this=this@entry=0x7fff6c3b8080, mode=mode@entry=QPrinter::ScreenResolution) at painting/qprinter.cpp:679
#21 0x0000003a32558ce5 in QPrinter::QPrinter (this=0x7fff6c3b8080, mode=QPrinter::ScreenResolution) at painting/qprinter.cpp:603
#22 0x00007f4bb5f8d75f in Okular::Part::slotPrint (this=0x15ffb90) at /usr/src/debug/okular-4.11.5/part.cpp:2501
#23 0x00007f4bb5f8f235 in Okular::Part::qt_static_metacall (_o=<optimized out>, _id=<optimized out>, _a=0x7fff6c3b8220, _c=<optimized out>) at /usr/src/debug/okular-4.11.5/x86_64-redhat-linux-gnu/part.moc:233
#24 0x0000003a2e398fa8 in QMetaObject::activate (sender=sender@entry=0x17fc390, m=m@entry=0x3a32e9ec40 <QAction::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7fff6c3b8220) at kernel/qobject.cpp:3547
#25 0x0000003a323c37f2 in QAction::triggered (this=this@entry=0x17fc390, _t1=false) at .moc/release-shared/moc_qaction.cpp:276
#26 0x0000003a323c53a7 in QAction::activate (this=this@entry=0x17fc390, event=event@entry=QAction::Trigger) at kernel/qaction.cpp:1257
#27 0x0000003a3280edcd in QMenuPrivate::activateCausedStack (this=this@entry=0x18368d0, causedStack=..., action=action@entry=0x17fc390, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at widgets/qmenu.cpp:1038
#28 0x0000003a32813659 in QMenuPrivate::activateAction (this=0x18368d0, action=0x17fc390, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at widgets/qmenu.cpp:1130
#29 0x0000003a328171b5 in QMenu::mouseReleaseEvent (this=this@entry=0x181c340, e=e@entry=0x7fff6c3b89d0) at widgets/qmenu.cpp:2372
#30 0x000000397830b6cb in KMenu::mouseReleaseEvent (this=0x181c340, e=0x7fff6c3b89d0) at /usr/src/debug/kdelibs-4.11.5/kdeui/widgets/kmenu.cpp:464
#31 0x0000003a3241cd6a in QWidget::event (this=this@entry=0x181c340, event=event@entry=0x7fff6c3b89d0) at kernel/qwidget.cpp:8376
#32 0x0000003a3281761b in QMenu::event (this=0x181c340, e=0x7fff6c3b89d0) at widgets/qmenu.cpp:2481
#33 0x0000003a323c9dfc in QApplicationPrivate::notify_helper (this=0x1432e70, receiver=0x181c340, e=0x7fff6c3b89d0) at kernel/qapplication.cpp:4562
#34 0x0000003a323d08e9 in QApplication::notify (this=this@entry=0x7fff6c3b92d0, receiver=receiver@entry=0x181c340, e=e@entry=0x7fff6c3b89d0) at kernel/qapplication.cpp:4105
#35 0x000000397824a7da in KApplication::notify (this=0x7fff6c3b92d0, receiver=0x181c340, event=0x7fff6c3b89d0) at /usr/src/debug/kdelibs-4.11.5/kdeui/kernel/kapplication.cpp:311
#36 0x0000003a2e3845ed in QCoreApplication::notifyInternal (this=0x7fff6c3b92d0, receiver=0x181c340, event=0x7fff6c3b89d0) at kernel/qcoreapplication.cpp:949
#37 0x0000003a323d0017 in QApplicationPrivate::sendMouseEvent (receiver=0x181c340, event=0x7fff6c3b89d0, alienWidget=0x0, nativeWidget=0x181c340, buttonDown=<optimized out>, lastMouseReceiver=..., spontaneous=true) at ../../src/corelib/kernel/qcoreapplication.h:231
#38 0x0000003a32445afc in QETWidget::translateMouseEvent (this=0x181c340, event=<optimized out>) at kernel/qapplication_x11.cpp:4472
#39 0x0000003a3244423c in QApplication::x11ProcessEvent (this=0x7fff6c3b92d0, event=event@entry=0x7fff6c3b8d10) at kernel/qapplication_x11.cpp:3661
#40 0x0000003a3246bc34 in x11EventSourceDispatch (s=s@entry=0x1433000, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:148
#41 0x0000003a276492a6 in g_main_dispatch (context=0x1432540) at gmain.c:3066
#42 g_main_context_dispatch (context=context@entry=0x1432540) at gmain.c:3642
#43 0x0000003a27649628 in g_main_context_iterate (context=context@entry=0x1432540, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3713
#44 0x0000003a276496dc in g_main_context_iteration (context=0x1432540, may_block=1) at gmain.c:3774
#45 0x0000003a2e3b31a6 in QEventDispatcherGlib::processEvents (this=0x1406e80, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#46 0x0000003a3246bdb6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#47 0x0000003a2e38312f in QEventLoop::processEvents (this=this@entry=0x7fff6c3b9100, flags=...) at kernel/qeventloop.cpp:149
#48 0x0000003a2e38347d in QEventLoop::exec (this=this@entry=0x7fff6c3b9100, flags=...) at kernel/qeventloop.cpp:204
#49 0x0000003a2e3889bb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1221
#50 0x0000003a323c846c in QApplication::exec () at kernel/qapplication.cpp:3823
#51 0x00000000004083fe in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/okular-4.11.5/shell/main.cpp:100

Reported using DrKonqi
Comment 1 idoitprone 2014-01-12 18:23:51 UTC
The print dialogue seems to freeze konqueror too. 

It kinda crash but it froze so it didnt print out a stack trace.

Strangely enough, gimp and firefox print dialogue works fine
Comment 2 Albert Astals Cid 2014-01-12 18:28:09 UTC
As you can see (trace #21 and up) is crashing inside the QPrinter code, that is managed by the Qt project and not by us so it's not something we can directly fix. Please open a bug at https://bugreports.qt-project.org/

Thanks for caring about Okular :-)
Comment 3 idoitprone 2014-01-13 15:43:33 UTC
https://bugreports.qt-project.org/browse/QTBUG-36146

Submitted the bug to qt.
Comment 4 John Layt 2014-01-13 16:32:42 UTC
My comment on the Qt bug report: "This is a Fedora-specific bug, they have patched Qt to use cupsEnumDests() which Qt doesn't normally use (see bug https://bugzilla.redhat.com/show_bug.cgi?id=980952 where they did so).  Please raise this bug with Fedora, thanks!"