-
Notifications
You must be signed in to change notification settings - Fork 527
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
Startup crash F# AOT on Android #9185
Comments
/cc @steveisok the customer seems to be hitting similar problem as reported previously in: dotnet/runtime#102166 |
@ivanpovazan it's not yet clear this is a runtime issue. It seems like there's something missing. More investigation is needed to pin it down. |
@jkurdek @matouskozak can one of you try to reproduce the issue and report the findings? |
I can reproduce the startup crash in P5, it seems to be the same as dotnet/runtime#102166:
I noticed that the template crashes on startup as is (with just the TFM changed to net9.0-android). I have also tried to run a MAUI app written in F# and it doesn't crash on startup. |
For what it's worth, AOT seems to work in Debug mode, so some Release configuration optimization introduced in SDK Preview 3 (something similar to |
This issue looks similar to #9153 where only Release config is crashing and the crash log (#9153) is similar to what you got @simonrozsival at #9185 |
@kerams are you build your app on Windows or Mac? I was able to reproduce the crash only when build on Windows machine and only in Release mode. Also as mentioned in #9185, the template Avalonia F# app crashes on startup just with the TFM change to net9. Based on the error log, the template app seems to fail when loading the SkiaSharp library. This looks related to the SkiaSharp failures in #9153 and possibly #9151 (Windows and Release only crash). What do you think @grendello @jonathanpeppers ?
|
Windows indeed. Why would Avalonia fail to load Skia when the entry assembly is originally compiled with F# but not C# though? |
I see the same crash with C# Avalonia template ( |
I don't remember if I've tried C# myself, but that's what dotnet/runtime#102166 (comment) states. |
The crash dump #9185 (comment) looks related to the SkiaSharp failures in #9153 and possibly #9151 (Windows and Release only crash) cc: @grendello. I was able to solve the SkiaSharp crash in dotnet/runtime#106026 but only on my Mac. However, this issue only reproduces for me on Windows and I was not able to verify that my fix is enough so it might need #9117 to fully fix the issue. |
Description
I could swear this worked as soon as I installed
9.0.100-preview.4.24267.66
(as mentioned in dotnet/runtime#102166), but now a minimal F# Android application on .NET 9 crashes reliably across ABIs.Reproduction Steps
Change TFM to
net9.0-android
and addRun in Release mode either in x64 emulator or on an arm64 device.
Expected behavior
Applications launches.
Actual behavior
Crashes on the splash screen.
Regression?
Yes, works with SDK
9.0.100-preview.2.24157.14
or TFMnet8.0-android
.Known Workarounds
No response
Configuration
9.0.100-preview.4.24267.66
Win 11
Other information
No response
The text was updated successfully, but these errors were encountered: