-
-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Failed to serialize object for property 'pause_durations' #3990
Comments
Hi @dartasen Thanks for reporting this issue. Can you let me know the following:
Also, what platform(s) are you seeing this issue? |
Hello @aritchie
My MAUI app does use NativeAOT on iOS but did not receive any report from any Apple user yet, only some on Android for now. |
@dartasen I didn't quote the I think we've got enough info here to work with. Thank you for the report and feedback. |
It looks I'm wondering how/where sentry-dotnet/src/Sentry/Internal/MemoryInfo.cs Lines 99 to 105 in 5fab09e
It'd be good to see the full stack trace so we could see what was calling |
@jamescrosswell It's indeed Issue is printed as an error inside the Output tab on VS, but I don't have any Sentry report on the dashboard. I've appended my sentry init code to the original message if that can help. I see that we're using |
@dartasen it could yes. Ben.Demystifier relies on reflection so we don't use it when trimming or AOT compilation is enabled: sentry-dotnet/src/Sentry/SentryClient.cs Lines 233 to 237 in 8abc13e
When publishing on iOS then, enhanced stack frames won't be used (AOT compilation is required on iOS). Android only supports partial AOT compilation (I think specific methods and code paths were targeted to optimise startup times, but everything else is still JIT - @aritchie probably knows more about this). It's pretty hard to tell without being able to reproduce the problem though - mostly wild speculation. If we can reproduce it, we should be able to work out what's going on. |
Package
Sentry.Maui
.NET Flavor
.NET
.NET Version
9.0.2
OS
Android
SDK Version
5.1.1
Self-Hosted Sentry Version
No response
Steps to Reproduce
?
Might be related but we're setting the following MSBuild property :
<JsonSerializerIsReflectionEnabledByDefault>false</JsonSerializerIsReflectionEnabledByDefault>
But since I can see some Json Source Generation Context involved inside of Sentry, I guess it might be an oversight
Expected Result
No error
Actual Result
My sentry init code :
The text was updated successfully, but these errors were encountered: