-
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
.NET 9.0 Preview 3 crashes SkiaSharp 3.0 in Release mode (possible ICU / Globalization problem) #101107
Comments
Tagging subscribers to this area: @dotnet/area-system-globalization |
@mkhamoyan @matouskozak could it be that the recent HybridGlobalization changes for iOS regressed something on Android? |
I only recall this PR #98495 (not related to |
what happens if you put the following in the project file
|
Looks like the app builds and starts then just fine with .NET 9.0 Preview 3 and |
Thank you for checking it out. |
It looks like even the default .NET MAUI 9.0 project on Android does not start without |
@janne-hmp do you happen to have a smaller repro code that I could try on my machine to further investigate? I tried some small app containing:
with these packages:
that crashed in Release mode on Android (Debug working properly)
However, the failure with Globalization you were seeing I wasn't able to reproduce. I tried inserting some Globalization-related code into my program and worked correctly so I suspect the Globalization native file was loaded as expected. |
This issue has been marked |
This issue has been automatically marked |
Description
We are developing a game called GnollHack using .NET MAUI 9.0. After upgrading to .NET 9.0 Preview 3 from 2, the game crashes immediately at start in Release mode both with SkiaSharp 3.0 Preview 2.1 and Preview 3.1. Based on logs this seems to be an ICU / Globalization problem. mattleibow from SkiaSharp repository asked me to post this to this repository.
The exception thrown is:
mono-rt : [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: TypeInitialization_Type, System.Globalization.CompareInfo
This comes after
monodroid-assembly: Shared library 'libSystem.Globalization.Native' not loaded, p/invoke 'GlobalizationNative_LoadICU' may fail
The logs from Android are below.
Reproduction Steps
Expected behavior
The game starts normally.
Actual behavior
The game crashes at start.
Regression?
Yes, .NET 9.0 Preview 2 worked fine.
Known Workarounds
None, have to use .NET 9.0 Preview 2
Configuration
.NET 9.0 Preview 3 / .NET MAUI 9.0 Preview 3
Android 14 (Samsung S22)
ARM64
Does not seem to depend on the phone, crashes on all phones we tried
Other information
And here's the log for .NET 9.0 Preview 3 crash:
Here's the log using Preview 2 and SkiaSharp 3.0 Preview 3.1 that also sometimes crashed in the same way. They all seem to be related.
Here's the another such log:
The text was updated successfully, but these errors were encountered: