question

DhivyaAlagesan-7571 avatar image
0 Votes"
DhivyaAlagesan-7571 asked JeyalakshmiChandrasekaran-7467 commented

What is the path for crash dumps in HoloLens 2 device?

We have been developing a UWP app in Unity. The app runs on HL2. We are able to download the crash dumps via Windows Device Portal. However, for automating crash upload we require the path of the crash dumps.

Could anyone tell us how to get the path of the crash dumps on the HL2 device programmatically?

hololens-development
5 |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.

1 Answer

HernandoRen-MSFT avatar image
1 Vote"
HernandoRen-MSFT answered JeyalakshmiChandrasekaran-7467 commented

Hello, Welcome to Microsoft Q&A,

for automating crash upload we require the path of the crash dumps.

I believe what you want is a way to retrieve application crash dumps programmatically.
If so, you can use Windows Device Portal REST API to do that: First, call /api/debug/dump/usermode/dumps to get the list of all crash dumps for sideloaded apps, and then, call /api/debug/dump/usermode/crashdump and take “packageFullname ” and "fileName " as argument to obtain the crash dump. For more information please refer to:Dump collection



If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

· 1
5 |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.

Hi @HernandoRen-MSFT
We tried to use the above-mentioned API call, and it works when accessed from the browser. But we weren't able to access the crash-dumps via code (We use Unity - C#, and tried using UnityWebRequest) and it always returns null.
1. Is there a way to access the crash dump of a particular app package via code?
2. And this works for sideloading apps, but how does it work for store apps. Is there a way to extract the crash-dumps once the app is released in-store?

0 Votes 0 ·