Search Issue Tracker

Active

Under Consideration for 2021.3.X, 2022.3.X, 6000.0.X, 6000.1.X, 6000.2.X

Votes

2

Found in

2021.3.43f1

2022.3.45f1

6000.0.18f1

6000.1.0a7

6000.2.0a1

Issue ID

UUM-79309

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)

  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.