Shipyard Design Null Pointer Exception

    Joined
    Jul 13, 2016
    Messages
    10
    Reaction score
    0
    I run a small server for a few friends, however since the last update whenever anyone uses a shipyard in my server their client crashes, issuing a null pointer exception.

    This happens with all shipyard designs, existing ones from before the update, and any new design created afterwards. Is anyone else experiencing this? Or at least, any troubleshooting ideas?

    Server Information:
    StarMade Version; 0.199.132 # 20160802_134223
    Server: sm.andywm.com:4242

    Hardware; i5 4460 @ 3.2GHz, 8gb memory.
    System Configuration; Arch Linux 4.6.4, using open-jdk8, all running basically headless. All software is 64 bit.
    StarMade Configuration; StarMadeConfigs/server.cfg at master · InverseReaction/StarMadeConfigs · GitHub
    My StarMade-dedicated-server-linux.sh file is as follows; (allocating 7gb of memory to the game)
    #!/bin/bash
    cd "$(dirname "$0")"
    java -Xms1024m -Xmx7168m -jar StarMade.jar -server

    Client Log Extract:
    [2016-08-03 17:13:38] [CLIENT] Shipyard: Entering Design Ship[Test Ship](444)
    [2016-08-03 17:13:38] java.lang.NullPointerException: Exception: REQUESTED TYPE 0 IS NULL
    [2016-08-03 17:13:38] at org.schema.game.common.data.element.ElementKeyMap.getInfo(SourceFile:611)
    [2016-08-03 17:13:38] at obfuscated.dP.b(SourceFile:310)
    [2016-08-03 17:13:38] at obfuscated.BE.callback(SourceFile:558)
    [2016-08-03 17:13:38] at org.schema.schine.network.client.GUICallbackController.execute(SourceFile:64)
    [2016-08-03 17:13:38] at obfuscated.aIz.a(SourceFile:188)
    [2016-08-03 17:13:38] at obfuscated.E.updateStateInput(SourceFile:1468)
    [2016-08-03 17:13:38] at obfuscated.azj.a(SourceFile:653)
    [2016-08-03 17:13:38] at obfuscated.azp.b(SourceFile:626)
    [2016-08-03 17:13:38] at obfuscated.Q.e(SourceFile:907)
    [2016-08-03 17:13:38] at org.schema.game.common.Starter.startMainMenu(SourceFile:1368)
    [2016-08-03 17:13:38] at org.schema.game.common.Starter.main(SourceFile:946)
    [2016-08-03 17:13:38] [GLFRAME] THROWN: class java.lang.NullPointerException Now Printing StackTrace
    [2016-08-03 17:13:38] java.lang.NullPointerException: Exception: REQUESTED TYPE 0 IS NULL
    [2016-08-03 17:13:38] at org.schema.game.common.data.element.ElementKeyMap.getInfo(SourceFile:611)
    [2016-08-03 17:13:38] at obfuscated.dP.b(SourceFile:310)
    [2016-08-03 17:13:38] at obfuscated.BE.callback(SourceFile:558)
    [2016-08-03 17:13:38] at org.schema.schine.network.client.GUICallbackController.execute(SourceFile:64)
    [2016-08-03 17:13:38] at obfuscated.aIz.a(SourceFile:188)
    [2016-08-03 17:13:38] at obfuscated.E.updateStateInput(SourceFile:1468)
    [2016-08-03 17:13:38] at obfuscated.azj.a(SourceFile:653)
    [2016-08-03 17:13:38] at obfuscated.azp.b(SourceFile:626)
    [2016-08-03 17:13:38] at obfuscated.Q.e(SourceFile:907)
    [2016-08-03 17:13:38] at org.schema.game.common.Starter.startMainMenu(SourceFile:1368)
    [2016-08-03 17:13:38] at org.schema.game.common.Starter.main(SourceFile:946)
    [2016-08-03 17:13:38] [GLFRAME] THROWN: class java.lang.NullPointerExceptionPrinting StackTrace DONE​
     

    nightrune

    Wizard/Developer/Project Manager
    Joined
    May 11, 2015
    Messages
    1,324
    Reaction score
    577
    • Schine
    • Top Forum Contributor
    • Thinking Positive
    andywm, I believe this is a known issue. I can't find a phab ticket on it though. The best I can say is avoid shipyards for now. I'm waiting on a response from Lancake. Its quite late where he is so it might be a bit before we get a definitive answer.
     

    Lancake

    Head of Testing
    Joined
    Aug 20, 2013
    Messages
    794
    Reaction score
    560
    • Schine
    • Tester
    It is caused by the "Edit a design" button. It doesn't leave permanent damage though, restarting the server and possibly even unloading the sector should reset the shipyard and get it unstuck.

    You can still edit a design, but you need to enter the ship core manually. A fix for this should be included for the next hot fix.
     
    Joined
    Aug 6, 2016
    Messages
    1
    Reaction score
    0
    Same issue here. I get booted out as soon as I hit edit design and the "Place Order" option is greyed out with the design still loaded when I log in.
     
    Joined
    Nov 16, 2016
    Messages
    1
    Reaction score
    0
    The NullReferenceException is designed as a valid runtime condition that can be thrown and caught in normal program flow. It indicates that you are trying to access member fields, or function types, on an object reference that points to null. That means the reference to an Object which is not initialized.

    Manee
     
    Joined
    Jun 27, 2013
    Messages
    896
    Reaction score
    166
    The NullReferenceException is designed as a valid runtime condition that can be thrown and caught in normal program flow. It indicates that you are trying to access member fields, or function types, on an object reference that points to null. That means the reference to an Object which is not initialized.

    Manee
    Nobody's denying that, but if it is uncaught and obviously leads to a client crash, there was a problem there. Also, logspam.