Bug 373389 - Not a Valid Krita file: commission work corrupted
Summary: Not a Valid Krita file: commission work corrupted
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (other bugs)
Version First Reported In: 2.9.11
Platform: Other Linux
: NOR grave
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-07 16:22 UTC by doubleotrouble
Modified: 2017-07-02 17:16 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
The .kra file in question (77 bytes, text/plain)
2016-12-07 16:22 UTC, doubleotrouble
Details

Note You need to log in before you can comment on or make changes to this bug.
Description doubleotrouble 2016-12-07 16:22:13 UTC
Created attachment 102663 [details]
The .kra file in question

I had almost finished the sketch for a commissioned piece, I would greatly appreciate it if someone could try to retrieve this file for me, and quickly! I need to know whether or not I should simply restart and lose about 2 hours worth of work, or if it's possible to retrieve this file. Please, I really, really would appreciate some help with this ASAP!
Comment 1 doubleotrouble 2016-12-07 16:37:29 UTC
https://drive.google.com/open?id=0B3qgt2_8aghxV0NEZk9JNlpIUWc
this is another version of it that i saw showed up
Comment 2 Halla Rempt 2016-12-07 16:40:29 UTC
Hi,

Please _do_ upgrade to the latest version of Krita instead of 2.9; preferably even the latest release candidate. And when doing important work, use the save incremental function, and don't enable the backup file option! That way, you have multiple versions of your work and you have a backup of the last version before you saved. As long as there are file systems, there will be a chance that saving fails.

I managed to retrieve most of your layers, only three were to broken to salvage. Since a kra file is just a zip file, you can do this yourself: get a zip repair tool, use it to repair the bla.kra file renamed to bla.zip, then rename back to bla.kra and check which layers krita reports as broken and remove those from the maindoc.xml in the zip file.

Here is what I managed to salvage for you: http://www.valdyas.org/~boud/cp3.kra
Comment 3 Halla Rempt 2016-12-07 16:42:05 UTC
Yes, that thing with the ~ at the end is the backup file, rename it to something that ends in .kra and load it. It's the backup file, i.e., the state of the last time you saved it before the broken save.
Comment 4 doubleotrouble 2016-12-07 17:03:54 UTC
(In reply to Boudewijn Rempt from comment #2)
> Hi,
> 
> Please _do_ upgrade to the latest version of Krita instead of 2.9;
> preferably even the latest release candidate. And when doing important work,
> use the save incremental function, and don't enable the backup file option!
> That way, you have multiple versions of your work and you have a backup of
> the last version before you saved. As long as there are file systems, there
> will be a chance that saving fails.
> 
> I managed to retrieve most of your layers, only three were to broken to
> salvage. Since a kra file is just a zip file, you can do this yourself: get
> a zip repair tool, use it to repair the bla.kra file renamed to bla.zip,
> then rename back to bla.kra and check which layers krita reports as broken
> and remove those from the maindoc.xml in the zip file.
> 
> Here is what I managed to salvage for you:
> http://www.valdyas.org/~boud/cp3.kra

Thank you so much, oh my gosh! I've been meaning to update for a while, but this definitely gives me that extra push. This is super helpful to know for future reference as well, you've been a great help. Again, /thank you/! I was already contemplating how I'd restart, so this is such a relief as well.