Skip to content

MAUI --sample-content app broken with CoreCLR runtime #29320

@matouskozak

Description

@matouskozak

Android framework version

net10.0-android (Preview)

Affected platform version

Latest nightly builds of .NET sdk + Android + MAUI (.NET 10)

Description

We encountered an issue with running dotnet new maui --sample-content with CoreCLR runtime (JIT) in our perf lab setup. This issue appeared on ~25th of April (we are using the latest daily builds of .NET SDK, Android, and MAUI).

The range of commits when the regression was likely introduced is:

with #28994 being the likely cause.

However, we don't see the issue with Mono as of now, so there is probably something wrong with CoreCLR integration or CoreCLR itself.

Steps to Reproduce

  1. Install maui workloads with the latest nightly builds
    • e.g. rollback file with:
    "microsoft.net.sdk.android": "36.0.0-ci.main.78/10.0.100-preview.5",
    "microsoft.net.sdk.maui": "10.0.0-ci.net10.25229.3/10.0.100-preview.4"
    
  2. Create maui sample content app: dotnet new maui --sample-content
  3. Run the app on emulator or device

Did you find any workaround?

No

Relevant log output

Example 1:

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'google/sdk_gphone64_arm64/emu64a:14/UE1A.230829.036.A4/12096271:user/release-keys'
Revision: '0'
ABI: 'arm64'
Timestamp: 2025-04-30 12:06:49.212179620+0100
Process uptime: 2s
Cmdline: com.companyname.mauiandroiddefault
pid: 6449, tid: 6449, name: iandroiddefault  >>> com.companyname.mauiandroiddefault <<<
uid: 10192
tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE)
pac_enabled_keys: 000000000000000f (PR_PAC_APIAKEY, PR_PAC_APIBKEY, PR_PAC_APDAKEY, PR_PAC_APDBKEY)
signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
    x0  0000000000000000  x1  0000000000001931  x2  0000000000000006  x3  0000007fc9211260
    x4  0000000000000001  x5  0000000000000001  x6  0000000000000001  x7  0000000000000000
    x8  00000000000000f0  x9  00000079e4045090  x10 0000000000000001  x11 00000079e4098058
    x12 0000001ee4065618  x13 0000001ee4066670  x14 0000007fc9210af0  x15 0000001ee40655c0
    x16 00000079e4105d08  x17 00000079e40d9e90  x18 0000007a1113e000  x19 0000000000001931
    x20 0000000000001931  x21 00000000ffffffff  x22 0000000000000000  x23 00000076d5b8c720
    x24 00000076d68a3008  x25 000000000000061c  x26 0000000080131534  x27 0000000000000001
    x28 0000007fc9211f40  x29 0000007fc92112e0
    lr  00000079e40899b8  sp  0000007fc9211240  pc  00000079e40899e4  pst 0000000000001000
15 total frames
backtrace:
      #00 pc 00000000000669e4  /apex/com.android.runtime/lib64/bionic/libc.so (abort+164) (BuildId: a87908b48b368e6282bcc9f34bcfc28c)
      dotnet/android#1 pc 0000000000e94a30  /data/app/~~23bXVe1gM465tFxO00Ntqg==/com.companyname.mauiandroiddefault-_8v4dYZj7JtxXpYUmIca-A==/lib/arm64/libMauiAndroidDefault.so (BuildId: e472408d8e76e94b2ab3611533722e3c7f177140)
      dotnet/android#2 pc 000000000149f394  /data/app/~~23bXVe1gM465tFxO00Ntqg==/com.companyname.mauiandroiddefault-_8v4dYZj7JtxXpYUmIca-A==/lib/arm64/libMauiAndroidDefault.so (BuildId: e472408d8e76e94b2ab3611533722e3c7f177140)
      dotnet/android#3 pc 000000000149f0f4  /data/app/~~23bXVe1gM465tFxO00Ntqg==/com.companyname.mauiandroiddefault-_8v4dYZj7JtxXpYUmIca-A==/lib/arm64/libMauiAndroidDefault.so (BuildId: e472408d8e76e94b2ab3611533722e3c7f177140)
      dotnet/android#4 pc 000000000153ec84  /data/app/~~23bXVe1gM465tFxO00Ntqg==/com.companyname.mauiandroiddefault-_8v4dYZj7JtxXpYUmIca-A==/lib/arm64/libMauiAndroidDefault.so (BuildId: e472408d8e76e94b2ab3611533722e3c7f177140)
      dotnet/android#5 pc 000000000153f220  /data/app/~~23bXVe1gM465tFxO00Ntqg==/com.companyname.mauiandroiddefault-_8v4dYZj7JtxXpYUmIca-A==/lib/arm64/libMauiAndroidDefault.so (BuildId: e472408d8e76e94b2ab3611533722e3c7f177140)
      dotnet/android#6 pc 000000000153f088  /data/app/~~23bXVe1gM465tFxO00Ntqg==/com.companyname.mauiandroiddefault-_8v4dYZj7JtxXpYUmIca-A==/lib/arm64/libMauiAndroidDefault.so (BuildId: e472408d8e76e94b2ab3611533722e3c7f177140)
      dotnet/android#7 pc 0000000000effcbc  /data/app/~~23bXVe1gM465tFxO00Ntqg==/com.companyname.mauiandroiddefault-_8v4dYZj7JtxXpYUmIca-A==/lib/arm64/libMauiAndroidDefault.so (BuildId: e472408d8e76e94b2ab3611533722e3c7f177140)
      dotnet/android#8 pc 000000000154271c  /data/app/~~23bXVe1gM465tFxO00Ntqg==/com.companyname.mauiandroiddefault-_8v4dYZj7JtxXpYUmIca-A==/lib/arm64/libMauiAndroidDefault.so (BuildId: e472408d8e76e94b2ab3611533722e3c7f177140)
      dotnet/android#9 pc 0000000000effe30  /data/app/~~23bXVe1gM465tFxO00Ntqg==/com.companyname.mauiandroiddefault-_8v4dYZj7JtxXpYUmIca-A==/lib/arm64/libMauiAndroidDefault.so (BuildId: e472408d8e76e94b2ab3611533722e3c7f177140)
      dotnet/android#10 pc 0000000001542550  /data/app/~~23bXVe1gM465tFxO00Ntqg==/com.companyname.mauiandroiddefault-_8v4dYZj7JtxXpYUmIca-A==/lib/arm64/libMauiAndroidDefault.so (BuildId: e472408d8e76e94b2ab3611533722e3c7f177140)
      dotnet/android#11 pc 00000000012b5d74  /data/app/~~23bXVe1gM465tFxO00Ntqg==/com.companyname.mauiandroiddefault-_8v4dYZj7JtxXpYUmIca-A==/lib/arm64/libMauiAndroidDefault.so (BuildId: e472408d8e76e94b2ab3611533722e3c7f177140)
      dotnet/android#12 pc 0000000001b4ff80  /data/app/~~23bXVe1gM465tFxO00Ntqg==/com.companyname.mauiandroiddefault-_8v4dYZj7JtxXpYUmIca-A==/lib/arm64/libMauiAndroidDefault.so (BuildId: e472408d8e76e94b2ab3611533722e3c7f177140)
      dotnet/android#13 pc 0000000000377030  /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+144) (BuildId: b10f5696fea1b32039b162aef3850ed3)
      dotnet/android#14 pc 4c78ac580000007f  <unknown>
2025-04-30 12:06:49.490   202-202   tombstoned              tombstoned                           E  Tombstone written to: tombstone_05


Example 2:

FATAL EXCEPTION: main
Process: com.companyname.mauisamplecontentandroid, PID: 5073
android.runtime.JavaProxyThrowable: [System.TypeLoadException]: Type 'CommunityToolkit.Maui.Views.Popup' from assembly 'CommunityToolkit.Maui, Version=11.1.1.0, Culture=neutral, PublicKeyToken=null' is attempting to implement an inaccessible interface.
  at CommunityToolkit.Maui.AppBuilderExtensions.UseMauiCommunityToolkit(Unknown Source)
  at MauiSampleContentAndroid.MauiProgram.CreateMauiApp + 0x0(Unknown Source)
  at MauiSampleContentAndroid.MainApplication.CreateMauiApp + 0x0(Unknown Source)
  at Microsoft.Maui.MauiApplication.OnCreate + 0xb(Unknown Source)
  at Android.App.Application.n_OnCreate + 0xe(Unknown Source)
  at crc6488302ad6e9e4df1a.MauiApplication.n_onCreate(Native Method)
  at crc6488302ad6e9e4df1a.MauiApplication.onCreate(MauiApplication.java:17)
  at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1316)
  at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6998)
  at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2236)
  at android.os.Handler.dispatchMessage(Handler.java:106)
  at android.os.Looper.loopOnce(Looper.java:205)
  at android.os.Looper.loop(Looper.java:294)
  at android.app.ActivityThread.main(ActivityThread.java:8177)
  at java.lang.reflect.Method.invoke(Native Method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)

Metadata

Metadata

Assignees

Type

No fields configured for Bug.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions