Bug 418774

Summary: KRA file won't open once its file size surpasses 10MB
Product: [Applications] krita Reporter: coly9k
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: halla
Priority: NOR    
Version First Reported In: 4.2.8   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: There's not much I can provide, since Krita closes instantly without leaving any meaningful backtraces

Description coly9k 2020-03-12 09:24:16 UTC
Created attachment 126742 [details]
There's not much I can provide, since Krita closes instantly without leaving any meaningful backtraces

SUMMARY

Krita not being able to open a KRA file above the size of 10MB. The same KRA file opens without issue with version 4.2.7.1. Once the KRA file size is reduced under 10MB by removing some layers using version 4.2.7.1, version 4.2.8 will load the file normally again.

This KRA file does not include anything special, just around 40 layers with drawings and imported png files (none of them being larger than 1000x1000 pixels)

Krita with the debug package being installed won't output any backtraces after this crash.

STEPS TO REPRODUCE
1. Insert images until the KRA save file gets larger than 10MB
2. Save the project in KRA format
3. Close Krita normally
4. Open the KRA file (double clicking the KRA file, and launching Krita first and then opening the KRA file will not make any difference)

OBSERVED RESULT

Krita immediately crashing as soon as the program finishes loading bundles, resources, and main window without any dialog boxes appearing. When Krita is launched first with the KRA file opened afterwards, Krita closes as soon as the file is clicked.

EXPECTED RESULT

The KRA file opening normally, and being able to continue working on the project.

SOFTWARE/OS VERSIONS
Windows: Windows 10 Home 64 bit
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

[Backtrace]

-------------------

Error occurred on Thursday, March 12, 2020 at 17:35:53.

--------------------------------------

Error occurred on Thursday, March 12, 2020 at 17:52:08.
Comment 1 Halla Rempt 2020-03-12 09:25:48 UTC
Can you please provide the file that doesn't load for you? Hundreds of thousands of people regularly open files that are much bigger than that, so it must be something else :-)

If it's private, please send the file to vurian@gmail.com
Comment 2 Halla Rempt 2020-03-12 11:35:17 UTC
I checked the file and it opens in 4.2.9-beta1 and master, so apparently we already fixed this issuee...