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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- WebGL sends wrong value with large numbers when SendMessage function is used
- Add Behaviour dropdown has a part in which the dropdown outline is cut out when the Add Behaviour dropdown is opened
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.