Bug 474835

Summary: Fedora 38, GNOME, X11. Krita crashes segfaults sudden if I press ctrl + z a few times.
Product: [Applications] krita Reporter: sarego2309
Component: * UnknownAssignee: Dmitry Kazakov <dimula73>
Status: RESOLVED FIXED    
Severity: crash CC: dimula73
Priority: NOR    
Version First Reported In: 5.2.0-rc1   
Target Milestone: ---   
Platform: unspecified   
OS: All   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: webm demonstration of what I did
Krita 5.2 RC1 gdb log

Description sarego2309 2023-09-24 17:39:47 UTC
Created attachment 161845 [details]
webm demonstration of what I did

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

Note: I have not yet been able to create backtrace with debug symbols for the appimage. I'll be sure to post it later when I can figure out how I'm supposed to do that.


STEPS TO REPRODUCE
1.  Be on GNU/Linux (My distro was fedora 38, X11, GNOME)
2.  Just do random stuff, be sure to press ctrl + z often.
3.  It crashes the problem with no info as to why it crashed. A crash log wasn't even generated. But if I run from the terminal, it says segmentation fault.

OBSERVED RESULT
See webm. At the very very end is when it quit to desktop.

EXPECTED RESULT
Not crash

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma:  Fedora GNU/Linux. GNOME. Fedora 38. X11. Have not tested it yet with wayland and haven't been able to (yet) reproduce this on windows.
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
None that I could provide as of right now.
Comment 1 Dmitry Kazakov 2023-09-25 08:07:58 UTC
Hi, Sarego!

Could you please tell what version of Krita you use? Could you try Krita 5.2.0 RC1?

https://krita.org/en/item/krita-5-2-release-candidate-is-out/

I have fixed a lot of animation/transform mask issues since the latest stable 5.1.5, so it might have been fixed already. 

If you still have an issue with Krita 5.2.0 RC1, could you try running that under GDB and generating a backtrace when it crashes?

The command to generate a backtrace is:

thread apply all bt

The standard appimage does not contain the debugging symbols, but even the stripped backtrace could help me if you use exactly RC1 version of Krita.
Comment 2 sarego2309 2023-09-26 09:46:19 UTC
Created attachment 161883 [details]
Krita 5.2 RC1 gdb log

Here is the gdb output log for krita 5.2 RC1.
Comment 3 sarego2309 2023-09-26 09:48:24 UTC
I'm going to add, it's a bit tricky to get this to happen. It's not consistent, what used to guarantee to crash now doesn't happen 4/5 times. So it appears to from observation, be a very situation crash. Now, still a crash regardless, but this is enough to make one paranoid if it might crash with crtl + z at any time.
Comment 4 sarego2309 2023-09-26 09:49:32 UTC
I also want to add, secondly, that I managed to get this to happen on microsoft windows at least once so far. So it's not exclusive to GNU/Linux.
Comment 5 Bug Janitor Service 2023-09-27 03:46:16 UTC
Thanks for your comment!

Automatically switching the status of this bug to REPORTED so that the KDE team
knows that the bug is ready to get confirmed.

In the future you may also do this yourself when providing needed information.
Comment 6 Dmitry Kazakov 2023-09-27 07:42:20 UTC
Hi, Sarego!

Thanks a lot for the backtrace! I can now reproduce the issue! :)
Comment 7 Dmitry Kazakov 2023-09-29 09:34:32 UTC
The but is not a regression or a release blocker. The bug is present in Krita 5.1.5 as well. I will work on that in the meantime.
Comment 8 Dmitry Kazakov 2023-10-18 16:04:27 UTC
Will be fixed in https://invent.kde.org/graphics/krita/-/merge_requests/1958
Comment 9 Dmitry Kazakov 2023-10-23 15:11:41 UTC
The bug is fixed in Krita 5.3 Nightly: https://invent.kde.org/graphics/krita/-/merge_requests/1958