-
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
(net9.0-ios preview 3) SRE not available when interpreter is enabled #101840
Comments
@simonrozsival could you please try this? It looks like the |
@vitek-karas @rolfbjarne this regression is probably caused by xamarin/xamarin-macios#19812. We now set the In this case the project has the following setting: <UseInterpreter>true</UseInterpreter>
<MtouchInterpreter>-all</MtouchInterpreter> When @rdavisau please try removing both of these properties from your .NET 9 project file. I believe the default configuration is the configuration you're trying to express with these settings. |
Tagging subscribers to this area: @BrzVlad, @kotlarmilos |
Thanks @simonrozsival, I've given a few combinations a try - altering the .NET 9 project file: No interpreter related properties, or only Crashes with
Only Works* -- Although (I've added edits to the issue to mention the |
Yes, looks like I got the boolean condition reversed. Adding this to your csproj should work in the meantime: <PropertyGroup>
<DynamicCodeSupport>true</DynamicCodeSupport>
</PropertyGroup> and then set MtouchInterpreter to your desired value. |
…upported or not. Fixes #dotnet/runtime@101840. Dynamic code is not supported if the interpreter is not enabled, and the interpreter is not enabled if the MtouchInterpreter property is *empty*. This regression was introduced in xamarin#19812. Fixes dotnet/runtime#101840.
…upported or not. Fixes #dotnet/runtime@101840. (#20563) Dynamic code is not supported if the interpreter is not enabled, and the interpreter is not enabled if the MtouchInterpreter property is *empty*. This regression was introduced in #19812. Fixes dotnet/runtime#101840.
This has been fixed, and the fix will be in preview 5. |
…or not. Fixes #dotnet/runtime@101840. (xamarin#20563) Dynamic code is not supported if the interpreter is not enabled, and the interpreter is not enabled if the MtouchInterpreter property is *empty*. This regression was introduced in xamarin#19812. Fixes dotnet/runtime#101840.
…or not. Fixes #dotnet/runtime@101840. (#20563) (#20696) Dynamic code is not supported if the interpreter is not enabled, and the interpreter is not enabled if the MtouchInterpreter property is *empty*. This regression was introduced in #19812. Fixes dotnet/runtime#101840.
…or not. Fixes #dotnet/runtime@101840. (xamarin#20563) (xamarin#20696) Dynamic code is not supported if the interpreter is not enabled, and the interpreter is not enabled if the MtouchInterpreter property is *empty*. This regression was introduced in xamarin#19812. Fixes dotnet/runtime#101840.
Description
Regression? from
net8.0-ios
Operations involving SRE are expected to fail when interpreter is disabled. However, innet9.0-ios
operations fail even when the interpreter is enabled, with the exceptionSystem.PlatformNotSupportedException: Dynamic code generation is not supported on this platform.
edit: updated based on the guided investigation in the issue
Operations involving SRE are expected to fail when interpreter is disabled. However, in
net9.0-ios
operations fail even when the interpreter is enabled, if<MTouchInterpreter>
property is also specified, with the exceptionSystem.PlatformNotSupportedException: Dynamic code generation is not supported on this platform.
Reproduction Steps
Clone and run net8/net9 scripts: https://github.com/rdavisau/ios-net9-sre-repro
Or
<UseInterpreter>true</UseInterpreter>
(edit: and<MTouchInterpreter>-all</MTouchInterpreter>
)AssemblyBuilder.DefineDynamicAssembly(new AssemblyName("Emit"), AssemblyBuilderAccess.Run)
before end ofAppDelegate.FinishedLaunching
Expected behavior
Application will launch
Actual behavior
Application crashes:
Regression?
Yes - working in net8.0-ios and earlier. Unsure whether it worked in net9 p2/p1
Known Workarounds
No response
Configuration
dotnet --info
Other information
No response
The text was updated successfully, but these errors were encountered: