sentry-unity
sentry-unity copied to clipboard
Stack Trace missing from event on Android
There seems to be an issue with inlined throw null
and how that gets transformed by the IL2CPP compiler. But this seems to only affect Android.
With the MethodImpl(MethodImplOptions.NoInlining)
:
❌ Inlined throw null
: https://sentry.io/organizations/sentry-sdks/issues/3512485329/events/c39839abf10540e39a05ed4c500d4ef0/?project=5439417
✅ Non-inlined throw null
: https://sentry.io/organizations/sentry-sdks/issues/3512457595/events/5d4438b59c594f67864f3f3e55681817/?project=5439417
✅ Inlined Throw new Exception()
- https://sentry.io/organizations/sentry-sdks/issues/3512457595/events/7c2218f99e45409f84a6976faf74c4bc/?project=5439417
✅ Non-inlined Throw new Exception()
- https://sentry.io/organizations/sentry-sdks/issues/3512457595/events/4af3479a4d754a7e9dc161db2b8657a6/?project=5439417
This might be related to something that came up in here: https://github.com/getsentry/sentry-unity/issues/920#issuecomment-1201207132 Sometimes, IL2CPP does not seem to generate line mappings.
Massive improvements to IL2CPP line number support in the last couple of releases. Plus https://github.com/getsentry/symbolic/pull/776/files