Bug 441410

Summary: Error occurs while saving
Product: [Applications] krita Reporter: Aren Villanueva <arenvillanueva+kde>
Component: File formatsAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED WAITINGFORINFO    
Severity: major CC: halla
Priority: NOR    
Version First Reported In: 4.4.7   
Target Milestone: ---   
Platform: Appimage   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: System information

Description Aren Villanueva 2021-08-23 05:30:25 UTC
Created attachment 140967 [details]
System information

SUMMARY
When attempting to save my file I get a error when trying to save.

STEPS TO REPRODUCE
1. Make a A3, 600 DPI file
2. Make a reasonably complex file with several layers
3. Attempt to save

OBSERVED RESULT
Could not save /path/to/file.kra
Reason: Error occurred while writing to the file.

EXPECTED RESULT
It should save.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu 20.04.2 LTS
(available in About System)
KDE Plasma Version: N/A
KDE Frameworks Version: N/A

Qt Version: 
  Version (compiled): 5.12.11
  Version (loaded): 5.12.11


ADDITIONAL INFORMATION
System information attached

Krita Usage Log:
================================================================================
SESSION: 22 Aug 2021 21:57:08 -0700. Executing krita

Krita Version: 4.4.3, Qt version compiled: 5.12.8, loaded: 5.12.8. Process ID: 68371
-- -- -- -- -- -- -- --
22 Aug 2021 21:57:08 -0700: Style: fusion. Available styles: Windows, Fusion
22 Aug 2021 21:57:32 -0700: CLOSING SESSION
================================================================================
SESSION: 22 Aug 2021 22:06:11 -0700. Executing /home/aren/Applications/krita-4.4.7-x86_64_f3e3235d638ab8cc9168017563f53190.appimage

Krita Version: 4.4.7, Qt version compiled: 5.12.11, loaded: 5.12.11. Process ID: 72421
-- -- -- -- -- -- -- --
22 Aug 2021 22:06:11 -0700: Style: fusion. Available styles: Windows, Fusion
22 Aug 2021 22:07:29 -0700: Importing application/x-krita to application/x-krita. Location: /home/aren/Documents/Creative/Drawings/Studies/Character/20210822-2.kra. Real location: /home/aren/Documents/Creative/Drawings/Studies/Character/20210822-2.kra. Batchmode: 0
22 Aug 2021 22:07:33 -0700: Loaded image from application/x-krita. Size: 9920 * 7016 pixels, 8.33333 dpi. Color model: 8-bit integer/channel RGB/Alpha (sRGB-elle-V2-srgbtrc.icc). Layers: 20
22 Aug 2021 22:18:07 -0700: Saving Document /home/aren/Documents/Creative/Drawings/Studies/Character/20210822-2.kra as /home/aren/Documents/Creative/Drawings/Studies/Character/20210822-2.kra (mime: application/x-krita). 9920 * 7016 pixels, 20 layers.  101 frames, 24 framerate. Export configuration: No configuration
22 Aug 2021 22:18:07 -0700: Create a simple backup for /home/aren/Documents/Creative/Drawings/Studies/Character/20210822-2.kra in the same location as the file.
22 Aug 2021 22:18:07 -0700: Converting from application/x-krita to application/x-krita. Location: /home/aren/Documents/Creative/Drawings/Studies/Character/20210822-2.kra. Real location: /home/aren/Documents/Creative/Drawings/Studies/Character/20210822-2.kra. Batchmode: 0. Configuration: none
22 Aug 2021 22:18:12 -0700: Completed saving /home/aren/Documents/Creative/Drawings/Studies/Character/20210822-2.kra (mime: application/x-krita). Result: Unknown error.. Size: 24837652. MD5 Hash: FILE_BIGGER_10MB
22 Aug 2021 22:22:35 -0700: Autosaving: /home/aren/Documents/Creative/Drawings/Studies/Character/20210822-2.kra-autosave.kra
22 Aug 2021 22:22:35 -0700: Converting from application/x-krita to application/x-krita. Location: /home/aren/Documents/Creative/Drawings/Studies/Character/20210822-2.kra-autosave.kra. Real location: /home/aren/Documents/Creative/Drawings/Studies/Character/20210822-2.kra-autosave.kra. Batchmode: 0. Configuration: none
22 Aug 2021 22:22:37 -0700: Completed saving /home/aren/Documents/Creative/Drawings/Studies/Character/20210822-2.kra-autosave.kra (mime: application/x-krita). Result: Error occurred while writing to the file.. Size: 0. MD5 Hash:
Comment 1 Halla Rempt 2021-08-23 08:10:40 UTC
Um... It's really hard to tell what might be the problem. 

Could it be lack of disk space or the wrong permissions in the save location? I see that the autosave also fails in the same location.

Does it work if you save the file to your home folder or another location?
Comment 2 Aren Villanueva 2021-08-23 15:56:41 UTC
Definitely not a space issue as there is more than 900gb remaining on the mount point. I can also duplicate the file without any problem using either the terminal or gnome file manager.

Also attempted to copy the file over to my Windows computer and try and re-save it there and it fails with the same error.

Exporting out to ORA then re-opening it then saving it back out as a KRA file seems to work around the issue.

I have uploaded the file to my google drive here: https://drive.google.com/file/d/1vb6wuuJb24nIp5nLSRlvi_WePXRa5m0A/view?usp=sharing

Download it, open it in Krita then immediately try to save the file.
Comment 3 Halla Rempt 2021-08-23 16:19:14 UTC
Ah, that's bug 440812 . I fixed that regression last week, and we'll be releasing Krita 4.4.8 with a fix for that on Wednesday ($DEITY volente).

*** This bug has been marked as a duplicate of bug 440812 ***
Comment 4 Aren Villanueva 2021-08-23 16:21:21 UTC
Ok good to know. I'll take down my file from google drive for now.
Thanks for your help!