k4zmu2a / SpaceCadetPinball

Decompilation of 3D Pinball for Windows – Space Cadet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wayland - SDL Error: That operation is not supported

kowalski7cc opened this issue · comments

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

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?

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.

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.

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

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.