Search Unity

Samples with spatial Mapping all crash

Discussion in 'VR' started by Firlefanz73, Feb 17, 2017.

  1. Firlefanz73

    Firlefanz73

    Joined:
    Apr 2, 2015
    Posts:
    1,316
    Hello,

    I am not sure if the bug is a Microsoft or Unity Problem:

    first I tried to rebuild the Holograms 101 sample with all single step trying:
    https://developer.microsoft.com/en-us/windows/holographic/holograms_101

    This went very good unless I added the prefab for spatial mapping, after that it crashed.
    I see a bit of my surrounding wireframe then the app Ends.

    Then I tried some samples of the Holotoolkit-Unity Master.
    https://github.com/Microsoft/HoloToolkit-Unity

    Here every scene works good, but not those with Spatial mapping like "Remote Mapping" or "Save Spatial Mapping", those Crash after a second, I see a Piece of wireframe, then it crashses...

    I this a known issue? Can I debug somehow with the hololens not the Emulator?

    Thanks a lot and have a nice Weekend!

    Firlefanz
     
    Last edited: Feb 17, 2017
  2. Unity_Wesley

    Unity_Wesley

    Unity Technologies

    Joined:
    Sep 17, 2015
    Posts:
    558
    Hello,

    This sounds like issues with the Holo Tool kit crashing the app when spatial mapping is used. Also, it sounds like unity is not handling something correctly and crashing when it shouldn't.

    What version of unity are you using with the tool kit?

    You might want to try a re-import all in the Assets menu to see if that cleans up any rouge pieces.

    Thank you,
    Wesley
     
  3. Firlefanz73

    Firlefanz73

    Joined:
    Apr 2, 2015
    Posts:
    1,316
    It was original 5.5.1 from the homepage, not a patch or a beta release.
    The hololense toolkit was downloaded and started with that Version directly, not an earlier.

    The Microsoft 101 sample has exaclty the same Problem since I added the spatial mapping, before it was okay.

    Thanks :)
     
  4. Firlefanz73

    Firlefanz73

    Joined:
    Apr 2, 2015
    Posts:
    1,316
    Hello,

    I downloaded and installed Unity 5.5.2f1 now.

    Started my sample on my hololens (the smaple is Microsoft Hololens 101, link above). Again after a short of running while it crashed when I looked around to start spatial mapping:

    Code (csharp):
    1.  
    2. UnloadTime: 5.846830 ms
    3.  
    4. Setting up 1 worker threads for Enlighten.
    5.  
    6.   Thread -> id: 158c -> priority: 1
    7.  
    8. Holographic Tracking State Lost. New State: 4
    9.  
    10. (Filename: C:/buildslave/unity/build/Runtime/VR/HoloLens/HoloLensWorldManager.cpp Line: 132)
    11.  
    12.  
    13. The resource UnitySplash-HolographicTrackingLoss.png could not be loaded from the resource file!
    14.  
    15. (Filename: C:\buildslave\unity\build\Runtime/Misc/ResourceManager.cpp Line: 1088)
    16.  
    17.  
    18. The program '[2052] Origami.exe' has exited with code -1073741819 (0xc0000005) 'Access violation'.
    19.  
    Then in unity from the Project view I started "Reimport all". After that I build and started again.

    Now I get from Visual Studio Output:

    Code (csharp):
    1.  
    2. Module information:
    3.  Built with Compiler Ver '190023918'
    4.  Built from '5.5/release' branch
    5.  Version is '5.5.2f1 (3829d7f588f3)'
    6.  Release build
    7.  Application type 'D3D11'
    8.  Used 'UWP'
    9.  
    10.  OS 'Windows 10 (10.0.14393)'
    11.  
    12. PlayerConnection initialized from C:/Data/Users/DefaultAccount/AppData/Local/DevelopmentFiles/OrigamiVS.Release_x86.beh/Data (debug = 0)
    13.  
    14. PlayerConnection initialized network socket : 0.0.0.0 55464
    15.  
    16. Multi-casting "[IP] 192.168.40.19 [Port] 55464 [Flags] 2 [Guid] 89330364 [EditorId] 4294967295 [Version] 1048832 [Id] MetroPlayerX86(HoloLens-7R6CN) [Debug] 0" to [225.0.0.222:54997]...
    17.  
    18. Started listening to [0.0.0.0:55464]
    19.  
    20. GfxDevice: creating device client; threaded=1
    21.  
    22. Direct3D:
    23.  
    24.     Version:  Direct3D 11.0 [level 11.1]
    25.  
    26.     Renderer: HoloLens Graphics (ID=0x22b0)
    27.  
    28.     Vendor:   Intel
    29.  
    30.     VRAM:     604 MB
    31.  
    32. Initialize engine version: 5.5.2f1 (3829d7f588f3)
    33.  
    34. 'Origami.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\OrigamiVS.Release_x86.beh\System.Runtime.Extensions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    35. 'Origami.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\OrigamiVS.Release_x86.beh\UnityEngineProxy.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    36. 'Origami.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\OrigamiVS.Release_x86.beh\System.Linq.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    37. 'Origami.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\OrigamiVS.Release_x86.beh\System.Reflection.Extensions.dll'. Module was built without symbols.
    38. Logical Screen DPI is 144.00.
    39.  
    40. If your machine has multiple graphics adapters, Unity may have created a WindowContext on the wrong adapter. If you experience a black screen when playing, please restart the Editor.
    41.  
    42. (Filename: C:/buildslave/unity/build/Runtime/VR/VRDevice.cpp Line: 176)
    43.  
    44.  
    45. UnloadTime: 5.096529 ms
    46.  
    47. Setting up 1 worker threads for Enlighten.
    48.  
    49.   Thread -> id: 172c -> priority: 1
    50.  
    51. The program '[3224] Origami.exe' has exited with code -1073741819 (0xc0000005) 'Access violation'.
    52.  
    Is the spatial mapping working in other Projects / on other hololens?

    Thanks a lot!
     
  5. Unity_Wesley

    Unity_Wesley

    Unity Technologies

    Joined:
    Sep 17, 2015
    Posts:
    558
    Spatial mapping components from unity are working and not causing a crash. I suspect there is an issue with the hololens tool kits spatial mapping. Still investigating the issue, can you attach a repro project to this thread?
     
  6. Firlefanz73

    Firlefanz73

    Joined:
    Apr 2, 2015
    Posts:
    1,316
  7. Unity_Wesley

    Unity_Wesley

    Unity Technologies

    Joined:
    Sep 17, 2015
    Posts:
    558
    Thanks for the repro project, I can't seem to reproduce the crash. Do you have any other errors or maybe a call stack by chance? Can you provide repro steps that lead up to the crash, maybe I'm missing an important step?
     
  8. Firlefanz73

    Firlefanz73

    Joined:
    Apr 2, 2015
    Posts:
    1,316
    Building with Unity: Windows store, SDK Universal 10, Target device hololens,UWP Build D3D, UWP SDK Latest, Local Machine and Unity C# Projects is toggled on.

    Then open the SLN from the Build Subfolder with VS 2015.

    It only happens when I start it with my Visual Studio 2015 Enterprise with Update 3 on the hololens.
    Start it, the Music starts and the meshes / holograms are being shown.
    Then looking around, see for a second spatial mapping, then crashes.

    With my hololens I do not know if I can debug or how to get the stack then?

    What I saw in the Output of VS see above.
    The Crash happens every single time. The hololens toolkit samples with spatial mapping included also Crash...

    If it is only for me there is a wrong Setting in the hololens? Other apps / games with spatial mapping work, but nothing I compiled myself with unity and vs2015.

    Thanks!
     
  9. Unity_Wesley

    Unity_Wesley

    Unity Technologies

    Joined:
    Sep 17, 2015
    Posts:
    558
    can you try Reimport All in the Assets menu and re-launch the project. I can't seem to get the crash to reproduce on my side.
     
    Firlefanz73 likes this.
  10. Firlefanz73

    Firlefanz73

    Joined:
    Apr 2, 2015
    Posts:
    1,316
    Yes, now it works! No Crash anymore.
    Thanks a lot!