Skip to content

[Android, 9.0.60] Enabling LLVM on Android crashes the app at start #28939

Open
@janne-hmp

Description

@janne-hmp

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

  1. Clone the reproduction repository at https://github.com/hyvanmielenpelit/GnollHackMAUIEasyBuild
  2. Open GnollHackM.csproj project file under win/win32/xpl/GnollHackM
  3. In Visual Studio 2022, open GnollHackM's project properties by right-clicking the project and selecting Properties from the popup menu
  4. 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
  5. Change the configuration to Release
  6. Delete bin and obj directories if they exist
  7. Build GnollHackM according to instructions in the repository
  8. 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.
  9. The game crashes at start
  10. (If you do not set EnableLLVM to true, the game starts successfully. Delete bin and obj 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

No one assigned

    Labels

    partner/androidIssues for the Android SDKplatform/android 🤖potential-regressionThis issue described a possible regression on a currently supported version., verification pendingregressed-in-9.0.60s/needs-attentionIssue has more information and needs another lookt/bugSomething isn't working

    Type

    No type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions