Bug 440159

Summary: Kontact Crashes on Printing
Product: [Applications] kontact Reporter: amaeder94
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description amaeder94 2021-07-22 13:57:14 UTC
Application: kontact (5.16.2 (20.12.2))

Qt Version: 5.15.2
Frameworks Version: 5.83.0
Operating System: Linux 5.13.4-200.fc34.x86_64 x86_64
Windowing System: X11
Drkonqi Version: 5.22.3
Distribution: Fedora 34 (KDE Plasma)

-- Information about the crash:
- What I was doing when the application crashed:
Opening the Print Dialog to print a message, selecting the network printer (CUPS, Windows Printer via SAMBA) and clicking "print")

Same thing also happens with any other kde application (Okular, KWrite, Kate,...) but printing to this printer works with command line (lpr) and other applications (Google Chrome, LibreOffice)

The crash can be reproduced every time.

-- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f3cd33070e7 in QTextCodec::toUnicode(char const*) const () at /lib64/libQt5Core.so.5
#5  0x00007f3ccaf2dbeb in QPageSetupWidget::pageSizeChanged() () at /lib64/libQt5PrintSupport.so.5
#6  0x00007f3cd32e2c99 in void doActivate<false>(QObject*, int, void**) () at /lib64/libQt5Core.so.5
#7  0x00007f3cd3e84615 in QComboBox::currentIndexChanged(int) () at /lib64/libQt5Widgets.so.5
#8  0x00007f3cd3e86c66 in QComboBoxPrivate::_q_emitCurrentIndexChanged(QModelIndex const&) () at /lib64/libQt5Widgets.so.5
#9  0x00007f3cd3e896f5 in QComboBoxPrivate::setCurrentIndex(QModelIndex const&) () at /lib64/libQt5Widgets.so.5
#10 0x00007f3cd3e89a63 in QComboBox::setCurrentIndex(int) () at /lib64/libQt5Widgets.so.5
#11 0x00007f3cd32e2ce0 in void doActivate<false>(QObject*, int, void**) () at /lib64/libQt5Core.so.5
#12 0x00007f3cd3260612 in QAbstractItemModel::rowsInserted(QModelIndex const&, int, int, QAbstractItemModel::QPrivateSignal) () at /lib64/libQt5Core.so.5
#13 0x00007f3cd3269292 in QAbstractItemModel::endInsertRows() () at /lib64/libQt5Core.so.5
#14 0x00007f3cd3a27b6a in QStandardItemPrivate::insertRows(int, int, QList<QStandardItem*> const&) () at /lib64/libQt5Gui.so.5
#15 0x00007f3cd3e8de64 in QComboBox::insertItem(int, QIcon const&, QString const&, QVariant const&) () at /lib64/libQt5Widgets.so.5
#16 0x00007f3ccaf2d1ed in QPageSetupWidget::initPageSizes() () at /lib64/libQt5PrintSupport.so.5
#17 0x00007f3ccaf2d52c in QPageSetupWidget::setPrinter(QPrinter*, QPrintDevice*, QPrinter::OutputFormat, QString const&) () at /lib64/libQt5PrintSupport.so.5
#18 0x00007f3ccaf23698 in QPrintPropertiesDialog::QPrintPropertiesDialog(QPrinter*, QPrintDevice*, QPrinter::OutputFormat, QString const&, QAbstractPrintDialog*) () at /lib64/libQt5PrintSupport.so.5
#19 0x00007f3ccaf238f9 in QUnixPrintWidgetPrivate::setupPrinterProperties() () at /lib64/libQt5PrintSupport.so.5
#20 0x00007f3ccaf23c44 in QUnixPrintWidgetPrivate::setupPrinter() () at /lib64/libQt5PrintSupport.so.5
#21 0x00007f3ccaf23d93 in QPrintDialogPrivate::setupPrinter() () at /lib64/libQt5PrintSupport.so.5
#22 0x00007f3ccaf245a3 in QPrintDialog::accept() () at /lib64/libQt5PrintSupport.so.5
#23 0x00007f3cd32e2ce0 in void doActivate<false>(QObject*, int, void**) () at /lib64/libQt5Core.so.5
#24 0x00007f3cd3f1e4b0 in QDialogButtonBoxPrivate::_q_handleButtonClicked() () at /lib64/libQt5Widgets.so.5
#25 0x00007f3cd32e2ce0 in void doActivate<false>(QObject*, int, void**) () at /lib64/libQt5Core.so.5
#26 0x00007f3cd3e722a6 in QAbstractButton::clicked(bool) () at /lib64/libQt5Widgets.so.5
#27 0x00007f3cd3e7252e in QAbstractButtonPrivate::emitClicked() () at /lib64/libQt5Widgets.so.5
#28 0x00007f3cd3e74154 in QAbstractButtonPrivate::click() () at /lib64/libQt5Widgets.so.5
#29 0x00007f3cd3e74377 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () at /lib64/libQt5Widgets.so.5
#30 0x00007f3cd3dbfdbe in QWidget::event(QEvent*) () at /lib64/libQt5Widgets.so.5
#31 0x00007f3cd3d7d423 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#32 0x00007f3cd3d85054 in QApplication::notify(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#33 0x00007f3cd32af098 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib64/libQt5Core.so.5
#34 0x00007f3cd3d83b37 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () at /lib64/libQt5Widgets.so.5
#35 0x00007f3cd3dd9530 in QWidgetWindow::handleMouseEvent(QMouseEvent*) () at /lib64/libQt5Widgets.so.5
#36 0x00007f3cd3ddc7c5 in QWidgetWindow::event(QEvent*) () at /lib64/libQt5Widgets.so.5
#37 0x00007f3cd3d7d423 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#38 0x00007f3cd32af098 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib64/libQt5Core.so.5
#39 0x00007f3cd36fadb8 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /lib64/libQt5Gui.so.5
#40 0x00007f3cd36dad0c in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Gui.so.5
#41 0x00007f3cb121c13e in xcbSourceDispatch(_GSource*, int (*)(void*), void*) () at /lib64/libQt5XcbQpa.so.5
#42 0x00007f3cca2374cf in g_main_context_dispatch () at /lib64/libglib-2.0.so.0
#43 0x00007f3cca28b4e8 in g_main_context_iterate.constprop () at /lib64/libglib-2.0.so.0
#44 0x00007f3cca234c03 in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#45 0x00007f3cd3300698 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#46 0x00007f3cd32adab2 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#47 0x00007f3cd3f8d3c2 in QDialog::exec() () at /lib64/libQt5Widgets.so.5
#48 0x00007f3c651698e3 in MessageViewer::ViewerPrivate::slotPrintMessage() () at /lib64/libKF5MessageViewer.so.5
#49 0x00007f3cd32e2c99 in void doActivate<false>(QObject*, int, void**) () at /lib64/libQt5Core.so.5
#50 0x00007f3c6516efd3 in MessageViewer::ViewerPrivate::updateReaderWin() () at /lib64/libKF5MessageViewer.so.5
#51 0x00007f3c651625dc in MessageViewer::ViewerPrivate::setMessageItem(Akonadi::Item const&, MimeTreeParser::UpdateMode, bool) () at /lib64/libKF5MessageViewer.so.5
#52 0x00007f3c6594f7d2 in KMPrintCommand::execute() () at /lib64/libkmailprivate.so.5
#53 0x00007f3c65947491 in KMCommand::slotPostTransfer(KMCommand::Result) () at /lib64/libkmailprivate.so.5
#54 0x00007f3cd32e2c99 in void doActivate<false>(QObject*, int, void**) () at /lib64/libQt5Core.so.5
#55 0x00007f3c65947cdb in KMCommand::slotJobFinished() () at /lib64/libkmailprivate.so.5
#56 0x00007f3cd32e2c99 in void doActivate<false>(QObject*, int, void**) () at /lib64/libQt5Core.so.5
#57 0x00007f3cd4414c90 in KJob::result(KJob*, KJob::QPrivateSignal) () at /lib64/libKF5CoreAddons.so.5
#58 0x00007f3cd441958b in KJob::finishJob(bool) () at /lib64/libKF5CoreAddons.so.5
#59 0x00007f3cd32d9809 in QObject::event(QEvent*) () at /lib64/libQt5Core.so.5
#60 0x00007f3cd3d7d423 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#61 0x00007f3cd32af098 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib64/libQt5Core.so.5
#62 0x00007f3cd32b2606 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /lib64/libQt5Core.so.5
#63 0x00007f3cd3300bf7 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () at /lib64/libQt5Core.so.5
#64 0x00007f3cca2374cf in g_main_context_dispatch () at /lib64/libglib-2.0.so.0
#65 0x00007f3cca28b4e8 in g_main_context_iterate.constprop () at /lib64/libglib-2.0.so.0
#66 0x00007f3cca234c03 in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#67 0x00007f3cd3300698 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#68 0x00007f3cd32adab2 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#69 0x00007f3cd32b5fe4 in QCoreApplication::exec() () at /lib64/libQt5Core.so.5
#70 0x000056034952057d in main ()
[Inferior 1 (process 21364) detached]

Possible duplicates by query: bug 440137, bug 439991, bug 439800, bug 439645, bug 439605.

Reported using DrKonqi