Repository navigation
Description
Description
Crash from the Play console:
major_copy_or_mark_object_concurrent_no_evacuation-sybmolized.txt
pid: 0, tid: 15331 >>> com.example.app <<<
backtrace:
#00 pc 0x00000000002de6b8 /data/app/~~AruafsROUrLkW2r9-fhmqw==/com.example.app-k2kb0MofGrxM2dnyjzAzvw==/split_config.arm64_v8a.apk!libmonosgen-2.0.so (BuildId: 1934ce7c22839a0ce1bae35742007bb641759b58)
#1 pc 0x00000000002fc088 /data/app/~~AruafsROUrLkW2r9-fhmqw==/com.example.app-k2kb0MofGrxM2dnyjzAzvw==/split_config.arm64_v8a.apk!libmonosgen-2.0.so (BuildId: 1934ce7c22839a0ce1bae35742007bb641759b58)
#2 pc 0x00000000002fb114 /data/app/~~AruafsROUrLkW2r9-fhmqw==/com.example.app-k2kb0MofGrxM2dnyjzAzvw==/split_config.arm64_v8a.apk!libmonosgen-2.0.so (BuildId: 1934ce7c22839a0ce1bae35742007bb641759b58)
#3 pc 0x000000000006f584 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+180)
#4 pc 0x0000000000061610 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
Reproduction Steps
Not locally reproducible.
Expected behavior
Not to crash during runtime.
Actual behavior
Crashing during runtime.
Regression?
N/A
Known Workarounds
N/A
Configuration
Maui 8.0.40 workload; android 34.0.95
Other information
his crash from Google Pixel 6, Android 15 (SDK 35).
Attached other stack traces from other devices; generally same crash dump
#00 0x00000000002de6b8 /data/app/~~AruafsROUrLkW2r9-fhmqw==/com.example.app-k2kb0MofGrxM2dnyjzAzvw==/split_config.arm64_v8a.apk!libmonosgen-2.0.so (BuildId: 1934ce7c22839a0ce1bae35742007bb641759b58)
major_copy_or_mark_object_concurrent_no_evacuation
/__w/1/s/src/mono/mono/sgen/sgen-marksweep-drain-gray-stack.h:137:23
major_scan_object_concurrent_no_evacuation
/__w/1/s/src/mono/mono/sgen/sgen-scan-object.h:59:3
drain_gray_stack_concurrent_no_evacuation
/__w/1/s/src/mono/mono/sgen/sgen-marksweep-drain-gray-stack.h:347:3
drain_gray_stack_concurrent
/__w/1/s/src/mono/mono/sgen/sgen-marksweep.c:1305:10
#1 0x00000000002fc088 /data/app/~~AruafsROUrLkW2r9-fhmqw==/com.example.app-k2kb0MofGrxM2dnyjzAzvw==/split_config.arm64_v8a.apk!libmonosgen-2.0.so (BuildId: 1934ce7c22839a0ce1bae35742007bb641759b58)
marker_idle_func
/__w/1/s/src/mono/mono/sgen/sgen-workers.c:363:3
#2 0x00000000002fb114 /data/app/~~AruafsROUrLkW2r9-fhmqw==/com.example.app-k2kb0MofGrxM2dnyjzAzvw==/split_config.arm64_v8a.apk!libmonosgen-2.0.so (BuildId: 1934ce7c22839a0ce1bae35742007bb641759b58)
thread_func
/__w/1/s/src/mono/mono/sgen/sgen-thread-pool.c:219:5
#3 0x000000000006f584 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+180)
#4 0x0000000000061610 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
Activity
b12kab commentedon Jun 11, 2025
SO:
libmonosgen-2.0.so.zip
srxqds commentedon Jun 12, 2025
We have encountered this problem before.
steveisok commentedon Jul 24, 2025
/cc @vitek-karas @BrzVlad
@b12kab .NET 8 for MAUI is out of support. Can you bump to 9 where we have the latest set of fixes?
BrzVlad commentedon Jul 25, 2025
@b12kab We have a known issue with concurrent GC that we haven't yet been able to reproduce and investigate. I suspect this is what you are encountering here. Could you try with
<AndroidEnableSGenConcurrent>False</AndroidEnableSGenConcurrent>b12kab commentedon Jul 25, 2025
Unfortunately we have not been able to repro any of these crashes and find them in the GPC. We are working to move onto .net9 now; I'll add that option in for our .net 9 build; hopefully be ready to publish in a few weeks.
9 remaining items
BrzVlad commentedon Nov 19, 2025
This looks like the crash in not in native code associated with a library, but rather jitted code ? The stacktrace seems to be missing information. What version of .net9 are you using ?
b12kab commentedon Nov 19, 2025
% dotnet --version
9.0.203
BrzVlad commentedon Nov 19, 2025
That is a very old .net9 (9.0.4 runtime) missing a lot of fixes. Hard to say for sure but I suspect #118331 might be fixing this. Please update to latest .net9 (9.0.11)
b12kab commentedon Nov 20, 2025
I've added this to the schedule, but unlikely to release before EOY.
b12kab commentedon Feb 9, 2026
We upgraded our code last week in production to % dotnet --version
9.0.308
With this (and our previous runtime version) but at same maui version (9.0.100) - are getting a ton of these unknown or unknown, unknown runtime crashes (below); which are not helpful to finding out a root cause for them. We are getting the rare other types of runtime crash, but not really enough to warrant examination of them. These unknown crash types are generally (~80%) occur with the window state is stopped, but not always. Less generally, the shell is changing (~65%).
I think on the original cause of this ticket - I think the crash is resolved with upgrading - although I'm not sure if the reason for that was runtime or the Maui version (from 9.0.71) bump.
Unfortunately, now having stranger runtime problems :(
b12kab commentedon Feb 12, 2026
@BrzVlad ^^^
BrzVlad commentedon Feb 16, 2026
@lateralusX Do you have any idea about these non-descriptive stacktraces ? I believe we had some problems/fixes in the area, but I don't believe 9.0.11 runtime should be impacted. Would it even be worthwhile to symbolicate these ip's ?
lateralusX commentedon Feb 17, 2026
If it's a native crash it should get catched by Mono's sigsegv handler that should have generated some more information around the issue in logcat (including managed stacktrace). Failing to stack walk like above either means that the top frame is managed or some other stack corruption where IP won't point to any meaningful unwind information making Androids libunwind aborting the stackwalk. If it's a managed frame, then I believe we should at least see a managed stackwalk in logcat. I assume the above stacktraces are still produced by Android crash reporter or are they coming from somewhere else?
b12kab commentedon Feb 17, 2026
I got these from Sentry.
In GP console [crashes and ANRs], they look slightly different::
pid: 0, tid: 26541 >>> com.example <<<
backtrace:
#00 pc 0x0000000007c0c2b0 [anon:dalvik-LinearAlloc]
b12kab commentedon Feb 18, 2026
@lateralusX ^^
lateralusX commentedon Feb 19, 2026
That is an IP pointing to JVM/ART allocated memory, not much info that can be extracted out of that and that's why the Android unwinder won't be able to walk the stack since. Do you get a tombstone collected for that crash? Any additional information in logcat?
b12kab commentedon Feb 19, 2026
@lateralusX We aren't getting the tombstone or logcat. As part of Sentry we are getting sent user breadcrumbs; they show it crashes somewhere in the user interaction session. They generally (~80%) occur with the window state is stopped, but not always. Less generally, the shell is changing (~65%) from logged in to logged out or the other way around. Making this a mess without a good way to make it less so :(
b12kab commentedon Mar 20, 2026
This problem is fixed, so closing it.