-
-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Setting the instruction_addr_adjustment
for IL2CPP exceptions
#1165
Conversation
|
sentryStacktrace.AddressAdjustment = | ||
Application.platform == RuntimePlatform.Android | ||
? InstructionAddressAdjustment.None | ||
: InstructionAddressAdjustment.All; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you tested other platforms with @Swatinem? This comment only mentioned Android, macOS and iOS: getsentry/rfcs#43 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we have also tried Windows as well. Android seemed to be the only platform where the instruction addresses are already adjusted coming from Unity.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any info on Linux?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don’t think we have ever looked at that directly. @bitsandfoxes can you prepare an example? Given that all the other platforms are consistent across Unity versions, I believe its fine to only have one example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can confirm it works as intended: https://sentry-sdks.sentry.io/issues/3910273139/events/338e29d9d91147fc88b73d29ca7dc3f8/?project=4504604988538880
Based on getsentry/rfcs#43
Fixing C# line numbers for IL2CPP builds.