Bug 400146 - Okular crashes when showing print preview
Summary: Okular crashes when showing print preview
Status: RESOLVED UPSTREAM
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.4.3
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords: drkonqi, triaged
Depends on:
Blocks:
 
Reported: 2018-10-22 09:13 UTC by a.key
Modified: 2018-11-07 21:31 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description a.key 2018-10-22 09:13:17 UTC
Application: okular (1.4.3)

Qt Version: 5.11.1
Frameworks Version: 5.50.0
Operating System: Linux 4.18.13-200.fc28.x86_64 x86_64
Distribution: "Fedora release 28 (Twenty Eight)"

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

Clicked on the print preview.
The application crashes every time I do this.

-- Backtrace:
Application: Okular (okular), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f1a0cb70940 (LWP 26685))]

Thread 4 (Thread 0x7f19de697700 (LWP 26750)):
#0  0x00007f1a150c451c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f1a16e52183 in QWaitCondition::wait(QMutex*, unsigned long) () from /lib64/libQt5Core.so.5
#2  0x00007f1a17e23cbd in QFileInfoGatherer::run() () from /lib64/libQt5Widgets.so.5
#3  0x00007f1a16e51b4b in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#4  0x00007f1a150be594 in start_thread () from /lib64/libpthread.so.0
#5  0x00007f1a16187e6f in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f19f3fb8700 (LWP 26687)):
#0  0x00007f1a170309eb in QTimerInfoList::timerWait(timespec&) () from /lib64/libQt5Core.so.5
#1  0x00007f1a17031f64 in timerSourcePrepareHelper(GTimerSource*, int*) () from /lib64/libQt5Core.so.5
#2  0x00007f1a17032012 in timerSourcePrepare(_GSource*, int*) () from /lib64/libQt5Core.so.5
#3  0x00007f1a0f799109 in g_main_context_prepare () from /lib64/libglib-2.0.so.0
#4  0x00007f1a0f799afb in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#5  0x00007f1a0f799cf0 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#6  0x00007f1a170322ab in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#7  0x00007f1a16fe0b7b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#8  0x00007f1a16e486b6 in QThread::exec() () from /lib64/libQt5Core.so.5
#9  0x00007f1a1728a7b9 in QDBusConnectionManager::run() () from /lib64/libQt5DBus.so.5
#10 0x00007f1a16e51b4b in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#11 0x00007f1a150be594 in start_thread () from /lib64/libpthread.so.0
#12 0x00007f1a16187e6f in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f19fd891700 (LWP 26686)):
#0  0x00007f1a1617d3e9 in poll () from /lib64/libc.so.6
#1  0x00007f1a1357f04f in _xcb_conn_wait () from /lib64/libxcb.so.1
#2  0x00007f1a13580caa in xcb_wait_for_event () from /lib64/libxcb.so.1
#3  0x00007f1a002435a9 in QXcbEventReader::run() () from /lib64/libQt5XcbQpa.so.5
#4  0x00007f1a16e51b4b in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#5  0x00007f1a150be594 in start_thread () from /lib64/libpthread.so.0
#6  0x00007f1a16187e6f in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f1a0cb70940 (LWP 26685)):
[KCrash Handler]
#6  0x00007f1a161ea7e7 in __strlen_avx2 () from /lib64/libc.so.6
#7  0x00007f1a17036ed4 in QTextCodec::toUnicode(char const*) const () from /lib64/libQt5Core.so.5
#8  0x00007f1a1508150f in QPPDOptionsModel::data(QModelIndex const&, int) const () from /lib64/libQt5PrintSupport.so.5
#9  0x00007f1a17e81ff0 in QStyledItemDelegate::initStyleOption(QStyleOptionViewItem*, QModelIndex const&) const () from /lib64/libQt5Widgets.so.5
#10 0x00007f1a17e815f6 in QStyledItemDelegate::sizeHint(QStyleOptionViewItem const&, QModelIndex const&) const () from /lib64/libQt5Widgets.so.5
#11 0x00007f1a17ec61ab in QTreeView::indexRowSizeHint(QModelIndex const&) const () from /lib64/libQt5Widgets.so.5
#12 0x00007f1a17ec779c in QTreeViewPrivate::itemHeight(int) const () from /lib64/libQt5Widgets.so.5
#13 0x00007f1a17ec90f6 in QTreeViewPrivate::updateScrollBars() () from /lib64/libQt5Widgets.so.5
#14 0x00007f1a17ed05f2 in QTreeView::updateGeometries() () from /lib64/libQt5Widgets.so.5
#15 0x00007f1a17e58a31 in QAbstractItemView::doItemsLayout() () from /lib64/libQt5Widgets.so.5
#16 0x00007f1a17ece94d in QTreeView::doItemsLayout() () from /lib64/libQt5Widgets.so.5
#17 0x00007f1a17ec1ead in QTreeView::resizeColumnToContents(int) () from /lib64/libQt5Widgets.so.5
#18 0x00007f1a1508075b in QPrintPropertiesDialog::showEvent(QShowEvent*) () from /lib64/libQt5PrintSupport.so.5
#19 0x00007f1a17c495c8 in QWidget::event(QEvent*) () from /lib64/libQt5Widgets.so.5
#20 0x00007f1a17c0a475 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#21 0x00007f1a17c11b90 in QApplication::notify(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#22 0x00007f1a16fe1c36 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#23 0x00007f1a17c45f9c in QWidgetPrivate::show_helper() () from /lib64/libQt5Widgets.so.5
#24 0x00007f1a17c49163 in QWidget::setVisible(bool) () from /lib64/libQt5Widgets.so.5
#25 0x00007f1a17dfc46e in QDialog::setVisible(bool) () from /lib64/libQt5Widgets.so.5
#26 0x00007f1a17dfbae5 in QDialog::exec() () from /lib64/libQt5Widgets.so.5
#27 0x00007f1a17009e1e in QMetaObject::activate(QObject*, int, int, void**) () from /lib64/libQt5Core.so.5
#28 0x00007f1a17cf28e6 in QAbstractButton::clicked(bool) () from /lib64/libQt5Widgets.so.5
#29 0x00007f1a17cf2b0e in QAbstractButtonPrivate::emitClicked() () from /lib64/libQt5Widgets.so.5
#30 0x00007f1a17cf3f63 in QAbstractButtonPrivate::click() () from /lib64/libQt5Widgets.so.5
#31 0x00007f1a17cf4135 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /lib64/libQt5Widgets.so.5
#32 0x00007f1a17c495c8 in QWidget::event(QEvent*) () from /lib64/libQt5Widgets.so.5
#33 0x00007f1a17c0a475 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#34 0x00007f1a17c11dd8 in QApplication::notify(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#35 0x00007f1a16fe1c36 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#36 0x00007f1a17c110cd in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /lib64/libQt5Widgets.so.5
#37 0x00007f1a17c64368 in QWidgetWindow::handleMouseEvent(QMouseEvent*) () from /lib64/libQt5Widgets.so.5
#38 0x00007f1a17c66f0e in QWidgetWindow::event(QEvent*) () from /lib64/libQt5Widgets.so.5
#39 0x00007f1a17c0a475 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#40 0x00007f1a17c11b90 in QApplication::notify(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#41 0x00007f1a16fe1c36 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#42 0x00007f1a176b7f43 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /lib64/libQt5Gui.so.5
#43 0x00007f1a176ba085 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /lib64/libQt5Gui.so.5
#44 0x00007f1a1769546b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Gui.so.5
#45 0x00007f1a002d67cf in QPAEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5XcbQpa.so.5
#46 0x00007f1a16fe0b7b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#47 0x00007f1a17dfbc1d in QDialog::exec() () from /lib64/libQt5Widgets.so.5
#48 0x00007f19f2882237 in Okular::Part::slotPrint() () from /usr/lib64/qt5/plugins/okularpart.so
#49 0x00007f19f292cd93 in Okular::Part::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib64/qt5/plugins/okularpart.so
#50 0x00007f1a16ff0611 in QMetaMethod::invoke(QObject*, Qt::ConnectionType, QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument) const () from /lib64/libQt5Core.so.5
#51 0x00007f1a16ff192c in QMetaObject::invokeMethod(QObject*, char const*, Qt::ConnectionType, QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument) () from /lib64/libQt5Core.so.5
#52 0x000056322bb109ea in Shell::print() ()
#53 0x000056322bb1a665 in Shell::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) [clone .part.17] ()
#54 0x000056322bb1a82e in Shell::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) ()
#55 0x00007f1a17009e1e in QMetaObject::activate(QObject*, int, int, void**) () from /lib64/libQt5Core.so.5
#56 0x00007f1a17c03c26 in QAction::triggered(bool) () from /lib64/libQt5Widgets.so.5
#57 0x00007f1a17c062f0 in QAction::activate(QAction::ActionEvent) () from /lib64/libQt5Widgets.so.5
#58 0x00007f1a17d7b47c in QMenuPrivate::activateCausedStack(QVector<QPointer<QWidget> > const&, QAction*, QAction::ActionEvent, bool) () from /lib64/libQt5Widgets.so.5
#59 0x00007f1a17d82b24 in QMenuPrivate::activateAction(QAction*, QAction::ActionEvent, bool) () from /lib64/libQt5Widgets.so.5
#60 0x00007f1a17d83b6b in QMenu::mouseReleaseEvent(QMouseEvent*) () from /lib64/libQt5Widgets.so.5
#61 0x00007f1a17c495c8 in QWidget::event(QEvent*) () from /lib64/libQt5Widgets.so.5
#62 0x00007f1a17d8621b in QMenu::event(QEvent*) () from /lib64/libQt5Widgets.so.5
#63 0x00007f1a17c0a475 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#64 0x00007f1a17c11dd8 in QApplication::notify(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#65 0x00007f1a16fe1c36 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#66 0x00007f1a17c110cd in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /lib64/libQt5Widgets.so.5
#67 0x00007f1a17c64723 in QWidgetWindow::handleMouseEvent(QMouseEvent*) () from /lib64/libQt5Widgets.so.5
#68 0x00007f1a17c66f0e in QWidgetWindow::event(QEvent*) () from /lib64/libQt5Widgets.so.5
#69 0x00007f1a17c0a475 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#70 0x00007f1a17c11b90 in QApplication::notify(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#71 0x00007f1a16fe1c36 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#72 0x00007f1a176b7f43 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /lib64/libQt5Gui.so.5
#73 0x00007f1a176ba085 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /lib64/libQt5Gui.so.5
#74 0x00007f1a1769546b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Gui.so.5
#75 0x00007f1a002d67cf in QPAEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5XcbQpa.so.5
#76 0x00007f1a16fe0b7b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#77 0x00007f1a16fe8c46 in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#78 0x000056322bb0ca15 in main ()

Reported using DrKonqi
Comment 1 Albert Astals Cid 2018-10-22 19:46:11 UTC
Does it also crash when you go to print->properties->advanced?

which printer do you have?
Comment 2 Andrew Crouthamel 2018-11-07 11:12:27 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 a.key 2018-11-07 11:55:29 UTC
It does crash when I click on Print->Properties when my default printer is set. With a different printer it doesn't.

I have couple of printers but the default is set to Xerox_WorkCentre-7425 which is a google-cloud-print printer.
Different google-cloud-print enabled (cups) printer doesn't crash when checking properties.
Comment 4 a.key 2018-11-07 12:14:58 UTC
It actually looks like any KDE application crashes when checking this particular printer's properties.

I tried re-adding the printer using:
sudo python /usr/share/cloudprint-cups/setupcloudprint.py

which gives the same result - crashes.
I also tried adding the printer manually in CUPS - same thing/crashes.
Comment 5 a.key 2018-11-07 12:27:28 UTC
OK It's probably more to do with the printing subsystem rather than okular. 
I managed to modify the printer's driver in CUPS. Rather than using the default google's driver I chose a manual PPD dedicated for this printer and it seems to have fixed it. So it looks like it's some printer settings that make the KDE printing subsystem crash.
Comment 6 a.key 2018-11-07 12:28:09 UTC
Info provided.
Comment 7 Albert Astals Cid 2018-11-07 21:31:07 UTC
So not an Okular bug. Please open a bug against Qt printing subsystem.