Bug 374562 - Random crash when moving/transforming a layer
Summary: Random crash when moving/transforming a layer
Status: RESOLVED WORKSFORME
Alias: None
Product: krita
Classification: Applications
Component: General (other bugs)
Version First Reported In: 3.1.1
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2017-01-04 21:49 UTC by supaiku
Modified: 2018-10-28 03:15 UTC (History)
3 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 supaiku 2017-01-04 21:49:41 UTC
On a client Krita crashes several times a day, seemingly random. But most often related to Move/Transform Layer operations.

On Ubuntu 16.04 LTS using the Krita 3.1.1 Snap. I don't know how a Snap application is supposed to be debugged or where it logs to.

dmesg only reports:
krita[9200]: segfault at 10000000f ip 00007ff4db6d046f sp 00007ffcb7bc7cc0 error 4 in libc-2.23.so[7ff4db64f000+1c0000]

I know that's pretty useless, but maybe it's familiar for someone? Any ideas how to track down the cause? Maybe I should let the client use a source build Krita...
Comment 1 supaiku 2017-01-04 22:59:20 UTC
I forgot to mention that the typical workspace has 100+ layers and uses up to 1GB+ memory.

The memory of the workstation is (according to memtest) not faulty. The graphics card in use is a Radeon R7 using the open source driver.

In the last hour there were some more crashes, dmesg alternates between these outputs...


krita[14619] general protection ip:7f88ee9755a1 sp:7ffc2c5416a0 error:0 in libc-2.23.so[7f88ee8f7000+1c0000]

or
krita[11677]: segfault at 50 ip 00007f528bd129b2 sp 00007ffd7edda310 error 4 in libkritaimage.so.16.0.0[7f528bbf7000+501000]

or the one from first post:
krita[9200]: segfault at 10000000f ip 00007ff4db6d046f sp 00007ffcb7bc7cc0 error 4 in libc-2.23.so[7ff4db64f000+1c0000]


Any ideas?
Comment 2 z-uo 2017-01-21 15:44:17 UTC
I also experience this bug. 
It occurs (sometimes) when I hit enter or I switch tool after using the transform tool on a selection. 
Sometimes with big document open but also with tiny ones.
I use the last appimage on a ubuntu 16.10
Comment 3 Halla Rempt 2017-01-23 14:51:53 UTC
Hi Supaiku,

Could you also check with the appimage? If that also crashes for you, then we might have to make a special version with debug symbols for you, since these messages aren't useful for figuring out what is going on. If you could share one of your images, that might also be useful. Unfortunately, the lime ppa isn't available for 16.04 :-(

Z-uo, since you're using 16.10, you could install Krita using the lime ppa together with the debug symbols. That way you can give us a useful backtrace when you reproduce the crash: https://launchpad.net/~kritalime/+archive/ubuntu/ppa
Comment 4 z-uo 2017-01-23 16:02:15 UTC
(In reply to Boudewijn Rempt from comment #3)
> Hi Supaiku,
> 
> Could you also check with the appimage? If that also crashes for you, then
> we might have to make a special version with debug symbols for you, since
> these messages aren't useful for figuring out what is going on. If you could
> share one of your images, that might also be useful. Unfortunately, the lime
> ppa isn't available for 16.04 :-(
> 
> Z-uo, since you're using 16.10, you could install Krita using the lime ppa
> together with the debug symbols. That way you can give us a useful backtrace
> when you reproduce the crash:
> https://launchpad.net/~kritalime/+archive/ubuntu/ppa

Ok I just install throug the ppa but where can I find the debug symbols, there is a page about Dr. Mingw for windows on the wiki but I didn't find information for linux...
A new crash just made a crash report which was "sent" but I dont know where...
Do you have a page on how to make useful crash report on linux?
Comment 5 supaiku 2017-01-24 21:42:09 UTC
Hi Boudewijn Rempt,

I already ditched 16.04 in favor of 16.10 and the lime ppa. It is - subjectively - much more stable. Though some occasional crashes are still there.

Same question as z-uo: Where are the debug symbols? The ppa only contains krita and krita-testing.
Comment 6 Halla Rempt 2017-01-25 08:56:16 UTC
Hm... I'm not making the ppa builds myself. Maybe they aren't even stripped then? I need to ask Dmitry when he comes back from his vacation.
Comment 7 supaiku 2017-02-19 23:46:01 UTC
I found a reliable way to provoke a crash. Today it happened again on the client mentioned above, while using the transform tool, BUT this time someone could tell me exactly what was pressed. He was using the transform tool and pressed B. So I fired up Krita on my Arch Linux and played on an empty canvas with the tranform tool.

1. STRG + T
2. Rotate a bit...
3. Press B / E randomly
4. Alternate between 3. and 4.
5. Eventually Krita closes.

I could reproduce it again and again. So I compiled Krita from source and attached gdb.
(Note: I'm using a different graphics driver than the client, but I guess the cause is the same)

Here's the stacktrace:

Thread 1 "krita" received signal SIGSEGV, Segmentation fault.
0x00007fffec250258 in malloc_consolidate () from /usr/lib/libc.so.6
(gdb) bt
#0  0x00007fffec250258 in malloc_consolidate () from /usr/lib/libc.so.6
#1  0x00007fffec250e40 in _int_free () from /usr/lib/libc.so.6
#2  0x00007fffd6c5cdc4 in ?? () from /usr/lib/libdrm_intel.so.1
#3  0x00007fffd6c5d01e in ?? () from /usr/lib/libdrm_intel.so.1
#4  0x00007fffd724b3c9 in ?? () from /usr/lib/xorg/modules/dri/i965_dri.so
#5  0x00007fffd6fbe3ac in ?? () from /usr/lib/xorg/modules/dri/i965_dri.so
#6  0x00007ffff75d7194 in Sync::syncStatus (syncObject=0x1ca63bb0) at /home/supaiku/hacking/krita-git/libs/ui/opengl/kis_opengl_canvas2_p.h:109
#7  0x00007ffff75d8d2e in KisOpenGLCanvas2::isBusy (this=0x18c516f0) at /home/supaiku/hacking/krita-git/libs/ui/opengl/kis_opengl_canvas2.cpp:423
#8  0x00007ffff73adc5c in KisCanvas2::slotDoCanvasUpdate (this=0x18c26008) at /home/supaiku/hacking/krita-git/libs/ui/canvas/kis_canvas2.cpp:664
#9  0x00007ffff783f39f in KisCanvas2::qt_static_metacall (_o=0x18c26008, _c=QMetaObject::InvokeMetaMethod, _id=23, _a=0x7fffffffd240)
    at /home/supaiku/hacking/build-krita-git-Desktop-Debug/libs/ui/kritaui_automoc.dir/moc_kis_canvas2_LX4NUNHD4DUJWF.cpp:202
#10 0x00007fffed0cdd49 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQt5Core.so.5
#11 0x00007ffff62fe72f in KisSignalCompressor::timeout (this=0x18c57320) at /home/supaiku/hacking/build-krita-git-Desktop-Debug/libs/image/kritaimage_automoc.dir/moc_kis_signal_com_NQZINSG4MKTJFA.cpp:144
#12 0x00007ffff617441b in KisSignalCompressor::start (this=0x18c57320) at /home/supaiku/hacking/krita-git/libs/image/kis_signal_compressor.cpp:63
#13 0x00007ffff73ade32 in KisCanvas2::updateCanvasWidgetImpl (this=0x18c26008, rc=...) at /home/supaiku/hacking/krita-git/libs/ui/canvas/kis_canvas2.cpp:687
#14 0x00007ffff73ade61 in KisCanvas2::updateCanvas (this=0x18c26008) at /home/supaiku/hacking/krita-git/libs/ui/canvas/kis_canvas2.cpp:692
#15 0x00007fff9c3e2d61 in KisToolTransform::deactivate (this=0x18f0b2f0) at /home/supaiku/hacking/krita-git/plugins/tools/tool_transform2/kis_tool_transform.cc:825
#16 0x00007ffff5191670 in KoToolManager::Private::disconnectActiveTool (this=0x16e84110) at /home/supaiku/hacking/krita-git/libs/flake/KoToolManager.cpp:608
#17 0x00007ffff51918bc in KoToolManager::Private::switchTool (this=0x16e84110, tool=0x18d65430, temporary=false) at /home/supaiku/hacking/krita-git/libs/flake/KoToolManager.cpp:635
#18 0x00007ffff5191b1d in KoToolManager::Private::switchTool (this=0x16e84110, id=..., temporary=false) at /home/supaiku/hacking/krita-git/libs/flake/KoToolManager.cpp:663
#19 0x00007ffff518f60b in KoToolManager::switchToolRequested (this=0x7ffff54e70d0 <_ZZN12_GLOBAL__N_116Q_QGS_s_instance13innerFunctionEvE6holder>, id=...)
    at /home/supaiku/hacking/krita-git/libs/flake/KoToolManager.cpp:316
#20 0x00007ffff518e51f in ShortcutToolAction::actionTriggered (this=0x190a4a90) at /home/supaiku/hacking/krita-git/libs/flake/KoToolManager_p.cpp:262
#21 0x00007ffff525629f in ShortcutToolAction::qt_static_metacall (_o=0x190a4a90, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fffffffd610)
    at /home/supaiku/hacking/build-krita-git-Desktop-Debug/libs/flake/kritaflake_automoc.dir/moc_KoToolManager__CHRU4NQGN3E7OY.cpp:320
#22 0x00007fffed0cdd49 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQt5Core.so.5
#23 0x00007fffedf81c92 in QAction::triggered(bool) () from /usr/lib/libQt5Widgets.so.5
#24 0x00007fffedf843f0 in QAction::activate(QAction::ActionEvent) () from /usr/lib/libQt5Widgets.so.5
#25 0x00007fffedf84d6c in QAction::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5
#26 0x00007fffedf8834c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#27 0x00007fffedf8fb61 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#28 0x00007ffff776cb11 in KisApplication::notify (this=0x7fffffffdf30, receiver=0x190a4a90, event=0x7fffffffd9d0) at /home/supaiku/hacking/krita-git/libs/ui/KisApplication.cpp:532
#29 0x00007fffed0a2440 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#30 0x00007fffed61cf28 in QShortcutMap::dispatchEvent(QKeyEvent*) () from /usr/lib/libQt5Gui.so.5
#31 0x00007fffed61cfe9 in QShortcutMap::tryShortcut(QKeyEvent*) () from /usr/lib/libQt5Gui.so.5
#32 0x00007fffed5d15af in QWindowSystemInterface::handleShortcutEvent(QWindow*, unsigned long, int, QFlags<Qt::KeyboardModifier>, unsigned int, unsigned int, unsigned int, QString const&, bool, unsigned short)
    () from /usr/lib/libQt5Gui.so.5
#33 0x00007fffed5ec504 in QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*) () from /usr/lib/libQt5Gui.so.5
#34 0x00007fffed5f18a5 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib/libQt5Gui.so.5
#35 0x00007fffed5cd44b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Gui.so.5
#36 0x00007fffe1f4f9e0 in ?? () from /usr/lib/libQt5XcbQpa.so.5
#37 0x00007fffe8247587 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#38 0x00007fffe82477f0 in ?? () from /usr/lib/libglib-2.0.so.0
#39 0x00007fffe824789c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#40 0x00007fffed0f704f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#41 0x00007fffed0a089a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#42 0x00007fffed0a8de4 in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
#43 0x0000000000408e7d in main (argc=1, argv=0x7fffffffe5e8) at /home/supaiku/hacking/krita-git/krita/main.cc:258
Comment 8 supaiku 2017-02-19 23:51:04 UTC
I forgot to add, that I got a lot of prints of:

krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to continuePrimaryAction while being mode 0 !
krita.general: Unexpected tool event has come to endPrimaryAction while being mode 0 !
Comment 9 supaiku 2017-03-03 20:02:49 UTC
Hey,

I located another crash with a different stacktrace and I'm sure that's a completely different issue, but it's also related to Layer Transform.

Whenever it happened, I was about to apply the transform by hitting enter.


*** Error in `/home/supaiku/hacking/krita-install/bin/krita': malloc(): memory corruption (fast): 0x000000001f579cef ***
======= Backtrace: =========
/usr/lib/libc.so.6(+0x70c4b)[0x7fffec249c4b]
/usr/lib/libc.so.6(+0x76fe6)[0x7fffec24ffe6]
/usr/lib/libc.so.6(+0x79411)[0x7fffec252411]
/usr/lib/libc.so.6(__libc_malloc+0x54)[0x7fffec253d44]
/usr/lib/libQt5Core.so.5(_ZN11QMetaObject8activateEP7QObjectiiPPv+0x2a0)[0x7fffed0cd9b0]
/home/supaiku/hacking/krita-install/bin/../lib64/libkritaimage.so.16(_ZN24KisQueuesProgressUpdater15sigStartTickingEv+0x29)[0x7ffff62fe111]
/home/supaiku/hacking/krita-install/bin/../lib64/libkritaimage.so.16(_ZN24KisQueuesProgressUpdater14updateProgressEiRK7QString+0xf6)[0x7ffff61410a0]
/home/supaiku/hacking/krita-install/bin/../lib64/libkritaimage.so.16(_ZN18KisUpdateScheduler14progressUpdateEv+0x11b)[0x7ffff613e221]
/home/supaiku/hacking/krita-install/bin/../lib64/libkritaimage.so.16(_ZN18KisUpdateScheduler13processQueuesEv+0x1b8)[0x7ffff613f2ac]
/home/supaiku/hacking/krita-install/bin/../lib64/libkritaimage.so.16(_ZN18KisUpdateScheduler9endStrokeE12QWeakPointerI9KisStrokeE+0x57)[0x7ffff613eb3b]
/home/supaiku/hacking/krita-install/bin/../lib64/libkritaimage.so.16(_ZN8KisImage9endStrokeE12QWeakPointerI9KisStrokeE+0x42)[0x7ffff615e18e]
/home/supaiku/hacking/krita-install/lib64/kritaplugins/kritatooltransform.so(+0x310d5)[0x7fffa43d70d5]
/home/supaiku/hacking/krita-install/lib64/kritaplugins/kritatooltransform.so(+0x2fdea)[0x7fffa43d5dea]
/home/supaiku/hacking/krita-install/lib64/kritaplugins/kritatooltransform.so(+0xca487)[0x7fffa4470487]
/usr/lib/libQt5Core.so.5(_ZN11QMetaObject8activateEP7QObjectiiPPv+0x639)[0x7fffed0cdd49]
/home/supaiku/hacking/krita-install/bin/../lib64/libkritaimage.so.16(_ZN8KisImage21sigStrokeEndRequestedEv+0x29)[0x7ffff62fac9d]
/home/supaiku/hacking/krita-install/bin/../lib64/libkritaimage.so.16(_ZN8KisImage16requestStrokeEndEv+0x18)[0x7ffff615e2ea]
/home/supaiku/hacking/krita-install/bin/../lib64/libkritaui.so.16(+0x586422)[0x7ffff76e2422]
/home/supaiku/hacking/krita-install/bin/../lib64/libkritaui.so.16(_ZN18KisShortcutMatcher30tryRunSingleActionShortcutImplIN2Qt3KeyE6QEventEEbT_PT0_RK4QSetIS2_E+0x1a4)[0x7ffff76eb2fc]
/home/supaiku/hacking/krita-install/bin/../lib64/libkritaui.so.16(_ZN18KisShortcutMatcher10keyPressedEN2Qt3KeyE+0x5f)[0x7ffff76e9593]
/home/supaiku/hacking/krita-install/bin/../lib64/libkritaui.so.16(_ZN15KisInputManager15eventFilterImplEP6QEvent+0x2f4)[0x7ffff76d58d6]
/home/supaiku/hacking/krita-install/bin/../lib64/libkritaui.so.16(_ZN15KisInputManager11eventFilterEP7QObjectP6QEvent+0x1da)[0x7ffff76d55e0]
[New Thread 0x7fff8574f700 (LWP 26970)]
/usr/lib/libQt5Core.so.5(_ZN23QCoreApplicationPrivate29sendThroughObjectEventFiltersEP7QObjectP6QEvent+0x111)[0x7fffed0a21a1]
/usr/lib/libQt5Widgets.so.5(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0x75)[0x7fffedf88325]
/usr/lib/libQt5Widgets.so.5(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x1c2e)[0x7fffedf9152e]
[New Thread 0x7fff79ffd700 (LWP 26971)]
/home/supaiku/hacking/krita-install/bin/../lib64/libkritaui.so.16(_ZN14KisApplication6notifyEP7QObjectP6QEvent+0x45)[0x7ffff776cb11]
/usr/lib/libQt5Core.so.5(_ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent+0x110)[0x7fffed0a2440]
/usr/lib/libQt5Widgets.so.5(+0x1b7e1b)[0x7fffedfece1b]
/usr/lib/libQt5Widgets.so.5(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0x9c)[0x7fffedf8834c]
/usr/lib/libQt5Widgets.so.5(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x261)[0x7fffedf8fb61]
/home/supaiku/hacking/krita-install/bin/../lib64/libkritaui.so.16(_ZN14KisApplication6notifyEP7QObjectP6QEvent+0x45)[0x7ffff776cb11]
/usr/lib/libQt5Core.so.5(_ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent+0x110)[0x7fffed0a2440]
/usr/lib/libQt5Gui.so.5(_ZN22QGuiApplicationPrivate15processKeyEventEPN29QWindowSystemInterfacePrivate8KeyEventE+0xe8)[0x7fffed5ec4b8]
/usr/lib/libQt5Gui.so.5(_ZN22QGuiApplicationPrivate24processWindowSystemEventEPN29QWindowSystemInterfacePrivate17WindowSystemEventE+0x115)[0x7fffed5f18a5]
/usr/lib/libQt5Gui.so.5(_ZN29QWindowSystemInterfacePrivate24processWindowSystemEventEPNS_17WindowSystemEventE+0x45)[0x7fffed5ce2b5]
/usr/lib/libQt5Gui.so.5(_ZN22QWindowSystemInterface19handleShortcutEventEP7QWindowmi6QFlagsIN2Qt16KeyboardModifierEEjjjRK7QStringbt+0x128)[0x7fffed5d1568]
/usr/lib/libQt5Gui.so.5(_ZN22QGuiApplicationPrivate15processKeyEventEPN29QWindowSystemInterfacePrivate8KeyEventE+0x134)[0x7fffed5ec504]
/usr/lib/libQt5Gui.so.5(_ZN22QGuiApplicationPrivate24processWindowSystemEventEPN29QWindowSystemInterfacePrivate17WindowSystemEventE+0x115)[0x7fffed5f18a5]
/usr/lib/libQt5Gui.so.5(_ZN22QWindowSystemInterface22sendWindowSystemEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0xbb)[0x7fffed5cd44b]
/usr/lib/libQt5XcbQpa.so.5(+0x9a9e0)[0x7fffe1f4f9e0]
/usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x2a7)[0x7fffe82475a7]
/usr/lib/libglib-2.0.so.0(+0x4a810)[0x7fffe8247810]
/usr/lib/libglib-2.0.so.0(g_main_context_iteration+0x2c)[0x7fffe82478bc]
/usr/lib/libQt5Core.so.5(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x5f)[0x7fffed0f704f]
/usr/lib/libQt5Core.so.5(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0xfa)[0x7fffed0a089a]
/usr/lib/libQt5Core.so.5(_ZN16QCoreApplication4execEv+0x94)[0x7fffed0a8de4]
/home/supaiku/hacking/krita-install/bin/krita(main+0x11b9)[0x408e7d]
/usr/lib/libc.so.6(__libc_start_main+0xf1)[0x7fffec1f9291]
/home/supaiku/hacking/krita-install/bin/krita(_start+0x2a)[0x407b4a]
Comment 10 supaiku 2017-03-03 20:04:46 UTC
May be noteworthy, that it (subjectively) only happens when I'm transforming a Layer inside a Group Layer.
Comment 11 Dmitry Kazakov 2017-03-29 15:05:16 UTC
Hi, supaiku!

Could you please clarify what these steps exactly? I guess there is some misprint:

1. STRG + T
2. Rotate a bit...
3. Press B / E randomly
4. Alternate between 3. and 4.
5. Eventually Krita closes.


What do B and E do? And What are the steps 3 and 4?

I tried to switch tool quickly, but couldn't reproduce the issue. 

Could you also try the newest packages? I have fixed one tool switch crash there (although it looked a bit different from yours)

https://download.kde.org/unstable/krita/3.1.3-alpha.1/krita-3.1.3-alpha.1-x86_64.appimage
Comment 12 supaiku 2017-03-29 16:24:35 UTC
Hello Dmitry!

I tried it with your the new AppImage and it has gotten a lot harder to provoke the crash... I'm not even sure if it's the same crash, but I could still crash Krita by repeatedly pressing STRG+T and moving the mouse while occasionally pressing B (Brush) and E (Erase) to draw when the Transform is in progress.

The console output until it crashed (the last line is German, but it says segfault):

$ ./krita-3.1.3-alpha.1-x86_64.appimage
OpenGL Info
  Vendor:  Intel Open Source Technology Center
  Renderer:  Mesa DRI Intel(R) Haswell Desktop
  Version:  3.0 Mesa 17.0.2
  Shading language:  1.30
  Requested format:  QSurfaceFormat(version 3.0, options QFlags(0x4), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior 2, swapInterval 0, profile  2)
  Current format:    QSurfaceFormat(version 3.0, options QFlags(0x4), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 0, stencilBufferSize 8, samples -1, swapBehavior 2, swapInterval 0, profile  0)
     Version: 3 . 0
     Supports deprecated functions true
krita has opengl true
Setting XDG_DATA_DIRS "/tmp/.mount_hy1bWf/usr/bin/../share:./share/:/usr/share:/usr/share:/usr/local/share"
Available translations QSet("is", "uz@cyrillic", "ja", "sk", "se", "oc", "fy", "mk", "en_GB", "vi", "en_US", "ms", "cs", "uk", "de", "af", "zh_TW", "ca", "th", "nl", "kk", "br", "gl", "zh_CN", "sv", "nn", "ta", "uz", "pt_BR", "xh", "ne", "mr", "it", "cy", "ru", "ro", "ug", "eu", "hu", "ast", "fa", "el", "da", "nb", "eo", "fi", "et", "ga", "lt", "pl", "hi", "fr", "ar", "sl", "es", "bg", "hr", "be", "wa", "ia", "ca@valencia", "ko", "bs", "pa", "hne", "tg", "lv", "sq", "tr", "nds", "mai", "km", "he", "pt")
Available domain translations QSet("is", "uz@cyrillic", "ja", "sk", "se", "oc", "fy", "mk", "en_GB", "vi", "en_US", "ms", "cs", "uk", "de", "af", "zh_TW", "ca", "th", "nl", "kk", "br", "gl", "zh_CN", "sv", "nn", "ta", "uz", "pt_BR", "xh", "ne", "mr", "it", "cy", "ru", "ro", "ug", "eu", "hu", "ast", "fa", "el", "da", "nb", "eo", "fi", "et", "ga", "lt", "pl", "hi", "fr", "ar", "sl", "es", "bg", "hr", "be", "wa", "ia", "ca@valencia", "ko", "bs", "pa", "hne", "tg", "lv", "sq", "tr", "nds", "mai", "km", "he", "pt")
Override language: ""
libpng warning: iCCP: too many profiles
libpng warning: iCCP: too many profiles
libpng warning: iCCP: too many profiles
libpng warning: iCCP: too many profiles
QLayout: Attempting to add QLayout "" to QWidget "", which already has a layout
libpng warning: iCCP: too many profiles
QLayout: Attempting to add QLayout "" to QWidget "KritaShape/KisToolLine", which already has a layout
SAFE ASSERT (krita): "m_d->lastKnownValue.isNull() || result == m_d->lastKnownValue" in file /krita-3.1.3-alpha.1/libs/flake/KoDerivedResourceConverter.cpp, line 70
SAFE ASSERT (krita): "m_d->lastKnownValue.isNull() || result == m_d->lastKnownValue" in file /krita-3.1.3-alpha.1/libs/flake/KoDerivedResourceConverter.cpp, line 70
Speicherzugriffsfehler (Speicherabzug geschrieben)


But for me SAFE_ASSERT doesn't sounds like it would terminate the program, right? If it helps I can compile the latest and attach gdb for a better stack trace.

I also made a video performing the steps as mentioned above until it crashed:
https://mega.nz/#!S0R0iJDZ!37cilwpVWacefPmk3D4FZ1a5o8OelTo7eOgZZXruGys

It is important to go all out and at all cost to not wait for any operation to finish! :p
Comment 13 Andrew Crouthamel 2018-09-28 02:28:47 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 14 Andrew Crouthamel 2018-10-28 03:15:23 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!