Bug 428376 - Selecting Save won't overwrite the file and I have to SaveAs new file
Summary: Selecting Save won't overwrite the file and I have to SaveAs new file
Status: RESOLVED NOT A BUG
Alias: None
Product: krita
Classification: Applications
Component: Usability (other bugs)
Version First Reported In: 4.4.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-28 08:43 UTC by Stuart McWhinney
Modified: 2020-11-03 05:20 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart McWhinney 2020-10-28 08:43:26 UTC
SUMMARY
The asterisk (*) appears next to my file name to indicate there are unsaved changes. No matter hotkey or menu a save, the asterisk doesn't disappear and the the file is not overwritten to update the changes made. 

When prompting SaveAs, if I select the file and select to overwrite the old file, it won't and to save any progress I have to keep making new files along the way. 


SOFTWARE/OS VERSIONS
Windows: 10 for Surface Pro 3
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Halla Rempt 2020-10-28 08:44:41 UTC
Are you sure the file is writable and not open in another application as well? Where is the file located?
Comment 2 Stuart McWhinney 2020-10-29 02:12:36 UTC
The file is only open with Krita and is saved on the desktop. 

I tried creating a test file in Documents as well, but the same result. 
> Save doesn't overwrite the file
> SaveAs doesn't overwrite the file
Comment 3 Bug Janitor Service 2020-10-29 04:33:52 UTC
Thanks for your comment!

Automatically switching the status of this bug to REPORTED so that the KDE team
knows that the bug is ready to get confirmed.

In the future you may also do this yourself when providing needed information.
Comment 4 Tiar 2020-10-29 12:53:33 UTC
Do you get any error messages or is it something that you see by opening the file again?

How are you opening the file - by double-clicking on the file on Desktop? By selecting the file from File -> Open, making sure you're on Desktop? Or from Recent Documents?

Can you please attach the content of Help -> Show Krita log for bug reports?
Comment 5 Stuart McWhinney 2020-11-01 12:42:04 UTC
================================================================================
SESSION: 01 Nov 2020 21:24:24 +0900. Executing C:\Program Files\Krita (x64)\bin\krita.exe C:\Users\Stuart\Desktop\test.kra

Krita Version: 4.4.0, Qt version compiled: 5.12.9, loaded: 5.12.9. Process ID: 12720
-- -- -- -- -- -- -- --
01 Nov 2020 21:24:24 +0900: Style: fusion. Available styles: windowsvista, Windows, Fusion
01 Nov 2020 21:24:40 +0900: Importing application/x-krita to application/x-krita. Location: C:/Users/Stuart/Desktop/test.kra. Real location: C:/Users/Stuart/Desktop/test.kra. Batchmode: 0
01 Nov 2020 21:24:41 +0900: Loaded image from application/x-krita. Size: 1920 * 1080 pixels, 1 dpi. Color model: 8-bit integer/channel RGB/Alpha (sRGB-elle-V2-srgbtrc.icc). Layers: 3
01 Nov 2020 21:25:25 +0900: Importing application/x-krita to application/x-krita. Location: C:/Users/Stuart/Desktop/xxx.kra. Real location: C:/Users/Stuart/Desktop/xxx.kra. Batchmode: 0
01 Nov 2020 21:25:29 +0900: Loaded image from application/x-krita. Size: 1400 * 990 pixels, 1 dpi. Color model: 8-bit integer/channel RGB/Alpha (sRGB IEC61966-2.1). Layers: 8
01 Nov 2020 21:26:09 +0900: Importing application/x-krita to application/x-krita. Location: C:/Users/Stuart/Desktop/test.kra. Real location: C:/Users/Stuart/Desktop/test.kra. Batchmode: 0
01 Nov 2020 21:26:09 +0900: Loaded image from application/x-krita. Size: 1920 * 1080 pixels, 1 dpi. Color model: 8-bit integer/channel RGB/Alpha (sRGB-elle-V2-srgbtrc.icc). Layers: 3
01 Nov 2020 21:26:23 +0900: Saving Document C:/Users/Stuart/Desktop/test.kra as C:/Users/Stuart/Desktop/test.kra (mime: application/x-krita). 1920 * 1080 pixels, 3 layers.  101 frames, 24 framerate. Export configuration: No configuration
01 Nov 2020 21:26:23 +0900: Failed to create a simple backup for C:/Users/Stuart/Desktop/test.kra in the same location as the file.
01 Nov 2020 21:26:31 +0900: Saving Document C:/Users/Stuart/Desktop/test.kra as C:/Users/Stuart/Desktop/test.kra (mime: application/x-krita). 1920 * 1080 pixels, 3 layers.  101 frames, 24 framerate. Export configuration: No configuration
01 Nov 2020 21:26:31 +0900: Failed to create a simple backup for C:/Users/Stuart/Desktop/test.kra in the same location as the file.
01 Nov 2020 21:26:38 +0900: Saving Document C:/Users/Stuart/Desktop/test.kra as C:/Users/Stuart/Desktop/test.kra (mime: application/x-krita). 1920 * 1080 pixels, 3 layers.  101 frames, 24 framerate. Export configuration: No configuration
01 Nov 2020 21:26:38 +0900: Failed to create a simple backup for C:/Users/Stuart/Desktop/test.kra in the same location as the file.
01 Nov 2020 21:27:15 +0900: Importing application/x-krita to application/x-krita. Location: C:/Users/Stuart/Desktop/test.kra. Real location: C:/Users/Stuart/Desktop/test.kra. Batchmode: 0
01 Nov 2020 21:27:16 +0900: Loaded image from application/x-krita. Size: 1920 * 1080 pixels, 1 dpi. Color model: 8-bit integer/channel RGB/Alpha (sRGB-elle-V2-srgbtrc.icc). Layers: 3
01 Nov 2020 21:27:27 +0900: Saving Document C:/Users/Stuart/Desktop/test.kra as C:/Users/Stuart/Desktop/test.kra (mime: application/x-krita). 1920 * 1080 pixels, 3 layers.  101 frames, 24 framerate. Export configuration: No configuration
01 Nov 2020 21:27:27 +0900: Failed to create a simple backup for C:/Users/Stuart/Desktop/test.kra in the same location as the file.
01 Nov 2020 21:28:16 +0900: Saving Document C:/Users/Stuart/Desktop/test.kra as C:/Users/Stuart/Desktop/test.kra (mime: application/x-krita). 1920 * 1080 pixels, 3 layers.  101 frames, 24 framerate. Export configuration: No configuration
01 Nov 2020 21:28:16 +0900: Failed to create a simple backup for C:/Users/Stuart/Desktop/test.kra in the same location as the file.
01 Nov 2020 21:28:25 +0900: Saving Document C:/Users/Stuart/Desktop/test.kra as C:/Users/Stuart/Desktop/test.kra (mime: application/x-krita). 1920 * 1080 pixels, 3 layers.  101 frames, 24 framerate. Export configuration: No configuration
01 Nov 2020 21:28:25 +0900: Failed to create a simple backup for C:/Users/Stuart/Desktop/test.kra in the same location as the file.
01 Nov 2020 21:29:11 +0900: Importing application/x-krita to application/x-krita. Location: C:/Users/Stuart/Desktop/test.kra. Real location: C:/Users/Stuart/Desktop/test.kra. Batchmode: 0
01 Nov 2020 21:29:11 +0900: Loaded image from application/x-krita. Size: 1920 * 1080 pixels, 1 dpi. Color model: 8-bit integer/channel RGB/Alpha (sRGB-elle-V2-srgbtrc.icc). Layers: 3
01 Nov 2020 21:29:19 +0900: Saving Document C:/Users/Stuart/Desktop/test.kra as C:/Users/Stuart/Desktop/test.kra (mime: application/x-krita). 1920 * 1080 pixels, 3 layers.  101 frames, 24 framerate. Export configuration: No configuration
01 Nov 2020 21:29:19 +0900: Failed to create a simple backup for C:/Users/Stuart/Desktop/test.kra in the same location as the file.
01 Nov 2020 21:29:20 +0900: Saving Document C:/Users/Stuart/Desktop/test.kra as C:/Users/Stuart/Desktop/test.kra (mime: application/x-krita). 1920 * 1080 pixels, 3 layers.  101 frames, 24 framerate. Export configuration: No configuration
01 Nov 2020 21:29:20 +0900: Failed to create a simple backup for C:/Users/Stuart/Desktop/test.kra in the same location as the file.
01 Nov 2020 21:29:20 +0900: Saving Document C:/Users/Stuart/Desktop/test.kra as C:/Users/Stuart/Desktop/test.kra (mime: application/x-krita). 1920 * 1080 pixels, 3 layers.  101 frames, 24 framerate. Export configuration: No configuration
01 Nov 2020 21:29:20 +0900: Failed to create a simple backup for C:/Users/Stuart/Desktop/test.kra in the same location as the file.
01 Nov 2020 21:29:27 +0900: Saving Document C:/Users/Stuart/Desktop/test.kra as C:/Users/Stuart/Desktop/test.kra (mime: application/x-krita). 1920 * 1080 pixels, 3 layers.  101 frames, 24 framerate. Export configuration: No configuration
01 Nov 2020 21:29:27 +0900: Failed to create a simple backup for C:/Users/Stuart/Desktop/test.kra in the same location as the file.
Comment 6 Halla Rempt 2020-11-02 09:24:47 UTC
Hi,


"01 Nov 2020 21:26:38 +0900: Failed to create a simple backup for C:/Users/Stuart/Desktop/test.kra in the same location as the file."

This error happens if there is already a file with the name test.kra~ that cannot be removed on the desktop, either because it is open, or because it is write-protected. It can also happen if the Desktop folder isn't writable or if Controlled Access Folder is enabled in Windows Defender (https://docs.krita.org/en/KritaFAQ.html#windows-krita-cannot-save)

There really isn't anything we can do about that in Krita: it's not a bug in Krita's code or in Qt's code.

I'm really sorry, but we really cannot help you further with this.
Comment 7 Stuart McWhinney 2020-11-03 05:20:30 UTC
I have replicated the same save difficulty in the document folder. There are no folder restricitons that would prevent it from saving into its own file location. 

===============================================================================
SESSION: 01 Nov 2020 21:55:54 +0900. Executing C:\Program Files\Krita (x64)\bin\krita.exe

Krita Version: 4.4.1, Qt version compiled: 5.12.9, loaded: 5.12.9. Process ID: 16348
-- -- -- -- -- -- -- --
...
02 Nov 2020 23:19:53 +0900: Importing application/x-krita to application/x-krita. Location: C:/Users/Stuart/Documents/test.kra. Real location: C:/Users/Stuart/Documents/test.kra. Batchmode: 0
02 Nov 2020 23:19:54 +0900: Loaded image from application/x-krita. Size: 1920 * 1080 pixels, 1 dpi. Color model: 8-bit integer/channel RGB/Alpha (sRGB-elle-V2-srgbtrc.icc). Layers: 3
02 Nov 2020 23:20:08 +0900: Importing application/x-krita to application/x-krita. Location: C:/Users/Stuart/Documents/test.kra. Real location: C:/Users/Stuart/Documents/test.kra. Batchmode: 0
02 Nov 2020 23:20:09 +0900: Loaded image from application/x-krita. Size: 1920 * 1080 pixels, 1 dpi. Color model: 8-bit integer/channel RGB/Alpha (sRGB-elle-V2-srgbtrc.icc). Layers: 3
02 Nov 2020 23:20:23 +0900: Saving Document C:/Users/Stuart/Documents/test.kra as C:/Users/Stuart/Documents/test.kra (mime: application/x-krita). 1920 * 1080 pixels, 3 layers.  101 frames, 24 framerate. Export configuration: No configuration
02 Nov 2020 23:20:23 +0900: Failed to create a simple backup for C:/Users/Stuart/Documents/test.kra in the same location as the file.