Bug 453188 - Krita crashes instantly upon attempting to flatten layers
Summary: Krita crashes instantly upon attempting to flatten layers
Status: RESOLVED WORKSFORME
Alias: None
Product: krita
Classification: Applications
Component: Layer Stack (show other bugs)
Version: 5.0.6
Platform: Microsoft Windows Microsoft Windows
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-29 10:39 UTC by Elise Evans
Modified: 2022-05-29 04:35 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 Elise Evans 2022-04-29 10:39:32 UTC
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
***


STEPS TO REPRODUCE
1. Create document with 14 group layers, each holding 6-10 layers. Include 8-10 reference images.
2. Open some folders, change which layers are visible within several groups
3. Click Layer -> Flatten Image

OBSERVED RESULT
Krita instantly crashes to desktop, closes itself without any announcement, no automatic saves. 

EXPECTED RESULT
Krita flattens into a single layer. (Krita happily flattened the image straight from the save file, without changing the visible layers. I tried saving the file after changing visibility of layers, then flattening from there, but Krita still crashed to desktop.)

SOFTWARE/OS VERSIONS
Windows: 10

ADDITIONAL INFORMATION
The resolution is very small, 256x256px, but all the layers bring it to a 11.5Mib file. 

Ah wait, I've just found a fix - I upped my swap file size from 10GiB to 16GiB in 'configure krita'. Not sure why this fixed it, as my canvas was only 11.5MiB, but there we are. 

Just replicated my actions, and yeah, that's fixed the problem. I'll submit the bug report anyway, so that if similar things happen in future you have an answer to give people.
Comment 1 Alvin Wong 2022-04-29 10:45:33 UTC
Please provide the crash log `%LOCALAPPDATA%\kritacrash.log` [1]

[1]: https://docs.krita.org/en/reference_manual/sharing_krita_logs.html?highlight=crash%20log#getting-backtrace
Comment 2 Alvin Wong 2022-04-29 10:46:43 UTC
And also the Krita usage log: `%LOCALAPPDATA%\krita.log`
Comment 3 Bug Janitor Service 2022-05-14 04:35:19 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
mark the bug 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 4 Bug Janitor Service 2022-05-29 04:35:42 UTC
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!