sentry-unity: [IOS & Android] Missing IL2CPP Line Number Information
Environment
How do you use Sentry? Sentry SaaS (sentry.io)
Which version of the SDK? 1.2.0
How did you install the package? (Git-URL, Assetstore) Git-URL
Which version of Unity? 2021.3.24f1
Is this happening in Unity (editor) or on a player like Android, iOS, Windows? Issue happening on IOS and Android device
Steps to Reproduce
Trigger exception on device (iphone and android)
Expected Result
Actual c# line number should be shown on sentry page
Actual Result
No info on actual line number, only filename and function that is having the exception
Notes or comments
- From unity build log, unity is invoking il2cpp with these arguments
Invoking il2cpp with arguments: --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityaot-macos" --cachedirectory=REDACTED --additional-cpp=REDACTED --additional-cpp=REDACTED --avoid-dynamic-library-copy --dont-deploy-baselib --profiler-report --emit-source-mapping --directory=REDACTED --generatedcppdir=REDACTED --stats-output-dir=REDACTED --convert-in-graph
- Sentry CLI is run with these arguments
"./sentry-cli-Darwin-universal" "upload-dif" "--il2cpp-mapping" "--include-sources" REDACTED
- Symbols and sources uploaded, all this is done automatically by xcode / gradle build process
- On IOS Bitcode is disabled
- sentry properties
defaults.org=REDACTED defaults.project=REDACTED auth.token=REDACTED dif.max_item_size=10485760 log.level=info
Any logs or screenshots
Settings for unity ios build settings
Settings for unity android build settings
IL2CPP line numbers is ticked
Upload symbols is ticked (Dev and Sources)
Event on ios not showing correct line number
Event on android not showing correct line number
Symbols uploaded on ios events
Symbols uploaded on android events (this is weird since it’s a different event id with the same root cause issues but when I clicked show detail window it’s showing ios unity framework)
Upload symbol log for ios ios_sentry-symbols-upload.log
Upload symbol log for android android_sentry-symbols-upload.log
I could also provide the event link via mail if the sentry team needs that
Thanks!
About this issue
- Original URL
- State: open
- Created a year ago
- Comments: 21 (11 by maintainers)
I can finally reproduce this locally! Thank you so much for the repro @ernesernesto!
I’ve been looking into this and it looks to me like there are two different issues. On Android, the debug symbols are missing and the logs make no indication of why that might be. And on iOS there is something off with the symbolication itself. I’m going to need some help from a different team on this one.
@bitsandfoxes I did steps 2-5, please check your mail, I’ve sent the latest symbols upload log and the event link, thanks!
I’m really not sure at this point. One issue I identified is the SDK reporting a wrong/malformed debug ID. I’m still in the process of isolating the root cause. That part of the SDK has not changed in quite some time so I suspect the issue either originating in a change in Unity’s IL2CPP part or our symbolication.
@bitsandfoxes sent to your mail, thanks!