Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.

If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.
Options

HoloLens app deployed through Visual Studio debugger crashes on start

Used to work. Did a clean build from Unity and deleted app from HoloLens. Redeployed through Visual Studio debugger and it always crashes on startup with:

The resource Internal-ErrorShader.shader could not be loaded from the resource file!
(Filename: C:\buildslave\unity\build\Runtime/Misc/ResourceManager.cpp Line: 1195)

Odd thing I noticed which may explain why it crashes:

Deploying to Phone Internal Storage...
Updating the layout...
Copying files: Total 15 mb to layout...
Checking whether required frameworks are installed...
Registering the application to run from layout...

15mb is nowhere near large enough to be my whole app, even though it's supposed to be installing it from scratch.

If I build the same exact VS project that fails to deploy through the debugger into an AppPackage instead, and then install that package on the HoloLens, it runs just fine. So the problem is the debugger no longer deploys correctly to the HoloLens.

I started having deploy issues after the HoloLens USB cable came unplugged from my computer while it was debugging the app. Ever since then I haven't been able to deploy correctly with one error or another. I have tried completely clean builds by deleting everything in the output directory before building in Unity, and have tried in both Visual Studio 2015 and 2017. All result in this runtime error. About the only thing I have left to try is factory resetting the HoloLens.

Best Answer

Answers

  • Options

    Hey @DoctorMark1 ,
    This is just a guess: Have you tried uninstalling the App from your HoloLens and unpairing your Laptop and pairing it again?

  • Options

    Yeah unistalling the app from the HoloLens does not fix the issue. I don't know what you mean by "unpairing my laptop". My development laptop has been rebooted and the HoloLens has been disconnected/reconnected through USB multiple times, none of which fixed the issue. The only way I've been able to get my app to work is by either renaming the application or using a different build profile. If my app name stays the same as when it broke, and I try to deploy it with the "Release" profile, it fails.

  • Options
    Answer ✓

    The answer of turning on the option "Uninstall and then -re-install my package" fixed this bug for me. Answer was provided here: https://forums.hololens.com/discussion/6634/cant-build-release-error-dep2220

Sign In or Register to comment.