Search Issue Tracker

Fixed

Fixed in 2.1.X

Votes

1

Found in [Package]

2.0.0

Issue ID

SPLB-74

Regression

No

[Splines] DivideByZeroException is thrown when deleting all the knot instances of a spline

Package: Splines

-

How to reproduce:
1. Open the user’s attached “Splines Bugs” project
2. Open the “Splines” Scene
3. Select the “Splines” GameObject in the Hierarchy
4. Select and delete all the “Knots” of one of the splines in the Inspector

Expected result: Corresponding circle made from those splines is deleted without any errors
Actual result: Corresponding circle made from those splines is deleted with “DivideByZeroException: Attempted to divide by zero.” in the Console log

Reproducible with: 2.0.0 (2021.3.12f1, 2022.1.20f1, 2022.2.0b12, 2023.1.0a15)
Couldn’t test with: 2020.3.41f1 (project isn’t compatible)

Reproduced on: macOS 12.6 (Intel)

Note: In some Package versions, instances of “InvalidOperationException: Collection was modified; enumeration operation may not execute.” is thrown

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.