devinacker / bsnes-plus

debug-oriented fork of bsnes
http://bsnes.revenant1.net
327 stars 92 forks source link

Doesn't work well with wayland #277

Open hellow554 opened 3 years ago

hellow554 commented 3 years ago

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
devinacker commented 3 years ago

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?

hellow554 commented 3 years ago

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.

gilligan commented 10 months ago

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