Author Topic: Why they crash ?  (Read 17965 times)

0 Members and 2 Guests are viewing this topic.

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: Why they crash ?
« Reply #20 on: June 05, 2007, 10:05:26 pm »
Well then its an external error caused by something else other than the server's coding

I still don't believe that to be the case.  Something like a pointer pointing outside memory allocated to the server instance would cause this.  I can create a program in 10 seconds that does the same.

Unless you've got error handling around every array usage, object reference, and anything else that can be out-of-bounds, non-existent or otherwise... the server may very well be causing this.

Offline urraka

  • Soldat Developer
  • Flagrunner
  • ******
  • Posts: 703
Re: Why they crash ?
« Reply #21 on: June 05, 2007, 10:08:40 pm »
what ugly and useless messages?

I guess it was an memory access violation message.

@EnEsCe: no error was outputted on the console, i checked the logs too. It just closed as if i had used ctrl+alt+del


If you're running on windows, don't start the binary directly, start it from cmd.exe. Windows closes console program windows when they terminate, whether they did it properly or not. You can see this if you deliberately put bad data into soldat.ini; the server will flash on the screen then disappear. Starting it from cmd.exe allows you to see what errors occur, and note that not all errors are logged to the log files, simply because certain conditions cause the OS to terminate the application directly, bypassing error catching.

Alright, thanks for the advice. I had to do it before though, for finding errors on the scripts, but sometimes I'm too lazy to go to cmd and type a couple of lines :P
I should make a BAT!
urraka

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: Why they crash ?
« Reply #22 on: June 05, 2007, 10:17:25 pm »
Quote
---------------------------------------------------------------
       Caution! This software is still in BETA phase.
         Soldat Dedicated Server initializing...
----------------------------------------------------------------

   Need help running your server?
   IRC: #soldat.servers @ irc.quakenet.org

   Additional parameters:
   ./soldatserver -p PORT -l MAXPLAYERS -p PASSWORD
   Example: ./soldatserver -p 23073 -l 16 -p "my pass"


 Hit CTRL+C to exit
 Please command the server using the Soldat Admin program
Welcome to Soldat 1.4.1
 Server name: U13 CTF Public [Chicago]
 Server PID: 22845
----------------------------------------------------------------
ctf_Ash by chakapoko maker
 Server IP: 67.106.77.193 Port: 23073
 ASE Port: 23196
 Connection for file server started. Port: 23083
Registering server @ ASE Master Server
BattlEye anti-cheat enabled
Registering server @ 24.105.170.112
Game server added to lobby server @ 24.105.170.112
216.230.150.10:22977 requesting game...
jad joining game (216.230.150.10:22977)
jad has joined bravo team.
Runtime error 231 at 08059DC9
Segmentation fault

yep, segfaults.
« Last Edit: June 05, 2007, 10:19:03 pm by FliesLikeABrick »

Offline chrisgbk

  • Inactive Staff
  • Veteran
  • *****
  • Posts: 1739
Re: Why they crash ?
« Reply #23 on: June 05, 2007, 11:09:29 pm »
Alright, thanks for the advice. I had to do it before though, for finding errors on the scripts, but sometimes I'm too lazy to go to cmd and type a couple of lines :P
I should make a BAT!

Batch files will also close automatically, so make sure to add PAUSE as the last statement.

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: Why they crash ?
« Reply #24 on: June 05, 2007, 11:11:29 pm »
Yep told ya its not the servers coding. Its BattlEye.

That error is happening in the BE dll/so, hence why it doesnt get caught by the global error handler. People try to join before it says BattlEye: Initialized and thats what happens.

Offline urraka

  • Soldat Developer
  • Flagrunner
  • ******
  • Posts: 703
Re: Why they crash ?
« Reply #25 on: June 05, 2007, 11:33:31 pm »
Batch files will also close automatically, so make sure to add PAUSE as the last statement.

Yeah, don't worry mate, I meant so to go to cmd and type a single command (adding some directory to PATH before). The pause command is better though :)
Thanks.

People try to join before it says BattlEye: Initialized and thats what happens.

In my case it crashed like 11 hours after BattleEye was initialized, and no one tried to join either. If it happens again i'll make sure i get more information than this.

The BattlEye anti-cheat won`t be working for at least a week after this release. There are problems with the update feature and moving to a new server.

Maybe that has something to do?
urraka

hunterz

  • Guest
Re: Why they crash ?
« Reply #26 on: June 05, 2007, 11:48:58 pm »
in all my 6 servers:
(01:23:39) BattlEye Server: Auto-Update successfully completed. Restarting...
(01:23:39) Failed loading BattlEye/BEServer_x86.so
(01:23:54) Connection to the server lost

o.O?

Offline Leo

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1011
Re: Why they crash ?
« Reply #27 on: June 06, 2007, 12:59:13 am »
Enesce, my servers crash out of the blue, when they are full and busy, BattlEye has nothing to do with it. I suspect it has to do something with file server and downloading of the server. Flies, maybe you could ask your customers that have this problem if they run custom maps on their servers. My gather server only has default maps and it never crash.
« Last Edit: June 06, 2007, 01:26:02 am by Leo »

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: Why they crash ?
« Reply #28 on: June 06, 2007, 01:26:28 am »
I am talking about flab's crashes.

Offline Leo

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1011
Re: Why they crash ?
« Reply #29 on: June 06, 2007, 01:44:10 am »
Flab was talking about more than one customer with this problem, maybe he could tell us if this was the reason for all his problems.

Offline ramirez

  • Retired Soldat Developer
  • Camper
  • ******
  • Posts: 394
    • Soldat Central
Re: Why they crash ?
« Reply #30 on: June 06, 2007, 02:58:56 am »
My servers have been crashing too. It's not machine-specific, because my Selfkill servers crash, my U13 server crashes. I don't think my ClanPlanet servers have crashed though, but I never change their gamemode and they are Windows servers while two others are Linux. For me it usually happens when I change gamemode though, but it's also happened randomly when people have been playing. No errors or anything. Maybe I should increase debug mode in ini to get more hints of what's going wrong?

EDIT. Oops didn't notice there was a second page. I'll try to disable BattlEye on my servers to see if it fixes anything. These servers of mine are private and I know there are no hackers that play on them, so I don't really need BE on them.
« Last Edit: June 06, 2007, 03:01:07 am by ramirez »

Offline Leo

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1011
Re: Why they crash ?
« Reply #31 on: June 06, 2007, 03:03:04 am »
I have also disabled BE on my servers. We'll see.

Offline Will

  • Flagrunner
  • ****
  • Posts: 910
Re: Why they crash ?
« Reply #32 on: June 06, 2007, 03:26:56 am »
Well wouldn't a script that doesn't allow joining before battleye is initialized help with FLAB's problems?

Sorry if I have missed anything

*pulls up an anti-flame barrier*

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: Why they crash ?
« Reply #33 on: June 06, 2007, 06:31:50 am »
Ive added something to 2.6.2 to prevent players joining before BE has loaded, but theres abit of a wait on 2.6.2

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: Why they crash ?
« Reply #34 on: June 06, 2007, 07:05:22 am »
Ok, I will look for more errors.  My servers crash after running for more than "just starting," the error I found and pasted here was just a fluke chance that the guy joined so early.

Offline $able

  • BattlEye Developer
  • Flagrunner
  • *****
  • Posts: 858
Re: Why they crash ?
« Reply #35 on: June 06, 2007, 07:12:41 am »
Hey everyone,

I am sorry for the problems. To fix that you have to wait until "ping soldat.battleye.com" doesnt work anymore (domain cant be resolved). Then restore the BEServer_x86.dll/so from the original dedicated .zip and restart the server.

Again, DONT do this while the ping still works - otherwise it will crash again.
“First they ignore you, then they ridicule you, then they fight you, then you win.” - Mahatma Gandhi

Offline Leo

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1011
Re: Why they crash ?
« Reply #36 on: June 06, 2007, 07:17:00 am »
Ok, I will look for more errors.  My servers crash after running for more than "just starting," the error I found and pasted here was just a fluke chance that the guy joined so early.
That's what I mean, there is some other problem here. The point is to find what causing busy servers to suddenly shut down. How we can do this without log error only God knows...

Offline $able

  • BattlEye Developer
  • Flagrunner
  • *****
  • Posts: 858
Re: Why they crash ?
« Reply #37 on: June 06, 2007, 07:52:13 am »
Regarding the crashes, they happen when a player joins before BE was loaded (on server start) or when it failed to load.

This will be properly fixed in 2.6.2 without blocking players to join in such cases.
“First they ignore you, then they ridicule you, then they fight you, then you win.” - Mahatma Gandhi

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: Why they crash ?
« Reply #38 on: June 06, 2007, 08:05:14 am »
Ok, but there is definitely something else going on because many servers crash anywhere from 10 minutes to 5 hours after startup.

Offline Will

  • Flagrunner
  • ****
  • Posts: 910
Re: Why they crash ?
« Reply #39 on: June 06, 2007, 01:25:03 pm »
I've talked to some people and they said that the servers crash when they're full, regardless of the slots.

Example: a full 8 slot server will probably crash but a 12 slot server with 8 people playing most likely won't crash.
But I never had any problems when I hosted games from my home computer (except for that show real lag "feature" [retard]).

Anyway i think that those server crashes got nothing to do with battleye. Or am I wrong