Bug 433624

Summary: Krita crashes when closing one of multiple tabs
Product: [Applications] krita Reporter: Manga Tengu <mangatengu>
Component: GeneralAssignee: vanyossi <ghevan>
Status: RESOLVED WORKSFORME    
Severity: crash CC: dimula73, ghevan, halla, tamtamy.tymona
Priority: NOR    
Version: 4.4.3-beta1   
Target Milestone: ---   
Platform: macOS (DMG)   
OS: macOS   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Manga Tengu 2021-02-25 22:16:26 UTC
Sometimes when multiple tabs are open (couldn't find a way to reproduce systematically) if you close a tab (a document), krita crashes. Sometimes at the first tab, sometimes at another one...
It has become rarer lately but it was in krita 4 for ages. It's still happening in 4.4.3-beta1
Comment 1 Tiar 2021-02-25 22:19:32 UTC
I did fix one bug like that once, so what you remember is probably another issue.
If please get the crash log according to the instruction here: https://docs.krita.org/en/reference_manual/sharing_krita_logs.html#crash-log-and-backtrace
Comment 2 Manga Tengu 2021-02-25 22:25:26 UTC
Following the instructions, I have to launch krita in debug mode. The thing is that is not happening often so I hope either it happens quick, or I can still work in lldb mode.
If I can manage to work in lldb I'll get back when it crashes which may be far from today...
Comment 3 Bug Janitor Service 2021-02-26 04:33: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 4 Tiar 2021-03-22 15:42:49 UTC
*** Bug 434760 has been marked as a duplicate of this bug. ***
Comment 5 vanyossi 2021-03-24 19:29:53 UTC
I cannot reproduce this at all. I opened 2 documents consitently and closed the inactive one repeteadly and it never crashed. In between I switched applications, used mouse, pressed random keys, nothing.

To generate stack traces (that help us inmensly) Please download Xcode 12 and install the command line tools (in a terminal type "sudo xcode-select --install"), sadly from XCode 12 onwards it is not possible to install command line tools by its own if you are not signed as developer (from the info I have)

with the command line tools installed run Krita from lldb like this

lldb krita.app/Contents/MacOS/krita

A command prompt will show, type "run" (or just "r") and hit enter. Use krita normally, when it crashes the command prompt will show something like "process stopped, error etc" and show you the prompt again.

with the prompt in the error type "bt all" and paste the result here.
Comment 6 Manga Tengu 2021-03-30 08:08:49 UTC
If you wanna laugh, me neither. I'll run Krita with lldb from now on. However, won't it affect performance? I'm already struggling with macOS/OpenGL...
Comment 7 Bug Janitor Service 2021-03-31 04:33:37 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 8 vanyossi 2021-06-14 14:50:56 UTC
@Manga Tengu

Can you confirm this is not an issue anymore?
Comment 9 Manga Tengu 2021-06-14 19:29:36 UTC
No, I can't, every time it happens I'm not running lldb so it goes without a stack trace...
Comment 10 Bug Janitor Service 2021-06-15 04:33:38 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 11 Dmitry Kazakov 2021-08-06 13:16:19 UTC
Hi, Manga Tengu!

Can you check, perhaps you had some non-standard dockers open when Krita crashed? Perhaps you can reproduce the crash by opening more dockers?

I tried to reproduce this bug with ASAN, but it didn't crash :(
Comment 12 Manga Tengu 2021-08-06 16:55:52 UTC
Hello Dmitry!
I always have minimal dockers (Layers and sometimes overview) I pop up the presets and color picker so I can stay light.
I'm using 4.4.5 since its release and didn't have the crash yet either but I've been working simpler sessions with less than 5 documents open at a time. Usually, it happens when I have a lot of documents open, sometimes the same one multiple times. I should manipulate a lot of documents soon again so I hope it shows clearly
btw what is ASAN ?
Comment 13 Halla Rempt 2021-09-07 11:44:15 UTC
ASAN is a memory checker technology that warns about bugs in memory handling. If you haven't encountered the crash since 4.4.5, then I think we can close this bug for now. Please reopen if it happens again.