https://bugs.kde.org/show_bug.cgi?id=356813
Bug ID: 356813 Summary: kwrite crashes if it is closed when the print dialog is open Product: kate Version: Git Platform: Compiled Sources OS: Linux Status: UNCONFIRMED Severity: crash Priority: NOR Component: kwrite Assignee: kwrite-bugs-n...@kde.org Reporter: santhiar.anir...@gmail.com I was trying to print a document using kwrite...the printer was taking too long to respond, so I quit kwrite from the command line, and kwrite crashed Reproducible: Always Steps to Reproduce: 1. Open kwrite 2. Say Ctrl + P, and while the print dialog is displayed 3. Quit kwrite as "qdbus `qdbus | grep kwrite` /kwrite/MainWindow_1/actions/file_quit trigger" Actual Results: kwrite crashes Expected Results: kwrite closes smoothly Version information: Qt: 4.8.7 KDE Development Platform: 4.14.13 KWrite: 4.14.13 KCrash backtrace: Application: KWrite (kwrite), signal: Segmentation fault Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [KCrash Handler] #6 0x00007f568695c9e8 in QScopedPointerDeleter<QPrintDialog>::cleanup (pointer=0x20780c0) at /home/Application: KWrite (kwrite), signal: Segmentation fault Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [KCrash Handler] #6 0x00007f568695c9e8 in QScopedPointerDeleter<QPrintDialog>::cleanup (pointer=0x20780c0) at qt4/include/QtCore/qscopedpointer.h:62 #7 0x00007f568695bf0f in QScopedPointer<QPrintDialog, QScopedPointerDeleter<QPrintDialog> >::~QScopedPointer (this=0x7fff1117f0d8) at qt4/include/QtCore/qscopedpointer.h:100 #8 0x00007f5686952663 in KatePrinter::print (doc=<optimized out>) at KDE/kde/applications/kate/part/utils/kateprinter.cpp:672 #9 0x00007f56866eaefd in KateDocument::print (this=0x20780c0) at KDE/kde/applications/kate/part/document/katedocument.cpp:1855 #10 0x00007f56866e90f4 in KateDocument::qt_static_metacall (_o=0x1a47f20, _c=<optimized out>, _id=<optimized out>, _a=0x7fff1117f490) at KDE/build/kde/applications/kate/part/katedocument.moc:267 #11 0x00007f5692577607 in QMetaObject::activate (sender=0x1ce2db0, m=0x7f5694f0d540 <QAction::staticMetaObject>, local_signal_index=1, argv=0x7fff1117f490) at kernel/qobject.cpp:3569 #12 0x00007f5693eef41d in QAction::triggered (this=0x1ce2db0, _t1=false) at .moc/debug-shared/moc_qaction.cpp:277 #13 0x00007f5693eef232 in QAction::activate (this=0x1ce2db0, event=QAction::Trigger) at kernel/qaction.cpp:1257 #14 0x00007f5693eef055 in QAction::event (this=0x1ce2db0, e=0x7fff11180428) at kernel/qaction.cpp:1183 #15 0x00007f56950d14ca in KAction::event (this=0x1ce2db0, event=0x7fff11180428) at KDE/kde/kdelibs/kdeui/actions/kaction.cpp:131 #16 0x00007f5693eff48f in QApplicationPrivate::notify_helper (this=0x1731f90, receiver=0x1ce2db0, e=0x7fff11180428) at kernel/qapplication.cpp:4565 #17 0x00007f5693f01a8e in QApplication::notify (this=0x7fff11182d30, receiver=0x1ce2db0, e=0x7fff11180428) at kernel/qapplication.cpp:3947 #18 0x00007f56952a2f7b in KApplication::notify (this=0x7fff11182d30, receiver=0x1ce2db0, event=0x7fff11180428) at KDE/kde/kdelibs/kdeui/kernel/kapplication.cpp:311 #19 0x00007f569254fdc6 in QCoreApplication::notifyInternal (this=0x7fff11182d30, receiver=0x1ce2db0, event=0x7fff11180428) at kernel/qcoreapplication.cpp:955 #20 0x00007f5693ef077a in QCoreApplication::sendEvent (receiver=0x1ce2db0, event=0x7fff11180428) at qt/src/gui/../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231 #21 0x00007f5693f55cdc in QShortcutMap::dispatchEvent (this=0x17320b8, e=0x7fff111813a0) at kernel/qshortcutmap.cpp:887 #22 0x00007f5693f556d9 in QShortcutMap::tryShortcutEvent (this=0x17320b8, o=0x1a54cd0, e=0x7fff111813a0) at kernel/qshortcutmap.cpp:367 #23 0x00007f5693f01eab in QApplication::notify (this=0x7fff11182d30, receiver=0x1a54cd0, e=0x7fff111813a0) at kernel/qapplication.cpp:3989 #24 0x00007f56952a2f7b in KApplication::notify (this=0x7fff11182d30, receiver=0x1a54cd0, event=0x7fff111813a0) at KDE/kde/kdelibs/kdeui/kernel/kapplication.cpp:311 #25 0x00007f569254fdc6 in QCoreApplication::notifyInternal (this=0x7fff11182d30, receiver=0x1a54cd0, event=0x7fff111813a0) at kernel/qcoreapplication.cpp:955 #26 0x00007f5693f0a02f in QCoreApplication::sendSpontaneousEvent (receiver=0x1a54cd0, event=0x7fff111813a0) at qt/src/gui/../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:234 #27 0x00007f5693f0589d in qt_sendSpontaneousEvent (receiver=0x1a54cd0, event=0x7fff111813a0) at kernel/qapplication.cpp:5563 #28 0x00007f569401335e in QKeyMapper::sendKeyEvent (keyWidget=0x1a54cd0, grab=false, type=QEvent::KeyPress, code=80, modifiers=..., text=..., autorepeat=false, count=1, nativeScanCode=33, nativeVirtualKey=112, nativeModifiers=4) at kernel/qkeymapper_x11.cpp:1866 #29 0x00007f5694012d41 in QKeyMapperPrivate::translateKeyEvent (this=0x1767e20, keyWidget=0x1a54cd0, event=0x7fff111829c8, grab=false) at kernel/qkeymapper_x11.cpp:1834 #30 0x00007f5693fcd0b4 in QApplication::x11ProcessEvent (this=0x7fff11182d30, event=0x7fff111829c8) at kernel/qapplication_x11.cpp:3535 #31 0x00007f5694017456 in QEventDispatcherX11::processEvents (this=0x1706cb0, flags=...) at kernel/qeventdispatcher_x11.cpp:151 #32 0x00007f569254af6c in QEventLoop::processEvents (this=0x7fff11182cc0, flags=...) at kernel/qeventloop.cpp:149 #33 0x00007f569254b332 in QEventLoop::exec (this=0x7fff11182cc0, flags=...) at kernel/qeventloop.cpp:225 #34 0x00007f56925505ee in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1229 #35 0x00007f5693f01526 in QApplication::exec () at kernel/qapplication.cpp:3823 #36 0x00007f5697d964cb in kdemain (argc=<optimized out>, argv=<optimized out>) at KDE/kde/applications/kate/kwrite/kwritemain.cpp:739 #37 0x00000000004009e1 in main (argc=34046144, argv=0x8) at KDE/build/kde/applications/kate/kwrite/kwrite_dummy.cpp:3 -- You are receiving this mail because: You are watching all bug changes.