Hello,

I am trying to start DepthAI Viewer, however, cannot get it to work.
Im on windows 11, use the OAK D Lite and Viewer 3.5.0
When I start Viewer it get an error message for WGPU, which is resolved by inputting :$Env:WGPU_BACKEND = "dx12"
When I then launch it with: py -m depthai_viewer, the application starts
When I then plug in my camera with a usb 3 cable (I have used 3 different ones (original and 2 others)) it detects it only with a usb 2.1 connection and after 3-4 seconds I get this message:

I can briefly see the camera output in DepthAI Viewer on the left side and then it crashes.
Can anyone please help me?? Thank you!

Hi @Hanz, make sure you are using a usb3 port on your computer as well. Also, could you please paste the full log you get in the terminal, it will help with the investigation.

  • Hanz replied to this.

    Hi filipjeretina ,

    Yes I checked the maual for my PC (ThinkCentre M83) and tried every usb 3 port. It works best with the front IO. The rear IO detects in DepthAI Viewer as USB 2.2 or 2.4 or 2.1 and crashes alsmost immediately
    When I use the front IO it detects and shows me USB 2.8 and the other 2.7.
    The port where it shows USB 2.7 works best (2nd front port), as it does not immediately crash. Only when there is something close to the camera.
    All the others crash instantly.

    This is the full documentation from start to finish:

    Thank you!!

    @Hanz Hmmm, from what you have described, especially with: it only crashes "when there is something close to the camera", it seems as if this could be related to how we create / render the pointcloud. One thing you can try immediately is to try and use the OpenGL backend using: $Env:WGPU_BACKEND = "gl" and see if that helps. Also please try to update your graphics card driver. And one more request: With the usb port that works (until you move something close to the camera), try to disable the Depth after the stream starts. (right panel: Depth settings -> Enable switcher at the bottom), then bring something close to the camera and see if it still crashes or continues to work.. Thanks for the terminal logs!

    • Hanz replied to this.

      filipjeretina
      The Open Gl backend unfortunatly did not work. Does not let me start DepthAi Viewer when trying it.

      Or I might have done it wrong

        Hanz
        Ahh no … I see the GL wgpu backend is not supported anyways on windows (out of the box), sorry for that…
        We will have to look into why this crash happens, thanks for reporting it! Did you have a chance to try :
        With the usb port that works (until you move something close to the camera), try to disable the Depth after the stream starts. (right panel: Depth settings -> Enable switcher at the bottom), then bring something close to the camera and see if it still crashes or continues to work..

        • Hanz replied to this.

          filipjeretina
          Yess sry I forgot to do that. When I disable the Depth it does not crash anymore!! I can move my hand in front of the camera and see the result on my screen.

          However, when I left click on one of the three live streams from the camera as seen on the bottom one in the picture, it crashes again and I get this error message:

            Hanz That's great to hear! Wow - something is really going wrong with the rendering then… Did the log contain any more information - if yes, please do send it over 🙂. I'll have to get back to you on this issue when I know more…

            Edit: Asked about windows version, saw you mentioned it's windows 11 above…

            • Hanz replied to this.

              filipjeretina
              Oh yes sorry, I am on windows 10 enterprise.
              This is the whole log from starting to crashing:

              filipjeretina
              This is the log while Depthai Viewer is still open. and after some time.

              Maybe this helps as well