Bug 188554 - Crash on 'paste as new'
Summary: Crash on 'paste as new'
Status: RESOLVED UPSTREAM
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-31 17:26 UTC by R. Seete
Modified: 2009-04-03 15:16 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description R. Seete 2009-03-31 17:26:45 UTC
Version:           1.9.98.7 (using KDE 4.2.1)
Compiler:          GCC 4.3 
OS:                Linux
Installed from:    SuSE RPMs

When attempting to 'paste as new' Krita crashes.  The crash also occurs if one has two Krita windows open and attempts to paste a rectangular selection from one window with an image into the blank second window.

This crash seems to be highly similar to the resolved Bug 182970, so this may be openSUSE specific...however it happens consistently.  Also, the crash occurs on the first attempt to paste rather than a second attempt.



Application: Krita (krita), signal SIGSEGV
[?1034h[Thread debugging using libthread_db enabled]
0x00007f57122b1ce1 in nanosleep () from /lib64/libc.so.6
[Current thread is 1 (Thread 0x7f571a769790 (LWP 6467))]

Thread 1 (Thread 0x7f571a769790 (LWP 6467)):
[KCrash Handler]
#5  0x00007f5715f47145 in cmsDoTransform () from /usr/lib64/liblcms.so.1
#6  0x00007f571690caa6 in KoLcmsColorSpace<KoRgbTraits<unsigned char> >::fromQColor (this=0x4241fa0, color=@0x7fff228b1910, dst=0x40bdb00 "", koprofile=0x0)
    at /usr/src/debug/koffice-1.9.98.7/libs/pigment/KoLcmsColorSpace.h:217
#7  0x00007f571954b9b4 in KisPaintDevice (this=0x425a7e0, parent={d = 0x610d460, dataPtr = {d = 0x7fff228b1910}}, colorSpace=<value optimized out>, name=<value optimized out>)
    at /usr/src/debug/koffice-1.9.98.7/krita/image/kis_paint_device.cc:119
#8  0x00007f5719553b07 in KisPaintLayer (this=0x2493800, img=<value optimized out>, name=@0x7fff228b1b40, opacity=<value optimized out>, colorSpace=0x42bec50)
    at /usr/src/debug/koffice-1.9.98.7/krita/image/kis_paint_layer.cc:84
#9  0x00007f571994dd0e in KisSelectionManager::pasteNew (this=<value optimized out>) at /usr/src/debug/koffice-1.9.98.7/krita/ui/kis_selection_manager.cc:522
#10 0x00007f5719951bf5 in KisSelectionManager::qt_metacall (this=0x81a6a0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=<value optimized out>)
    at /usr/src/debug/koffice-1.9.98.7/build/krita/ui/kis_selection_manager.moc:106
#11 0x00007f5719fb09c2 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQtCore.so.4
#12 0x00007f57130c1ef7 in QAction::triggered(bool) () from /usr/lib64/libQtGui.so.4
#13 0x00007f57130c3370 in QAction::activate(QAction::ActionEvent) () from /usr/lib64/libQtGui.so.4
#14 0x00007f57134d5fcc in ?? () from /usr/lib64/libQtGui.so.4
#15 0x00007f57134dbfee in ?? () from /usr/lib64/libQtGui.so.4
#16 0x00007f5714a0b391 in KMenu::mouseReleaseEvent(QMouseEvent*) () from /usr/lib64/libkdeui.so.5
#17 0x00007f5713118ded in QWidget::event(QEvent*) () from /usr/lib64/libQtGui.so.4
#18 0x00007f57134de7ab in QMenu::event(QEvent*) () from /usr/lib64/libQtGui.so.4
#19 0x00007f57130c7e8d in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#20 0x00007f57130d07fa in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#21 0x00007f5714940c6b in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#22 0x00007f5719f9af3c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#23 0x00007f57130cfa48 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&) () from /usr/lib64/libQtGui.so.4
#24 0x00007f57131394c4 in ?? () from /usr/lib64/libQtGui.so.4
#25 0x00007f5713137f78 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib64/libQtGui.so.4
#26 0x00007f571315f394 in ?? () from /usr/lib64/libQtGui.so.4
#27 0x00007f57117570db in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#28 0x00007f571175a8ad in ?? () from /usr/lib64/libglib-2.0.so.0
#29 0x00007f571175aa6b in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#30 0x00007f5719fc465f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#31 0x00007f571315eb1f in ?? () from /usr/lib64/libQtGui.so.4
#32 0x00007f5719f997d2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#33 0x00007f5719f99b9d in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#34 0x00007f5719f9be84 in QCoreApplication::exec() () from /usr/lib64/libQtCore.so.4
#35 0x00007f571a292965 in kdemain (argc=<value optimized out>, argv=<value optimized out>) at /usr/src/debug/koffice-1.9.98.7/krita/main.cc:59
#36 0x00007f571222e586 in __libc_start_main () from /lib64/libc.so.6
#37 0x00000000004008f9 in _start () at ../sysdeps/x86_64/elf/start.S:113
Comment 1 Cyrille Berger 2009-03-31 20:01:17 UTC
I can't reproduce, might be an opensuse problem, or 64bits problem.
Comment 2 R. Seete 2009-04-01 05:04:58 UTC
Maybe this is an openSUSE issue.  The openSUSE packages are being used against Qt 4.5.  The distribution is supposed to publish KDE 4.2.2 packages shortly, hopefully they will also include some sort of refresh of Qt & Krita as well.  

Will retest scenario against new packages when they are published.  Are there any other variations of this scenario or methods you'd like included for the next go-round?
Comment 3 Cyrille Berger 2009-04-01 10:42:02 UTC
I have asked to some of our developer who use OpenSuSE to reproduce, and one of them was able to reproduce, with a different backtrace (but that might be because he have build krita in debug mode, while packages are probably not). From the look of both backtraces, it sounds more like a problem with color profiles. For some reason, either the profile got corrupted or a wrong profile is used.

Here is his backtrace:

Application: Krita (krita), signal SIGABRT
[?1034h[Thread debugging using libthread_db enabled]
[Current thread is 1 (Thread 0xb3f28920 (LWP 9587))]
 
Thread 1 (Thread 0xb3f28920 (LWP 9587)):
[KCrash Handler]
#6  0xffffe430 in __kernel_vsyscall ()
#7  0xb4b90990 in raise () from /lib/libc.so.6
#8  0xb4b922c8 in abort () from /lib/libc.so.6
#9  0xb7d9c345 in qt_message_output (msgType=QtFatalMsg, buf=0x99a4598 "ASSERT: \"profileIsCompatible(p)\" in file /home/boud/kde/src/koffice/libs/pigment/KoLcmsColorSpace.h, line 138")
    at global/qglobal.cpp:2006
#10 0xb7d9c431 in qFatal (msg=0xb7eeb698 "ASSERT: \"%s\" in file %s, line %d") at global/qglobal.cpp:2201
#11 0xb7d9c515 in qt_assert (assertion=0xb7159754 "profileIsCompatible(p)", file=0xb71595d0 "/home/boud/kde/src/koffice/libs/pigment/KoLcmsColorSpace.h", line=138) at global/qglobal.cpp:1777
#12 0xb713fbb5 in KoRgbU8ColorSpace (this=0x82df4d0, p=0x84755f8) at /home/boud/kde/src/koffice/libs/pigment/KoLcmsColorSpace.h:138
#13 0xb7121251 in KoRgbU8ColorSpaceFactory::createColorSpace (this=0x8d05e98, p=0x8567c48) at /home/boud/kde/src/koffice/libs/pigment/colorspaces/KoRgbU8ColorSpace.h:67
#14 0xb711d536 in KoColorSpaceRegistry::colorSpace (this=0x8436c70, csID=@0xbf9d8098, profile=0x8567c48) at /home/boud/kde/src/koffice/libs/pigment/KoColorSpaceRegistry.cpp:396
#15 0xb7b9dadc in KisClipboard::clip (this=0x84cffc0) at /home/boud/kde/src/koffice/krita/ui/kis_clipboard.cc:184
#16 0xb7c24608 in KisSelectionManager::pasteNew (this=0x922b688) at /home/boud/kde/src/koffice/krita/ui/kis_selection_manager.cc:502
#17 0xb7c2bd4d in KisSelectionManager::qt_metacall (this=0x922b688, _c=QMetaObject::InvokeMetaMethod, _id=7, _a=0xbf9d831c) at /home/boud/kde/build/koffice/krita/ui/kis_selection_manager.moc:107
#18 0xb7eaec88 in QMetaObject::activate (sender=0x9242338, from_signal_index=5, to_signal_index=6, argv=0xbf9d831c) at kernel/qobject.cpp:3069
#19 0xb7eaf0c0 in QMetaObject::activate (sender=0x9242338, m=0xb57cc1c8, from_local_signal_index=1, to_local_signal_index=2, argv=0xbf9d831c) at kernel/qobject.cpp:3163
#20 0xb4f4d8e1 in QAction::triggered (this=0x9242338, _t1=false) at .moc/release-shared/moc_qaction.cpp:236
#21 0xb4f4ee5f in QAction::activate (this=0x9242338, event=QAction::Trigger) at kernel/qaction.cpp:1160
#22 0xb53ab65c in QMenuPrivate::activateCausedStack (this=0x996b970, causedStack=@0xbf9d83f8, action=0x9242338, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:962
#23 0xb53b1deb in QMenuPrivate::activateAction (this=0x996b970, action=0x9242338, action_e=QAction::Trigger, self=<value optimized out>) at widgets/qmenu.cpp:1058
#24 0xb53b28c2 in QMenu::mouseReleaseEvent (this=0x994f460, e=0xbf9d8a38) at widgets/qmenu.cpp:2252
#25 0xb5ea3d45 in KMenu::mouseReleaseEvent (this=0x994f460, e=0xbf9d8a38) at /usr/src/debug/kdelibs-4.2.1/kdeui/widgets/kmenu.cpp:454
#26 0xb4faaaf3 in QWidget::event (this=0x994f460, event=0xbf9d8a38) at kernel/qwidget.cpp:7516
#27 0xb53b4ca9 in QMenu::event (this=0x994f460, e=0xbf9d8a38) at widgets/qmenu.cpp:2351
#28 0xb4f53eec in QApplicationPrivate::notify_helper (this=0x807b210, receiver=0x994f460, e=0xbf9d8a38) at kernel/qapplication.cpp:4084
#29 0xb4f5cb21 in QApplication::notify (this=0xbf9d932c, receiver=0x994f460, e=0xbf9d8a38) at kernel/qapplication.cpp:3786
#30 0xb5dc4b1d in KApplication::notify (this=0xbf9d932c, receiver=0x994f460, event=0xbf9d8a38) at /usr/src/debug/kdelibs-4.2.1/kdeui/kernel/kapplication.cpp:307
#31 0xb7e989db in QCoreApplication::notifyInternal (this=0xbf9d932c, receiver=0x994f460, event=0xbf9d8a38) at kernel/qcoreapplication.cpp:602
#32 0xb4f5bb8e in QApplicationPrivate::sendMouseEvent (receiver=0x994f460, event=0xbf9d8a38, alienWidget=0x0, nativeWidget=0x994f460, buttonDown=0xb57e4a20, lastMouseReceiver=@0xb57e4a24)
    at ../../src/corelib/kernel/qcoreapplication.h:216
#33 0xb4fcbb6e in QETWidget::translateMouseEvent (this=0x994f460, event=0xbf9d907c) at kernel/qapplication_x11.cpp:4357
#34 0xb4fcac27 in QApplication::x11ProcessEvent (this=0xbf9d932c, event=0xbf9d907c) at kernel/qapplication_x11.cpp:3419
#35 0xb4ff43ca in x11EventSourceDispatch (s=0x807e0a0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#36 0xb4ab59a8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#37 0xb4ab9063 in ?? () from /usr/lib/libglib-2.0.so.0
#38 0xb4ab9221 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#39 0xb7ec4428 in QEventDispatcherGlib::processEvents (this=0x80792f0, flags={i = -1080192456}) at kernel/qeventdispatcher_glib.cpp:323
#40 0xb4ff3ac5 in QGuiEventDispatcherGlib::processEvents (this=0x80792f0, flags={i = -1080192408}) at kernel/qguieventdispatcher_glib.cpp:202
#41 0xb7e96ffa in QEventLoop::processEvents (this=0xbf9d92e0, flags={i = -1080192344}) at kernel/qeventloop.cpp:149
#42 0xb7e9743a in QEventLoop::exec (this=0xbf9d92e0, flags={i = -1080192280}) at kernel/qeventloop.cpp:200
#43 0xb7e998e9 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:880
#44 0xb4f53d67 in QApplication::exec () at kernel/qapplication.cpp:3553
#45 0xb7fb992d in kdemain (argc=1, argv=0xbf9d9424) at /home/boud/kde/src/koffice/krita/main.cc:44
#46 0x08048892 in main (argc=) at /home/boud/kde/build/koffice/krita/krita_dummy.cpp:3
Comment 4 Halla Rempt 2009-04-03 15:16:22 UTC
This is also caused by a buggy lcms -- upgrade to 1.18 or downgrade to a version without "fixes" for the "security issue" that was applied to lcms 1.17.