-
-
Notifications
You must be signed in to change notification settings - Fork 213
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
Missing source context with MAUI apps #2177
Comments
Just to clarify, I can do the same thing without embedding sources. First add the Sentry .NET SDK (or MAUI SDK), then build in release mode, and then use In either case, whether uploading sources separately or embedded, source context does appear for plain .NET Android apps, but not for MAUI .NET Android apps. No difference in behavior between .NET 6 and 7. |
Testing a bit more, and something similar (but not quite identical) is happening for iOS. A MAUI iOS app gets source context only when However, a non-MAUI iOS app ( Something about MAUI specifically is interfering with source context. Not sure what. |
Also note that sometimes the debug info will show erroneously in Sentry as "Deleted" But I don't believe this is related, because when sources are uploaded separately the source bundle is labeled "Ok" Also the debug file isn't really deleted, but somehow the status is incorrectly reported. More on this in getsentry/sentry#44485 |
With the new util to print sources in a PDB, we can see the MAUI one doesn't embed the sources.
|
On the other hand, dotpeek shows them... needs more investigation.
|
OK, so after also printing non-embedded sources, the dump matches dotpeek output:
|
Does that at all explain why uploading sources with |
Not really. Maybe that's the same issue as the iOS one? |
I don't have symbolication problems on Android, just source context. But perhaps related to trimming. I'm not sure. |
I've just tried reproducing locally with the given steps to create a new maui app, build for android release, upload with "--include-sources" and everything works fine: I did use a latest local build of sentry-cli though, not sure it makes a difference... |
OK, it does because the latest released version from getsentry/sentry-cli fails with What version have you tried uploading with @mattjohnsonpint? |
As for the embedded sources in MAUI PDB - this is a bug in symbolic, see getsentry/symbolic#759 |
symbolic released with a fix is: 12.0.0 |
When I first opened this issue, I was using Sentry CLI 2.12.0. It still reproduces with 2.13.0. However, if I build Sentry Cli from main, it appears to be fixed. Looks like Sentry CLI recently had Symbolic bumped to 12, but hasn't been released yet. So I expect this should be resolved with the next release of Sentry CLI (2.13.1 or 2.14.0). I'll leave this open to validate after we can update. Thanks! |
Having trouble getting source context working for MAUI Android apps, but can get them for non-MAUI Android apps.
The same result occurs whether uploading the sources to Sentry, or embedding them in the PDBs. However, it's easier to see by embedding because we can validate sources are missing before sending any events.
Consider:
Output:
Looks good, and sources work. Now the same with MAUI:
Output:
Sentry-cli shows
debug
only.sources
is missing.Sources do appear if compiling in
Debug
configuration.Needs more investigation to figure out if sources aren't being found (which we could document or workaround), or if the format is different somehow (which would require a change to Symbolic), or if something else is at play.
The text was updated successfully, but these errors were encountered: