Display Issue :: X11 and GLFW in Driveworks Docker Environment Host PC

Dear Team,

Software Version
DRIVE OS 6.0.4 SDK

Target Operating System
QNX

Host Machine Version

native Ubuntu Linux 20.04 Host installed with DRIVE OS Docker Containers

I have setup NVIDIA Docker Environment of Drive Orin OS on my Laptop (Ubuntu 20.04)

while running the sample from driveworks 5.6 , I am facing below error:

root@nvidia:/usr/local/driveworks-5.6/bin# ./sample_renderer 
ProgramArguments: Missing argument 'dwTracePath' requested
GLFW error: 65544, X11: The DISPLAY environment variable is missing
WindowGLFW: Failed to initialize GLFW
terminate called after throwing an instance of 'std::exception'
  what():  std::exception
Aborted (core dumped)

Please find the docker build and run command below:
sudo docker pull nvcr.io/drive/driveos-sdk/drive-agx-orin-linux-aarch64-sdk-build-x86:latest

sudo docker run -it --gpus=all --privileged --net=host --ulimit memlock=-1 --ipc=host -v /dev/bus/usb:/dev/bus/usb -v $PWD:/DRV3–privileged --volume=“$HOME/.Xauthority:/root/.Xauthority:rw” -v /tmp/.X11-unix:/tmp/.X11-unix nvcr.io/drive/driveos-sdk/drive-agx-orin-linux-aarch64-sdk-build-x86:latest

Please help to resolve the same.

Thanks and Regards,
Vyom Mishra

1 Like