question

MGBhadurudeen-1345 avatar image
0 Votes"
MGBhadurudeen-1345 asked ·

How to test & debug my app in other computers/configurations?

Hi, I get numerous reports from AppCenter that my app crashes frequently in some laptops, for example, Inspiron 7370. I have four pcs. I am unable to reproduce that bug in any of my pcs. so I want to know, how to test & debug my uwp app in other devices like mentioned before Inspiron 7370. It seems an essential feature to develop bug free apps. Thanks in advance.

windows-uwp
· 11
10 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Does AppCenter provide any error code or error message when the app crashes? In addition, visual studio allows to deploy and debug your app remotely on other devices, for more details about this, you can refer to this document.

0 Votes 0 ·

The following are the Stack traces. I could not figure out which part of my code is responsible for this bug.

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





0 Votes 0 ·

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

0 Votes 0 ·


Most affected OS 10.0.18362 38.7% 10.0.18363 35.5% 10.0.17763 25.8%
Top devices: HP Notebook 390, HP Laptop 15-da0xxx, Inspiron 15-3567

Note: I don't get my app crashed in my 4 systems. so I am unable to guess which part causes this error!

Also, is there really no way to test my app on other devices that I don't have?
If there is no way, I would have to buy the top 1 or 2 devices, in which my app crashed, for this testing purpose alone.

0 Votes 0 ·

Have you tested your app in release mode? If you download it from store and test it, will the same issue occur? In addition, from the error information, there is something wrong in SharedStubs page, you can check the related code snippet from "SharedStubs.g.cs at 3376, line 5". About the Layout cycle detected exception, please check if there is such a scenario that leads to permanent re-layout, that might caused this exception.

0 Votes 0 ·
Show more comments

Hi, is there any update?

0 Votes 0 ·
Show more comments

0 Answers