jD91mZM2 / docker-steam

Very simple steam docker image (entirely thanks to x11docker)
MIT License
5 stars 0 forks source link

1860 SegFault X Error of failed request: GLXBadContext thrown on `--gpu` NVIDIA host #2

Open sar opened 3 years ago

sar commented 3 years ago

Segfault is thrown when running with NVIDIA graphics on docker host with nvidia-docker supported.

Added xdg-desktop-portal:i386 xdg-desktop-portal-gtk:i386 as a layer in dockerfile because it fails to install otherwise xTerm: sudo: not found.

Trace/Log

x11docker note: Your system uses closed source NVIDIA driver.
  GPU support will work only with options --hostdisplay and --xorg.
  Consider to use free open source nouveau driver instead.

x11docker note: Using X server option --hostdisplay

x11docker WARNING: Option --gpu degrades container isolation.
  Container gains access to GPU hardware.
  This allows reading host window content (palinopsia leak)
  and GPU rootkits (compare proof of concept: jellyfish).

x11docker note: Option --gpu: To allow GPU acceleration with --hostdisplay,
  x11docker will allow trusted cookies.

x11docker note: Option --hostdisplay: To allow --hostdisplay with trusted cookies,
  x11docker must share host IPC namespace with container (option --hostipc)
  to allow shared memory for X extension MIT-SHM.

x11docker note: To allow protection against X security leaks 
  while using --gpu with NVIDIA, please use option --xorg.

x11docker WARNING: Option --hostdisplay with trusted cookies provides
      QUITE BAD CONTAINER ISOLATION !
  Keylogging and controlling host applications is possible! 
  Clipboard sharing is enabled (option --cliboard).
  It is recommended to use another X server option like --xpra or --nxagent.

x11docker WARNING: Option --hostipc severely degrades 
  container isolation. IPC namespace remapping is disabled.

x11docker WARNING: Option --pulseaudio allows container applications
  to catch your audio output and microphone input.

x11docker WARNING: Option --init=systemd slightly degrades container isolation.
  It adds some user switching capabilities x11docker would drop otherwise.
  However, they are still within default docker capabilities.
  Not within default docker capabilities it adds capability SYS_BOOT.  
  It shares access to host cgroups in /sys/fs/cgroup.
  Some processes in container will run as root.

x11docker WARNING: Sharing device file: /dev/dri

x11docker WARNING: Sharing device file: /dev/nvidia0

x11docker WARNING: Sharing device file: /dev/nvidia1

x11docker WARNING: Sharing device file: /dev/nvidia2

x11docker WARNING: Sharing device file: /dev/nvidiactl

x11docker WARNING: Sharing device file: /dev/nvidia-modeset

x11docker WARNING: Sharing device file: /dev/nvidia-uvm

x11docker WARNING: Sharing device file: /dev/nvidia-uvm-tools

x11docker WARNING: Sharing device file: /dev/vga_arbiter

date: Unknown option 'Ihours' (see "date --help")
x11docker note: Installing NVIDIA driver 455.38 in container.

==> /home/user/.cache/x11docker/steam-ubuntu-guid/share/stderr <==
==> /home/user/.cache/x11docker/steam-ubuntu-guid/share/stdout <==
Traceback (most recent call last):
  File "/usr/bin/steamdeps", line 675, in <module>
    sys.exit(main())
  File "/usr/bin/steamdeps", line 638, in main
    packages[name].set_installed(match.group(2))
KeyError: 'xdg-desktop-portal:i386'
Running Steam on ubuntu 18.04 64-bit
STEAM_RUNTIME is enabled automatically
Pins up-to-date!
Steam client's requirements are satisfied
WARNING: Using default/fallback debugger launch
/home/user/.local/share/Steam/ubuntu12_32/steam
Installing breakpad exception handler for appid(steam)/version(1618256785)
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Installing breakpad exception handler for appid(steam)/version(1618256785)
Installing breakpad exception handler for appid(steam)/version(1618256785)
Loaded SDL version 2.0.15-6484190
sh: 1: lspci: not found
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Steam: An X Error occurred
X Error of failed request:  GLXBadContext
Major opcode of failed request:  151
Serial number of failed request:  51
xerror_handler: X failed, continuing
Steam: An X Error occurred
X Error of failed request:  BadValue (integer parameter out of range for operation)
Major opcode of failed request:  151
Value in failed request:  0x0
Serial number of failed request:  50
xerror_handler: X failed, continuing
Steam: An X Error occurred
X Error of failed request:  BadMatch (invalid parameter attributes)
Major opcode of failed request:  151
Serial number of failed request:  52
xerror_handler: X failed, continuing
assert_20210513002830_1.dmp[1902]: Uploading dump (out-of-process)
/tmp/dumps/assert_20210513002830_1.dmp
/home/user/.local/share/Steam/steam.sh: line 771:  1860 Segmentation fault      (core dumped) $STEAM_DEBUGGER "$STEAMROOT/$STEAMEXEPATH" "$@"
/nix/store/GUID-x11docker-6.6.2/bin/.x11docker-wrapped: line 874:  6059 Terminated              watchmessagefifo