Page 1 of 1

v2.4.22-2 hangs at Start Screen

Posted: Thu Jan 13, 2022 11:13 pm
by crunch_time
This is on Fedora 35 w-the KDesktop using the Plasma X11 session with a nvidia gtx 750ti on the 470.xx nvidia drivers. The 495.xx drivers didn't work for me. The cpu is at about 80%, and I have to kill bz off with top. It worked fine yesterday. I did make some changes in the loaded driver packages, but all seems to be well with Blender. I don't get any kind of feedback when I start bz from a terminal. Any ideas?

Re: v2.4.22-2 hangs at Start Screen

Posted: Fri Jan 14, 2022 6:48 pm
by Jan Kowalski
Same problem for me. I'm running Debian based systems with KDEplasma 5.23.5/KDEFramework5.88.0 and Qt 5.12.2
Resulting from an dist-upgrade BZFLAG now hangs on startup. Same in X11 as well as in Wayland.

Re: v2.4.22-2 hangs at Start Screen

Posted: Fri Jan 14, 2022 8:43 pm
by crunch_time
I installed, and got working the latest nvidia driver (495.46). There is no difference.

I forgot to mention that I did install xfce just to see if Bzflag would run from that desktop..nope. XFCE appears to use KDE components, even displaying objects that I have on the KDE desktop.

I turned of Compositor in KDE, but that didn't help.

I don't have Gnome installed, and I don't really want to install it as it brings along a ton of stuff. Might look for another lightweight desktop that doesn't use KDE components and see if that will work.

Re: v2.4.22-2 hangs at Start Screen

Posted: Fri Jan 14, 2022 9:48 pm
by crunch_time
I installed LXQT and LXDE desktops. Same problem. On LXQT, launching bzflag completely locked up my system.

Re: v2.4.22-2 hangs at Start Screen

Posted: Fri Jan 14, 2022 11:27 pm
by blast
I'll try to replicate it. I'll have to pull a nVidia card out of one of my WIndows PCs since all my other nVidia cards won't be supported by current drivers.

Re: v2.4.22-2 hangs at Start Screen

Posted: Sat Jan 15, 2022 5:24 pm
by Jan Kowalski
On SUSE-Linux (KDE plasma) bzflag runs as usual.

Re: v2.4.22-2 hangs at Start Screen

Posted: Tue Jan 18, 2022 8:12 pm
by crunch_time
The start screen shows that the detected Audio Driver is PulseAudio. PulseAudio isn't installed in F35, though the libraries are. The audio is handled by pipewire-pulseaudio. I'm wondering if this might be the problem? Is there a way to specify an audio driver to bypass the auto-detect?

Re: v2.4.22-2 hangs at Start Screen

Posted: Wed Jan 19, 2022 8:20 pm
by crunch_time
Forgot to mention that in window mode, the cursor is locked in the window. I have to wait for bzflag to timeout to terminate it, or toggle over to a terminal and kill it with top. Kind of frustrating that I can't get it going. I can boot up F34 on my old harddrive and play there if I really have to scratch the bzflag itch....

Re: v2.4.22-2 hangs at Start Screen

Posted: Wed Jan 19, 2022 11:00 pm
by tainn
I can reproduce the issue on KDE Fedora 35 (package: bzflag-2.4.22-2.fc35.x86_64).

The issue seems to persist only when running the game obtained from Fedora's official repository (version 2.4.22-2.fc35). Flatpak (version 2.4.22) does not appear to have these issues. I would recommend running the game with Flatpak to avoid the unnecessary hassle of booting an older version of Fedora simply to run bzflag.

Obtaining the Flatpak version is relatively straightforward: Discover > Applications > Games > Action > search "bzflag" > Install

Unpacking is done well, and the app (executable) is available from the start menu as well, by either searching "bzflag" or locating it under the Games segment.

The desktop symlink and endfile are placed on the following paths by default, should you wish to utilize them:

Code: Select all

symlink: ~/.local/share/applications/org.bzflag.BZFlag.desktop
endfile: /var/lib/flatpak/app/org.bzflag.BZFlag/current/active/export/share/applications/org.bzflag.BZFlag.desktop

Re: v2.4.22-2 hangs at Start Screen

Posted: Thu Jan 20, 2022 12:26 am
by crunch_time
Thanks for the help, but unfortunately, it still won't go past the start screen. Not sure what got messed up on my system, if anything. Blender works fine. Suppose it could still be the video driver, but I'm still suspect of how the bzflag packages are being built to work with SDL2. I could be way off on that

Does bzflag on your system use pulseaudio? Also, what graphics card do you have, and if nvidia, what driver?

Re: v2.4.22-2 hangs at Start Screen

Posted: Sat Jan 22, 2022 2:41 pm
by blast
So I've narrowed it down to SDL 2.0.20. When I build against an older version, it works fine. When I use 2.0.20, it seems there's problems with events. So the game itself isn't locked up, but input events (and possibly events out to the desktop environment or window manager) are not happening. I was able to join a server by passing the server hostname from the command line.

The bug is being tracked here: https://github.com/BZFlag-Dev/bzflag/issues/301

Re: v2.4.22-2 hangs at Start Screen

Posted: Sat Jan 22, 2022 7:13 pm
by crunch_time
Glad you figured it out. I did compile from source, and got the same hang. I guess I'll downgrade SDL and see what happens.

Re: v2.4.22-2 hangs at Start Screen

Posted: Sat Jan 22, 2022 8:27 pm
by crunch_time
I downgraded SDL2 to 2.0.16, and BZ now works with the Fedora rpm! During the downgrade, SDL2-static was installed. Now, when looking at the available updates in DNFDragora, SDL-static 2.0.20 is listed. Got me wondering if this package was needed all along to get BZFlag working even though it apparently not called out as a dependancy.

Re: v2.4.22-2 hangs at Start Screen

Posted: Sat Jan 22, 2022 9:42 pm
by crunch_time
Upgraded back to 2.0.20, including SDL-static, and BZ hangs. Downgraded again and all is well.

Re: v2.4.22-2 hangs at Start Screen

Posted: Sat Jan 22, 2022 10:47 pm
by tainn
SDL2 is used, not SDL. Fedora's binary package should include SDL2 since a few versions ago, not SDL anymore. The latter has quite a few bugs, which oftentimes make the game unplayable.

Re: v2.4.22-2 hangs at Start Screen

Posted: Sun Jan 23, 2022 2:28 am
by crunch_time
It is curious that the Fedora package didn't have SDL2-2.0.16 as a dependency. No matter now that it is working for me after the SDL2 downgrade.

Re: v2.4.22-2 hangs at Start Screen

Posted: Sun Jan 23, 2022 3:11 am
by blast
Fedora has SDL2 as a dependency for BZFlag, no? Fedora 35 originally shipped with SDL2 2.0.16, but an update brought it up to 2.0.20.

Re: v2.4.22-2 hangs at Start Screen

Posted: Sun Jan 23, 2022 7:00 am
by tainn
It does.

Code: Select all

[user@host ~]$ dnf repoquery --requires bzflag | grep -i sdl
Last metadata expiration check: 0:00:53 ago on Sun 23 Jan 2022 07:56:13 AM CET.
libSDL2-2.0.so.0()(64bit)
And the full dependency list without the filter, since it is not that long.

Code: Select all

[user@host ~]$ dnf repoquery --requires bzflag
Last metadata expiration check: 0:02:26 ago on Sun 23 Jan 2022 07:56:13 AM CET.
/bin/sh
glibc >= 2.33.9000-43.fc35
libGL.so.1()(64bit)
libGLEW.so.2.1()(64bit)
libGLU.so.1()(64bit)
libSDL2-2.0.so.0()(64bit)
libX11.so.6()(64bit)
libXext.so.6()(64bit)
libXxf86vm.so.1()(64bit)
libc.so.6(GLIBC_2.34)(64bit)
libcares.so.2()(64bit)
libcurl.so.4()(64bit)
libgcc_s.so.1()(64bit)
libgcc_s.so.1(GCC_3.0)(64bit)
libgcc_s.so.1(GCC_3.3.1)(64bit)
libm.so.6()(64bit)
libm.so.6(GLIBC_2.2.5)(64bit)
libm.so.6(GLIBC_2.27)(64bit)
libm.so.6(GLIBC_2.29)(64bit)
libncurses.so.6()(64bit)
libstdc++.so.6()(64bit)
libstdc++.so.6(CXXABI_1.3)(64bit)
libstdc++.so.6(CXXABI_1.3.8)(64bit)
libstdc++.so.6(GLIBCXX_3.4)(64bit)
libstdc++.so.6(GLIBCXX_3.4.11)(64bit)
libstdc++.so.6(GLIBCXX_3.4.14)(64bit)
libstdc++.so.6(GLIBCXX_3.4.15)(64bit)
libstdc++.so.6(GLIBCXX_3.4.20)(64bit)
libstdc++.so.6(GLIBCXX_3.4.21)(64bit)
libstdc++.so.6(GLIBCXX_3.4.26)(64bit)
libstdc++.so.6(GLIBCXX_3.4.29)(64bit)
libstdc++.so.6(GLIBCXX_3.4.5)(64bit)
libstdc++.so.6(GLIBCXX_3.4.9)(64bit)
libtinfo.so.6()(64bit)
libz.so.1()(64bit)
libz.so.1(ZLIB_1.2.0)(64bit)
opengl-games-utils
rtld(GNU_HASH)
shadow-utils

Re: v2.4.22-2 hangs at Start Screen

Posted: Sun Jan 23, 2022 10:57 pm
by crunch_time
Sure enough. Don't know what I was thinking!

Happy BZFlagging!

Re: v2.4.22-2 hangs at Start Screen

Posted: Thu Jan 27, 2022 1:10 am
by Greasy Pizza Chunks
Thanks, People. I had the same problem with bzflag on Fedora, both the rpm and my own compiled version. Downgrading SDL2 from SDL2-2.0.20 to SDL2-2.0.16-3 fixes the problem.