Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server dying after about 90 seconds #34

Open
drzel opened this issue Aug 8, 2018 · 10 comments
Open

Server dying after about 90 seconds #34

drzel opened this issue Aug 8, 2018 · 10 comments

Comments

@drzel
Copy link

drzel commented Aug 8, 2018

Hey I'm running 0.31 fine at qw://fortressone.ga

Compiled 0.32 and swapped out the binary and the server crashes after about 90 seconds with:

sv_error: Program error

At least that's what I get in the client. I'm all yours to troubleshoot the issue. Hoping to use bsp2 so any tips are appreciated.

@meag
Copy link
Collaborator

meag commented Aug 8, 2018

Is it a standard qwprogs.dat that you're using? Can you attach the .dat?
Does it die after 90 seconds even if no clients are connected, or only if clients are connected? 90 seconds after the client connects?

@drzel
Copy link
Author

drzel commented Aug 8, 2018

Running this mod: https://github.com/FortressOne/server-qwprogs
qwprogs.dat

Just tested now, was able to run empty server without crash for 5 minutes.
Was able to hop around map by myself for 5 minutes before it died.

With three people in I captured the following:

============= Starting MVDSV =============
32.0 megabyte heap
QuakeWorld Initialized
MVDSV 0.32, (build 0) (Linux)
Build date: Aug  8 2018, 10:06:49
MVDSV Project home page: https://github.com/deurk/mvdsv

execing server.cfg
execing mvdsv.cfg
Logging players to qw/logs/player_27500_0000.log
Logging rcon to qw/logs/rcon_27500_0000.log
execing fortress.cfg
execing config.cfg
Master server at 5.196.225.119:27000
Sending a ping.
Master server at 5.9.97.180:27000
Sending a ping.
Master server at 136.243.9.253:27000
Sending a ping.
Master server at 194.48.213.70:27000
Sending a ping.
VM_Load: "qwprogs"
corpse_time is not a field
keep_keys is not a field
lose_items is not a field
mapversion is not a field
quothflags is not a field
quothflags is not a field
quothflags is not a field
rotate_type is not a field
No spawn function for:
origin         '1488.0 2800.0 316.0'
angles         '  0.0 330.0   0.0'
classname      monster_turret
menu_input     ()
team_no          1.0
rotate_type is not a field
No spawn function for:
origin         '1488.0 2696.0 316.0'
angles         '  0.0  39.0   0.0'
classname      monster_turret
menu_input     ()
team_no          1.0
rotate_type is not a field
No spawn function for:
origin         '-720.0 -648.0 316.0'
angles         '  0.0 205.0   0.0'
classname      monster_turret
menu_input     ()
team_no          2.0
rotate_type is not a field
No spawn function for:
origin         '-720.0 -752.0 316.0'
angles         '  0.0 148.0   0.0'
classname      monster_turret
menu_input     ()
team_no          2.0
rotate_type is not a field
No spawn function for:
origin         '-288.0 2548.0 332.0'
angles         '  0.0 138.0   0.0'
classname      monster_turret
menu_input     ()
team_no          1.0
rotate_type is not a field
No spawn function for:
origin         '1056.0 -500.0 332.0'
angles         '  0.0 330.0   0.0'
classname      monster_turret
menu_input     ()
team_no          2.0
quothflags is not a field
quothflags is not a field
quothflags is not a field
quothflags is not a field
quothflags is not a field
ritem is not a field
quothflags is not a field
ritem is not a field
Opening server TCP port 27500
couldn't exec cfg/default.cfg
couldn't exec cfg/maps/2phaze5.cfg
A2A_ACK from 5.196.225.119:27000
Sending heartbeat to 5.196.225.119:27000
Sending heartbeat to 5.9.97.180:27000
Sending heartbeat to 136.243.9.253:27000
Sending heartbeat to 194.48.213.70:27000
Client twi- connected
twi- entered the game
Mapname: 2phaze5
Client Andi connected
Andi entered the game
Client zel connected
zel entered the game
zel has joined the blue team
twi- has joined the red team
Andi has joined the blue team
zel played catch with twi-'s grenade
CALL0      726(player_stand1)player_stand1()
   player.qc : player_run
   player.qc : player_run
           e : player_stand1
   player.qc : player_run
           e : player_stand1
   player.qc : player_run
           e : player_stand1
   player.qc : player_run
           e : player_stand1
   player.qc : player_run
           e : player_stand1
   player.qc : player_run
           e : player_stand1
   player.qc : player_run
           e : player_stand1
   player.qc : player_run
           e : player_stand1
   player.qc : player_run
           e : player_stand1
   player.qc : player_run
           e : player_stand1
   player.qc : player_run
           e : player_stand1
   player.qc : player_run
           e : player_stand1
   player.qc : player_run
           e : player_stand1
   player.qc : player_run
           e : player_stand1
   player.qc : player_run
           e : player_stand1
   player.qc : player_run
<NO FUNCTION>
stack overflow
Sending heartbeat to 5.196.225.119:27000
Sending heartbeat to 5.9.97.180:27000
Sending heartbeat to 136.243.9.253:27000
Sending heartbeat to 194.48.213.70:27000
Server TCP port closed
ERROR: SV_Error: Program error

@meag
Copy link
Collaborator

meag commented Aug 8, 2018

Thanks for the stack trace, looking at the code it seems that A & !A are true a the same time, so something is badly wrong here...

Can't seem to make it crash here on Windows (32-bit), can you confirm what platform you're running on?

@drzel
Copy link
Author

drzel commented Aug 8, 2018

ubuntu@ip-172-31-7-25:~/cfortsv$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.5 LTS
Release:        16.04
Codename:       xenial

ubuntu@ip-172-31-7-25:~/cfortsv$ file mvdsv-0.32
mvdsv-0.32: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=b808be807e6f64b4a411b8c71ce36b07cc6a7ca4, stripped

Also tried compiling with make FORCE32BITFLAGS=-m32 but had same issue (though it took a little longer to occur).

@meag
Copy link
Collaborator

meag commented Aug 8, 2018

Can you make this happen locally in a test environment?
Have left server running for 30 minutes here.

@drzel
Copy link
Author

drzel commented Aug 9, 2018

I'm running Windows 10 locally, so I'm not sure it would make an excellent test case. It seems that the problem only occurs when you have players in the server running around doing stuff.

But if you want me to try on Windows I can, alternatively I could spin up another linux instance and try there. Above is on Ubuntu 16.04.

@drzel
Copy link
Author

drzel commented Aug 13, 2018

I tried Spoike's advice from the ticket referenced above, but the issue persists: FortressOne/server-qwprogs@cb934c3

============= Starting MVDSV =============
32.0 megabyte heap
QuakeWorld Initialized
MVDSV 0.32, (build 0) (Linux)
Build date: Aug  8 2018, 10:06:49
MVDSV Project home page: https://github.com/deurk/mvdsv

execing server.cfg
execing mvdsv.cfg
Logging players to qw/logs/player_27500_0000.log
Logging rcon to qw/logs/rcon_27500_0000.log
execing fortress.cfg
execing config.cfg
Master server at 5.196.225.119:27000
Sending a ping.
Master server at 5.9.97.180:27000
Sending a ping.
Master server at 136.243.9.253:27000
Sending a ping.
Master server at 194.48.213.70:27000
Sending a ping.
VM_Load: "qwprogs"
corpse_time is not a field
keep_keys is not a field
lose_items is not a field
mapversion is not a field
quothflags is not a field
quothflags is not a field
quothflags is not a field
rotate_type is not a field
No spawn function for:
origin         '1488.0 2800.0 316.0'
angles         '  0.0 330.0   0.0'
classname      monster_turret
menu_input     ()
team_no          1.0
rotate_type is not a field
No spawn function for:
origin         '1488.0 2696.0 316.0'
angles         '  0.0  39.0   0.0'
classname      monster_turret
menu_input     ()
team_no          1.0
rotate_type is not a field
No spawn function for:
origin         '-720.0 -648.0 316.0'
angles         '  0.0 205.0   0.0'
classname      monster_turret
menu_input     ()
team_no          2.0
rotate_type is not a field
No spawn function for:
origin         '-720.0 -752.0 316.0'
angles         '  0.0 148.0   0.0'
classname      monster_turret
menu_input     ()
team_no          2.0
rotate_type is not a field
No spawn function for:
origin         '-288.0 2548.0 332.0'
angles         '  0.0 138.0   0.0'
classname      monster_turret
menu_input     ()
team_no          1.0
rotate_type is not a field
No spawn function for:
origin         '1056.0 -500.0 332.0'
angles         '  0.0 330.0   0.0'
classname      monster_turret
menu_input     ()
team_no          2.0
quothflags is not a field
quothflags is not a field
quothflags is not a field
quothflags is not a field
quothflags is not a field
ritem is not a field
quothflags is not a field
ritem is not a field
Opening server TCP port 27500
couldn't exec cfg/default.cfg
couldn't exec cfg/maps/2phaze5.cfg
Sending heartbeat to 5.196.225.119:27000
Sending heartbeat to 5.9.97.180:27000
Sending heartbeat to 136.243.9.253:27000
Sending heartbeat to 194.48.213.70:27000
A2A_ACK from 5.196.225.119:27000
Client zel connected
zel entered the game
Mapname: 2phaze5
zel has joined the blue team
Ummm, zel, you're supposed to THROW the grenade!
CALL0      726(player_stand1)player_stand1()
   player.qc : player_run
   player.qc : player_run
           e : player_stand1
   player.qc : player_run
           e : player_stand1
   player.qc : player_run
           e : player_stand1
   player.qc : player_run
           e : player_stand1
   player.qc : player_run
           e : player_stand1
   player.qc : player_run
           e : player_stand1
   player.qc : player_run
           e : player_stand1
   player.qc : player_run
           e : player_stand1
   player.qc : player_run
           e : player_stand1
   player.qc : player_run
           e : player_stand1
   player.qc : player_run
           e : player_stand1
   player.qc : player_run
           e : player_stand1
   player.qc : player_run
           e : player_stand1
   player.qc : player_run
           e : player_stand1
   player.qc : player_run
           e : player_stand1
   player.qc : player_run
<NO FUNCTION>
stack overflow
Sending heartbeat to 5.196.225.119:27000
Sending heartbeat to 5.9.97.180:27000
Sending heartbeat to 136.243.9.253:27000
Sending heartbeat to 194.48.213.70:27000
Server TCP port closed
ERROR: SV_Error: Program error

@VVD
Copy link

VVD commented Aug 13, 2018

If I correct understand, mvdsv have no function required for run your qwprogs.dat.

@tcsabina
Copy link
Collaborator

tcsabina commented Nov 7, 2022

Hi @drzel ,

I know that this is a 4+ year old bug report, but I am wondering, if you still out there, if you still have this issue with a latest mvdsv?

@drzel
Copy link
Author

drzel commented Nov 7, 2022

I ended up switching to fte

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants