Bug 498059 - .kra file no longer openable after saving, but openable again after manually deleting a huge layerstyles.asl in the .kra file
Summary: .kra file no longer openable after saving, but openable again after manually ...
Status: REPORTED
Alias: None
Product: krita
Classification: Applications
Component: layer styles (show other bugs)
Version: 5.2.6
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-30 13:52 UTC by Dirty Chicken
Modified: 2024-12-30 14:14 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 Dirty Chicken 2024-12-30 13:52:23 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY
Large resolution .kra file with lots of layer styles sometimes become unopenable after saving
When I open said files, the software may freeze for a while and then simply abort loading like nothing ever happened, or just crash
Allocating more RAM for the software doesn’t fix the problem
The file becomes openable again after manually deleting a huge layerstyles.asl in the .kra file,

STEPS TO REPRODUCE
Dunno how to reproduce exactly
But if you use a lot of layer styles on very large canvas it would happen from time to time
For me it happened twice

OBSERVED RESULT
.kra file becomes no longer openable after saving, but deleting a huge layerstyles.asl in the .kra file (by opening it as a .zip) makes it openable again (naturally losing all layer style settings but otherwise still good)

EXPECTED RESULT
I expect .kra files with large resolution and multiple layer style settings to load and save normally without having to tweak the file as .zip

SOFTWARE/OS VERSIONS
Windows 11
Krita 5.2.6

ADDITIONAL INFORMATION
The .kra file is rather big (200 MB) 
So here is the abnormally large layerstyles.asl file extracted from the .kra (over 1 GB when extracted, compressed into a 6.6 MB .zip file)
Your website does not accept >4000KB files so here is the catbox link for the file: https://files.catbox.moe/gv0mjs.zip
Comment 1 Michael Strothotte 2024-12-30 14:14:59 UTC
Added the correct software, Krita, and version of Krita to the report.

Forum link on Krita-Artists.org: 
https://krita-artists.org/t/sometimes-krita-refuses-to-load-my-large-kra-files/110883

I, myself, can not confirm having this issue, although I use and used layer styles a lot, and for a long time over many versions of Krita, regular releases as well as nightlies. I used both types, original Krita layer styles in ASL format and also Adobe ASL's extensively in the past and can not remember issues.

Regards
Michael Strothotte