Bug 447049 - Fails to save changes in file
Summary: Fails to save changes in file
Status: RESOLVED NOT A BUG
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 4.4.8
Platform: Microsoft Windows Microsoft Windows
: NOR grave
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-15 23:36 UTC by Lluvia Alvarado
Modified: 2021-12-17 18:14 UTC (History)
1 user (show)

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


Attachments
logs (77.86 KB, text/plain)
2021-12-16 21:33 UTC, Lluvia Alvarado
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lluvia Alvarado 2021-12-15 23:36:36 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1.  Create a file and save it
2.  Paint around 20 layers
3.  Save the file
4.  Check if file saved contains all the painted layers
Contains all layers? if yes draw more layers and try to save again

OBSERVED RESULT
The saved file has the timestamp of update correct but contains the layers as the previous save, so the new layers and paint are not being saved on the file, the workaround is saving the file as a new file every time

EXPECTED RESULT
new layers and paint should be saved in the same named file

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

ADDITIONAL INFORMATION
Comment 1 Halla Rempt 2021-12-16 08:28:34 UTC
* Does this happen to all files for you?
* If not, could you attach the file in question?
* Please also attach the contents of the log field of help->report bug.
Comment 2 Lluvia Alvarado 2021-12-16 21:33:52 UTC
Created attachment 144614 [details]
logs

this are the logs
Comment 3 Lluvia Alvarado 2021-12-16 21:39:08 UTC
(In reply to Halla Rempt from comment #1)
> * Does this happen to all files for you?
> * If not, could you attach the file in question?
> * Please also attach the contents of the log field of help->report bug.

This is the first drawing I've made and it happened after re opening the file when it already had around 22 layers and worked in it around 2 hrs adding like 10 more layers and saving constantly (I didn't checked the file inside the folder to verify if it was being saved correctly, now I do that everytime I save to make sure I don't lose my work) was confident that the program saved my file after doing ctrl+s and seeing the interface indicate the save was done and shutdown the program, the next day I reopened the file and found that all the 2hrs work was lost but the new colors added to my custom palette where there so it saved the colors but not the layers. I don't have the original file since I renamed it in order for it to save the new changes and until now the error has not appeared again but I still check everytime the file in the folder after I save, the renamed file is this one https://drive.google.com/file/d/1_rKIO3Ty4--Ov2iNV3fIqNaUQFUWEnoS/view?usp=sharing if it helps, I also attached the log.
Comment 4 Lluvia Alvarado 2021-12-16 21:40:37 UTC
also the file before was just arcaneXmas, I added the 2 to the end, that would be the only difference
Comment 5 Bug Janitor Service 2021-12-17 04:35:28 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 6 Lluvia Alvarado 2021-12-17 04:48:51 UTC
(In reply to Bug Janitor Service from comment #5)
> 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.

got it, thanks!
Comment 7 Halla Rempt 2021-12-17 09:25:52 UTC
* Krita already has an incremental backup  and versioned save function: https://docs.krita.org/en/user_manual/autosave.html
* I can open the linked file, add layers, save it, close it and reopen it and the new layers are present.

I suspect you had the file open twice and saved it twice, first the one with the 110 layers:

14 Dec 2021 21:29:02 -0600: Saving Document E:/Imágenes/Krita/ArcaneXmas/arcaneXmas.kra as E:/Imágenes/Krita/ArcaneXmas/arcaneXmas.kra (mime: application/x-krita). 2700 * 2160 pixels, 110 layers.  101 frames, 24 framerate. Export configuration: No configuration

And you overwrite it with the other open version of the file, without the extra layers:

14 Dec 2021 21:52:23 -0600: Saving Document E:/Imágenes/Krita/ArcaneXmas/arcaneXmas.kra as E:/Imágenes/Krita/ArcaneXmas/arcaneXmas.kra (mime: application/x-krita). 2700 * 2160 pixels, 82 layers.  101 frames, 24 framerate. Export configuration: No configuration
Comment 8 Lluvia Alvarado 2021-12-17 18:14:09 UTC
(In reply to Halla Rempt from comment #7)
> * Krita already has an incremental backup  and versioned save function:
> https://docs.krita.org/en/user_manual/autosave.html
> * I can open the linked file, add layers, save it, close it and reopen it
> and the new layers are present.
> 
> I suspect you had the file open twice and saved it twice, first the one with
> the 110 layers:
> 
> 14 Dec 2021 21:29:02 -0600: Saving Document
> E:/Imágenes/Krita/ArcaneXmas/arcaneXmas.kra as
> E:/Imágenes/Krita/ArcaneXmas/arcaneXmas.kra (mime: application/x-krita).
> 2700 * 2160 pixels, 110 layers.  101 frames, 24 framerate. Export
> configuration: No configuration
> 
> And you overwrite it with the other open version of the file, without the
> extra layers:
> 
> 14 Dec 2021 21:52:23 -0600: Saving Document
> E:/Imágenes/Krita/ArcaneXmas/arcaneXmas.kra as
> E:/Imágenes/Krita/ArcaneXmas/arcaneXmas.kra (mime: application/x-krita).
> 2700 * 2160 pixels, 82 layers.  101 frames, 24 framerate. Export
> configuration: No configuration

Ok I see what happened, it's weird how it happened like that since I opened the file from krita's homepage in the recent documents section but yeah I see that could've been the case because of the difference of layers but I don't remember having to files opened at the time neither having 2 tabs in krita or something like that, I'll be careful to check what version is being opened and worked on