bfready
Posts: 60
Joined: Sun Jun 16, 2019 2:13 pm

Zandronum (ptitSeb Rpi Build) Crashes Once a Game is Started [RESOLVED]

Wed Apr 15, 2020 3:45 pm

Hi, ptitSeb.

First off, I appreciate you taking the time to help me out. I will briefly go through what I have done so far for anyone else who is interested in running Zandronum on the Raspberry Pi:

Crashing Issue Resolved. Follow the steps below to get Zandronum 3.1 Alpha working on the Rpi4:

[START OF PROCEDURE]

You need to install dependencies for Zandronum before step 1:

Code: Select all

sudo apt-get install build-essential zlib1g-dev libsdl1.2-dev libjpeg-dev nasm tar libbz2-dev libgtk2.0-dev cmake mercurial libfluidsynth-dev libgl1-mesa-dev libssl-dev libglew2.1 libglew-dev libglew-dev
1. Clone ptitSeb's Zandronum build:

Code: Select all

hg clone https://bitbucket.org/ptitSeb/zandronum
2. Changed directory to ./zandronum and cmake w/ new parameters:

Code: Select all

cd zandronum
cmake -DRPI4=ON -DNO_FMOD=ON ./
3. Then start the compilation using make

Code: Select all

make -j4
4. Copy over the doom iwad (DOOM2.wad is what I used) to the zandronum directory

5. start Zandronum

Code: Select all

./zandronum


You can also download and compile Doomseeker if want to join Zandronum 3.1 Alpha servers.
There are several active servers that are running on 3.1 Alpha (the rest are 3.0). If you try joining the 3.0 servers, you will download the needed WADS, and zandronum will run, but it will not join due to a version conflict... So, you must join a 3.1 server to play multiplayer games with other people on the doomseeker/zandronum servers. My handle is "CPLHicks" or "bfready," so if you ever see me say "hi" and tell me you're playing on an RPi or something...

Just follow the compiling instructions for Debian on the zandronum wiki page:

https://wiki.zandronum.com/Compiling_Do ... r_on_Linux


Let me know if you have any problems with the compilation of either Zandronum or Doomseeker. I'll try to help.

[END OF PROCEDURE]

Zandronum starts. I don't hear music, but there is sound (menu switching sounds).
I click NEW game and difficulty and it crashes:

Code: Select all

Zandronum 3.1-alpha - 200415-1313 - SDL version
Compiled on Apr 15 2020
Using video driver x11

M_LoadDefaults: Load system defaults.
Gameinfo scan took 0 ms
W_Init: Init WADfiles.
 adding /home/pi/zandronum/zandronum.pk3, 689 lumps
 adding ./DOOM2.WAD, 2919 lumps
I_Init: Setting up machine state.
I_InitSound: Initializing OpenAL
  Opened device Built-in Audio Analog Mono
  EFX enabled
V_Init: allocate screen.
Using in-memory database. The database will not be saved on exit.
S_Init: Setting up sound.
ST_Init: Init startup screen.
Checking cmd-line parameters...
S_InitData: Load sound definitions.
G_ParseMapInfo: Load map definitions.
Texman.Init: Init texture manager.
ParseTeamInfo: Load team definitions.
LoadActors: Load actor definitions.
R_Init: Init Doom refresh subsystem.
DecalLibrary: Load decals.
PWO_Init: Initializing preferred weapon order.
M_Init: Init menus.
P_Init: Init Playloop state.
ParseSBarInfo: Loading default status bar definition.
ParseSBarInfo: Loading custom status bar definition.
D_CheckNetGame: Checking network game status.
player 1 of 1 (1 nodes)
Initializing network subsystem.
IP address 127.0.1.1:10667
UDP Initialized.
Resolution: 640 x 480
execvp failed
child gone
Playing demo DEMO1
Cannot play non-ZDoom demos.
Playing demo DEMO2
Cannot play non-ZDoom demos.
Playing demo DEMO3
Cannot play non-ZDoom demos.
execvp failed
child gone
I_InitSound: Initializing OpenAL
  Opened device Built-in Audio Analog Mono
  EFX enabled
execvp failed
child gone
Playing demo DEMO1
Cannot play non-ZDoom demos.
Playing demo DEMO2
Cannot play non-ZDoom demos.


MAP01 - entryway

execvp failed
child gone
zandronum: /build/openal-soft-aOn3HQ/openal-soft-1.19.1/Alc/filters/filter.c:25: BiquadFilter_setParams: Assertion `gain > 0.00001f' failed.
Aborted
Seems to be related to sound (openal). I have tried different combinations of sound options. The only option that "fixes" the game is to remove sound all together using the -nosound switch at the command line:

Code: Select all

./zandronum -nosound
Any help would be appreciated. Thanks a lot!
Last edited by bfready on Wed Aug 26, 2020 1:35 am, edited 12 times in total.

bfready
Posts: 60
Joined: Sun Jun 16, 2019 2:13 pm

Re: Zandronum (ptitSeb Rpi Build) Crashes Once a Game is Started

Thu Apr 16, 2020 12:11 am

I just compiled and ran Doomseeker to see if I could join games now using ptitSeb's Zandronum build. I just put -nosound in the add parameter box in the Doomseeker configuration.

Unfortunately, all the servers I tried use Zandronum 3.0. This build is 3.1 Alpha, which is not compatible:

Code: Select all

Connecting to 186.134.7.63:10666
Failed connect. Your version is different.
This server is using version: 3.0
Please check http://www.zandronum.com/ for updates.
So, that sucks.

ptitSeb
Posts: 202
Joined: Tue May 19, 2015 2:49 pm

Re: Zandronum (ptitSeb Rpi Build) Crashes Once a Game is Started

Thu Apr 16, 2020 12:26 pm

I'll try to reproduce the openal issue. But that wont fix the version number mismatch. In parallel I'll try to have zandronum x86 version running on box86.

ptitSeb
Posts: 202
Joined: Tue May 19, 2015 2:49 pm

Re: Zandronum (ptitSeb Rpi Build) Crashes Once a Game is Started

Thu Apr 16, 2020 5:11 pm

I fixed the OpenAL issue: it's a (known?) problem with OpenA-soft 1.19.1 and EFX. So I added a detection of that version, and disabled EFX in that case.

bfready
Posts: 60
Joined: Sun Jun 16, 2019 2:13 pm

Re: Zandronum (ptitSeb Rpi Build) Crashes Once a Game is Started

Fri Apr 17, 2020 12:17 am

Thanks, ptitSeb! You're the best. I'll try cloning again an recompiling.

bfready
Posts: 60
Joined: Sun Jun 16, 2019 2:13 pm

Re: Zandronum (ptitSeb Rpi Build) Crashes Once a Game is Started

Fri Apr 17, 2020 3:13 am

Worked like a charm, ptitSeb. Thanks for this!

Zandronum 3.1A works, and sound works with no crashing.

I still can not join any of the doomseeker servers, but that won't be possible unless you make a Zandronum 3.0 build, right?

Anybody else following this, just following the instructions in the first post.

print('jo')
Posts: 11
Joined: Sat Nov 09, 2019 11:54 am

Re: Zandronum (ptitSeb Rpi Build) Crashes Once a Game is Started [RESOLVED]

Tue Aug 18, 2020 4:39 pm

Hi, I had a go and all was well until I tried to compile.
This is what it outputted:

Code: Select all

[[  0%] Built target sqlite3
[  0%] Built target updaterevision
[  8%] Built target gme
[  8%] Built target GeoIP
[  9%] Built target lemon
[ 10%] Built target lzma
[ 11%] Built target re2c
[ 24%] Built target dumb
[ 24%] Built target arithchk
[ 25%] Built target zipdir
[ 26%] Built target qnan
[ 27%] Built target gdtoa
[ 27%] Built target protocolspec
src/gitinfo.h is up to date at commit ZA_3.0-68-a5e950afe813.
[ 27%] Built target revision_check
[ 29%] Built target master-97
[ 29%] Building CXX object src/CMakeFiles/zdoom.dir/sdl/hardware.o
[ 29%] Building CXX object src/CMakeFiles/zdoom.dir/sdl/i_movie.o
[ 29%] Building CXX object src/CMakeFiles/zdoom.dir/sdl/i_system.o
[ 29%] Building CXX object src/CMakeFiles/zdoom.dir/sdl/sdlvideo.o
[ 29%] Building CXX object src/CMakeFiles/zdoom.dir/sdl/sdlglvideo.o
In file included from /home/pi/zandronum-build/zandronum/src/sdl/sdlglvideo.h:7,
                 from /home/pi/zandronum-build/zandronum/src/sdl/hardware.cpp:51:
/home/pi/zandronum-build/zandronum/src/gl/system/gl_system.h:74:10: fatal error: GL/glew.h: No such file or directory
 #include <GL/glew.h>
          ^~~~~~~~~~~
compilation terminated.
make[2]: *** [src/CMakeFiles/zdoom.dir/build.make:103: src/CMakeFiles/zdoom.dir/sdl/hardware.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /home/pi/zandronum-build/zandronum/src/sdl/sdlglvideo.h:7,
                 from /home/pi/zandronum-build/zandronum/src/sdl/sdlglvideo.cpp:18:
/home/pi/zandronum-build/zandronum/src/gl/system/gl_system.h:74:10: fatal error: GL/glew.h: No such file or directory
 #include <GL/glew.h>
          ^~~~~~~~~~~
compilation terminated.
make[2]: *** [src/CMakeFiles/zdoom.dir/build.make:207: src/CMakeFiles/zdoom.dir/sdl/sdlglvideo.o] Error 1
/home/pi/zandronum-build/zandronum/src/sdl/sdlvideo.cpp: In member function ‘virtual DFrameBuffer* SDLVideo::CreateFrameBuffer(int, int, bool, DFrameBuffer*)’:
/home/pi/zandronum-build/zandronum/src/sdl/sdlvideo.cpp:266:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
    oheight = height;
    ~~~~~~~~^~~~~~~~
/home/pi/zandronum-build/zandronum/src/sdl/sdlvideo.cpp:267:3: note: here
   case 2:
   ^~~~
make[1]: *** [CMakeFiles/Makefile2:1075: src/CMakeFiles/zdoom.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
This is the output after I tried to compile once, Guake ran out of lines to show and deleted half the output from before.
Any help would be appreciated!

ptitSeb
Posts: 202
Joined: Tue May 19, 2015 2:49 pm

Re: Zandronum (ptitSeb Rpi Build) Crashes Once a Game is Started [RESOLVED]

Tue Aug 18, 2020 5:05 pm

You need to `sudo apt install libglew-dev`

print('jo')
Posts: 11
Joined: Sat Nov 09, 2019 11:54 am

Re: Zandronum (ptitSeb Rpi Build) Crashes Once a Game is Started [RESOLVED]

Wed Aug 19, 2020 1:06 pm

Thank you, it compiled successfully.

print('jo')
Posts: 11
Joined: Sat Nov 09, 2019 11:54 am

Re: Zandronum (ptitSeb Rpi Build) Crashes Once a Game is Started [RESOLVED]

Wed Aug 19, 2020 6:24 pm

Sorry for yet more questions...

Whenever I try to load a .wad file, such as doom.wad or megagame.wad, It completely ignores it.
I put it in ~/.config/zandronum, I tried using -file in the command, but to no avail.
It says I might have compiled wrong, so that could be the case, or I'm just ignoring basic facts.
Again, thanks in advance!

ptitSeb
Posts: 202
Joined: Tue May 19, 2015 2:49 pm

Re: Zandronum (ptitSeb Rpi Build) Crashes Once a Game is Started [RESOLVED]

Sun Aug 23, 2020 9:47 am

print('jo') wrote:
Wed Aug 19, 2020 6:24 pm
Sorry for yet more questions...

Whenever I try to load a .wad file, such as doom.wad or megagame.wad, It completely ignores it.
I put it in ~/.config/zandronum, I tried using -file in the command, but to no avail.
It says I might have compiled wrong, so that could be the case, or I'm just ignoring basic facts.
Again, thanks in advance!
I put the wad file on the same folder of Zandronum myself and it works fine. Look there for more options: https://wiki.zandronum.com/Zandronum_and_IWAD_Files
Last edited by ptitSeb on Wed Aug 26, 2020 6:12 am, edited 1 time in total.

bfready
Posts: 60
Joined: Sun Jun 16, 2019 2:13 pm

Re: Zandronum (ptitSeb Rpi Build) Crashes Once a Game is Started [RESOLVED]

Wed Aug 26, 2020 1:40 am

I added "libglew-dev" to the list of dependencies required in the first post. Thanks, print('jo') and ptitSeb.

BTW, ptitSeb:

I'm not sure WHEN it was fixed, but I just updated box86 after not playing Zandronum 3.0 on my Pi for quite some time.
I can now join any server w/ without the 5 minute wait during the map authentication! Not sure what you did, but it works now.

The SW renderer still doesn't work, but this is minor compared to that map authentication pause.

Thanks for all that you do, man!

ptitSeb
Posts: 202
Joined: Tue May 19, 2015 2:49 pm

Re: Zandronum (ptitSeb Rpi Build) Crashes Once a Game is Started [RESOLVED]

Sat Sep 19, 2020 8:59 am

Because Bitbucket have removed mercurial support, zandronum repo is gone.

I put the cuurent sources in a github repo now (but without the history unfortunatly) here: https://github.com/ptitSeb/zandronum

Return to “Gaming”