-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Android AOT crashes at runtime #55567
Comments
Tagging subscribers to this area: @directhex Issue DetailsDescriptionUsing my changes here: dotnet/android#5539 Along with a custom I'm able to produce an Android However, I hit a crash at runtime, which seems the same on an x86 emulator or arm64 device:
ConfigurationThis is .NET 6.0.100-preview.7.21327.2: Regression?No, AOT on Android is new, and we're trying to get it working. Other informationHere is the full This was using
|
@vargaz Can you take a look at this one? |
I think
and that deref of I think we should be using |
@vargaz thanks AOT apps are launching now. I found I can use this in a project to test newer Mono runtime packs: <Target Name="UpdateMonoRuntimePacks" BeforeTargets="ProcessFrameworkReferences">
<ItemGroup>
<KnownRuntimePack
Update="Microsoft.NETCore.App"
Condition=" '%(KnownRuntimePack.TargetFramework)' == 'net6.0' "
LatestRuntimeFrameworkVersion="6.0.0-preview.7.21364.3"
/>
</ItemGroup>
</Target> |
Description
Using my changes here: dotnet/android#5539
Along with a custom
MonoAOTCompiler.dll
: dotnet/android#5539 (comment)I'm able to produce an Android
.apk
file with AOT support.However, I hit a crash at runtime, which seems the same on an x86 emulator or arm64 device:
Configuration
This is .NET 6.0.100-preview.7.21327.2:
https://github.com/xamarin/xamarin-android/blob/064301bfd9a412895bf526455549a3d4170b8621/eng/Version.Details.xml#L3-L14
Regression?
No, AOT on Android is new, and we're trying to get it working.
Other information
Here is the full
adb logcat
output: aot.txtThis was using
adb shell setprop debug.mono.log debug,timing,aot,assembly
./cc @steveisok @akoeplinger
The text was updated successfully, but these errors were encountered: