-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[release/9.0-preview7] Add swiftcall signature check for mono_class_try_get_swift_error_class
#105813
[release/9.0-preview7] Add swiftcall signature check for mono_class_try_get_swift_error_class
#105813
Conversation
/cc: @dalexsoto @Redth |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. adding @mmitche and @carlossanlop for timeline
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes please, this is needed for out of the box MAUI apps to not crash on iOS devices
The
|
this is tracked with a known issue #105290 |
The next failure is a timeout in
Apparently we have so many tests in those two areas that we're spending too much time running them. Maybe the timeout limit could be increased for those two? Anyway, seems unrelated to this change. |
I suspect the two remaining legs are also struggling to execute those same tests and might timeout as well.
|
A couple of failed legs got automatically re-run and now they passed. There's only one remaining which seems to be stuck. Since we're short on time, and all other wasm and wasi legs already passed, I will fast-merge. |
Is there more we can do help diagnose this as a consumer? I found nothing in the application output and nothing in the Apple crash logs. i.e. Is there something we can enable on top of debug to get more verbose output. |
I am looking into how to improve diagnostics around such crashes, will provide an update once I have one. Thank you for understanding. |
@richaplinvs we found the issue and I opened #106064 to track it. |
Backport of #105408 to release/9.0-preview7
/cc @ivanpovazan @kotlarmilos
Customer Impact
This is blocking the preview7 release for MAUI.
A sample MAUI iOS application crashes in Debug configuration when run on a physical device without this fix.
The code assumed that
System.Runtime.InteropServices.Swift.SwiftError
is always available inSystem.Private.CoreLib
assembly which is not true as the type can be trimmed away if it is not referenced, which causes the crash.Regression
This was introduced in: 4185f94
Testing
It was verified that by manually rooting
System.Runtime.InteropServices.Swift.SwiftError
the sample MAUI iOS application successfully runs.Risk
Low.
This fix only affects Mono support for Apple targets and the loaded types are now properly null checked.
The
Release
app deployments are not affected and work as expected.IMPORTANT: If this backport is for a servicing release, please verify that:
The PR target branch is
release/X.0-staging
, notrelease/X.0
.If the change touches code that ships in a NuGet package, you have added the necessary package authoring and gotten it explicitly reviewed.