microsoft / wslg

Enabling the Windows Subsystem for Linux to include support for Wayland and X server related scenarios
MIT License
10.26k stars 310 forks source link

BadShmSeg #989

Open brostosjoined opened 1 year ago

brostosjoined commented 1 year ago

Version

Microsoft Windows [Version 10.0.22621.1265]

WSL Version

Kernel Version

5.15.79.1

Distro Version

Ubuntu-22.04

Other Software

Bombsquad 1.7.19

Repro Steps

  1. Downloaded the game through https://files.ballistica.net/bombsquad/builds/BombSquad_Linux_x86_64_1.7.19.tar.gz
  2. Extraced it then cd BombSquad_Linux_x86_64_1.7.19
  3. Then ./bombsquad
  4. Then it brings a black windows named bombsquad then closes

Expected Behavior

Should run the game

Actual Behavior

Exit with these error `BombSquad 1.7.19 build 20995.

X Error of failed request: BadShmSeg (invalid shared segment parameter) Major opcode of failed request: 130 (MIT-SHM) Minor opcode of failed request: 3 (X_ShmPutImage) Segment id in failed request: 0xa00014 Serial number of failed request: 261 Current serial number in output stream: 262 AL lib: (EE) alc_cleanup: 1 device not closed`

Diagnostic Logs

No response

brostosjoined commented 1 year ago

So i finally found a work around by creating a none root user if you dont have one but it launched without sound adduser username -To create new user replace username with preffered name wsl -u username - To login into the created user Then after a short while it brought the same issue

brostosjoined commented 1 year ago

Found a pulse audio server issue then did some stuff launched the game it had sound and works but still doesnt work on root Screenshot 2023-02-23 113813

hideyukn88 commented 1 year ago

@brostosjoined, would you please share what did you do to make sound/pulseaudio to work? thanks!

brostosjoined commented 1 year ago

I surely dont remember but i will try retrace my steps by installing a new distro and test.The audio output is kinda delayed though but works fine

brostosjoined commented 1 year ago

sudo apt install pulseaudio

rosiakpiotr commented 1 year ago

This issue occurs also in Docker container using ubuntu:22.04 as a base. Running glxinfo shows selected vGPU, but attempt to run glxgears results in

X Error of failed request:  BadShmSeg (invalid shared segment parameter)
  Major opcode of failed request:  130 (MIT-SHM)
  Minor opcode of failed request:  3 (X_ShmPutImage)
  Segment id in failed request:  0x600005
  Serial number of failed request:  43
  Current serial number in output stream:  44
VincentVanNF commented 1 year ago

Is there any way to run correctly with root user?