Sometimes krita refuses to load my large .kra files

I use krita for image handling at work
And due to the nature of my job sometimes I have to create very large .kra files with like 4961 x 7016 resolution (a2 300 dpi) and dozens of layers full of stuff, and many of those files can reach 300MB+
Most of the time the software works as expected when handling such files
But from time to time a saved .kra file won’t open again, ruining hours of effort when I can’t expect it.
When I open said files, the software may freeze for a while and then simply abort loading like nothing ever happened, or just crash
I’ve tried allocating more RAM for the software (and tweaking some other stuff) in the setting but it doesn’t fix the problem
My working computer has 32GB RAM and I’ve tried those unopenable files on my private 64GB RAM computer and they still can’t open
(I’ve checked the task manager and the software doesn’t even reach 20GB RAM when loading and failing my files)

Please help if you know how to fix it, or at least salvage the files in some way (maybe by converting the files to some other format so I may open them with something else)

Nevermind I’ve found the solution myself
I opened those .kra files in question as .zip and found an abnormally large file (1.2 GB uncompressed, when the whole compressed kra file in question is just 200 MB) called layerstyles.asl in the annotations folder
I manually deleted it, renamed the .zip back to .kra, and the .kra file becomes loadable again
Maybe I should avoid using layer styles from now on, and always merging them before saving…
The culprit file:

ASL files are photoshop style informations, I wonder how it got there. Was the file a Photoshop file at some point?

Krita can work with Adobe ASL’s and saves layer styles created in Krita as ASL.

Michelist

Wonder why it got so ginormously large, though. I worked with layers styles before but never had such issues. Perhaps it’s still good to make a report for this on the tracker to find out why this happening, at least.

It sure would be a good idea if @Dirty_Chicken would create a bug report at bugs.kde.org, preferably with this (these) faulty files attached, so these can be inspected. Since this behavior seems at least “strange”, also I’m wondering myself why this never happened to me, because I used Krita- and Adobe-layer styles in Krita a lot?

Michelist

I created the bug report and uploaded the layerstyles.asl with a catbox link (when compressed it’s just 6MB)
Anyway it is still an inconvenience to redo all those layer styles again even if the file is fixable by deleting the layer style information…

Thank you for creating the bug report!
I corrected the errors you made and wrote a little addition to your report. Now we “only” have to wait, but that may take time.

For all who search the report, it can be found here:

https://bugs.kde.org/show_bug.cgi?id=498059

Michelist

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.