Skip to content
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

[.NET MAUI] JSON showing unknown_image and Android event lacks line and column numbers #3985

Open
souredoutlook opened this issue Feb 20, 2025 · 4 comments · May be fixed by #4033
Open

[.NET MAUI] JSON showing unknown_image and Android event lacks line and column numbers #3985

souredoutlook opened this issue Feb 20, 2025 · 4 comments · May be fixed by #4033
Assignees

Comments

@souredoutlook
Copy link
Member

Package

Sentry

.NET Flavor

Xamarin

.NET Version

9.02

OS

Android

SDK Version

5.1.1

Self-Hosted Sentry Version

saas

Steps to Reproduce

with this csproj config:

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='AppStore|AnyCPU'"> 
 <Debugger>Xamarin</Debugger> 
 <DebugType>portable</DebugType> 
 <DebugSymbols>true</DebugSymbols> 
 <EmbedAllSources>true</EmbedAllSources> 
 <EnableSourceLink>true</EnableSourceLink> 
 <RunAOTCompilation>False</RunAOTCompilation> 
 <PublishTrimmed>False</PublishTrimmed> 
 <AndroidUseAapt2>True</AndroidUseAapt2> 
 <AndroidCreatePackagePerAbi>False</AndroidCreatePackagePerAbi> 
 <AndroidPackageFormat>aab</AndroidPackageFormat> 
 <AndroidLinkMode>None</AndroidLinkMode> 
 <Optimize>True</Optimize> 
 <EmbedAssembliesIntoApk>True</EmbedAssembliesIntoApk> 
 <UseSentryCLI>true</UseSentryCLI> 
 <SentryOrg>vesigo-studios</SentryOrg> 
 <SentryProject>ontime_mobile</SentryProject> 
 <SentryUploadSymbols>true</SentryUploadSymbols> 
 <SentryUploadAndroidProguardMapping>true</SentryUploadAndroidProguardMapping> 
</PropertyGroup>

There are no line or column numbers being shown in the events - native events are working as expected.

Expected Result

Events are paired up with uploaded images

Actual Result

Not symbolicating correctly, example:

https://vesigo-studios.sentry.io/issues/6309002628/events/2905a706b763497ca82e1933ae93ee6b/?project=4508716749684736

@jamescrosswell
Copy link
Collaborator

Thanks @souredoutlook - I take it this is the same issue as #3983, in which case, see the comment I made in that issue.

PS: I don't have access to your Sentry project, so I can't see that event. You can, however, export/save the event as a JSON file from Sentry (if you're comfortable sharing that).

@jamescrosswell
Copy link
Collaborator

Just an update, I've identified the issue here. All that's left to do now is implement the solution.

For details, see the parent issue:

@lucas-zimerman
Copy link
Collaborator

Could it also affect iOS @jamescrosswell ?
I ask that because I noticed a project that I am looking at has no debug_meta on the event for Android and iOS the debug_id doesn't match the ones sent

@jamescrosswell
Copy link
Collaborator

Could it also affect iOS @jamescrosswell ?

Not this issue no - this is caused by a change in the way Android APK files are stored in net9.0-android vs previous android TFMs... so specific to Android.

Symbolication won't work on iOS with Mono AOT. Could that be related?

@jamescrosswell jamescrosswell self-assigned this Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Status: No status
Development

Successfully merging a pull request may close this issue.

3 participants