Skip to content

[IOS & Android] Missing IL2CPP Line Number Information #1346

Open
@ernesernesto

Description

@ernesernesto

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
unity_ios_settings

Settings for unity android build settings
unity_android_settings

IL2CPP line numbers is ticked
Screen Shot 2023-05-30 at 21 42 06

Upload symbols is ticked (Dev and Sources)
Screen Shot 2023-05-30 at 21 42 00

Event on ios not showing correct line number
exception_ios

Event on android not showing correct line number
exception_android

Symbols uploaded on ios events
symbols_uploaded_ios

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)
Screen Shot 2023-05-30 at 22 46 39

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    Projects

    Status

    No status

    Status

    No status

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions