As of 0.623, when calling some methods of a Path2D
that’s parented to nil or isn’t a descendant of a LayerCollector
, Studio crashes immediately with the “unexpected error occurred” screen. This appears to occur 100% of the time.
The methods include but aren’t limited to:
Path2D:GetPositionOnCurve()
Path2D:GetTangentOnCurve()
Path2D:GetPositionOnCurveArcLength()
Path2D:GetTangentOnCurveArcLength()
Repro
- In a script, create a
Path2D
object - Add any amount of
Path2DControlPoint
s - (optional) Parent the
Path2D
anywhere but a descendant of aLayerCollector
- Call any of the methods listed above
Place file
path2dCrashTest.rbxl (52.2 KB)
Expected behavior
A regular error is thrown due to there being no LayerCollector
’s GUI inset properties to go off of.
A private message is associated with this bug report