Random crashes

    Joined
    Oct 6, 2013
    Messages
    12
    Reaction score
    2
    We have been experiancing some issues with the starmade admin console causing some crashes, or so we suspect. We use it to keep our server up and running, but from time to time it crashes the server, returning this error:


    [2013-11-18 18:15:21] [ADMIN COMMAND] FACTION_CHECK from org.schema.schine.network.server.AdminRemoteClient@7b4eb234 params: []
    [2013-11-18 18:15:21] [SERVER] Executing scheduled disconnect!
    [2013-11-18 18:15:21] [SERVER][DISCONNECT] Client 'null' HAS BEEN DISCONNECTED . PROBE: true
    [2013-11-18 18:15:21] [SERVER] COULD NOT UNREGISTER CLIENT null
    [2013-11-18 18:15:21] [SERVER] PROBE SUCCESSFULLY EXECUTED. STOPPING PROCESSOR. (Ping of a Starter to start server)
    [2013-11-18 18:15:21] [SERVER] Ship[KDI experimental 2](727) has players attached. Doing Sector Change for PlS[Klilidiplomus [Klilidiplomus]*; id(720)(5)f(10271)]: Sector[2493](-1, 0, 0) -> Sector[2503](0, 0, 0)
    [2013-11-18 18:15:21] [SERVER] Ship[KDI experimental 2](727) has CHARACTER. Doing Sector Change for PlayerCharacter[(ENTITY_PLAYERCHARACTER_Klilidiplomus)(926)]: Sector[2493](-1, 0, 0) -> Sector[2503](0, 0, 0) ID 2503
    [2013-11-18 18:15:21] [SERVER][SEGMENTCONTROLLER] CHECKING EMPTY FROM (-3, -1, -3) TO (3, 1, 3): Asteroid(2528)sec[2525](!)
    [2013-11-18 18:15:21] Exiting (normal) because of exception java.lang.NullPointerException
    [2013-11-18 18:15:21] java.lang.NullPointerException
    [2013-11-18 18:15:21] at nk.a(SourceFile:651)
    [2013-11-18 18:15:21] at xk.c(SourceFile:206)
    [2013-11-18 18:15:21] at mm.a(SourceFile:257)
    [2013-11-18 18:15:21] at xk.a(SourceFile:179)
    [2013-11-18 18:15:21] at lY.a(SourceFile:421)
    [2013-11-18 18:15:21] at lY.a(SourceFile:367)
    [2013-11-18 18:15:21] at org.schema.game.common.controller.SegmentBufferManager.a(SourceFile:494)
    [2013-11-18 18:15:21] at org.schema.game.common.controller.EditableSendableSegmentController.isEmptyOnServer(SourceFile:1364)
    [2013-11-18 18:15:21] at lL.isEmptyOnServer(SourceFile:145)
    [2013-11-18 18:15:21] at lL.updateLocal(SourceFile:230)
    [2013-11-18 18:15:21] at org.schema.game.server.controller.GameServerController.update(SourceFile:1971)
    [2013-11-18 18:15:21] at org.schema.schine.network.server.ServerController.run(SourceFile:304)
    [2013-11-18 18:15:21] at java.lang.Thread.run(Thread.java:744)
    [2013-11-18 18:15:21] [SERVER] SERVER SHUTDOWN. Dumping server State!


    Any help on this would be much appreciated :)

    EDIT: After a bit of digging, i found that:


    [SERVER][SEGMENTCONTROLLER] CHECKING EMPTY FROM (-3, -1, -3) TO (3, 1, 3): Asteroid(408)sec[406](!)
    [2013-11-18 21:17:13] Exiting (normal) because of exception java.lang.NullPointerException
    [2013-11-18 21:17:13] java.lang.NullPointerException




    occours before every crash, consistent in 4 logs
     
    Joined
    Jun 24, 2013
    Messages
    710
    Reaction score
    11
    This in particular:


    [2013-11-18 21:15:30] Exiting (normal) because of exception java.lang.NullPointerException
    [2013-11-18 21:15:30] java.lang.NullPointerException
    [2013-11-18 21:15:30] at nk.a(SourceFile:651)
    [2013-11-18 21:15:30] at xk.c(SourceFile:206)
    [2013-11-18 21:15:30] at mm.a(SourceFile:257)
    [2013-11-18 21:15:30] at xk.a(SourceFile:179)
    [2013-11-18 21:15:30] at lY.a(SourceFile:421)
    [2013-11-18 21:15:30] at lY.a(SourceFile:367)
    [2013-11-18 21:15:30] at org.schema.game.common.controller.SegmentBufferManager.a(SourceFile:494)
    [2013-11-18 21:15:30] at org.schema.game.common.controller.EditableSendableSegmentController.isEmptyOnServer(SourceFile:1364)
    [2013-11-18 21:15:30] at lL.isEmptyOnServer(SourceFile:145)
    [2013-11-18 21:15:30] at lL.updateLocal(SourceFile:230)
    [2013-11-18 21:15:30] at org.schema.game.server.controller.GameServerController.update(SourceFile:1971)
    [2013-11-18 21:15:30] at org.schema.schine.network.server.ServerController.run(SourceFile:304)
    [2013-11-18 21:15:30] at java.lang.Thread.run(Thread.java:744)
    [2013-11-18 21:15:30] [SERVER] SERVER SHUTDOWN. Dumping server State!




    We have no idea what is causing it, as we don\'t really know what\'s behind the classes, but it happens literally every 5-10 minutes.

    This is with the current version: StarMade 0.09473: Security Fix



    EDIT: The edit in the top post may provide useful information, still testing things as I speak.

    I have to add to this that the asteroid thing seems to have random numbers each time it occurs, but it remains the same message.
     
    Joined
    Jun 24, 2013
    Messages
    710
    Reaction score
    11
    Furthermore I discovered that dynamic asteroids cannot be turned off via the settings. So far the only explanation I found for this is the fact that the game sees floating asteroids and static ones as different entity_types.

    When turning the setting on, it changes them correctly from static to moving, but this doesn\'t seem to happen the other way around.

    I believe it is this setting that is causing the current issue to occur.
     
    Joined
    Jun 24, 2013
    Messages
    710
    Reaction score
    11
    Well.......... Fixed it by deleting all asteroids from the database, but that\'s not really an optimal solution to me, as the moving asteroids will simply return in newly generated sectors even with the setting off, which will most likely result in crashes in the future.