Azure / azure-spatial-anchors-samples

Azure Spatial Anchors sample code
Other
293 stars 138 forks source link

App not launching (Hololens) #35

Closed nallaperumal closed 5 years ago

nallaperumal commented 5 years ago

Hi there,

I tried to launch the 'local shared demo' scene from the Unity via VIsual studio 2017 in HoloLens v1. The app is not at all launching. I made various attempts and sometimes it launches (with some issues like button not visible etc) but mostly the app is blank. Even 'made with Unity' too is not appearing, the app is just blank. Please help. I have attached the debug log of Visual studio 2017

Unity version: 2018.3. Visual studio community 2017

log.txt

darax commented 5 years ago

WebException: Error: NameResolutionFailure and HttpRequestException: 500 (Internal Server Error) makes me think that perhaps there is a typo in the sharing service URL.

Did you include /api/anchors/ in the URL?

nallaperumal commented 5 years ago

We used the same URL in iOS and it worked fine. I am using Windows 10 Home edition, should I change it to professional?

darax commented 5 years ago

By home edition you mean your PC that's building to the HoloLens? I don't think that matters. The network configuration of the HoloLens could matter. Is the HoloLens connecting to the same wi-fi as your iOS device?

nallaperumal commented 5 years ago

Yes, the PC with which I am building is home edition. Of course, the hololens is connected to the same network. The visual studio is trying to launch and black screen appears. In fact, I also connected hololens via USB to the laptop and launch. Only black screen appears. We even waited for five minutes but nothing happened.

Also, the HttpRequestException: 500 (Internal Server Error) also appears in iOS app debug log also but the app runs. Only in Hololens it is not launching.

nallaperumal commented 5 years ago

I finally resolved the issue by using a different windows 10 professional edition laptop. Again reinstalling all the components mentioned in https://docs.microsoft.com/en-in/azure/spatial-anchors/tutorials/tutorial-new-unity-hololens-app#prerequisites The windows 10 SDK should be properly set to 10.0.17763.0 during the build phase. Probably that could have solved the issue.