Search Issue Tracker

Fixed in 3.1.4

Votes

1

Found in [Package]

2.0.3

Issue ID

1230120

Regression

No

IndexOutOfRangeException error is thrown when importing PSB files with 32-bit color using 2D PSD Importer

Package: 2D PSD Importer

-

How to reproduce:
1. Create a new Unity project and import the 2D PSD Importer package
2. Download the user-supplied "error.psb" file
3. Import the file to your Unity project

Expected result: the .psb is imported successfully
Actual result: errors appear in the Console upon trying to import

Reproducible with:
1. 2.0.3 (Unity 2019.3.0a12)
2. 2.1.3 (Unity 2019.3.8f1)
3. 3.1.1 (Unity 2020.1.0b4)
4. 3.1.3 (Unity 2020.2.0a5)

Could not test with: 2017.4 (due to the missing package), 2018.4 (2D PSD Importer unavailable)

Notes:
1. Full errors are as follows:
1.1. IndexOutOfRangeException: Index was outside the bounds of the array.
PhotoshopFile.Compression.ZipPredict32Image.Unpredict (System.Byte[] ptrData, System.Byte[] ptrOutput) (at
Library/PackageCache/com.unity.2d.psdimporter@2.0.3/Editor/PSDPlugin/PsdFile/Compression/ZipPredict32Image.cs:175)
1.2. Asset import failed, "Assets/case_1230120-error 1.psb" > IndexOutOfRangeException: Index was outside the bounds of the array.
PhotoshopFile.Compression.ZipPredict32Image.Unpredict (System.Byte[] ptrData, System.Byte[] ptrOutput) (at
Library/PackageCache/com.unity.2d.psdimporter@2.0.3/Editor/PSDPlugin/PsdFile/Compression/ZipPredict32Image.cs:175)

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.