After upgrading to Krita 3.1.3 Alpha and beta, I noticed some of my recently saved krita documents got their layers resized into about 1/2 of their original sizes, making them totally unsable. Their canvas sizes were unchanged. I encountered this issue on 2 different computers, both using PPA (3.1.3 alpha) and Appimage (3.1.3 beta). I don't remember any error happened while I save the documents. I have no idea what triggered it. Seems random. I will attach 2 files which the same bug happened twice in a row, making the second saved version so small it becomes totally unsable. Strongly suggest we look into this bug before we release Krita 3.1.3 final, it caused so much damage here I don't want it to happen to other people.
Created attachment 104978 [details] First unwanted layer resize save, 1/4 size of original The line art layer became 1/4 of the original size.
Created attachment 104979 [details] Second unwated resized layer save After restarting Krita, I opened the 1/4 version and resaved once, now it became 1/4 of the 1/4, 1/16 of the original size.
Attachment correction: attachment 104978 [details] is the 1/16 one because it got 1/4 twice. attachment 104979 [details] is the backup file of attachment 104978 [details] so it is 1/4 of the original size. And because of it is being a backup, it doesn't have that extra layer. attachment 104978 [details]'s 2 layers are not aligned, but they were aligned in the original version. The now missing original version have the layers fill the canvas. I was editing 3 documents, all of them were saved multiple times in the same session. But only this one was affected.
Correction: This probably only happened with Krita 3.1.3 beta (appimage)
I suspect that it would also have happened in 3.1.3-alpha, and that Krita is saving the wrong LOD plane.
*** This bug has been marked as a duplicate of bug 361883 ***
Hi, Tyson! Is it possible to get a terminal output of Krita, when it generated this wrong file? Were there any messages like "Could not lock the document for saving"? If my hypothesis is correct, then Krita should have warned you about the problem with locking...
And did it show you "Save without Waiting" dialog?
Hi Dmitry, No, Krita did not popup any dialogue. Saving was done without interruption. In fact, there were 3 documents opened simultaneously, only this one got resized. All of them had the exact same size: A4 300dpi, vertical. The only difference being the affected one had 2 line art layers (3 in total), while the other 2 had 1 line art layer (2 in total). BTW I received the postcards. They were beautifully printed. Thank you! :D
Git commit af9a7841964830f8752e1887d9d5b79658ade4ce by Dmitry Kazakov. Committed on 12/04/2017 at 15:20. Pushed by dkazakov into branch 'krita/3.1'. Lock the image while saving It is not enough to just disable cloning of the image, locking should also be recovered. Related: bug 361883 M +55 -52 libs/ui/KisDocument.cpp https://commits.kde.org/krita/af9a7841964830f8752e1887d9d5b79658ade4ce
Git commit d71f0019e01266bd6b77638fcc37007937b40474 by Dmitry Kazakov. Committed on 12/04/2017 at 15:20. Pushed by dkazakov into branch 'krita/3.1'. Add a warning dialog that the user is saving possibly corrupted image Related: bug 361883 M +12 -1 libs/ui/KisMainWindow.cpp M +6 -1 libs/ui/dialogs/kis_delayed_save_dialog.cpp M +7 -0 libs/ui/dialogs/kis_delayed_save_dialog.h https://commits.kde.org/krita/d71f0019e01266bd6b77638fcc37007937b40474
Git commit 7b7ca7efadbd17cfaf3f5cdbd6526c4ae8ec7018 by Dmitry Kazakov. Committed on 12/04/2017 at 19:50. Pushed by dkazakov into branch 'master'. Add a warning dialog that the user is saving possibly corrupted image Related: bug 361883 M +12 -1 libs/ui/KisMainWindow.cpp M +6 -1 libs/ui/dialogs/kis_delayed_save_dialog.cpp M +7 -0 libs/ui/dialogs/kis_delayed_save_dialog.h https://commits.kde.org/krita/7b7ca7efadbd17cfaf3f5cdbd6526c4ae8ec7018