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

            Bug ID: 458556
           Summary: Single layer PSD saved by Krita cannot be read by
                    Krita
           Product: krita
           Version: 5.1.0
          Platform: Other
                OS: Other
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: File formats
          Assignee: krita-bugs-n...@kde.org
          Reporter: penguinflyer2...@gmail.com
  Target Milestone: ---

Issue:
Single layer PSD saved by Krita 5.1.0 cannot be read by Krita 5.1.0.

Steps:
1. Save a single, nontransparent layer as a .PSD file.
Krita will try to read the file after exporting it, and fail, also logging a
safe assert.

> failed reading layer/mask section:  ""
> SAFE ASSERT (krita): "QThread::currentThread() == this->thread()" in file 
> C:/Packaging/workspace/Krita_Release_Windows64_Build/krita/libs/widgetutils/KoProgressUpdater.cpp,
>  line 165

2. Trying to open the file will show a dialog saying it cannot be opened. The
same file can be opened in 5.0.6.

Expected:
1. The file can be opened in 5.1.0.

Notes:
Reverting lines 222-223 of libs/psd/psd_layer_section.cpp from
        dbgFile << "No layer info, so no PSD layers available";
        return false;
to:
        dbgFile << "No layer + mask info, so no layers, only a background
layer";
        return true;
allows the file to load.
Those lines were changed in this commit:
https://invent.kde.org/graphics/krita/-/commit/2dc3df63a8ad52468afd2a8a8f1123d4c080627d
.
(Reverting them is not necessarily the correct solution.)

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

Reply via email to