I am getting a crash from mono, from the logo I dont get anything specific which I can change in the code
[] * Assertion at /Users/builder/jenkins/workspace/archive-mono/2019-06/android/release/mono/metadata/sgen-tarjan-bridge.c:1140, condition `xref_count == xref_index' not met, function:processing_build_callback_data, xref_count is 47 but we added 45 xrefs
[libc] Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 26216 (Thread Pool Wor), pid 25949 (ileapp_colorpoc)
Not sure what is the root cause because same code works fine for 2 iterations. I wrapped everything in try catch to see if there is some exception that I can catch. It seems to be issue with Garbage collector
More log
[ViewRootImpl@d36a856[MainActivity]] ViewPostIme pointer 0
[ViewRootImpl@d36a856[MainActivity]] ViewPostIme pointer 1
[ViewRootImpl@d36a856[MainActivity]] ViewPostIme pointer 0
[ViewRootImpl@d36a856[MainActivity]] ViewPostIme pointer 1
Styles: Style TargetType Xamarin.Forms.Button is not compatible with element target type Xamarin.Forms.Label
[ileapp_objpo] Explicit concurrent copying GC freed 713(80KB) AllocSpace objects, 0(0B) LOS objects, 58% free, 4MB/10MB, paused 106us total 24.149ms
[Mono] GC_TAR_BRIDGE bridges 48 objects 48 great 0 objs 48 objs-bridged 48 objs-visible 48 xref 0 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.04ms tarjan 0.03ms scc-setup 0.07ms gather-xref 0.00ms xref-setup 0.00ms cleanup 0.02ms
[Mono] GC_BRIDGE: Complete, was running for 25.10ms
[Mono] GC_MINOR: (Nursery full) time 8.94ms, stw 22.41ms promoted 1087K major size: 21360K in use: 19793K los size: 29656K in use: 28083K
[Mono] GC_TAR_BRIDGE bridges 0 objects 0 great 0 objs 0 objs-bridged 0 objs-visible 48 xref 0 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.04ms tarjan 0.03ms scc-setup 0.07ms gather-xref 0.00ms xref-setup 0.00ms cleanup 0.00ms
[Mono] GC_BRIDGE: Complete, was running for 0.15ms
[Mono] GC_MINOR: (Concurrent start) time 1.52ms, stw 21.19ms promoted 34K major size: 21408K in use: 19830K los size: 32496K in use: 30922K
[Mono] GC_MAJOR_CONCURRENT_START: (Minor allowance)
[ileapp_objpo] Explicit concurrent copying GC freed 1581(137KB) AllocSpace objects, 0(0B) LOS objects, 58% free, 4MB/10MB, paused 57us total 21.244ms
[Mono] GC_TAR_BRIDGE bridges 504 objects 3085 great 874 objs 501 objs-bridged 481 objs-visible 481 xref 31 cache-hit 0 cache-semihit 0 cache-miss 20 setup 0.05ms tarjan 1.06ms scc-setup 0.16ms gather-xref 0.01ms xref-setup 0.01ms cleanup 0.13ms
[Mono] GC_BRIDGE: Complete, was running for 25.25ms
[Mono] GC_MAJOR_CONCURRENT_FINISH: (finishing) time 38.26ms, stw 8.76ms los size: 26816K in use: 23160K
[Mono] GC_MAJOR_SWEEP: major size: 18816K in use: 16228K
[InputMethodManager] HSIFW - flag : 0 Pid : 25949
[ileapp_objpo] Explicit concurrent copying GC freed 1476(127KB) AllocSpace objects, 0(0B) LOS objects, 57% free, 4MB/10MB, paused 58us total 22.305ms
[Mono] GC_TAR_BRIDGE bridges 117 objects 116341 great 75724 objs 117 objs-bridged 117 objs-visible 117 xref 0 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.05ms tarjan 27.55ms scc-setup 0.05ms gather-xref 0.00ms xref-setup 0.00ms cleanup 4.66ms
[Mono] GC_BRIDGE: Complete, was running for 27.92ms
[Mono] GC_MINOR: (Nursery full) time 41.45ms, stw 43.33ms promoted 1753K major size: 19792K in use: 18010K los size: 26816K in use: 23840K
[ViewRootImpl@d36a856[MainActivity]] ViewPostIme pointer 0
[ViewRootImpl@d36a856[MainActivity]] ViewPostIme pointer 1
[ileapp_objpo] Explicit concurrent copying GC freed 1690(104KB) AllocSpace objects, 0(0B) LOS objects, 57% free, 4MB/10MB, paused 60us total 22.475ms
[Mono] GC_TAR_BRIDGE bridges 88 objects 118988 great 76782 objs 86 objs-bridged 67 objs-visible 67 xref 20 cache-hit 0 cache-semihit 0 cache-miss 19 setup 0.04ms tarjan 29.45ms scc-setup 0.02ms gather-xref 0.00ms xref-setup 0.00ms cleanup 3.96ms
[Mono] GC_BRIDGE: Complete, was running for 27.93ms
[Mono] GC_MINOR: (Nursery full) time 38.81ms, stw 40.81ms promoted 1155K major size: 20880K in use: 19177K los size: 26816K in use: 24660K
[ViewRootImpl@d36a856[MainActivity]] ViewPostIme pointer 0
[ViewRootImpl@d36a856[MainActivity]] ViewPostIme pointer 1
Styles: Style TargetType Xamarin.Forms.Button is not compatible with element target type Xamarin.Forms.Label
[Mono] GC_BRIDGE waiting for bridge processing to finish
[ileapp_objpo] Explicit concurrent copying GC freed 700(82KB) AllocSpace objects, 0(0B) LOS objects, 57% free, 4MB/10MB, paused 78us total 24.574ms
[Mono] GC_TAR_BRIDGE bridges 42 objects 42 great 0 objs 42 objs-bridged 42 objs-visible 42 xref 0 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.05ms tarjan 0.03ms scc-setup 0.02ms gather-xref 0.00ms xref-setup 0.00ms cleanup 0.05ms
[Mono] GC_BRIDGE: Complete, was running for 25.29ms
[Mono] GC_MINOR: (Nursery full) time 7.51ms, stw 17.03ms promoted 923K major size: 21792K in use: 20129K los size: 29656K in use: 27668K
[InputMethodManager] HSIFW - flag : 0 Pid : 25949
[ileapp_objpo] Explicit concurrent copying GC freed 1557(116KB) AllocSpace objects, 0(0B) LOS objects, 56% free, 4MB/10MB, paused 62us total 24.182ms
[Mono] GC_TAR_BRIDGE bridges 45 objects 123773 great 78375 objs 45 objs-bridged 45 objs-visible 45 xref 0 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.04ms tarjan 30.50ms scc-setup 0.05ms gather-xref 0.00ms xref-setup 0.00ms cleanup 4.63ms
[Mono] GC_BRIDGE: Complete, was running for 29.50ms
[Mono] GC_MINOR: (Nursery full) time 36.07ms, stw 37.29ms promoted 260K major size: 22000K in use: 20397K los size: 32496K in use: 30540K
[ileapp_objpo] Explicit concurrent copying GC freed 1068(95KB) AllocSpace objects, 0(0B) LOS objects, 56% free, 4MB/10MB, paused 59us total 23.292ms
[Mono] GC_TAR_BRIDGE bridges 71 objects 124842 great 78956 objs 71 objs-bridged 71 objs-visible 71 xref 0 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.03ms tarjan 29.27ms scc-setup 0.01ms gather-xref 0.00ms xref-setup 0.00ms cleanup 5.15ms
[Mono] GC_BRIDGE: Complete, was running for 29.18ms
[Mono] GC_MINOR: (Nursery full) time 39.79ms, stw 41.37ms promoted 1725K major size: 23760K in use: 22144K los size: 32496K in use: 31418K
[ViewRootImpl@d36a856[MainActivity]] ViewPostIme pointer 0
[ViewRootImpl@d36a856[MainActivity]] ViewPostIme pointer 1
[] * Assertion at /Users/builder/jenkins/workspace/archive-mono/2019-06/android/release/mono/metadata/sgen-tarjan-bridge.c:1140, condition `xref_count == xref_index' not met, function:processing_build_callback_data, xref_count is 47 but we added 45 xrefs
[libc] Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 26216 (Thread Pool Wor), pid 25949 (ileapp_objpoc)
System.Collections.Concurrent.ConcurrentStack<MyClass1> myobjs = new System.Collections.Concurrent.ConcurrentStack<MyClass1>();
System.Threading.Tasks.Parallel.ForEach(viewModel.Searchobjs, (item) =>
{
if (item.objID != obj.objID)
{
myobjs.Push(new MyClass1(item, diff.Diff));
}
});
if (myobjs.Count > 0)
{
List<MyClass1> closeobjs = myobjs.OrderBy(x => x.Diff).ToList();
foreach (var item in closeobjs)
{
if (!objs.ContainsKey(item.objID))
{
objs.Add(item.objID, item);
break;
}
}
}
I noticed this might have caused by using ParallelTask which might be consuming more memory and creating more garbage to be freed.
Also I am using a Dictionary in the same arena of code
Related issue
Not exactly sure
Should not crash from mono
Crashing
Not able to reproduce now
Can you post a reproduction project? Or give us more context for your code? What is your code supposed to be doing? Which line throws the exception?
Styles: Style TargetType Xamarin.Forms.Button is not compatible with element target type Xamarin.Forms.Label
This message seems to indicate that you are trying to apply a style for one type of control to a different type of control. Are you using styles in your application?
I will get the reproduced repo tomorrow. I don't think unable to apply buttonstyle to label causing the issue but I will check it too.
@pmahend1 We released an update to 4.2 and 4.3 that removed that error message. Please try updating your app.
@samhouts Its still same
11-11 13:45:59.621 D/Mono (23685): GC_BRIDGE: Complete, was running for 46.78ms
11-11 13:45:59.621 D/Mono (23685): GC_MINOR: (Nursery full) time 91.05ms, stw 101.38ms promoted 1678K major size: 16816K in use: 15384K los size: 11328K in use: 8372K
11-11 13:45:59.708 I/Choreographer(23685): Skipped 36 frames! The application may be doing too much work on its main thread.
11-11 13:46:01.128 F/ (23685): * Assertion at /Users/builder/jenkins/workspace/archive-mono/2019-06/android/release/mono/metadata/sgen-tarjan-bridge.c:1140, condition `xref_count == xref_index' not met, function:processing_build_callback_data, xref_count is 46 but we added 44 xrefs
11-11 13:46:01.128 F/libc (23685): Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 24697 (Thread Pool Wor), pid 23685 (ileapp_objpoc)
I noticed this is not happening on Android 8 (apk 26) . Weird!
Code is supposed to process thousands of objects in ParallelTask. And View is bound to objs which is a dictionary.
Update : I changed parallel-task code with PLinq code with no luck.
Have you gone through similar issue at https://github.com/mono/mono/issues/9314 @samhouts @hartez
@hartez @samhouts any update?
Update from my side , removed incompatible styles and below is the log.
11-19 09:28:26.586 D/ViewRootImpl@5d456e4[MainActivity]( 2812): ViewPostIme pointer 0
11-19 09:28:26.710 D/ViewRootImpl@5d456e4[MainActivity]( 2812): ViewPostIme pointer 1
Thread finished: <Thread Pool> #50
The thread 0x32 has exited with code 0 (0x0).
Thread finished: <Thread Pool> #8
The thread 0x8 has exited with code 0 (0x0).
11-19 09:28:45.387 D/ViewRootImpl@5d456e4[MainActivity]( 2812): ViewPostIme pointer 0
11-19 09:28:45.506 D/ViewRootImpl@5d456e4[MainActivity]( 2812): ViewPostIme pointer 1
11-19 09:28:46.147 D/Mono ( 2812): GC_BRIDGE waiting for bridge processing to finish
11-19 09:28:46.197 I/zygote64( 2812): Explicit concurrent copying GC freed 914(91KB) AllocSpace objects, 0(0B) LOS objects, 60% free, 3MB/9MB, paused 188us total 25.829ms
11-19 09:28:46.197 D/Mono ( 2812): GC_TAR_BRIDGE bridges 70 objects 70 opaque 0 ABCs 70 ABCs-bridged 70 ABCs-visible 70 xref 0 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.11ms tarjan 0.02ms scc-setup 0.02ms gather-xref 0.00ms xref-setup 0.00ms cleanup 0.05ms
11-19 09:28:46.197 D/Mono ( 2812): GC_BRIDGE: Complete, was running for 26.93ms
11-19 09:28:46.197 D/Mono ( 2812): GC_MINOR: (Nursery full) time 4.43ms, stw 36.62ms promoted 312K major size: 22960K in use: 21279K los size: 33520K in use: 30683K
Thread started: <Thread Pool> #66
Thread started: <Thread Pool> #67
Thread started: <Thread Pool> #68
Thread started: <Thread Pool> #69
Thread started: <Thread Pool> #70
Thread started: <Thread Pool> #71
Thread started: <Thread Pool> #72
Thread started: <Thread Pool> #73
Thread started: <Thread Pool> #74
Thread started: <Thread Pool> #75
11-19 09:28:47.362 D/Mono ( 2812): GC_TAR_BRIDGE bridges 0 objects 0 opaque 0 ABCs 0 ABCs-bridged 0 ABCs-visible 70 xref 0 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.11ms tarjan 0.02ms scc-setup 0.02ms gather-xref 0.00ms xref-setup 0.00ms cleanup 0.00ms
11-19 09:28:47.362 D/Mono ( 2812): GC_BRIDGE: Complete, was running for 0.12ms
11-19 09:28:47.362 D/Mono ( 2812): GC_MINOR: (Nursery full) time 6.18ms, stw 8.96ms promoted 1072K major size: 24048K in use: 22372K los size: 33520K in use: 30898K
11-19 09:28:47.420 I/Choreographer( 2812): Skipped 114 frames! The application may be doing too much work on its main thread.
11-19 09:28:47.439 D/InputMethodManager( 2812): HSIFW - flag : 0 Pid : 2812
[0:] no non-static method "Landroid/support/v7/widget/AppCompatButton;.setOutlineAmbientShadowABC(I)V": Cannot set property on attached control. Error:
11-19 09:28:47.977 I/zygote64( 2812): Explicit concurrent copying GC freed 1730(279KB) AllocSpace objects, 0(0B) LOS objects, 59% free, 4MB/10MB, paused 192us total 24.513ms
11-19 09:28:47.982 D/Mono ( 2812): GC_TAR_BRIDGE bridges 54 objects 124683 opaque 79915 ABCs 54 ABCs-bridged 54 ABCs-visible 54 xref 0 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.06ms tarjan 37.60ms scc-setup 0.05ms gather-xref 0.00ms xref-setup 0.00ms cleanup 3.79ms
11-19 09:28:47.982 D/Mono ( 2812): GC_BRIDGE: Complete, was running for 29.27ms
11-19 09:28:47.982 D/Mono ( 2812): GC_MINOR: (Nursery full) time 50.29ms, stw 53.89ms promoted 1007K major size: 25104K in use: 23388K los size: 33520K in use: 31980K
11-19 09:28:49.369 D/ViewRootImpl@5d456e4[MainActivity]( 2812): ViewPostIme pointer 0
11-19 09:28:49.436 D/ViewRootImpl@5d456e4[MainActivity]( 2812): ViewPostIme pointer 1
11-19 09:28:49.473 I/zygote64( 2812): Do full code cache collection, code=1006KB, data=654KB
11-19 09:28:49.478 I/zygote64( 2812): After code cache collection, code=993KB, data=595KB
11-19 09:28:50.120 D/ViewRootImpl@5d456e4[MainActivity]( 2812): ViewPostIme pointer 0
11-19 09:28:50.229 D/ViewRootImpl@5d456e4[MainActivity]( 2812): ViewPostIme pointer 1
Thread finished: <Thread Pool> #53
The thread 0x35 has exited with code 0 (0x0).
Thread finished: <Thread Pool> #24
The thread 0x18 has exited with code 0 (0x0).
11-19 09:29:00.327 D/ViewRootImpl@5d456e4[MainActivity]( 2812): ViewPostIme pointer 0
11-19 09:29:00.421 D/ViewRootImpl@5d456e4[MainActivity]( 2812): ViewPostIme pointer 1
11-19 09:29:00.536 D/Mono ( 2812): GC_BRIDGE waiting for bridge processing to finish
11-19 09:29:00.562 I/zygote64( 2812): Explicit concurrent copying GC freed 921(62KB) AllocSpace objects, 0(0B) LOS objects, 58% free, 4MB/10MB, paused 198us total 25.136ms
11-19 09:29:00.569 D/Mono ( 2812): GC_TAR_BRIDGE bridges 172 objects 128603 opaque 81203 ABCs 172 ABCs-bridged 172 ABCs-visible 172 xref 0 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.04ms tarjan 36.83ms scc-setup 1.53ms gather-xref 0.00ms xref-setup 0.00ms cleanup 5.67ms
11-19 09:29:00.569 D/Mono ( 2812): GC_BRIDGE: Complete, was running for 34.23ms
11-19 09:29:00.569 D/Mono ( 2812): GC_MINOR: (Concurrent start) time 49.75ms, stw 91.64ms promoted 1186K major size: 26320K in use: 24598K los size: 36360K in use: 35129K
11-19 09:29:00.569 D/Mono ( 2812): GC_MAJOR_CONCURRENT_START: (Minor allowance)
Thread started: <Thread Pool> #76
Thread started: <Thread Pool> #77
Thread started: <Thread Pool> #78
Thread started: <Thread Pool> #79
Thread started: <Thread Pool> #80
Thread started: <Thread Pool> #81
Thread started: <Thread Pool> #82
Thread started: <Thread Pool> #83
Thread started: <Thread Pool> #84
Thread started: <Thread Pool> #85
Thread started: <Thread Pool> #86
Thread started: <Thread Pool> #87
Thread started: <Thread Pool> #88
Thread started: <Thread Pool> #89
Thread started: <Thread Pool> #90
Thread started: <Thread Pool> #91
Thread started: <Thread Pool> #92
Thread started: <Thread Pool> #93
Thread started: <Thread Pool> #94
Thread started: <Thread Pool> #95
11-19 09:29:01.699 I/zygote64( 2812): Explicit concurrent copying GC freed 2884(555KB) AllocSpace objects, 0(0B) LOS objects, 59% free, 4MB/10MB, paused 373us total 24.236ms
11-19 09:29:01.702 D/Mono ( 2812): GC_TAR_BRIDGE bridges 760 objects 5665 opaque 1666 ABCs 758 ABCs-bridged 716 ABCs-visible 716 xref 55 cache-hit 0 cache-semihit 0 cache-miss 42 setup 0.05ms tarjan 2.06ms scc-setup 0.16ms gather-xref 0.03ms xref-setup 0.04ms cleanup 0.42ms
11-19 09:29:01.702 D/Mono ( 2812): GC_BRIDGE: Complete, was running for 31.90ms
11-19 09:29:01.702 D/Mono ( 2812): GC_MAJOR_CONCURRENT_FINISH: (finishing) time 1174.60ms, stw 21.14ms los size: 25000K in use: 20597K
11-19 09:29:01.702 D/Mono ( 2812): GC_MAJOR_SWEEP: major size: 22976K in use: 18662K
11-19 09:29:02.862 D/Mono ( 2812): GC_TAR_BRIDGE bridges 0 objects 0 opaque 0 ABCs 0 ABCs-bridged 0 ABCs-visible 716 xref 55 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.05ms tarjan 2.06ms scc-setup 0.16ms gather-xref 0.03ms xref-setup 0.04ms cleanup 0.00ms
11-19 09:29:02.863 D/Mono ( 2812): GC_BRIDGE: Complete, was running for 0.12ms
11-19 09:29:02.863 D/Mono ( 2812): GC_MINOR: (Nursery full) time 10.50ms, stw 411.05ms promoted 847K major size: 23104K in use: 19526K los size: 27840K in use: 23530K
11-19 09:29:03.049 D/Mono ( 2812): GC_TAR_BRIDGE bridges 0 objects 0 opaque 0 ABCs 0 ABCs-bridged 0 ABCs-visible 716 xref 55 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.05ms tarjan 2.06ms scc-setup 0.16ms gather-xref 0.03ms xref-setup 0.04ms cleanup 0.00ms
11-19 09:29:03.049 D/Mono ( 2812): GC_BRIDGE: Complete, was running for 0.08ms
11-19 09:29:03.049 D/Mono ( 2812): GC_MINOR: (Nursery full) time 10.30ms, stw 124.74ms promoted 1100K major size: 23104K in use: 20627K los size: 27840K in use: 24615K
11-19 09:29:03.056 I/Choreographer( 2812): Skipped 157 frames! The application may be doing too much work on its main thread.
11-19 09:29:03.074 D/InputMethodManager( 2812): HSIFW - flag : 0 Pid : 2812
[0:] no non-static method "Landroid/support/v7/widget/AppCompatButton;.setOutlineAmbientShadowABC(I)V": Cannot set property on attached control. Error:
11-19 09:29:03.751 D/ViewRootImpl@5d456e4[MainActivity]( 2812): ViewPostIme pointer 0
11-19 09:29:03.767 W/zygote64( 2812): Checksum mismatch for dex base.apk
11-19 09:29:03.767 W/zygote64( 2812): Checksum mismatch for dex base.apk
11-19 09:29:03.810 D/ViewRootImpl@5d456e4[MainActivity]( 2812): ViewPostIme pointer 1
11-19 09:29:03.940 F/ ( 2812): * Assertion at /Users/builder/jenkins/workspace/archive-mono/2019-06/android/release/mono/metadata/sgen-tarjan-bridge.c:1140, condition `xref_count == xref_index' not met, function:processing_build_callback_data, xref_count is 61 but we added 59 xrefs
11-19 09:29:03.941 F/libc ( 2812): Fatal signal 6 (SIGABRT), code -6 in tid 2943 (Thread Pool Wor)
@pmahend1 Have you tried the alternate GC bridge options? See https://docs.microsoft.com/en-us/xamarin/android/internals/garbage-collection#gc-bridge-options - using an option other than the default may fix this problem for now.
Also, it may be worth turning off concurrent GC in the Android options to see if that helps.
@hartez thanks! how do I set GC option to new , tarjan etc ?
Should I set it in here ?

Take a look at the Configuration section here: https://docs.microsoft.com/en-us/xamarin/android/internals/garbage-collection#configuration
@hartez I tried adding a file with environment( no extension) and its option to Android Enviroment
its content reads as
MONO_GC_PARAMS=bridge-implementation=new,nursery-size=128m,soft-heap-limit=512m
but still in log I see tarjan and the same error.
11-19 14:42:52.746 I/Choreographer(25200): Skipped 33 frames! The application may be doing too much work on its main thread.
11-19 14:42:59.024 F/ (25200): * Assertion at /Users/builder/jenkins/workspace/archive-mono/2019-06/android/release/mono/metadata/sgen-tarjan-bridge.c:1140, condition `xref_count == xref_index' not met, function:processing_build_callback_data, xref_count is 62 but we added 60 xrefs
11-19 14:42:59.026 F/libc (25200): Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 25200 (ileapp_colorpoc), pid 25200 (ileapp_colorpoc)
I have turned on concurrent GC option on android project setting to True
Anything else?
@pmahend1 we were seeing this in our ControlGallery project and setting the bridge to new fixed it for us
you can see our setup here
https://github.com/xamarin/Xamarin.Forms/blob/master/Xamarin.Forms.ControlGallery.Android/Environment.txt
And I've tested there and it doesn't use the tarjan GC
@PureWeen My properties for the file was reset. I am trying again. Thanks a lot!
@PureWeen AndroidEnableSGenConcurrent has to be true or false?
with just MONO_GC_PARAMS=bridge-implementation=new my app is crashing before opening home page. so trying with nursery size 128m and soft-heap 512m
MONO_GC_PARAMS=bridge-implementation=new,nursery-size=128m,soft-heap-limit=512m seems to fix this crash. I will update if anything changes. I feel some performance issue. Can anything be done for that?
Closing because its GC issue of Android OS. Feel free to reopen if anything can be done from Xamarin Forms
Most helpful comment
@pmahend1 we were seeing this in our ControlGallery project and setting the bridge to new fixed it for us
you can see our setup here
https://github.com/xamarin/Xamarin.Forms/blob/master/Xamarin.Forms.ControlGallery.Android/Environment.txt
https://github.com/xamarin/Xamarin.Forms/blob/master/Xamarin.Forms.ControlGallery.Android/Xamarin.Forms.ControlGallery.Android.csproj#L381
And I've tested there and it doesn't use the tarjan GC