openspades icon indicating copy to clipboard operation
openspades copied to clipboard

game only crashes when using the opengl renderer

Open unmellow opened this issue 3 years ago • 12 comments

OS: Manjaro Linux x86_64 motherboard: Gigabyte Technology GA-A320M-S2H CPU: AMD Ryzen 5 1600X (12) @ 3.600GHz GPU: AMD ATI Radeon RX 470/480/570/570X/580/580X/590 Memory: 2870MiB / 16005MiB Kernel: 5.16.18-1-MANJARO WM: sway

This all provided by the linux command neofetch pretty sure my gpu is a 580

game version 0.1.3

this is the what it spits into my terminal spades.error.txt and this is the error screen thing idk what to call it 2022-06-04T04:00:06,234152129-04:00

incase it is relevant this is the install script i used https://aur.archlinux.org/packages/openspades

link to PKGBUILD https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=openspades

link to .install https://aur.archlinux.org/cgit/aur.git/tree/openspades.install?h=openspades

link to .SRCINFO https://aur.archlinux.org/cgit/aur.git/tree/.SRCINFO?h=openspades

and at the very least I know i can run minecraft and many other video games that I can only assume use opengl so I would be surprised if my mesa is the issue

unmellow avatar Jun 04 '22 08:06 unmellow

figured out where the system messages .lof file was https://gist.github.com/unmellow/222683d22d38287a6ba31c56f304e93f

unmellow avatar Jun 04 '22 08:06 unmellow

Just curious, I wonder whether if you have installed this version of GLEW https://software.manjaro.org/package/glew1.10 or this one https://software.manjaro.org/package/glew

devnexen avatar Jun 04 '22 09:06 devnexen

apparently both are installed on my system the lib32 versions of both too

unmellow avatar Jun 05 '22 06:06 unmellow

openspades-0.1.3.zip Would you be able to build from source from this slightly modified version ? No guaranteeing it will fix your issue but at least to see if the error message would change.

devnexen avatar Jun 05 '22 10:06 devnexen

ok tested it it got the same crash graphic and the logs look similar but I haven't been thorough

unmellow avatar Jun 05 '22 21:06 unmellow

actually i installed https://aur.archlinux.org/packages/glew-wayland which required that I uninstalled glew and openspades then tried running the custom binary and it worked

Apparently this is wayland weirdness i doubt you can actually effect in anyway so feel free to close unless you have greater insight

unmellow avatar Jun 05 '22 21:06 unmellow

I modified the package build og glew-wayland to contain

provides=(glew)

which let me reinstall the package of openspades and that also worked so doubly not something wrong with openspades itself

unmellow avatar Jun 05 '22 21:06 unmellow

that s good news.

devnexen avatar Jun 05 '22 21:06 devnexen

Disable Waylando on Manjaro -- https://forum.manjaro.org/t/how-do-i-change-from-wayland-to-x11-when-using-gdm/81301

i solve this error on ubuntu https://github.com/yvt/openspades/issues/984

snApps do not work correctly with Wayland, the main ones are: kazam, OBS, and OpenSpades. How to switch to Ubuntu without this BULSHIT ?, just change ON the gear at the bottom right and choose the Ubuntu option without WAYLAND.

Ubuntu Without Wayland

Another option to solve the problem: Open the terminal follow theses instructions.

cd ../../ cd etc/gdm3/ sudo nano custom.conf

and uncomment this line WaylandEnable=false

save with ctrl + o and ctrl x

sudo reboot

atorresbr avatar Jun 08 '22 16:06 atorresbr

I forgot I had SDL_VIDEODRIVER set to wayland so another possibly simpler trick that I haven't tested is to unset SDL_VIDEODRIVER

unmellow avatar Jun 13 '22 21:06 unmellow

Maybe the same thing happens to me with GNOME on Wayland.

Any quick workaround without the need to disable Wayland? maybe changing SDL driver?

hardBSDk avatar Oct 29 '22 21:10 hardBSDk

This should only happen if you have the environment variable SDL_VIDEODRIVER=Wayland set somewhere. So the fixes are to unset or set this to x11, install glew compiled for Wayland support, or don't use Wayland. Hope this helps

unmellow avatar Oct 29 '22 23:10 unmellow