Version: (using KDE Devel) Installed from: Compiled sources OS: Linux Step to reproduce crash: 1) start ksnapshot 2) make a screenshot 3) click "save as" button 4) in the "save as" dialog window select a file format (or rename the file) different from .png. 5) ksnapshot will crash :-(
I cannot confirm that - build from 2007-11-30
Revision 745527. It works.
ksnapshot crashes all the time when trying to save capture as JPG. KDE 4.1.3 openSUSE 11.0 Saving as PNG works fine.
Anwendung: KSnapshot (ksnapshot), Signal SIGSEGV [?1034h[Thread debugging using libthread_db enabled] [New Thread 0xb61726d0 (LWP 6943)] [KCrash handler] #6 0xb722577b in KDirModelNode::rowNumber (this=0x0) at /usr/src/debug/kdelibs-4.1.3/kio/kio/kdirmodel.cpp:97 #7 0xb72288f2 in KDirModelPrivate::_k_slotDeleteItems (this=0x81eda10, items=@0xbf925028) at /usr/src/debug/kdelibs-4.1.3/kio/kio/kdirmodel.cpp:444 #8 0xb722a1ad in KDirModel::qt_metacall (this=0x81ed570, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0xbf924f8c) at /usr/src/debug/kdelibs-4.1.3/build/kio/kdirmodel.moc:77 #9 0xb7e19740 in QMetaObject::activate (sender=0x81ed508, from_signal_index=16, to_signal_index=16, argv=0xbf924f8c) at kernel/qobject.cpp:3031 #10 0xb7e1a4c2 in QMetaObject::activate (sender=0x81ed508, m=0xb737345c, local_signal_index=12, argv=0xbf924f8c) at kernel/qobject.cpp:3101 #11 0xb7212963 in KDirLister::itemsDeleted (this=0x81ed508, _t1=@0xbf925028) at /usr/src/debug/kdelibs-4.1.3/build/kio/kdirlister.moc:277 #12 0xb721ae11 in KDirLister::emitChanges (this=0x81ed508) at /usr/src/debug/kdelibs-4.1.3/kio/kio/kdirlister.cpp:1977 #13 0xb472be27 in KDirOperator::updateDir (this=0x81ed660) at /usr/src/debug/kdelibs-4.1.3/kfile/kdiroperator.cpp:947 #14 0xb474b0a8 in KFileWidgetPrivate::_k_slotFilterChanged (this=0x8108240) at /usr/src/debug/kdelibs-4.1.3/kfile/kfilewidget.cpp:1269 #15 0xb474b2d3 in KFileWidget::qt_metacall (this=0x8164968, _c=QMetaObject::InvokeMetaMethod, _id=14, _a=0xbf925148) at /usr/src/debug/kdelibs-4.1.3/build/kfile/kfilewidget.moc:125 #16 0xb7e19740 in QMetaObject::activate (sender=0x81f26b8, from_signal_index=67, to_signal_index=67, argv=0x0) at kernel/qobject.cpp:3031 #17 0xb7e1a4c2 in QMetaObject::activate (sender=0x81f26b8, m=0xb47777e0, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3101 #18 0xb4740587 in KFileFilterCombo::filterChanged (this=0x81f26b8) at /usr/src/debug/kdelibs-4.1.3/build/kfile/kfilefiltercombo.moc:80 #19 0xb47406c4 in KFileFilterCombo::setCurrentFilter (this=0x81f26b8, filter=@0xbf925214) at /usr/src/debug/kdelibs-4.1.3/kfile/kfilefiltercombo.cpp:134 #20 0xb474865c in KFileWidgetPrivate::updateFilter (this=0x8108240) at /usr/src/debug/kdelibs-4.1.3/kfile/kfilewidget.cpp:2041 #21 0xb4748723 in KFileWidgetPrivate::_k_slotLocationChanged (this=0x8108240, text=@0xbf925554) at /usr/src/debug/kdelibs-4.1.3/kfile/kfilewidget.cpp:1443 #22 0xb474b374 in KFileWidget::qt_metacall (this=0x8164968, _c=QMetaObject::InvokeMetaMethod, _id=8, _a=0xbf92537c) at /usr/src/debug/kdelibs-4.1.3/build/kfile/kfilewidget.moc:119 #23 0xb7e19740 in QMetaObject::activate (sender=0x820de58, from_signal_index=27, to_signal_index=27, argv=0xbf92537c) at kernel/qobject.cpp:3031 #24 0xb7e1a4c2 in QMetaObject::activate (sender=0x820de58, m=0xb7040a78, local_signal_index=0, argv=0xbf92537c) at kernel/qobject.cpp:3101 #25 0xb6becde3 in QComboBox::editTextChanged (this=0x820de58, _t1=@0xbf925554) at .moc/release-shared/moc_qcombobox.cpp:243 #26 0xb6bf6a1e in QComboBox::qt_metacall (this=0x820de58, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbf92550c) at .moc/release-shared/moc_qcombobox.cpp:156 #27 0xb79d811a in KComboBox::qt_metacall (this=0x820de58, _c=QMetaObject::InvokeMetaMethod, _id=27, _a=0xbf92550c) at /usr/src/debug/kdelibs-4.1.3/build/kdeui/kcombobox.moc:99 #28 0xb731eb5a in KUrlComboBox::qt_metacall (this=0x820de58, _c=QMetaObject::InvokeMetaMethod, _id=27, _a=0xbf92550c) at /usr/src/debug/kdelibs-4.1.3/build/kio/kurlcombobox.moc:69 #29 0xb7e19740 in QMetaObject::activate (sender=0x80bb090, from_signal_index=27, to_signal_index=27, argv=0xbf92550c) at kernel/qobject.cpp:3031 #30 0xb7e1a4c2 in QMetaObject::activate (sender=0x80bb090, m=0xb7041ce8, local_signal_index=0, argv=0xbf92550c) at kernel/qobject.cpp:3101 #31 0xb6c2f753 in QLineEdit::textChanged (this=0x80bb090, _t1=@0xbf925554) at .moc/release-shared/moc_qlineedit.cpp:208 #32 0xb6c35c14 in QLineEditPrivate::finishChange (this=0x820fc90, validateFromState=0, update=false, edited=true) at widgets/qlineedit.cpp:2877 #33 0xb6c3786b in QLineEdit::insert (this=0x80bb090, newText=@0xbf9255b8) at widgets/qlineedit.cpp:1355 #34 0xb6c38508 in QLineEdit::keyPressEvent (this=0x80bb090, event=0xbf925dec) at widgets/qlineedit.cpp:2098 #35 0xb79f6fa5 in KLineEdit::keyPressEvent (this=0x80bb090, e=0xbf925dec) at /usr/src/debug/kdelibs-4.1.3/kdeui/widgets/klineedit.cpp:875 #36 0xb68ea90e in QWidget::event (this=0x80bb090, event=0xbf925dec) at kernel/qwidget.cpp:7198 #37 0xb6c36047 in QLineEdit::event (this=0x80bb090, e=0xbf925dec) at widgets/qlineedit.cpp:1630 #38 0xb79f8fda in KLineEdit::event (this=0x80bb090, ev=0xbf925dec) at /usr/src/debug/kdelibs-4.1.3/kdeui/widgets/klineedit.cpp:1296 #39 0xb6bf3014 in QComboBox::keyPressEvent (this=0x820de58, e=0xbf925dec) at widgets/qcombobox.cpp:2816 #40 0xb68ea90e in QWidget::event (this=0x820de58, event=0xbf925dec) at kernel/qwidget.cpp:7198 #41 0xb6bf16df in QComboBox::event (this=0x820de58, event=0xbf925dec) at widgets/qcombobox.cpp:2633 #42 0xb689282c in QApplicationPrivate::notify_helper (this=0x80722c8, receiver=0x820de58, e=0xbf925dec) at kernel/qapplication.cpp:3803 #43 0xb689b7a6 in QApplication::notify (this=0xbf927804, receiver=0x820de58, e=0xbf925dec) at kernel/qapplication.cpp:3447 #44 0xb793a31d in KApplication::notify (this=0xbf927804, receiver=0x820de58, event=0xbf925dec) at /usr/src/debug/kdelibs-4.1.3/kdeui/kernel/kapplication.cpp:311 #45 0xb7e04a71 in QCoreApplication::notifyInternal (this=0xbf927804, receiver=0x820de58, event=0xbf925dec) at kernel/qcoreapplication.cpp:587 #46 0xb68f34ee in qt_sendSpontaneousEvent (receiver=0x820de58, event=0x0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:212 #47 0xb69285d0 in QKeyMapper::sendKeyEvent (keyWidget=0x820de58, grab=false, type=QEvent::KeyPress, code=71, modifiers={i = -1080926400}, text=@0xbf925f64, autorepeat=<value optimized out>, count=<value optimized out>, nativeScanCode=42, nativeVirtualKey=103, nativeModifiers=16) at kernel/qkeymapper_x11.cpp:1655 #48 0xb692a746 in QKeyMapperPrivate::translateKeyEvent (this=0x80966a8, keyWidget=0x820de58, event=0xbf92655c, grab=false) at kernel/qkeymapper_x11.cpp:1626 #49 0xb6902c1d in QApplication::x11ProcessEvent (this=0xbf927804, event=0xbf92655c) at kernel/qapplication_x11.cpp:3053 #50 0xb692c1ec in x11EventSourceDispatch (s=0x80751b8, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:142 #51 0xb64842d9 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #52 0xb648785b in ?? () from /usr/lib/libglib-2.0.so.0 #53 0xb64879d8 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #54 0xb7e2f208 in QEventDispatcherGlib::processEvents (this=0x8072418, flags= {i = -1080924392}) at kernel/qeventdispatcher_glib.cpp:319 #55 0xb692b8b5 in QGuiEventDispatcherGlib::processEvents (this=0x8072418, flags={i = -1080924344}) at kernel/qguieventdispatcher_glib.cpp:198 #56 0xb7e0314a in QEventLoop::processEvents (this=0xbf9267bc, flags= {i = -1080924280}) at kernel/qeventloop.cpp:143 #57 0xb7e0330a in QEventLoop::exec (this=0xbf9267bc, flags={i = -1080924220}) at kernel/qeventloop.cpp:194 #58 0xb6cffab7 in QDialog::exec (this=0xbf926808) at dialogs/qdialog.cpp:447 #59 0x08054fc8 in KSnapshot::slotSaveAs (this=0x80e48a8) at /usr/src/debug/kdegraphics-4.1.3/ksnapshot/ksnapshot.cpp:223 #60 0x08055855 in KSnapshot::qt_metacall (this=0x80e48a8, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0xbf92697c) at /usr/src/debug/kdegraphics-4.1.3/build/ksnapshot/ksnapshot.moc:209 #61 0xb7e19740 in QMetaObject::activate (sender=0x80e0388, from_signal_index=29, to_signal_index=30, argv=0xbf92697c) at kernel/qobject.cpp:3031 #62 0xb7e19b40 in QMetaObject::activate (sender=0x80e0388, m=0xb704d2c4, from_local_signal_index=2, to_local_signal_index=3, argv=0xbf92697c) at kernel/qobject.cpp:3121 #63 0xb6e81721 in QAbstractButton::clicked (this=0x80e0388, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:185 #64 0xb6bd4089 in QAbstractButtonPrivate::emitClicked (this=0x8136b88) at widgets/qabstractbutton.cpp:538 #65 0xb6bd5bf4 in QAbstractButtonPrivate::click (this=0x8136b88) at widgets/qabstractbutton.cpp:531 #66 0xb6bd5e86 in QAbstractButton::mouseReleaseEvent (this=0x80e0388, e=0xbf926f58) at widgets/qabstractbutton.cpp:1110 #67 0xb68eaa52 in QWidget::event (this=0x80e0388, event=0xbf926f58) at kernel/qwidget.cpp:7163 #68 0xb6bd3f2e in QAbstractButton::event (this=0x80e0388, e=0xbf926f58) at widgets/qabstractbutton.cpp:1072 #69 0xb6c7a920 in QPushButton::event (this=0x80e0388, e=0xbf926f58) at widgets/qpushbutton.cpp:652 #70 0xb689282c in QApplicationPrivate::notify_helper (this=0x80722c8, receiver=0x80e0388, e=0xbf926f58) at kernel/qapplication.cpp:3803 #71 0xb689b081 in QApplication::notify (this=0xbf927804, receiver=0x80e0388, e=0xbf926f58) at kernel/qapplication.cpp:3528 #72 0xb793a31d in KApplication::notify (this=0xbf927804, receiver=0x80e0388, event=0xbf926f58) at /usr/src/debug/kdelibs-4.1.3/kdeui/kernel/kapplication.cpp:311 #73 0xb7e04a71 in QCoreApplication::notifyInternal (this=0xbf927804, receiver=0x80e0388, event=0xbf926f58) at kernel/qcoreapplication.cpp:587 #74 0xb689a30e in QApplicationPrivate::sendMouseEvent (receiver=0x80e0388, event=0xbf926f58, alienWidget=0x80e0388, nativeWidget=0x80e48a8, buttonDown=0xb7053c90, lastMouseReceiver=@0xb7053c94) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:212 #75 0xb6904766 in QETWidget::translateMouseEvent (this=0x80e48a8, event=0xbf92752c) at kernel/qapplication_x11.cpp:4042 #76 0xb6903b0d in QApplication::x11ProcessEvent (this=0xbf927804, event=0xbf92752c) at kernel/qapplication_x11.cpp:3038 #77 0xb692c1ec in x11EventSourceDispatch (s=0x80751b8, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:142 #78 0xb64842d9 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #79 0xb648785b in ?? () from /usr/lib/libglib-2.0.so.0 #80 0xb64879d8 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #81 0xb7e2f208 in QEventDispatcherGlib::processEvents (this=0x8072418, flags= {i = -1080920344}) at kernel/qeventdispatcher_glib.cpp:319 #82 0xb692b8b5 in QGuiEventDispatcherGlib::processEvents (this=0x8072418, flags={i = -1080920296}) at kernel/qguieventdispatcher_glib.cpp:198 #83 0xb7e0314a in QEventLoop::processEvents (this=0xbf927790, flags= {i = -1080920232}) at kernel/qeventloop.cpp:143 #84 0xb7e0330a in QEventLoop::exec (this=0xbf927790, flags={i = -1080920168}) at kernel/qeventloop.cpp:194 #85 0xb7e059a5 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:845 #86 0xb68926a7 in QApplication::exec () at kernel/qapplication.cpp:3331 #87 0x08052f38 in main (argc=3, argv=0xbf9279a4) at /usr/src/debug/kdegraphics-4.1.3/ksnapshot/main.cpp:83 #0 0xffffe430 in __kernel_vsyscall ()
From the stack trace this looks like a bug in kfiledialog rather than ksnapshot itself. Reassigning.
(In reply to comment #5) > From the stack trace this looks like a bug in kfiledialog rather than ksnapshot > itself. Reassigning. BTW Version 0.8.1 is not selectable in bugtracker but installed here.
Looks better in KDE 4.2 Beta 2 (4.1.87)
Someone can confirm that the crash is really fixed ? I'm not able to reproduce the one on ksnapshot and I can save files using other applications. So probably it has been fixed.
Marking as WORKSFORME. This could be related to bug 176066