What is 'Layout Cycle detected' & how to get rid of this?
I regularly get complaints from my users that my app is frequently crashing. After uploading my app to the store, I uploaded the symbols to Appcenter.ms, the following are the Stack traces. I could not figure out which part of my code is responsible for this bug. I am really concerned about this. Please tell me a way to fix this. I am losing my valuable users day by day.
System.Exception: Layout cycle detected. Layout could not complete. Layout cycle detected. Layout could not complete.
ComCallHelpers.Call ($__ComObject __this, RuntimeTypeHandle __typeHnd, Int32 __targetIndex)
C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Packages\appcompile-20200417-081525-10484\AC\Temp\Ilc882687807\StudyAndPractice.McgInterop\SharedStubs.g.cs at 3376, line 5
System.Runtime.InteropServices
McgMarshal.ThrowOnExternalCallFailed (Int32 hr, RuntimeTypeHandle typeHnd) f:\dd\ndp\fxcore\CoreRT\src\System.Private.Interop\src\Shared\McgMarshal.cs at 1267:13
__Interop
ComCallHelpers.Call ($__ComObject __this, RuntimeTypeHandle __typeHnd, Int32 __targetIndex) C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Packages\appcompile-20200417-081525-10484\AC\Temp\Ilc882687807\StudyAndPractice.McgInterop\SharedStubs.g.cs at 3376:5
__Interop.ForwardComStubs
Stub_11<System.__Canon> (Void* InstParam, $__ComObject __this, Int32 __targetIndex) C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Packages\appcompile-20200417-081525-10484\AC\Temp\Ilc882687807\StudyAndPractice.McgInterop\SharedStubs.g.cs at 417:4
Microsoft.AppCenter.Utils
ApplicationLifecycleHelper.<ctor>b__17_1 (Object sender, $UnhandledErrorDetectedEventArgs eventArgs) at 0
Most affected OS
10.0.18362 38.7%
10.0.18363 35.5%
10.0.17763 25.8%
Note: I don't get my app crashed in my 3 systems. so I am unable to guess which part causes this error!