bsnes-plus icon indicating copy to clipboard operation
bsnes-plus copied to clipboard

Doesn't work well with wayland

Open hellow554 opened this issue 4 years ago • 4 comments

if I use the sdl input backend, it crashes everytime with:

qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  3 (X_GetWindowAttributes)
  Resource id in failed request:  0x5
  Serial number of failed request:  10
  Current serial number in output stream:  11

hellow554 avatar Feb 18 '21 17:02 hellow554

Does this happen immediately on starting the program or only after trying to do something specific? What about if you use the X-Windows input driver instead?

devinacker avatar Feb 19 '21 04:02 devinacker

I'm somewhat sorry, it doesn't have to do anything with the SDL input backend, but with the video plugin:

SDL:

X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  3 (X_GetWindowAttributes)
  Resource id in failed request:  0x6
  Serial number of failed request:  7
  Current serial number in output stream:  8

QT-Raster backend (seems like the backgorund isn't cleared properly. The blue-ish color is my background image) 1613718618_grim

X-Video:

X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  3 (X_GetWindowAttributes)
  Resource id in failed request:  0x6
  Serial number of failed request:  12
  Current serial number in output stream:  13
fish: “bsnes/out/bsnes” terminated by signal SIGSEGV (Address boundary error)

OpenGL

X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  3 (X_GetWindowAttributes)
  Resource id in failed request:  0x6
  Serial number of failed request:  10
  Current serial number in output stream:  11

So it seems, that it has the same underlying error. I'm no X expert nor have I any clue what's going on. My environment variables are:

QT_QPA_PLATFORM=wayland
SDL_VIDEODRIVER=wayland
XDG_SESSION_TYPE=wayland

It's somewhat easy to reproduce, just install sway for example (weston should also work), set those environment variables and use one of the video output plugins. You don't even need to load a game, it just crashes.

hellow554 avatar Feb 19 '21 07:02 hellow554

I've been spending some time today trying to get bsnes-plus to work for me but haven't been able to get past this exact problem

gilligan avatar Dec 31 '23 18:12 gilligan