Search Issue Tracker
Fixed
Votes
0
Found in [Package]
2.7.2
Issue ID
SPLB-343
Regression
Yes
ArgumentOutOfRangeException is thrown when joining Spline Container knots of a closed Spline with JoinSplinesOnKnots
Reproduction steps:
1. Open the attached “IN-97908.zip” project
2. Open the “SampleScene” Scene (Assets > SplineJoinBug > Scenes)
3. Enter Play mode
4. Observe the Console
Expected result: No errors
Actual result: “ArgumentOutOfRangeException: Specified argument was out of the range of valid values.” error is thrown
Reproducible with: 2.5.1, 2.8.0 (2022.3.60f1, 6000.0.44f1, 6000.1.0b12, 6000.2.0a7)
Not reproducible with: 2.4.0 (2022.3.60f1, 6000.0.44f1, 6000.1.0b12, 6000.2.0a7)
Reproducible on: Windows 11
Not reproducible on: No other environment tested
Comments (1)
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
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
- Group Node name text is way smaller in the renaming state than the actual display size
milkychestnut
Apr 12, 2025 20:05
I believe I've found the issue to this bug.
Line 2043
linkedKnots[i] = new SplineKnotIndex(activeSplineIndex, newIndex);
is wrong. It should be using the newActiveSplineIndex, not activeSplineIndex
linkedKnots[i] = new SplineKnotIndex(newActiveSplineIndex, newIndex);