Open
Description
Description
I've been trying to see if I can improve the performance of my game GnollHack in MAUI. Since LLVM is enabled on iOS in Release configuration, I tried to enabling it also for Android by setting EnableLLVM true in the project file. However, this leads to a crash at start. Tested on .NET 9.0.4 / MAUI 9.0.60.
Steps to Reproduce
- Clone the reproduction repository at https://github.com/hyvanmielenpelit/GnollHackMAUIEasyBuild
- Open GnollHackM.csproj project file under
win/win32/xpl/GnollHackM
- In Visual Studio 2022, open GnollHackM's project properties by right-clicking the project and selecting Properties from the popup menu
- Scroll down to Android > Options section and find LLVM subtitle there. Tick the box "Use LLVM optimizing compiler", which sets
EnableLLVM
in the project file to true - Change the configuration to Release
- Delete
bin
andobj
directories if they exist - Build GnollHackM according to instructions in the repository
- Start the game on your Android device by selecting the device from the debug dropdown list and then clicking the Start without Debugging green arrow.
- The game crashes at start
- (If you do not set EnableLLVM to true, the game starts successfully. Delete
bin
andobj
directories first, though.)
Link to public reproduction project repository
https://github.com/hyvanmielenpelit/GnollHackMAUIEasyBuild
Version with bug
9.0.60 SR6
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 15
Did you find any workaround?
No, I cannot use LLVM on Android at the moment. Perhaps it does not work properly there yet, generally or with SkiaSharp or the like.
Relevant log output
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Todo