Bug 438324 - Specific PSD file causes color selector and canvas glitches
Summary: Specific PSD file causes color selector and canvas glitches
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: git master (please specify the git hash!)
Platform: Appimage All
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-09 13:38 UTC by Anna Medonosova
Modified: 2021-09-22 07:45 UTC (History)
3 users (show)

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


Attachments
test file (475.76 KB, image/vnd.adobe.photoshop)
2021-06-09 13:38 UTC, Anna Medonosova
Details
selector glitches (193.58 KB, image/jpeg)
2021-06-09 13:38 UTC, Anna Medonosova
Details
system information for bug reports (appimage) (2.35 KB, text/plain)
2021-06-09 20:21 UTC, Anna Medonosova
Details
system information for bug reports (android) (2.37 KB, text/plain)
2021-06-09 20:29 UTC, Anna Medonosova
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anna Medonosova 2021-06-09 13:38:02 UTC
Created attachment 139138 [details]
test file

SUMMARY
When a specific PSD file is open, color selectors (advanced, specific and internal on Linux, on Android also the one in popu palette) and canvas (on Android) become unusable due to various visual glitches. 

The image also does not work when saved as or exported. On Android I have also seen some kind of storage error. A way to recover the image is to copy the layers to a different document.

I suspect it may have something to do with the document color space, but I'm not sure about that.

I have observed the issue in latest nightly appimage and on Android git master build. In the 4.4.3 appimage, the glitches are not present.


STEPS TO REPRODUCE
1. Open testimage.psd (attached to this report)

OBSERVED RESULT
The color selectors disappear, are displaced or display other glitches. The canvas shows only portions of the document.
Comment 1 Anna Medonosova 2021-06-09 13:38:31 UTC
Created attachment 139139 [details]
selector glitches
Comment 2 wolthera 2021-06-09 15:22:00 UTC
I cannot reproduce this here, but maybe it's fastfloat related again? When did you download this appimage? Because we changed some things in lcms, like, yesterday.

=======================================
Krita

 Version: 5.0.0-prealpha (git bb5fc2d)
 Languages: en_US, en, en_GB, en, nl, en_US, en
 Hidpi: true

Qt

  Version (compiled): 5.15.2
  Version (loaded): 5.15.3

OS Information

  Build ABI: x86_64-little_endian-lp64
  Build CPU: x86_64
  CPU: x86_64
  Kernel Type: linux
  Kernel Version: 5.4.0-74-generic
  Pretty Productname: KDE neon User Edition 5.21
  Product Type: neon
  Product Version: 20.04
  Desktop: KDE
Comment 3 Anna Medonosova 2021-06-09 20:21:36 UTC
Created attachment 139166 [details]
system information for bug reports (appimage)

I have retested with AppImage 5.0.0-prealpha (git 607fca8). I can still reproduce the issue. I'm attaching system information for bug reports to this bug.
Comment 4 Anna Medonosova 2021-06-09 20:29:44 UTC
Created attachment 139168 [details]
system information for bug reports (android)

On Android, I can't reproduce the glitches on canvas with 5.0.0-prealpha (git 884a064) I have built today. The triangle in the Advanced color selector is invisible.
Comment 5 wolthera 2021-09-09 13:07:18 UTC
I am adding Amyspark to this, as it might belong to the list of reports that might be fixed by LCMS fastfloat bugs.
Comment 6 wolthera 2021-09-19 14:18:50 UTC
anna, is this still happening with the latest appimage? Amyspark added some important patches to LCMS. (though, you might need to use the nightly, I don't recall if they cherry-picked it to 5.0...)
Comment 7 Anna Medonosova 2021-09-21 16:51:37 UTC
(In reply to wolthera from comment #6)
> anna, is this still happening with the latest appimage? Amyspark added some
> important patches to LCMS. (though, you might need to use the nightly, I
> don't recall if they cherry-picked it to 5.0...)

Hi, Wolthera,

I tried reproducing the issue on git 6a5e83d (AppImage and local builds for Linux and Android). The visual glitches are gone. I'm marking the bug as resolved.
Comment 8 Halla Rempt 2021-09-22 07:45:07 UTC
Thanks for checking!