sentry-unity icon indicating copy to clipboard operation
sentry-unity copied to clipboard

Stack Trace missing from event on Android

Open bitsandfoxes opened this issue 3 years ago • 1 comments
trafficstars

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

bitsandfoxes avatar Aug 18 '22 15:08 bitsandfoxes

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.

bitsandfoxes avatar Aug 18 '22 15:08 bitsandfoxes

Massive improvements to IL2CPP line number support in the last couple of releases. Plus https://github.com/getsentry/symbolic/pull/776/files

bitsandfoxes avatar Apr 04 '23 17:04 bitsandfoxes