-
Notifications
You must be signed in to change notification settings - Fork 1.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
Workload 8.0.61 breaks Mono interpreter on MacCatalyst. #23577
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! Open similar issues:
Closed similar issues:
|
We're experiencing the same with iOS targets. The rollback workaround does not appear to be possible when workload 8.0.61 is installed by multiple sources, such as the SDK and Visual Studio in Windows. |
/cc: @BrzVlad |
On the new version, the runtime config json explicitly sets Looks like the build starts with |
@kotlarmilos is this the result of xamarin/xamarin-macios#20687 ? |
@dalexsoto I think the problem is introduced with this change: xamarin/xamarin-macios@a72bb30
@jdngray77 could you please try again building/running your repro project by adjusting it in the following way: <!-- <UseInterpreter>true</UseInterpreter> -->
<MtouchInterpreter>all</MtouchInterpreter> I was able to execute your sample successfully with the mentioned change. |
@ivanpovazan I just tried the workaround you mentionned above with the sample @jdngray77 provided. Tried it for iOS. I confirm this workaround works with MAUI workload 8.0.61. |
@ivanpovazan Verified here also, |
I tried setting What if we want to continue using AOT? because as described here "App execution speed will be slower because interpreted code runs more slowly than AOT compiled code." |
Description
This week, our build inexplicably broke.
It started producing copies of our app which were not capable of talking to the server and instead produced runtime exceptions. See output below.
We identified the cause to be the Mono interpreter no longer functioning correctly, failing to handle dynamically generated code used in our web interface.
We understand that dynamically generated code has limitations on MacCatalyst, and so in accordance to the docs we have always enabled the Mono interpreter with
<UseInterpreter>true</UseInterpreter>
.We've tried downgrading to SDK version 8.0.302 with no effect,
and using<MtouchInterpreter>all</MtouchInterpreter>
in place ofUseInterpreter
also to no effect.This seems to be a fault that was introduced with an update in the MAUI workload, from
8.0.40
at the start of this week (W/C 8th july 2024) to8.0.61
.Downgrading with the use of a rollback file to
8.0.40
restores our build artefacts functionality :dotnet workload install maui-maccatalyst --from-rollback-file https://maui.blob.core.windows.net/metadata/rollbacks/8.0.40.json
Steps to Reproduce
8.0.61
PlatformNotSupportedException
is written to the console.8.0.40
Link to public reproduction project repository
https://github.com/jdngray77/MauiReproEmit
Version with bug
8.0.61 SR6.1
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
8.0.40 SR5
Affected platforms
macOS
Affected platform versions
Sonoma 14.5 (23F79)
Did you find any workaround?
Yes.
dotnet workload install maui-maccatalyst --from-rollback-file https://maui.blob.core.windows.net/metadata/rollbacks/8.0.40.json
Relevant log output
The text was updated successfully, but these errors were encountered: