Bug 171252 - crash when saving jpg
Summary: crash when saving jpg
Status: RESOLVED DUPLICATE of bug 171430
Alias: None
Product: gwenview
Classification: Applications
Component: general (other bugs)
Version First Reported In: 2.1
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-18 07:41 UTC by Patrick
Modified: 2012-10-19 13:26 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick 2008-09-18 07:41:26 UTC
Version:           2.1 (using KDE 4.1.1)
OS:                Linux
Installed from:    SuSE RPMs

When resizing a jpg and saving the file by overwriting the original picture gwenview crashes. I have tried 3 times and it crashes.

See fatal error below (signal 11);

Application: Gwenview (gwenview), signal SIGSEGV
[?1034h(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0xb624c8e0 (LWP 7138)]
[New Thread 0xb479eb90 (LWP 7139)]
[KCrash handler]
#6  0xb7493e8a in QString::toLatin1 () from /usr/lib/libQtCore.so.4
#7  0xb749433f in QString::toAscii () from /usr/lib/libQtCore.so.4
#8  0x08066f39 in _start ()
#0  0xffffe430 in __kernel_vsyscall ()
Comment 1 Oliver Putz 2008-09-18 12:21:16 UTC
Hello,

Thanks for your report. Regrettably I cannot reproduce the crash. Can have a look at http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports, try to install the debugging packages for your distribution and post a more verbose backtrace for the crash?
Comment 2 Rui G. 2008-09-21 18:44:37 UTC
Oliver, it's quite easy to reproduce using these steps (I'm running trunk rev. 862826) :
-Open a .jpeg file.
-Save to the same .jpeg file.
-Watch it crash with the following backtrace, which is very different from the one posted above:

#0  0xb7f77410 in __kernel_vsyscall ()
#1  0xb6b66085 in raise () from /lib/tls/i686/cmov/libc.so.6
#2  0xb6b67a01 in abort () from /lib/tls/i686/cmov/libc.so.6
#3  0xb6e2aa1d in qt_message_output (msgType=QtFatalMsg,
    buf=0xbfe724b0 "ASSERT: \"typeList.count() > 0\" in file /home/kde-devel/kde/src/KDE/kdegraphics/gwenview/app/gvcore.cpp, line 225") at global/qglobal.cpp:2108
#4  0xb6e2aaa1 in qFatal (msg=0xb6f816b8 "ASSERT: \"%s\" in file %s, line %d") at global/qglobal.cpp:2309
#5  0xb6e2aef9 in qt_assert (assertion=0x8093c90 "typeList.count() > 0",
    file=0x8093c50 "/home/kde-devel/kde/src/KDE/kdegraphics/gwenview/app/gvcore.cpp", line=225)
    at global/qglobal.cpp:1878
#6  0x08067418 in Gwenview::GvCore::saveAs (this=0x8159e98, url=@0xbfe745a0)
    at /home/kde-devel/kde/src/KDE/kdegraphics/gwenview/app/gvcore.cpp:225
#7  0x0807f42d in Gwenview::MainWindow::saveCurrentAs (this=0x8161118)
    at /home/kde-devel/kde/src/KDE/kdegraphics/gwenview/app/mainwindow.cpp:1069
#8  0x08081939 in Gwenview::MainWindow::qt_metacall (this=0x8161118, _c=QMetaObject::InvokeMetaMethod, _id=26,
    _a=0xbfe746bc) at /home/kde-devel/kde/build/KDE/kdegraphics/gwenview/app/mainwindow.moc:154
#9  0xb6f3ecfd in QMetaObject::activate (sender=0x827a140, from_signal_index=5, to_signal_index=6, argv=0xbfe746bc)
    at kernel/qobject.cpp:3034
#10 0xb6f3ef06 in QMetaObject::activate (sender=0x827a140, m=0xb79980f8, from_local_signal_index=1,
    to_local_signal_index=2, argv=0xbfe746bc) at kernel/qobject.cpp:3127
#11 0xb7296f5e in QAction::triggered (this=0x827a140, _t1=false) at .moc/debug-shared/moc_qaction.cpp:216
#12 0xb7298b00 in QAction::activate (this=0x827a140, event=QAction::Trigger) at kernel/qaction.cpp:1131
#13 0xb76bd7f6 in QMenuPrivate::activateAction (this=0x82d97d8, action=0x827a140, action_e=QAction::Trigger,
    self=true) at widgets/qmenu.cpp:1008
#14 0xb76bffd7 in QMenu::mouseReleaseEvent (this=0x82c6ce8, e=0xbfe74e88) at widgets/qmenu.cpp:2175
#15 0xb7eab7fc in KMenu::mouseReleaseEvent (this=0x82c6ce8, e=0xbfe74e88)
    at /home/kde-devel/kde/src/KDE/kdelibs/kdeui/widgets/kmenu.cpp:452
#16 0xb72fc0b1 in QWidget::event (this=0x82c6ce8, event=0xbfe74e88) at kernel/qwidget.cpp:7169
#17 0xb76bb440 in QMenu::event (this=0x82c6ce8, e=0xbfe74e88) at widgets/qmenu.cpp:2271
#18 0xb729ed0d in QApplicationPrivate::notify_helper (this=0x80afa50, receiver=0x82c6ce8, e=0xbfe74e88)
    at kernel/qapplication.cpp:3809
#19 0xb729f7e1 in QApplication::notify (this=0xbfe756c8, receiver=0x82c6ce8, e=0xbfe74e88)
    at kernel/qapplication.cpp:3534
#20 0xb7dd8595 in KApplication::notify (this=0xbfe756c8, receiver=0x82c6ce8, event=0xbfe74e88)
    at /home/kde-devel/kde/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:307
---Type <return> to continue, or q <return> to quit---
#21 0xb6f29dc6 in QCoreApplication::notifyInternal (this=0xbfe756c8, receiver=0x82c6ce8, event=0xbfe74e88)
    at kernel/qcoreapplication.cpp:589
#22 0xb72aabe7 in QCoreApplication::sendSpontaneousEvent (receiver=0x82c6ce8, event=0xbfe74e88)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#23 0xb72a36e4 in QApplicationPrivate::sendMouseEvent (receiver=0x82c6ce8, event=0xbfe74e88,
    alienWidget=0x83d4070, nativeWidget=0x8161118, buttonDown=0xb79b6060, lastMouseReceiver=@0xb79b6064)
    at kernel/qapplication.cpp:2799
#24 0xb731dfdc in QETWidget::translateMouseEvent (this=0x8161118, event=0xbfe7541c)
    at kernel/qapplication_x11.cpp:3982
#25 0xb731b963 in QApplication::x11ProcessEvent (this=0xbfe756c8, event=0xbfe7541c)
    at kernel/qapplication_x11.cpp:3044
#26 0xb73482c1 in x11EventSourceDispatch (s=0x80b2978, callback=0, user_data=0x0)
    at kernel/qguieventdispatcher_glib.cpp:148
#27 0xb6502dd6 in IA__g_main_context_dispatch (context=0x80b1c88) at /build/buildd/glib2.0-2.16.4/glib/gmain.c:2012
#28 0xb6506193 in g_main_context_iterate (context=0x80b1c88, block=1, dispatch=1, self=0x80afd50)
    at /build/buildd/glib2.0-2.16.4/glib/gmain.c:2645
#29 0xb650674e in IA__g_main_context_iteration (context=0x80b1c88, may_block=1)
    at /build/buildd/glib2.0-2.16.4/glib/gmain.c:2708
#30 0xb6f59374 in QEventDispatcherGlib::processEvents (this=0x80afb88, flags=@0xbfe755b4)
    at kernel/qeventdispatcher_glib.cpp:325
#31 0xb7347adc in QGuiEventDispatcherGlib::processEvents (this=0x80afb88, flags=@0xbfe755e4)
    at kernel/qguieventdispatcher_glib.cpp:204
#32 0xb6f26c86 in QEventLoop::processEvents (this=0xbfe75660, flags=@0xbfe75624) at kernel/qeventloop.cpp:149
#33 0xb6f26ec5 in QEventLoop::exec (this=0xbfe75660, flags=@0xbfe75668) at kernel/qeventloop.cpp:196
#34 0xb6f2a5af in QCoreApplication::exec () at kernel/qcoreapplication.cpp:851
#35 0xb729ea26 in QApplication::exec () at kernel/qapplication.cpp:3337
#36 0x0807da97 in main (argc=134843372, argv=0x8161aa8)
    at /home/kde-devel/kde/src/KDE/kdegraphics/gwenview/app/main.cpp:93
Comment 3 Oliver Putz 2008-09-21 23:24:19 UTC
Hm, real saving (aka overwriting the old file) works fine for me (this does not necessarily mean anything though). However, when I really only open the file, and save it under another name, gwenview becomes unresponsive and crashes when I want to close it. As I am not sure if that related, I documented this behavior in bug #171430.
Comment 4 Aurelien Gateau 2008-09-29 15:32:39 UTC
Closed as duplicate of 171430 (reported later, but contains more details).

*** This bug has been marked as a duplicate of bug 171430 ***