Page MenuHomeSchine - Phabricator

Starmade | Server/world corrupts after random amount of time
Closed, RejectedPublic

Description

After a random amount of time, I cannot log into my starmade server again. It is hosted on a linux dedicated box I have here at home.
The server freezes for all players that are already in the server but continues to be functioning (seemingly) normally after the player that is trying to connect stops trying.
If you log out after this, you cannot log back in.

Log: http://termbin.com/mup6 (tail -n 1000)

Details

Task Type
Bug
Testing Results
Affected Gamemode(s)
Multiplayer
Reproducible
uncertain
Last tested (version)
0.199.132#20160802_134223
Category
Engine
Hardware/Software/System
OS-Specific
No
Hardware-Specific
No
Video Card Vendor
uncertain
Steps to reproduce

Leave a starmade server online for a while, while logging in on it a few times a day, it will occur eventually.

Serverconfig (server.cfg)
<replace this line with the file content>
Clientconfig (settings.cfg)
<replace this line with the file content>

Event Timeline

rhbvkleef created this task.Aug 6 2016, 1:26 PM
SmilingDemon claimed this task.

Your server is running out of memory

[2016-08-06 15:11:23] java.lang.OutOfMemoryError: Java heap space
[2016-08-06 15:11:23] 	at java.nio.CharBuffer.wrap(CharBuffer.java:369)
[2016-08-06 15:11:23] 	at sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:265)
[2016-08-06 15:11:23] 	at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:125)
[2016-08-06 15:11:23] 	at java.io.OutputStreamWriter.write(OutputStreamWriter.java:207)
[2016-08-06 15:11:23] 	at java.io.BufferedWriter.flushBuffer(BufferedWriter.java:129)
[2016-08-06 15:11:23] 	at java.io.PrintStream.newLine(PrintStream.java:545)
[2016-08-06 15:11:23] 	at java.io.PrintStream.println(PrintStream.java:807)
[2016-08-06 15:11:23] 	at org.schema.schine.network.server.ServerProcessor$ServerPing.execute(SourceFile:1005)
[2016-08-06 15:11:23] 	at org.schema.schine.network.server.ServerProcessor$ServerPing.run(SourceFile:1057)
[2016-08-06 15:11:23] 	at java.lang.Thread.run(Thread.java:745)

how many blueprints are stored on the server, try to reduce that
(4K + on the testserver makes that thing nearly not respond on any operation with those)

is it always happening when a specific sector is loaded?
we do have a problem like that on the Testserver too

assign more memory and restart frequently

SmilingDemon shifted this object from the S1 Public space to the S3 Starmade space.Aug 6 2016, 1:44 PM
SmilingDemon changed the visibility from "Custom Policy" to "Public (No Login Required)".
SmilingDemon changed the edit policy from "Task Author" to "Starmade (Project)".
SmilingDemon changed Category from none/unspecified to Engine.
SmilingDemon triaged this task as Urgent priority.
Restricted Application added a subscriber: AndyP. · View Herald TranscriptAug 6 2016, 1:44 PM

I am just wondering, is it due to some memory leak or something (quite difficult in Java tho...)?

I would definitely like to see this be optimized some time. I will increase the memory but it is really unfortunate that the server needs to be restarted every so often.

is the issue happening still after the last update ?
there have been a few problems adressed that made server run out of memory.

Sorry for not answering your question. No extra blueprints have been loaded onto the server. Only the default blueprints are on the server.

The server had 512MB and ran out of memory after around 18 hours of runtime with 2 players having played on the server for about half that time.

Untested in new release. I will do that when I get the time. Not now.

SmilingDemon closed this task as Rejected.Aug 13 2016, 6:00 PM

assign at least 2048 MB to the server (bigger servers run at least 4096) ... 512 is simply not enough ... if you are runnig a 32 bit OS you wont be able to go passt 1024 MB (couldnt see that from the logfile)

I have to reject this now, its not a Bug really only the lack of ressources.

(there are how ever a few memory issues still around that are being investigated and will be fixed when identified. usually server start 2 to 3 times a day automatically)

Restricted Application removed a project: Issue Navigation. · View Herald TranscriptAug 13 2016, 6:00 PM
Restricted Application removed a subscriber: AndyP. · View Herald Transcript
AndyP moved this task from Unclassed to Archived on the Starmade board.Aug 26 2016, 10:29 AM
Restricted Application added a project: Engine. · View Herald TranscriptMar 10 2017, 6:09 PM