https://bugs.kde.org/show_bug.cgi?id=440812

            Bug ID: 440812
           Summary: Document corruption: Cannot be saved anymore when
                    color palette is embedded into document
           Product: krita
           Version: 4.4.7
          Platform: Microsoft Windows
                OS: Microsoft Windows
            Status: REPORTED
          Severity: critical
          Priority: NOR
         Component: File formats
          Assignee: krita-bugs-n...@kde.org
          Reporter: nischtzchat+kr...@gmail.com
  Target Milestone: ---

Created attachment 140622
  --> https://bugs.kde.org/attachment.cgi?id=140622&action=edit
Animated GIF screencast that visualizes Reproduction Step 2

SUMMARY
Creating a color palette with the checkbox for embedding the palette into the
document set corrupts the KRA file after saving. Once the KRA is saved, Krita
closed and opened again, the KRA file cannot be saved anymore. At all.

STEPS TO REPRODUCE
1. Create a new document.
2. Create a new Color Palette (e.g. "BuggyPalette" for both name and filename)
and tick the checkbox for embedding the palette into document.
3. Save your project file as .KRA, (e.g. "TestFile.kra")
4. Close Krita.
5. Open Krita again.
6. Load your project file.
7. Paint something (or make any other change to your file so you have something
to save).
8. Try to save your file via CTRL+S / File>Save or File>SaveAs...

OBSERVED RESULT
The file has become corrupted and cannot be saved anymore. A dialog is shown
with a different error message, depending on which save option you used:

File/Save =
"Could not save [XXX.kra] Reason: Unknown Error"

File/Save As... [different file name] =
"Could not save [XXX.kra] Reason: Error occurred while writing to the file"

EXPECTED RESULT
The file should save successfully without any errors.

SOFTWARE/OS VERSIONS
Windows: Win 10 Pro 21H1 / 19043.1110
Krita version: 4.4.7 (x64 windows installer)

ADDITIONAL INFORMATION
- I attached an animated GIF screencast that visualizes Reproduction Step #2. 
- Workaround: Renaming the .KRA file to ZIP and manually deleting the
corresponding palette file (palettes/BuggyPalette.kpl in this case) seems to
fix the save bug, even when the (now missing) palette is still referenced in
maindoc.xml . Not sure if there are any side effects to this, though.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to