From 3286d81c1598a66f047039bd7707f54a69c4e922 Mon Sep 17 00:00:00 2001 From: Seungmin Kim <8457324+ehfd@users.noreply.github.com> Date: Sun, 27 Sep 2026 15:30:20 +0900 Subject: [PATCH 1/2] fix(xorg): Run Xvfb without DRI3 when DRINODE is not in the container A DRINODE the container does not have still started glamor on it. Under the NVIDIA runtime, which provides the driver's libraries but no /dev/dri, Xvfb then came up on NVIDIA's EGL and crashed in libnvidia-egl-gbm when it probed GLX. --- root/etc/s6-overlay/s6-rc.d/svc-xorg/run | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/root/etc/s6-overlay/s6-rc.d/svc-xorg/run b/root/etc/s6-overlay/s6-rc.d/svc-xorg/run index a2396a34..5b7281dc 100755 --- a/root/etc/s6-overlay/s6-rc.d/svc-xorg/run +++ b/root/etc/s6-overlay/s6-rc.d/svc-xorg/run @@ -18,7 +18,11 @@ node_driver() { # Pick the render node glamor draws on. DRINODE wins outright DRI3_NODE="" if [ -n "${DRINODE}" ]; then - DRI3_NODE="${DRINODE}" + if [ -c "${DRINODE}" ]; then + DRI3_NODE="${DRINODE}" + else + echo "**** DRINODE ${DRINODE} is not in the container, Xvfb runs without DRI3 ****" + fi else for node in /dev/dri/renderD*; do [ -e "${node}" ] || continue From 6ac2ba8b3c92681cc26b902432ac90b7665b00a1 Mon Sep 17 00:00:00 2001 From: Seungmin Kim <8457324+ehfd@users.noreply.github.com> Date: Thu, 1 Oct 2026 12:06:05 +0900 Subject: [PATCH 2/2] fix(xorg): Load no EGL external platform in a software Xvfb A runtime can put the NVIDIA driver's own libEGL ahead of glvnd's, as the reporter's in linuxserver/docker-chromium#78 does (its backtrace runs from swrast_dri.so straight into libEGL_nvidia, with no glvnd frame). The pin to Mesa's EGL vendor is glvnd's, so it never reaches that library: the GLX probe still asks NVIDIA's EGL for the GBM platform's default display, and with no /dev/dri libnvidia-egl-gbm crashes. An empty __EGL_EXTERNAL_PLATFORM_CONFIG_FILENAMES, which libEGL_nvidia reads itself, leaves NVIDIA's EGL without its GBM platform, so it answers the probe with no display and Xvfb keeps Mesa's configs. In ghcr.io/linuxserver/chromium:latest on a GTX 1080 Ti (580.178.04), with /dev/dri hidden and NVIDIA's EGL handed out whatever the pin says, Xvfb crashes on master and serves with this; with the pin in effect it serves either way. --- root/etc/s6-overlay/s6-rc.d/svc-xorg/run | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/root/etc/s6-overlay/s6-rc.d/svc-xorg/run b/root/etc/s6-overlay/s6-rc.d/svc-xorg/run index 5b7281dc..9bfa87e0 100755 --- a/root/etc/s6-overlay/s6-rc.d/svc-xorg/run +++ b/root/etc/s6-overlay/s6-rc.d/svc-xorg/run @@ -48,9 +48,13 @@ fi # Clear Zink env for xvfb unset GALLIUM_DRIVER MESA_LOADER_DRIVER_OVERRIDE LIBGL_KOPPER_DRI2 -# A software server probes GLX through EGL at startup -if [ -z "${VFBCOMMAND}" ] && [ -f /usr/share/glvnd/egl_vendor.d/50_mesa.json ]; then - export __EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/50_mesa.json +# A software server probes GLX through EGL at startup: keep it on Mesa's EGL, +# and load no EGL external platform for a driver libEGL that comes before glvnd's +if [ -z "${VFBCOMMAND}" ]; then + if [ -f /usr/share/glvnd/egl_vendor.d/50_mesa.json ]; then + export __EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/50_mesa.json + fi + export __EGL_EXTERNAL_PLATFORM_CONFIG_FILENAMES="" fi # Run Xvfb server with required extensions