-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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 startup crash #102166
Comments
/cc @steveisok |
I can reproduce with an avalonia sample using F# as the language. If I stick with C#, it works as expected. Unsure what's missing with F#, but I presume something is and that's what is causing the crash. Will continue to investigate. |
@jonathanpeppers could there be something missing from our end w/ f# as the target language? |
Well, FSharp.Core has limited compatibility with trimming/AOT, but maybe it doesn't come into play until later during startup? As I said, this works just fine with Preview 2 on ARM64 in addition to x64 on Preview 3, so the problem is hopefully not too hard to pinpoint. |
@kerams if you remove this setting, does it change anything We have a few F# tests, but they are basically empty "hello world" projects. We don't even have Regarding:
This is on-purpose, due to the change: Going forward, we are relying on Google Play splitting up your app per architecture. If you want to compare, check the file size Google Play reports, or you can build for a single arch like |
Removed the link tool setting. The apk size increased, so it did have some effect, but still crashes. |
Works again on Preview 4. Feel free to close if you do not want to investigate further. |
Description
Avalonia application for Android compiled with AOT and 9.0.0-preview.3.24172.9 crashes on an Android 10 ARM64 device, but not in x64 emulator.
Reproduction Steps
It's a closed source application, but I'm almsot willing to bet it could be reproduced with a minimal Avalonia template. In any case, here are the fsproj settings:
Details
Expected behavior
No startup crash.
Actual behavior
Startup crash with
Detailed logcat output: logcat.zip
Regression?
Yes, application launches when compiled using 9.0.100-preview.2.24157.14
It's also slightly concerning that the output apk containing libraries for all 4 ABIs is 85MB on Preview 3 and 65MB on Preview 2.
Known Workarounds
No response
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: