Bug 511060

Summary: safe assert in KoResourceManager::addDerivedResourceConverter can be triggered
Product: [Applications] krita Reporter: Matt <burner.kdebug>
Component: * UnknownAssignee: Krita Bugs <krita-bugs-null>
Status: REPORTED ---    
Severity: crash CC: dimula73, halla
Priority: NOR Keywords: triaged
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: gdb backtrace
backtrace (different crash event)
backtrace (different crash event)

Description Matt 2025-10-25 00:41:39 UTC
Created attachment 186116 [details]
gdb backtrace

SUMMARY
Unable to predictably reproduce. Also randomly observed on 5.2.11 and 5.2.13
version: krita-5.3.0-prealpha-c9c81e12c4-x86_64.Appimage


Operating System: Kubuntu 24.04
KDE Plasma Version: 5.27.12
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.13
Kernel Version: 6.8.0-86-generic (64-bit)
Graphics Platform: X11
Comment 1 Matt 2025-10-25 22:44:25 UTC
Created attachment 186158 [details]
backtrace (different crash event)

Another crash when using keyboard shortcut
Comment 2 Matt 2025-10-25 22:46:48 UTC
Created attachment 186159 [details]
backtrace (different crash event)
Comment 3 Halla Rempt 2025-11-05 11:20:15 UTC
The location of the safe assert is the same. It shouldn't be possible to trigger this assert with a release appimage. However, without more information it's going to be really hard to reproduce the issue even with nightly builds.
Comment 4 Dmitry Kazakov 2025-11-06 09:52:19 UTC
This bug is a consequence of a recent opacity switch patch. The opacity converter is switched on every tool switch. And it seems like something fails here. The tool switch happens with the tool shortcut. I would try to test if pressing tool shortcut while some other tool is doing and action could trigger the issue.