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

Moderator: NADEO

Post Reply
Bueddl
Posts: 165
Joined: 27 Jun 2010, 11:39

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

Post 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.
http://www.tmserver.org | Mania Exchange
═╦═╔╦╗² | MP4 Beta
Bueddl
Posts: 165
Joined: 27 Jun 2010, 11:39

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

Post 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
http://www.tmserver.org | Mania Exchange
═╦═╔╦╗² | MP4 Beta
Benjiz
Posts: 4
Joined: 31 Aug 2011, 15:39

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

Post 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.
Bueddl
Posts: 165
Joined: 27 Jun 2010, 11:39

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

Post 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
http://www.tmserver.org | Mania Exchange
═╦═╔╦╗² | MP4 Beta
om23
Posts: 568
Joined: 29 Aug 2010, 21:29

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

Post by om23 »

you guys have to much visitors on your servers.
my server works fine for now with 0-5 players.. lol
═╦═╔╦╗LAN-Party »»» :pil :pop: :pil
Bueddl
Posts: 165
Joined: 27 Jun 2010, 11:39

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

Post 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
Last edited by Bueddl on 02 Mar 2013, 18:34, edited 1 time in total.
http://www.tmserver.org | Mania Exchange
═╦═╔╦╗² | MP4 Beta
User avatar
xGEKKOx
Posts: 203
Joined: 18 Jul 2011, 21:04

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

Post 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.
;)
TPS Gaseco - iPhone TM Remote Controller - GOS Coder
mc2w
Posts: 2
Joined: 13 Jan 2012, 23:07

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

Post by mc2w »

Running a smaller server. Had the issue where everybody got invalidated at once, and am also leaking memory.
TheBigG.
Posts: 401
Joined: 11 Jun 2011, 16:11

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

Post 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
Client:
OS: Win10/Debian CPU: Intel 9900k GPU: NVIDIA 1080TI Display: 3x Acer Predator XB271HUbmiprz 1440p@165 Hz

Server:
OS: Debian Stable @ Backports Kernel CPU: Intel 6700k RAM: 32 GB Storage: 2x 256 GB NVMe SSD@Raid 1
Bueddl
Posts: 165
Joined: 27 Jun 2010, 11:39

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

Post 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!
http://www.tmserver.org | Mania Exchange
═╦═╔╦╗² | MP4 Beta
Post Reply

Return to “Dedicated Server”

Who is online

Users browsing this forum: No registered users and 1 guest