stereolabs / zed-docker

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

Segmentation fault on Jetson Nano when running ZED_Explorer #25

Closed NicolajFoerderer closed 4 years ago

NicolajFoerderer commented 4 years ago

Hi, I am running a container on a NVIDIA Jetson Nano with display support:

xhost +si:localuser:root
sudo docker run -it --gpus all --privileged -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix stereolabs/zed:3.2-tools-devel-jetson-jp4.3

When I run tools/ZED_Diagnostic all tests pass, but when I run tools/ZED_Explorer the GUI pops up and then crashes with the following error message:

nvbuf_utils: Could not get EGL display connection
Segmentation fault (core dumped)

Same issue, with other versions of ZED SDK or JetPack. If I install the ZED SDK on the Jetson Nano directly, everything works fine.

leicmi commented 4 years ago

Somewhat related, does using --net=host as described in https://stackoverflow.com/questions/58851228/gstreamer-camera-usage-within-docker-containers solve your issue? For me it solves the error nvbuf_utils: Could not get EGL display connection in a very different setup. I'm still looking for a way to avoid it though...

NicolajFoerderer commented 4 years ago

That's it! Thank you dear stranger.