#Unity Cloud Exceptions: null refs with unknown stacktrace into Unity Math

1 messages · Page 1 of 1 (latest)

celest current
#

We have some NullRef exceptions in our dashboard but the stacktrace is quite cryptic. Any help or tips with getting more info, logs or debugging it in general are welcome.

#

Examples of stack trace:

Managed Stack Trace:

(unknown) (inlined) (at ./Library/PackageCache/com.unity.mathematics@8017b507cc74/Unity.Mathematics/random.cs:472)
(unknown) (inlined) (at ./Library/PackageCache/com.unity.mathematics@8017b507cc74/Unity.Mathematics/math.cs:1699)
#

We have about a dozen of these, all very similar, all unknown inlined stack traces coming from Unity Math one way or another

#

Please ping me if you reply, thanks in advance for looking at it or helping out!

hasty trout
#

Is it really nullref?

#

There are a few very sus things in that stack trace.
For starters, there's nothing that could throw a null reference in that code.
Then there's also this recursive call at the bottom:

(unknown) (inlined) (at ./Library/PackageCache/com.unity.mathematics@8017b507cc74/Unity.Mathematics/math.cs:1699)
(unknown) (inlined) (at ./Library/PackageCache/com.unity.mathematics@8017b507cc74/Unity.Mathematics/math.cs:1699)

Looking at the code, there's no way there could be a recursion.
The package source code was last updated 2 years ago, and even if there was a change, it's unlikely to explain the mentioned issues.

My best bet is that there's something wrong with the debug symbols. Perhaps using older or incorrect pdbs to resolve the callstack.