SpaceCadetPinball icon indicating copy to clipboard operation
SpaceCadetPinball copied to clipboard

Wayland - SDL Error: That operation is not supported

Open kowalski7cc opened this issue 3 years ago • 5 comments

Running on Linux Wayland, console gets spammer with SDL Error: That operation is not supported

kowalski7cc avatar Oct 10 '22 11:10 kowalski7cc

Ok, I will try to repro that. Probably benign if the game still works. Might have to suppress SDL diag out in release buid if that comes from an important call.

Any Wayland setup will do, or should I use some particular distro/DE combo?

k4zmu2a avatar Oct 11 '22 07:10 k4zmu2a

I had it both on ChromeOS and on Fedora, so I imagine it will happen with every Wayland setup. Game seems working with no issues, so I don't know wich operation causes the error.

kowalski7cc avatar Oct 11 '22 07:10 kowalski7cc

I could not reproduce this using latest code from master on Ubuntu 22.04 + default Gnome DE. Tried it with both Xorg and Wayland sessions.

I don’t have any other Wayland systems installed and I don’t have too much time to mess around with that. So, this issue will have to wait a bit.

I you are up for it, you could narrow it down by adding unique SDL_GetError prints around main loop. That is what I did when I faced similar issue in the past.

k4zmu2a avatar Oct 11 '22 09:10 k4zmu2a

Worked around the issue with message rate limiter. Would be nice to know the root cause though.

k4zmu2a avatar Oct 11 '22 10:10 k4zmu2a

Worked around the issue with message rate limiter. Would be nice to know the root cause though.

Well, there are a LOT of things that Wayland doesn't support right now, even basic things like opening a window at a specific position on the screen and setting an icon for a window. It's honestly not at all surprising for SDL to throw a bunch of errors like that, but then for the game to run just fine anyway.

Tynach avatar May 17 '24 17:05 Tynach