microsoft / MixedReality-SceneUnderstanding-Samples

MIT License
52 stars 20 forks source link

crash on launch when built and deployed directly to HoloLens 2 using Visual Studio 2019 #25

Open crystal-butler opened 2 years ago

crystal-butler commented 2 years ago

I am trying to deploy and test the updated SceneUnderstanding-Samples release on HoloLens 2, OS 20348.1438. The earlier (prior to August 10 2021) example code ran on the HoloLens 2 just fine, but now I am experiencing an application crash on launch. The app gets as far as showing the generic scene object preview that displays during load, but then shuts down.

I should mention that I am not creating an app package as described in the README, but am building and deploying directly to the HoloLens 2 (with Developer Mode turned on) from Visual Studio 2019. Not sure whether that should make any difference. Otherwise I believe I'm following all the instructions correctly.

Attached is a screenshot of the error being generated at the point when the app crashes, which I got by running in debug mode in Visual Studio. If I select Continue from the Visual Studio debug menu, the application starts and seems to run correctly. 2021-12-01_SUSamples_debug-1 I'm fairly new to debugging with the HoloLens, so if there is additional output or logging I need to provide, let me know.

jorgonz commented 2 years ago

Hi Crystal, just to double check, if you do create the app package does the application still crash for you?

crystal-butler commented 2 years ago

@jorgonz I have never done an install using an app package before, so was hoping to avoid that path :-) I will give it a try and post results here.

crystal-butler commented 2 years ago

The packaged app launches just fine, actually. Is it possible to update the SU example code so that it works when following this deployment process as well? I pull out and modify code from this repo for a custom application that I work on with other developers who all use the build workflow that involves deploying directly from Visual Studio without packaging.

jorgonz commented 2 years ago

I'll take a look at this deployment process, my guess is that the new XR pipeline is giving us trouble here, but I'll have to investigate first. thanks for letting me know.

I'll get back to you when I have answers.

atx-barnes commented 1 year ago

Any update on this? Having the same issue when trying to deploy and build without an app package.