Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Errors in Built Application in CurvySplineSegment
#7
I'm still looking into this, I've modified some of the curvy code to try and debug and what's trigger the assert is that the cachedTransform in CurvySplineSegment is null. It's like Update is being called before Awake.

Code:
        public bool HasUnprocessedLocalPosition
        {
            get
            {
                Debug.Log($"Unprocessed Local Position: {this.lastProcessedLocalPosition.HasValue} . CT: {this.cachedTransform != null}");
                return lastProcessedLocalPosition.HasValue == false
                      || cachedTransform.localPosition.Approximately(lastProcessedLocalPosition.Value) == false;
            }
        }

Added this logging to debug.

I just tried having it used "this.transform" instead of cached transform and the case is still hit.

Something is marking the spline segment for destroy yet this update is still happening.

EDIT: So I made a refactor too allow Curvy to do the pooling for the segments instead of using our own logic and, with the pool on the segments enabled, the error does go away.

While I can use this in the short term, being able to control the lifetime of an entire curvy hierarchy is important.

We use addressables and some async code pretty heavily so it's possible some of the Destroy calls curvy was making weren't on the main unity thread leading to this issue. Maybe this is something that gives you an indication of how this can be safely allowed?
Reply


Messages In This Thread
RE: Errors in Built Application in CurvySplineSegment - by TdayMFG - 04-10-2025, 07:47 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Updated package in 2022 LTS resulted in multiple errors scr33ner 2 1,706 01-13-2025, 09:32 AM
Last Post: _Aka_
  Small errors in end tangents, by davelloyd _Aka_ 0 948 01-07-2025, 11:14 AM
Last Post: _Aka_
  Playmaker setup errors and missing scripts? justifun 9 6,426 08-06-2024, 09:41 AM
Last Post: _Aka_
  Disabling a CurvySplineSegment results in NullRefException Lupos 1 1,421 10-02-2023, 09:55 AM
Last Post: _Aka_

Forum Jump: