Page 6 of 14

Re: [OpenBeta 3.1] ManiaPlanet 2 Beta Server 2013-02-27b

Posted: 02 Mar 2013, 00:52
by Bueddl
xGEKKOx wrote:Happened to my server too this afternoon.
Sometimes all players get invalid time, and sometimes it crash randomly from 220 to 250 players.

We had that crash always after mapchange. I thought it might be with that, but it only happened with >220 players.

Re: [OpenBeta 3.1] ManiaPlanet 2 Beta Server 2013-02-27b

Posted: 02 Mar 2013, 08:27
by Bueddl
Jojo_44 wrote:
Bueddl wrote:Hey everyone here,

the new gameserver has a bug with some maps converted from Trackmania Forever.
After hours of working it crashed and we got a bad_alloc error.

Here are the last lines of the logfile:

Code: Select all

[2013/02/28 21:43:26] Loading map Sunny_Days17.Challenge.Gbx (GGcXeF_xFm3f5COIVTCggnmTBw)...
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
I uploaded the "bad" map here http://tm.bueddl.de/upload/Sunny_Days17.Challenge.Gbx

Please fix that soon! ( Most of it should be done with a simple try & catch^^)

_________________

I suggest that, if the server reaches the catch block, it writes a line to the log, e.g.:

Code: Select all

Could not load map Sunny_Days17.Challenge.Gbx (GGcXeF_xFm3f5COIVTCggnmTBw) due to exception of type std::bad_alloc, skipping...
and then silently skip the map. Maybe there should also be a new Event that gets triggered here for the plugins like xaseco to catch these and be able to show an information to the players.

Cheers,
Bueddl
Happened again with 249 Players on, take a look:

Image

:roflol:

I thought it has to happen cause of corrupt maps, but it seems not to be the map, but the high player amount!

But seriously guys, unhandled exceptions ???!?

Cheers,
Bueddl

Re: [OpenBeta 3.1] ManiaPlanet 2 Beta Server 2013-02-27b

Posted: 02 Mar 2013, 13:23
by Benjiz
Hi,

I have the same problem on my server. But I think it's a problem of memory.
Image

The server takes more memory. (up to 25%, representing 4GB of memory) and crashs.
It is always when it reaches the level of 4GB approximately.

In the logs I have the same thing of Bueddl.

Re: [OpenBeta 3.1] ManiaPlanet 2 Beta Server 2013-02-27b

Posted: 02 Mar 2013, 14:26
by Bueddl
Benjiz wrote:Hi,

I have the same problem on my server. But I think it's a problem of memory.
Image

The server takes more memory. (up to 25%, representing 4GB of memory) and crashs.
It is always when it reaches the level of 4GB approximately.

In the logs I have the same thing of Bueddl.
Confirming , seems to be a memory problem. We had these crashs at the same memory amount.

Also the error message says that is has to be something according to memory reservation / allocation.
Maybe there is getting a too large memory range beeing allocated, thats most times the reason for that type of error.

Can we do anything to help this getting fixed? Is there any "debug" like mode to get more infos for you?

Cheers,
Bueddl

Re: [OpenBeta 3.1] ManiaPlanet 2 Beta Server 2013-02-27b

Posted: 02 Mar 2013, 16:51
by om23
you guys have to much visitors on your servers.
my server works fine for now with 0-5 players.. lol

Re: [OpenBeta 3.1] ManiaPlanet 2 Beta Server 2013-02-27b

Posted: 02 Mar 2013, 17:14
by Bueddl
Maybe it is a memory leak, the server seems not to free some allocated memory areas any more.

The memory amount is increaing till crash. With > 200 players, there are more then 1MB allocated per second!! This can not be normal.

It is hard to have htop open and see the server crashing.

Uur NADEO server crashed with 252 players and 4096MB allocated memory during mapchange.
I think it is the mapchange besaue of the huage memory allocation there (about 20MB-50MB per mapchange).

I am worring about the memory allocating behaviour. The server is allocating
+1MB/s
+30MB/Mapchange
But is never free-ing it again (okay, to be fair: never until it crashs -.- )

It is only incraeasing, never decrasing the memory amount. :teub:

Hope this helps :|

I think there are 2 options. I think the problem is existing really long time now. ShoowMania had it and TM2Canyon , too, but on both games are never these masses of players on one server, so it did not take taht effect till now.

It does not matter how much players are on the server, it onyl matters, that there were many on the serer at some time. I think it allocates memory for every match and every player, but never frees most of it again.

Our Very Short has 40 players but since it had >150 players before without restarting and kept the large amount of memory. :1010

On our Fullspeed Server we hab 800MB memory added in less than one hour!

Cheers,
Bueddl

Re: [OpenBeta 3.1] ManiaPlanet 2 Beta Server 2013-02-27b

Posted: 02 Mar 2013, 18:25
by xGEKKOx
Yes i agree.
I looked at the process on linux reading 4000Mb of memory allocated before the crash happen.
Also before the crash we got all aplyers invalidate, so i think there is an error also in the count of the entering / exiting players.
Leaking memory also in that moment.
;)

Re: [OpenBeta 3.1] ManiaPlanet 2 Beta Server 2013-02-27b

Posted: 03 Mar 2013, 06:28
by mc2w
Running a smaller server. Had the issue where everybody got invalidated at once, and am also leaking memory.

Re: [OpenBeta 3.1] ManiaPlanet 2 Beta Server 2013-02-27b

Posted: 03 Mar 2013, 15:27
by TheBigG.
xGEKKOx wrote:Yes i agree.
I looked at the process on linux reading 4000Mb of memory allocated before the crash happen.
Also before the crash we got all aplyers invalidate, so i think there is an error also in the count of the entering / exiting players.
Leaking memory also in that moment.
;)
can confirm that, had 4080mb and than crash with 240 players on it.
Please nadeo fix that couse with much CPU IPC you can run 255 Players smoothly and lagfree but only for a few hours and then it crash :( or provide a debug server version so we can provide you more information.

Thank you

Re: [OpenBeta 3.1] ManiaPlanet 2 Beta Server 2013-02-27b

Posted: 03 Mar 2013, 15:55
by Bueddl
TheBigG. wrote:
xGEKKOx wrote:Yes i agree.
I looked at the process on linux reading 4000Mb of memory allocated before the crash happen.
Also before the crash we got all aplyers invalidate, so i think there is an error also in the count of the entering / exiting players.
Leaking memory also in that moment.
;)
can confirm that, had 4080mb and than crash with 240 players on it.
Please nadeo fix that couse with much CPU IPC you can run 255 Players smoothly and lagfree but only for a few hours and then it crash :( or provide a debug server version so we can provide you more information.

Thank you

Think that way too, especially because this problem exists from the beginning of ManiaPlanet!