Closed perholmes closed 5 months ago
Hey @perholmes, thanks for the detailled report! We're looking into this, but please be aware that we'll be a bit slower than usual due to ongoing conferences and PTOs.
Took a while to get back around to this, sorry about that. We've got a known limitation with CySharp
. where we're unable to provide line numbers.
I've tested this a couple of different ways but "it works on my machine". The screenshot you've provided from the stacktrace on a sentry issue is from a native crash. Stacktraces from native crashes get captured through a different mechanism/SDK and look different from C# exceptions and events.
Can you provide me with an example of what it is that does not work for you?
Closing this as stale. Please, don't hesitate to reopen this if the issue persists for you.
Environment
Unity 2023.1.0a25 Sentry Unity 1.2.0 Android 13 Phone
Problem
We get C++ IL2CPP stack traces on exceptions, and proper C# stack traces on capture message.
CaptureMessage works
On SentrySdk.CaptureMessage calls, normal stack traces are received:
The stack traces aren't perfect. There are some frames missing that are showing if we just log the exception through a log listener. But it's something.
Exceptions return C++ IL2CPP stack traces
On throw an exception or any natural exception like a C# null pointer, you get a C++ IL2CPP stack trace:
But logging exceptions works
A simple logging exception handler works, so there clearly isn't a general problem with getting stack traces through IL2CPP:
We're basically out of ideas, and starting toying with the idea of dropping Sentry for our Unity apps, and just submitting our own crash reports. We've tried what we feel is every combination of settings for:
Any help would be much appreciated.