Bug 405634

Summary: A certain PSD file cannot be opened.
Product: [Applications] krita Reporter: anagramma
Component: File formatsAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: halla
Priority: NOR    
Version First Reported In: 4.1.7   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: error opening PSD file

Description anagramma 2019-03-19 10:45:11 UTC
Created attachment 118908 [details]
error opening PSD file

SUMMARY


STEPS TO REPRODUCE
1. error opening PSD file  (file in attachment)
internal error

This online editor opens normally (https://videovegas.ru/editor-format-psd-online).
Comment 1 Halla Rempt 2019-03-19 11:02:13 UTC
The problem is that the compression mode of that PSD file is not supported. I notice that gimp also cannot open this file.
Comment 2 Halla Rempt 2019-03-19 11:32:10 UTC
Which application was the PSD made with? When debugging I also get an illegal value when reading the layer/mask length value (38 instead of 0, 20 or 36)
Comment 3 Halla Rempt 2019-03-19 11:40:08 UTC
When I open the file in photoshop and save it again, it asks me whether I want to save with "maximum compatibility". 

So the question is:

* did you save this file from photoshop or another application?

and if from photoshop,

* was compatibility enabled?
Comment 4 anagramma 2019-03-19 11:41:34 UTC
(In reply to Boudewijn Rempt from comment #2)
> Which application was the PSD made with? When debugging I also get an
> illegal value when reading the layer/mask length value (38 instead of 0, 20
> or 36)

Last saved in the online editor (https://videovegas.ru/editor-format-psd-online). I have no other editing application.
Comment 5 Halla Rempt 2019-03-19 11:43:38 UTC
Then I suspect that that editor has a bug; it's saving non-conforming psd files, and I bet the authors of that application have only tested with Photoshop, instead of following the psd specification.
Comment 6 anagramma 2019-03-19 11:47:41 UTC
May be. I hope you fix it so that your program does not crash. Thx.
Comment 7 Halla Rempt 2019-03-19 11:52:25 UTC
Please tell the authors of the webapp that they should test their product with more applications than just Photoshop. You can also point them at https://www.adobe.com/devnet-apps/photoshop/fileformatashtml/
Comment 8 Bug Janitor Service 2019-03-20 04:33:12 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 9 Halla Rempt 2019-04-04 09:50:38 UTC
I'm sorry, but we cannot start adding workaround for other, buggy applications.