I want to start a deepstream 8.0 pipeline from my host (Ubuntu 24), displaying stream with nveglglessink, but it fails with MESA: error: Failed to attach to x11 shm.
To reproduce the issue, from the terminal, just run:
I really need this to work, because I get the same problem in my devcontainer environment where I develop an application using deepstream pipeline. I think I will stick to 7.1 until there is a working solution, I need to display the output in a window, at least for debugging purpose.
I’ll try the driver 570, and if needed I’ll reinstall nvidia-container-toolkit.
What surprises me is that I work without any problem with DS7.1, and wanted to test DS8 on the same machine and got the error.
I cleaned up everything about the container toolkit and the driver, and did a clean install of the 570 driver and the nvidia-container-toolkit.
I still get the same error with DS8 (DS7.1 works fine), I also notices some error about amd (I do have a AMD ryzen CPU):
Setting pipeline to PAUSED ...
_amdgpu_device_initialize: amdgpu_get_auth (1) failed (-1)
amdgpu: amdgpu_device_initialize failed.
libEGL warning: egl: failed to create dri2 screen
libEGL warning: egl: failed to create dri2 screen
Pipeline is PREROLLING ...
Got context from element 'eglglessink0': gst.egl.EGLDisplay=context, display=(GstEGLDisplay)NULL;
MESA: error: Failed to attach to x11 shm
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
Redistribute latency...
New clock: GstSystemClock
MESA: error: Failed to attach to x11 shm
MESA: error: Failed to attach to x11 shm
MESA: error: Failed to attach to x11 shm
MESA: error: Failed to attach to x11 shm
MESA: error: Failed to attach to x11 shm
MESA: error: Failed to attach to x11 shm
MESA: error: Failed to attach to x11 shm
MESA: error: Failed to attach to x11 shm
With DS7.1 docker image, I get the following output (nothing about AMD here):
Setting pipeline to PAUSED ...
libEGL warning: DRI2: could not open /dev/dri/card2 (No such file or directory)
Pipeline is PREROLLING ...
Got context from element 'eglglessink0': gst.egl.EGLDisplay=context, display=(GstEGLDisplay)NULL;
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
Redistribute latency...
New clock: GstSystemClock
^Chandling interrupt.
Interrupt: Stopping pipeline ...
EOS on shutdown enabled -- Forcing EOS on the pipeline
Waiting for EOS...
Got EOS from element "pipeline0".
EOS received - stopping pipeline...
Execution ended after 0:00:01.100215702
Setting pipeline to NULL ...
Freeing pipeline ...