Bug 414021 - Krita sometimes resets workspace to default after relaunch and corrupts project & autosave files
Summary: Krita sometimes resets workspace to default after relaunch and corrupts proje...
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (other bugs)
Version First Reported In: 4.2.7.1
Platform: Microsoft Windows Microsoft Windows
: NOR grave
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-11 07:01 UTC by Anton
Modified: 2020-01-02 15:52 UTC (History)
1 user (show)

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


Attachments
Help>System information for Bug Reports (1.74 MB, text/plain)
2019-11-11 07:01 UTC, Anton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anton 2019-11-11 07:01:31 UTC
Created attachment 123836 [details]
Help>System information for Bug Reports

SUM:
I think from version 4.x.x I started having this bug that would reset krita to default state after relaunch. Last two times this also corrupted project files and once with autosave.

REPRODUCING:
It only happened after I closed the krita normally, by closing the programm window after saving the project, and came back to work the next day after I turned on the laptop and launched krita.

I'm almost sure it would only happen after I restart windows, and I very often turn off the laptop by holding down the power button which can be the cause but this bug never happened before I moved to version 4.x.x

I also checked the crashlog and it doesn't seem like the krita crashes when this bug occurs.

OBSERVED RESULT:
After launching krita the next day I'd see the programm in pretty much it's default state. Workspace is set to default, no history of recent projects, my brush tags are lost, although I could solve it just by loading up my workspace presets and re-tagging the brushes as pretty much everything else stayed the same.

But the last two times it happened in addition to workspace reset the last save project files got corrupted, and once with autosave not being able to load too. Today same thing happened but thank god the autosave remained intact.

EXPECTED RESULT:
I just wanted to not lose my workspace and project files on krita launch.


SOFTWARE/OS VERSIONS
Windows: 64-bit windows 10 home single language version 1903 build 18362.418
Krita: 4.2.7.1

Hardware info from Help>System information for Bug Reports:
  GPU Acceleration: auto
  Memory: 7068 Mb
  Number of Cores: 4
  Swap Location: C:/Users/Potts_/AppData/Local/Temp
one screen

ADDITIONAL INFORMATION:
I'll attach the full text from Help>System information for Bug Reports as well as all the corrupted files because of this bug.
I always work with default color model and channel depth (RGB/Alpha, depth: 8-bit integer/channel) and the last project had resolution of 1200x1500 with 100 ppi, and I think the previous corrupted file had very similiar resolution.

This thing when it happens completely ruins my day, I don't want to draw with the fear of losing all of my progress. I love krita and I'll continiue using it but probably will start making manual back-up files.

Link to project files:
https://drive.google.com/file/d/1x-COHoYF3Vzb5q9dCpGcOssbvtad14eC/view?usp=sharing
Comment 1 Tiar 2020-01-02 15:47:00 UTC
That was fixed in dd1e9a5788bb023a4c4e4cccda0ca3812f6de942.
In other words: use 4.2.8 and it should be fine now.
Comment 2 Tiar 2020-01-02 15:52:52 UTC
Oh and btw, you really shouldn't close your laptop using your power button. That makes Windows no time to clean up after itself on your hard drive and such, which was the direct cause for the issue.