Bug 449573 - After deleting kra file, Krita freezes upon opening when resuming saved session
Summary: After deleting kra file, Krita freezes upon opening when resuming saved session
Status: RESOLVED NOT A BUG
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 5.0.2
Platform: Appimage Linux
: NOR major
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2022-02-03 20:30 UTC by abc
Modified: 2022-03-16 12:51 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description abc 2022-02-03 20:30:44 UTC
SUMMARY

If you have "save session" enabled and the file you're working on is deleted when Krita is closed, Krita will freeze when it is next opened. If a user doesn't know to fix this by manually removing the view in the .ksn sessions file, they won't be able to use Krita at all.


STEPS TO REPRODUCE
1. Enable "save session when krita closes" in configs if it's not already.
2. Save a file then close Krita
3. Delete the .kra file on your OS
4. Open Krita - it's unresponsive

SOFTWARE/OS VERSIONS
Linux:  Xubuntu 20.04
KDE Plasma Version: ?
KDE Frameworks Version: 5
Qt Version: 5.12.12
Comment 1 Halla Rempt 2022-03-08 09:56:01 UTC
I cannot reproduce this. When I enable "restore last session" and "save session on close", create and save a file, close Krita, remove the file and reopen Krita, I get a "bla.kra doesn't exist" and Krita is normally responsive.
Comment 2 abc 2022-03-16 12:51:02 UTC
(In reply to Halla Rempt from comment #1)
> I cannot reproduce this. When I enable "restore last session" and "save
> session on close", create and save a file, close Krita, remove the file and
> reopen Krita, I get a "bla.kra doesn't exist" and Krita is normally
> responsive.

Sorry, I have actually just realised I had my extra monitor turned off and that pop up would've appeared on it. I have a set up where the desktop stays extended to the second monitor even when it's turned off. I checked with the second monitor turned on and I saw the pop up. This can be closed.