Search Issue Tracker
Fixed
Fixed in 2022.3.5f1, 2023.1.5f1, 2023.2.0a7
Votes
2
Found in
2022.2.5f1
2023.1.0b2
2023.2.0a6
Issue ID
UUM-25481
Regression
Yes
Crash on GenerateTextureAndSpriteRectDataFromAtlasMask when clicking "Pack Preview" after packing an Asset into Sprite Atlas
Reproduction steps:
1. Open the attached project “Atlas Bug.zip“
2. In the Project window select the “New Sprite Atlas“ Sprite Atlas
3. In the Inspector add the “pistol_ico“ Asset to the “Objects for Packing” list
4. Click “Pack Preview“
Expected result: The Asset Preview window is shown without the Editor crashing
Actual result: The Editor crashes
Reproducible with: 2022.1.0a15, 2022.2.5f1, 2023.1.0b2
Not reproducible with: 2020.3.44f1, 2021.3.18f1, 2022.1.0a14
Reproduced on: Windows 10 Pro
First few lines of the stack trace:
{{0x00007ff78c42709a (Unity) GenerateTextureAndSpriteRectDataFromAtlasMask }}
{{0x00007ff78c414d19 (Unity) PackAtlases }}
{{0x00007ff78c413ee1 (Unity) PackAtlasOnJob }}
{{0x00007ff78c4182c2 (Unity) PackSpriteAtlases }}
{{0x00007ff78b05c16d (Unity) SpriteAtlasUtility_CUSTOM_PackAtlasesInternal}}
Comments (1)
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
- Shader Graph Asset icon is not shown on creation unless you confirm the name
- APV Sky occlusion doesn't consider the terrain
- [iOS] "EXC_BAD_ACCESS" Player crash when Script Debugging is enabled
- Cursor skips input fields when tabbing between two sets of input fields
- "Shader error redefinition of 'Varyings'" error appears when selecting the shader
CaseyHofland
May 05, 2023 07:19
If this causes you to be unable to open the editor:
Step 1:
Find your project on disk and open ProjectSettings > EditorSettings.asset. Find the following line and change the number to something else (I used 2).
"m_SpritePackerMode: 5"
https://forum.unity.com/threads/solved-generatetextureandspriterectdatafromatlasmask.1433092/
Step 2:
Upvote this issue to be fixed in older Unity versions, since your project can't use the Sprite Packer now until it does.