stereolabs / zed-docker

Docker images for the ZED SDK
https://hub.docker.com/r/stereolabs/zed/
MIT License
52 stars 19 forks source link

xhost: unable to open display "" #46

Closed klimovskis closed 1 year ago

klimovskis commented 1 year ago

Preliminary Checks

Description

Hello, This is the first run of ZED 2 Stereolabs on NVIDIA Jetson Nano. When running xhost +si:localuser:root Getting an error xhost: unable to open display ""

Please assist

Steps to Reproduce

  1. Run sudo docker run --gpus all -it --privileged stereolabs/zed:3.0-devel-jetson-jp4.2
  2. Get error WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
  3. In root@ba9e02dde91c:/usr/local/zed# type xhost +si:localuser:root
  4. Receive xhost: unable to open display ""

Expected Result

Open display

Actual Result

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested root@ba9e02dde91c:/usr/local/zed# xhost +si:localuser:root xhost: unable to open display ""

ZED Camera model

ZED2

Environment

OS: Nvidia Jetson Ubuntu
Version: Nvidia Jetson Nano
Camera: Zed 2

Anything else?

No response

adujardin commented 1 year ago

Hi, The command xhost +si:localuser:root should run on the host, not in the container. Also are you sure you're using the Jetpack 4.2 on your Jetson ? It's now quite old and the version must match exactly to work

klimovskis commented 1 year ago

Hello, Thanks for the answer. I will try to run xhost +si:localuser:root as noted.

About Jetpack: I just flashed the most recent version of NVIDIA OS following the "getting started guide" https://developer.nvidia.com/embedded/learn/get-started-jetson-nano-devkit

Thanks.

adujardin commented 1 year ago

Ok, so you should have JP4.6.1. You should use stereolabs/zed:3.8-devel-jetson-jp4.6.1 or stereolabs/zed:3.7-devel-jetson-jp4.6.1

klimovskis commented 1 year ago

Thanks, the issue has been resolved.