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

Package: 2D Animation

-

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

  1. 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.

  2. Resolution Note (fix version 9.2.1):

    This fix will be released as the 2d animation package 9.2.1 or above.

  3. Resolution Note (fix version 7.2.0):

    This fix will be released as the 2d animation package 7.2.0 above.

Comments (3)

  1. 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.

  2. 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

  3. SteeredWrong

    Sep 15, 2024 22:45

    Even when all sprites are made visible, this still happens for me

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.