This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Krita crash, inability to recover file

Tags: None
(comma "," separated)
Zatkiel
Registered Member
Posts
4
Karma
0
Hello, it's my first time asking here because this time, every topic that i followed failed on my situation.

- So, I was working on a project, at the end I wanted to save it, but at this point krita crashed.

- But as I saw here, I have gone to "local" then "temp" and found some .kra files that looked like autosaves. (because crash happened yesterday at 19h07 as written in the crash file, and one of these files was created at 19h05)

- Then I tried to reopen this file, but : "Invalid document: no file 'maindoc.xml'."

- So I tried to .zip it, then I repaired it using "DiskInternals ZIP Repair".

- Unfortunately, I don't think this repair changed anything...

On the .zip file, there is the layers folder, the maindoc.xml, the documentinfo.xml, a mimetype thing (don't know what it is), the preview (that show my entire work, so it seems to be good I think right ?), and the mergedimage.png BUT I cannot open it.

If just I would be able to access and open this mergedimage.png, or to recover and open the initial .kra file I'll be really happy, thanks to everybody who'll come to help me on my sufferings ahahah
ahabgreybeard
Registered Member
Posts
1269
Karma
11
OS
Which version of krita and which operating system are you using?

Which folder did you find the autosave file in?

Using a file sharing service, can you give a link to download the original autosave file that you found and also the 'repaired' file that you made?

Somebody may be able to have a look at it and find something useful.
Zatkiel
Registered Member
Posts
4
Karma
0
ahabgreybeard wrote:Which version of krita and which operating system are you using?

Which folder did you find the autosave file in?

Using a file sharing service, can you give a link to download the original autosave file that you found and also the 'repaired' file that you made?

Somebody may be able to have a look at it and find something useful.


I don't remember which one i used, but I updated to 4.4.5. And I'm using Windows 10

The autosave was located in : AppData / Local / Temp

Then, here are links for the .kra that I found :
https://drive.google.com/file/d/1zoTEmi ... sp=sharing

And the converted one into .zip :
https://drive.google.com/file/d/1kvWCAu ... sp=sharing
ahabgreybeard
Registered Member
Posts
1269
Karma
11
OS
I managed to recover this: https://www.dropbox.com/s/e3uloagdfy2al ... U.kra?dl=1

The background image seems to have been lost and there may be other missing things as well. I've no idea what may have gone wrong.

It's a good idea, after doing 30 minutes of work (or 15 minutes or whatever) to do a manual Save. That way, you never lose more than 30 minutes of work.
Zatkiel
Registered Member
Posts
4
Karma
0
ahabgreybeard wrote:I managed to recover this: https://www.dropbox.com/s/e3uloagdfy2al ... U.kra?dl=1

The background image seems to have been lost and there may be other missing things as well. I've no idea what may have gone wrong.

It's a good idea, after doing 30 minutes of work (or 15 minutes or whatever) to do a manual Save. That way, you never lose more than 30 minutes of work.


Hoooo, thank you very much, I'm really curious on how you manage to do this in case I should face this problem again.
I still have a part of the background and I remember some things. Recover the writings + the part I already have is like 55% of the work.

But yes from now I will save at every step to be sure. I was thinking that the work would be stocked in the RAM in case of any problem, but apparently not.
Once again thank you so much you're my savior ahahah o)
Stephen Leibowitz
Registered Member
Posts
54
Karma
0
Zatkiel wrote:I don't remember which one i used, but I updated to 4.4.5. And I'm using Windows 10

Hopefully, this problem will not happen to you in the future. Here is part of the Krita 4.2.8 release announcement:

“Windows usually only writes out saved files to the actual disk when it feels like it. So if you’d cut the power to your computer before Windows did that, you might get corrupted files. With 1,500,000 distinct Windows 10 users of Krita in the past month, chances are good for that happening (just like there are people who work exclusively with unnamed autosave files — don’t do that!), so we now try to force Windows to write files to disk after saving. This does make saving slower on Windows, but the added security should be worth it.”

You might also consider turning off write caching in Windows. Do a search for “Windows 10 write caching”
ahabgreybeard
Registered Member
Posts
1269
Karma
11
OS
I used DiskInternals Zip Repair but I used it on a Linux computer, though I don't think that made a difference.

The .zip file you provided had a .kra file inside it so I believe that you 'zipped-up' a .kra file and then tried to repair that .zip file. This is my assumption.

I took the bad .kra file, which is already a .zip file that has been renamed as a .kra file (that's how krita makes .kra files), and I renamed it as a .zip file. Then I used Zip Repair on it to try to repair its internal contents. Then I renamed the repaired .zip file to a .kra file and found that krita could open that .kra file.
It took a long time to open it so I assume krita was struggling with bad layer information and gave up trying to read some things after a few seconds of effort.
Then I saved it as 'part-recovered-eCKHHU.kra'.
Zatkiel
Registered Member
Posts
4
Karma
0
ahabgreybeard wrote:I used DiskInternals Zip Repair but I used it on a Linux computer, though I don't think that made a difference.

The .zip file you provided had a .kra file inside it so I believe that you 'zipped-up' a .kra file and then tried to repair that .zip file. This is my assumption.

I took the bad .kra file, which is already a .zip file that has been renamed as a .kra file (that's how krita makes .kra files), and I renamed it as a .zip file. Then I used Zip Repair on it to try to repair its internal contents. Then I renamed the repaired .zip file to a .kra file and found that krita could open that .kra file.
It took a long time to open it so I assume krita was struggling with bad layer information and gave up trying to read some things after a few seconds of effort.
Then I saved it as 'part-recovered-eCKHHU.kra'.


Hooo yes, I didn't know how krita makes the .kra...
So yes, I made a .zip directly from the .kra

You're saying that I could only rename the end of the "file.kra" as "file.zip", repair it, rename it into .kra and it's okay ?
What I did was harder and didn't worked ahahaha so sad, and thank you again my friend
ahabgreybeard
Registered Member
Posts
1269
Karma
11
OS
Zatkiel wrote:You're saying that I could only rename the end of the "file.kra" as "file.zip", repair it, rename it into .kra and it's okay ?


That is what you do. Whether it's ok or not is a matter of luck :)


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]