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
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
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
Resolution Note (fix version 3.1.4):
Fixed by Package Version: 2D PSD Importer 3.1.4 (2020.1)