Bug 201035 - krita crashed after using undo after disabling Open GL mode
Summary: krita crashed after using undo after disabling Open GL mode
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-21 22:31 UTC by Russ Brown
Modified: 2016-12-30 11:17 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Russ Brown 2009-07-21 22:31:10 UTC
Application that crashed: krita
Version of the application: 2.0.1
KDE Version: 4.2.96 (KDE 4.2.96 (KDE 4.3 RC2))
Qt Version: 4.5.0
Operating System: Linux 2.6.28-13-generic x86_64
Distribution: Ubuntu 9.04

What I was doing when the application crashed:
I was basically playing with krita when this happened, so this is hopefully close to what I did to cause this:

1. Loaded up an image and looked in the settings.
2. Saw the open GL mode and enabled it.
3. Exited from settings.
4. Saw that the image was garbled.
5. Drew something random on the image with a random tool, then hit undo
6. Went back into settings and turned off Open GL mode
7. Exited from settings and hit undo again
8. Crash


 -- Backtrace:
Application: Krita (kdeinit4), signal: Segmentation fault
[KCrash Handler]
#4  KoCompositeOp::id (this=0x0) at /usr/include/qt4/QtCore/qstring.h:711
#5  0x00007f8b9bd0c5ea in KisCmbComposite::setCurrent (this=0x353d810, op=0x0) at /build/buildd/koffice2-2.0.1/krita/ui/widgets/kis_cmb_composite.cc:124
#6  0x00007f8b9bc7b7e6 in KisLayerBox::slotSetCompositeOp (this=0x3553be0, compositeOp=0x0) at /build/buildd/koffice2-2.0.1/krita/ui/kis_layer_box.cpp:257
#7  0x00007f8b9bc7c0d7 in KisLayerBox::updateUI (this=0x3553be0) at /build/buildd/koffice2-2.0.1/krita/ui/kis_layer_box.cpp:241
#8  0x00007f8b9bc8251f in KisLayerBox::qt_metacall (this=0x3553be0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffaca7e540)
    at /build/buildd/koffice2-2.0.1/obj-x86_64-linux-gnu/krita/ui/kis_layer_box.moc:122
#9  0x00007f8ba45811f2 in QMetaObject::activate (sender=0x2252040, from_signal_index=<value optimized out>, to_signal_index=11, argv=0x35eca00) at kernel/qobject.cpp:3069
#10 0x00007f8ba45b7b14 in QAbstractItemModel::rowsRemoved (this=0x7fffaca7e240, _t1=<value optimized out>, _t2=0, _t3=0) at .moc/release-shared/moc_qabstractitemmodel.cpp:173
#11 0x00007f8ba4566265 in QAbstractItemModel::endRemoveRows (this=0x2252040) at kernel/qabstractitemmodel.cpp:2131
#12 0x00007f8b9bc9e7c5 in KisNodeModel::qt_metacall (this=0x2252040, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffaca7e770)
    at /build/buildd/koffice2-2.0.1/obj-x86_64-linux-gnu/krita/ui/kis_node_model.moc:99
#13 0x00007f8ba45811f2 in QMetaObject::activate (sender=0x2b63070, from_signal_index=<value optimized out>, to_signal_index=18, argv=0x35eca00) at kernel/qobject.cpp:3069
#14 0x00007f8b9b8c56a0 in KisImage::sigNodeHasBeenRemoved (this=0x7fffaca7e240, _t1=0x2c363a0, _t2=1) at /build/buildd/koffice2-2.0.1/obj-x86_64-linux-gnu/krita/image/kis_image.moc:227
#15 0x00007f8b9b8c756a in KisImage::nodeHasBeenRemoved (this=0x7fffaca7e240, parent=0x0, index=55429377) at /build/buildd/koffice2-2.0.1/krita/image/kis_image.cc:191
#16 0x00007f8b9b8d9bbb in KisNode::remove (this=0x2c363a0, index=1) at /build/buildd/koffice2-2.0.1/krita/image/kis_node.cpp:263
#17 0x00007f8b9b8d9cfd in KisNode::remove (this=0x2c363a0, node={d = 0x7fffaca7e8e0}) at /build/buildd/koffice2-2.0.1/krita/image/kis_node.cpp:276
#18 0x00007f8b9b8da6cf in KisNodeFacade::removeNode (this=<value optimized out>, node={d = 0x7fffaca7e930}) at /build/buildd/koffice2-2.0.1/krita/image/kis_node_facade.cpp:146
#19 0x00007f8b9b899d80 in KisImageLayerAddCommand::undo (this=0x35fc460) at /build/buildd/koffice2-2.0.1/krita/image/commands/kis_image_layer_add_command.cpp:65
#20 0x00007f8ba21320e1 in QUndoStack::undo (this=<value optimized out>) at util/qundostack.cpp:661
#21 0x00007f8ba2140db8 in QUndoStack::qt_metacall (this=0x224e330, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffaca7ea90) at .moc/release-shared/moc_qundostack.cpp:99
#22 0x00007f8ba45811f2 in QMetaObject::activate (sender=0x224ed40, from_signal_index=<value optimized out>, to_signal_index=6, argv=0x35eca00) at kernel/qobject.cpp:3069
#23 0x00007f8ba1aee7e7 in QAction::triggered (this=0x7fffaca7e240, _t1=false) at .moc/release-shared/moc_qaction.cpp:236
#24 0x00007f8ba1aefc60 in QAction::activate (this=0x224ed40, event=<value optimized out>) at kernel/qaction.cpp:1160
#25 0x00007f8ba1af2777 in QAction::event (this=0x7fffaca7e240, e=<value optimized out>) at kernel/qaction.cpp:1079
#26 0x00007f8ba1af478d in QApplicationPrivate::notify_helper (this=0x1b7a4b0, receiver=0x224ed40, e=0x7fffaca7ef60) at kernel/qapplication.cpp:4084
#27 0x00007f8ba1afc97a in QApplication::notify (this=0x7fffaca805d0, receiver=0x224ed40, e=0x7fffaca7ef60) at kernel/qapplication.cpp:4049
#28 0x00007f8ba2c3763b in KApplication::notify (this=0x7fffaca805d0, receiver=0x224ed40, event=0x7fffaca7ef60) at /build/buildd/kde4libs-4.2.96/kdeui/kernel/kapplication.cpp:302
#29 0x00007f8ba456b75c in QCoreApplication::notifyInternal (this=0x7fffaca805d0, receiver=0x224ed40, event=0x7fffaca7ef60) at kernel/qcoreapplication.cpp:602
#30 0x00007f8ba1b2a05d in QShortcutMap::dispatchEvent (this=<value optimized out>, e=0x7fffaca7f460) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#31 0x00007f8ba1b2bebc in QShortcutMap::tryShortcutEvent (this=0x1b7a5c8, o=<value optimized out>, e=0x7fffaca7f460) at kernel/qshortcutmap.cpp:369
#32 0x00007f8ba1afd9a1 in QApplication::notify (this=0x7fffaca805d0, receiver=0x33098a0, e=0x7fffaca7f460) at kernel/qapplication.cpp:3673
#33 0x00007f8ba2c3763b in KApplication::notify (this=0x7fffaca805d0, receiver=0x33098a0, event=0x7fffaca7f460) at /build/buildd/kde4libs-4.2.96/kdeui/kernel/kapplication.cpp:302
#34 0x00007f8ba456b75c in QCoreApplication::notifyInternal (this=0x7fffaca805d0, receiver=0x33098a0, event=0x7fffaca7f460) at kernel/qcoreapplication.cpp:602
#35 0x00007f8ba1b896b4 in QKeyMapper::sendKeyEvent (keyWidget=0x33098a0, grab=<value optimized out>, type=QEvent::KeyPress, code=90, modifiers={i = -1398278512}, text=@0x7fffaca7f680, 
    autorepeat=false, count=1, nativeScanCode=52, nativeVirtualKey=122, nativeModifiers=20) at kernel/qkeymapper_x11.cpp:1675
#36 0x00007f8ba1b8ba12 in QKeyMapperPrivate::translateKeyEvent (this=0x1bac580, keyWidget=0x33098a0, event=0x7fffaca80250, grab=false) at kernel/qkeymapper_x11.cpp:1645
#37 0x00007f8ba1b645bd in QApplication::x11ProcessEvent (this=0x7fffaca805d0, event=0x7fffaca80250) at kernel/qapplication_x11.cpp:3436
#38 0x00007f8ba1b8d464 in x11EventSourceDispatch (s=0x1b7e110, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#39 0x00007f8ba055220a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#40 0x00007f8ba05558e0 in ?? () from /usr/lib/libglib-2.0.so.0
#41 0x00007f8ba0555a7c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#42 0x00007f8ba4594e6f in QEventDispatcherGlib::processEvents (this=0x1a6fe70, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:323
#43 0x00007f8ba1b8cbef in QGuiEventDispatcherGlib::processEvents (this=0x7fffaca7e240, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#44 0x00007f8ba456a002 in QEventLoop::processEvents (this=<value optimized out>, flags={i = -1398274752}) at kernel/qeventloop.cpp:149
#45 0x00007f8ba456a3cd in QEventLoop::exec (this=0x7fffaca80580, flags={i = -1398274672}) at kernel/qeventloop.cpp:200
#46 0x00007f8ba456c694 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:880
#47 0x00007f8b9bf92905 in kdemain (argc=<value optimized out>, argv=<value optimized out>) at /build/buildd/koffice2-2.0.1/krita/main.cc:44
#48 0x0000000000407215 in launch (argc=2, _name=0x1aacb88 "/usr/bin/krita", args=<value optimized out>, cwd=0x0, envc=1, envs=0x1aacbcb "", reset_env=false, tty=0x0, avoid_loops=false, 
    startup_id_str=0x1aacbd4 "dorian;1248207146;549634;10329_TIME16798986") at /build/buildd/kde4libs-4.2.96/kinit/kinit.cpp:676
#49 0x0000000000407a38 in handle_launcher_request (sock=7, who=<value optimized out>) at /build/buildd/kde4libs-4.2.96/kinit/kinit.cpp:1168
#50 0x0000000000407fe5 in handle_requests (waitForPid=0) at /build/buildd/kde4libs-4.2.96/kinit/kinit.cpp:1361
#51 0x0000000000408b26 in main (argc=2, argv=0x7fffaca81308, envp=0x7fffaca81320) at /build/buildd/kde4libs-4.2.96/kinit/kinit.cpp:1788

Reported using DrKonqi
Comment 1 Halla Rempt 2009-08-06 12:09:30 UTC
Thanks for your report.
Comment 2 Halla Rempt 2009-09-16 21:38:18 UTC
Now I need a computer that supports opengl at all to check... Lukas could you check this?
Comment 3 LukasT 2009-09-16 23:08:05 UTC
I noticed just this:

QObject::connect: Cannot connect KoMainWindow::restoringDone() to (null)::removeUnusedOptionWidgets()

but I could not reproduce the crash.

How reproducible is this crash?
Can you reproduce it again?
Comment 4 Russ Brown 2009-09-16 23:16:31 UTC
Hmm, unfortunately not. At least, if the bug is still present then I'm not doing the correct steps in order to reproduce it.

I do however still get image garbling when switching opengl mode on and off. Just no crash.

It may be relevant that I am now running krita 2.0.2: maybe the crash problem has been solved in this version?
Comment 5 Halla Rempt 2009-09-20 14:29:50 UTC
The image garbling may be caused by the graphics card driver -- as you no doubt know, graphics drivers in Linux are currently in a transitionally state from crap to possibly half way decent, but in-between we're in a stage of unbelievable crap.

That said... I might also be a bug in our opengl code. Which graphics card and driver are you using, and do you have a compositing window manager enabled?

With Kubuntu jaunty on an intel gma chip and no desktop effects, I don't get any garbling - but on OpenSUSE with a similar setup, I get a flickering canvas and dialogs aren't shown.
Comment 6 Halla Rempt 2009-09-20 15:16:13 UTC
The actual crash doesn't seem to occur and the code references in the backtrace doesn't exist anymore.