Bug 498308 - Crash when finishing a transform operation on a large group of nested layers
Summary: Crash when finishing a transform operation on a large group of nested layers
Status: REPORTED
Alias: None
Product: krita
Classification: Applications
Component: * Unknown (show other bugs)
Version: 5.2.6
Platform: Appimage Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-06 09:35 UTC by mallock
Modified: 2025-04-06 04:42 UTC (History)
1 user (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 mallock 2025-01-06 09:35:58 UTC
SUMMARY

Krita has a very high chance to crash when finishing a transform operation on a large group of nested layers (group layers inside group layers).  

It even happens when the layer consists of only simple paint layers, though some with different blend mode. No filter layers, no fill layers, no vectors layers.

However, I have no idea what triggers the crash, and I never seen people mention this crash. It also happens rather randomly. Sometimes it doesn't crashes for the first transform, but it will happen if I transform again. Sometimes it crashes immediately for the first transform. I once thought it was related to swap but it still happen when I had swapoff-ed my OS and I still have plenty of free memory. The only message I got from the terminal is:

> Segmentation fault 

I have seen this behavior since Krita 4. My workaround is to always save before I do a transformation, and if the crash insists, I will just merge them into one layer and then transform it, but then I will lose all the granularity, and it's also very annoying to keep restarting Krita. 

STEPS TO REPRODUCE
1. Create a big group of nested layers (I don't know how many layers is big enough, but it almost only happen on big groups).
2. Use transform to move or resize.
3. Commit the change.
4. Krita may crash (sometimes it doesn't crash for the first commit)

OBSERVED RESULT

Complete and sudden crash. "Segmentation fault"

EXPECTED RESULT

No crash.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Debian stable
Appimage: krita-5.2.6-x86_64.appimage

ADDITIONAL INFORMATION
CPU: Intel
GPU driver: Nvidia propriety driver
Comment 1 Halla Rempt 2025-01-06 09:47:21 UTC
It does sound you might be running into the limits of your system. Could you attach the contents of help->system information for bug reports to this report, and make one of those files available? If it's too big, you can share a link. If it's confidential, please mail me directly at hallarempt@gmail.com.
Comment 2 Bug Janitor Service 2025-01-21 03:47:39 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 3 mallock 2025-04-06 04:42:58 UTC
(In reply to Halla Rempt from comment #1)
> It does sound you might be running into the limits of your system. Could you
> attach the contents of help->system information for bug reports to this
> report, and make one of those files available? If it's too big, you can
> share a link. If it's confidential, please mail me directly at
> hallarempt@gmail.com.

Any updates on this issue? I have already sent all the information you needed but I still haven't got any replies several months since the last reply.