Search Unity

Excpetion while Deploying to HoloLens

Discussion in 'AR/VR (XR) Discussion' started by Industry4O, Jan 25, 2019.

  1. Industry4O

    Industry4O

    Joined:
    Oct 30, 2018
    Posts:
    15
    I try to use the spatial mapping script for Hololens in the MixedRealityToolkit-Unity-2018.9.0-Beta.unitypackage using Unity 2018.2.18f. After Build Unity Project and opening in Visual Studio and trying to deply on the Device:


    First Exception:

    Code (CSharp):
    1. Exception thrown at 0x7720F2B2 in Working.exe: Microsoft C++ exception: Platform::COMException ^ at memory location 0x026DF7E0. HRESULT:0x80072EE7 The text associated with this error code could not be found.
    2. WinRT information: The server name or address could not be resolved
    3.  

    and again and again the same Exception:

    Code (CSharp):
    1. Exception thrown at 0x7720F2B2 in Working.exe: Microsoft C++ exception: Platform::COMException ^ at memory location 0x026DF7E0. HRESULT:0x80072EE7 The text associated with this error code could not be found.
    2. WinRT information: The server name or address could not be resolved
    3.  
    4.  

    Also did clean solution and redeploy. The exception is thrown on line 579 in excptptr.cpp file.
     
  2. DK_MS

    DK_MS

    Joined:
    Nov 22, 2016
    Posts:
    1
    How are you deploying in Visual Studio? Is the HoloLens attached via the USB cable or are you deploying over WiFi?

    Thanks!
    David (Microsoft)
     
  3. Industry4O

    Industry4O

    Joined:
    Oct 30, 2018
    Posts:
    15
    Over USB.

    I got often such errors, the newst one is in Class.cpp:

    Code (CSharp):
    1. Exception thrown at 0x5D60B35C (GameAssembly.dll) in Working.exe: 0xC0000005: Access violation reading location 0x000000C1.
    Or these ones:

    Code (CSharp):
    1. Unhandled exception at 0x77080EE1 (ntdll.dll) in Working.exe: 0xC00000FD: Stack overflow (parameters: 0x00000001, 0x02A02FF4).
    2.  
    Code (CSharp):
    1. Unhandled exception at 0x7706F40B (ntdll.dll) in Working.exe: 0xC0000005: Access violation writing location 0x02A00FF4.

    What I do is start a new project => it compiles and deploys without errors, than I do some changes (like add a new Cube or add Spatialmapping ...) and then I have these exceptions.. What exactly triggers those errors: I have no idea!
     
    Last edited: Jan 30, 2019