Search Issue Tracker
Fixed
Fixed in 7.2.0, 9.2.1, 10.2.1
Votes
3
Found in [Package]
7.1.2
9.1.3
10.1.4
Issue ID
DANB-841
Regression
No
ArgumentOutOfRangeException is thrown and Editor hangs when generating geometry with hidden Sprites
Reproduction steps:
1. Open the attached “bug-report.zip” project
2. From the Project Window select “Character.psb”
3. Click on “Open Sprite Editor” in the Inspector
4. In the Sprite Editor window, switch the dropdown from “Sprite Editor” to “Skinning Editor”
5. Select “Auto Geometry” on the right side menu
6. Click on the “Visibility” button at the top to open the Visibility menu
7. Select “Sprite” and hide any of the Sprites
8. In the Geometry window click “Generate For All Visible” button
9. Observe the Console and the Editor
Expected result: The geometry gets generated
Actual result: “ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.” is thrown and Editor hangs indefinitely
Reproducible with: 2021.3.43f1, 2022.3.45f1, 6000.0.18f1
Reproducible on: Windows 11
Not reproducible on: No other environment tested
Comments (3)
-
EnkHeart
Jan 16, 2025 14:35
I have the same problem on SteamDeckOS on KDE Linux. It happens, if the PSB-Layers are covered by other layers. Example: Left_Arm and Left_Leg of a "2D Character who is facing to right" is behind Right_Arm and Right_Leg.
If I remove the covered Layers (Left_Arm and Left_Leg) in the PSB the AutoGeometry works.A workaround of this "2D Character who is facing to right" is a simple sprite-atlas with all Parts. Not very efficient.
-
SteeredWrong
Sep 15, 2024 23:15
If you're still encountering this issue. It may be because the Geometry settings default Subdivide to 0. Changing it to 1 solved my issue
-
SteeredWrong
Sep 15, 2024 22:45
Even when all sprites are made visible, this still happens for me
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
- Volumetric fog shader variants are missing from build when "Strict Shader Variant Matching" is disabled
- Unnecessary modifications clutter the Scene when using a RectTransform driven by a LayoutGroup in a Prefab
- Files in the target folder are deleted without a proper warning when building an iOS project
- Character animation freezes when toggling animator on/off in a coroutine
- Certain textures are incorrectly marked in the render pass list when observed through Render Graph Viewer
Resolution Note (fix version 10.2.1):
The fix for this issue is available with the 2d animation package 10.2.1 and above.
Thank you.
Resolution Note (fix version 9.2.1):
This fix will be released as the 2d animation package 9.2.1 or above.
Resolution Note (fix version 7.2.0):
This fix will be released as the 2d animation package 7.2.0 above.