Search Unity

HoloLens Depth Buffer errors

Discussion in 'VR' started by StephenHodgson-Valorem, Apr 12, 2018.

  1. StephenHodgson-Valorem

    StephenHodgson-Valorem

    Joined:
    Mar 8, 2017
    Posts:
    148
    Hey guys,

    Getting an error on the HoloLens
    "Failed to commit the depth buffer via CommitDirect3D11DepthBuffer. Error Code '0x80070057'"
    (Filename: C:\buildslave\unity\build\Runtime/VR/HoloLens/VRDeviceHoloLens.cpp Line: 560)

    Only happens occasionally (once out of ten launches)
    Anyone have a clue what it's related to?

    HoloLens OS: 10.0.17133.1009
    Win SDK 10.0.17125.0
    Unity 2017.4.0f1

    Build Settings:
    D3D
    .NET Scripting Backend using 4.x
    Enabled Shared Depth buffer in Windows MR SDK
     
    Last edited: Apr 12, 2018
  2. StephenHodgson-Valorem

    StephenHodgson-Valorem

    Joined:
    Mar 8, 2017
    Posts:
    148
    I didn't open a bug report, cause every time I do, Unity doesn't honor it because I'm using the RS4 Insider Preview.
     
  3. ei2kpi

    ei2kpi

    Joined:
    Apr 26, 2014
    Posts:
    6
    Just hit this on Unity 2017.4.4f1 as well...
     
  4. JasonCostanza

    JasonCostanza

    Unity Technologies

    Joined:
    May 23, 2017
    Posts:
    404
    I can try to reproduce that, but RS4 is publicly released that I'm aware of. I'm on 17134.48 of Windows 10, what are you on? Is enabling that check box for shared depth buffer the only thing required to repro?
     
  5. ei2kpi

    ei2kpi

    Joined:
    Apr 26, 2014
    Posts:
    6
    Yep... easiest steps I think are:

    New Project,
    Switch platform to UWP
    Enable Depth buffer in Player Settings > Windows Holographic MR settings
    Launch Holographic Remoting app on an RS4 HoloLens
    Use Holographic remoting to connect to the remoting app and then hit Play
    Notice the tons of errors in the Unity Editor Console that say:
    Failed to get rendering parameters for main camera - view transforms may get out of sync! Error code: '0x80004002'

    Other method:
    Do all of the above, but compile into an actual app and deploy onto the hololens
    Attach the debugger and notice the error in the output window that say:
    Failed to commit the depth buffer via CommitDirect3D11DepthBuffer. Error Code '0x80070057

    Unity 2017.4.4f4
    Host OS Windows 10 16299.431
    HoloLens OS Windows 10 17134.80
    (https://support.microsoft.com/en-us/help/12643/hololens-update-hololens)

    Note:
    I think the depth buffers might be getting sent over some of the time. The whole point of sending the depth buffers is so that the focus point is automagically picked by the HoloLens and I can see that the stabilizationplane is in fact being set automatically when I visualize it in 3DView and get closer or further away from an object.
     
    Last edited: Jun 7, 2018
  6. JasonCostanza

    JasonCostanza

    Unity Technologies

    Joined:
    May 23, 2017
    Posts:
    404
    Can you give me some more info on this statement? I don't like the sounds of that, might have a bug in itself there. I'll bring it up with the bug reporter team while I work on your shared buffer issue.
     
  7. JasonCostanza

    JasonCostanza

    Unity Technologies

    Joined:
    May 23, 2017
    Posts:
    404
    I am able to reproduce the error that ei2kpi mentions, "Failed to get rendering parameters for main camera - view transforms may get out of sync! Error code: '0x80004002'" but I have not gotten Stephen's to reproduce. I have filed an issue report for the one I was able to reproduce, if you can get me any other info or send me a repro project that gives the other error i'll make sure it's filed for you guys.

    UPDATE: first bug I was able to reproduce
    I just set it to public, https://issuetracker.unity3d.com/product/unity/issues/guid/1047269/
     
    Last edited: Jun 8, 2018
  8. delphinius81

    delphinius81

    Joined:
    Mar 6, 2012
    Posts:
    57
    I don't think this is an issue with RS4. I have a hololens running 14393.2248 (Anniversary Update) that also has the issue when shared depth buffer is enabled for both 16- and 24-bit depth buffers.

    I am using:
    Unity 2017.4.2
    Visual Studio 2017: 15.7.3
    Windows OS: 10.017134.0
    Holo OS: 10.0.14393.2248 (RS1)

    If I disable shared depth buffer, I stop seeing the errors. Unfortunately, I cannot share my project source code, but please PM me if additional information is needed.
     
  9. tvald

    tvald

    Joined:
    Jul 13, 2018
    Posts:
    10
    I'm running into this issue with the shared depth buffers with the following setup:

    Unity 2018.3b9
    HoloLens OS: 17134.228.x86fre.rs4_release_svc_prod1.180802-1721

    Same symptoms - around 1 out of 10 launches doesn't render anything while the debug console spews:
     
  10. ivan20071

    ivan20071

    Joined:
    Nov 15, 2017
    Posts:
    29
    Hi,
    I'm running occasionally into this issue also with my app available for HMD (the app is made with Unity 2017.4.11f1)
    I am unable to reproduce the problem on my machine.
    Below are all the information I have available (I am tracing my app with App Center)

    Errors:
    Failed to update back buffer on holographic camera - renders may become out of sync! Error code: '0x8000000e'
    Failed to get rendering parameters for main camera - view transforms may get out of sync! Error code: '0x80070102'
    Failed to update back buffer on holographic camera - renders may become out of sync! Error code: '0x80070102'

    upload_2018-11-13_11-43-47.png
    upload_2018-11-13_11-42-55.png
    upload_2018-11-13_11-44-48.png
    Ivan
     
  11. JasonCostanza

    JasonCostanza

    Unity Technologies

    Joined:
    May 23, 2017
    Posts:
    404
    We should have verified fixed for "Failed to get rendering parameters for main camera - view transforms may get out of sync! Error code: '0x80004002'" in the following versions:
    2018.3.0a10
    2018.2.14f1
    2017.4.13f1

    If you're still having issues after updating to one of those versions, file a new bug for us and we'll be happy to take a look
     
  12. ivan20071

    ivan20071

    Joined:
    Nov 15, 2017
    Posts:
    29
    Hi Jason,
    thank you
    I will update my app and I will let you know