#Game Crash in MP. Unknown if Mod or Vanilla

1 messages · Page 1 of 1 (latest)

steep latch
#

Hello I have a game crash using b42.16.1

    java.lang.OutOfMemoryError: Java heap space at Object.clone (Native Method). Message: Unhandled java.lang.OutOfMemoryError thrown by thread MainThread.
    Stack trace:
        java.base/java.lang.Object.clone(Native Method)
        java.base/java.util.Arrays.copyOfRange(Unknown Source)
        zombie.worldMap.WorldMapVisited.save(WorldMapVisited.java:548)
        zombie.worldMap.WorldMapVisited.SaveAll(WorldMapVisited.java:1010)
        zombie.worldMap.WorldMapVisited.update(WorldMapVisited.java:992)
        zombie.gameStates.IngameState.UpdateStuff(IngameState.java:685)
        zombie.gameStates.IngameState.updateInternal(IngameState.java:1497)
        zombie.gameStates.IngameState.update(IngameState.java:1298)
        zombie.gameStates.GameStateMachine.update(GameStateMachine.java:65)
        zombie.GameWindow.logic(GameWindow.java:390)
        zombie.GameWindow.frameStep(GameWindow.java:807)
        zombie.GameWindow.mainThreadStep(GameWindow.java:580)
        zombie.GameWindow$$Lambda/0x000000008a20cdd8.run(Unknown Source)
        zombie.MainThread.mainLoop(MainThread.java:70)
        zombie.MainThread$$Lambda/0x000000008a20db08.run(Unknown Source)
        java.base/java.lang.Thread.runWith(Unknown Source)
        java.base/java.lang.Thread.run(Unknown Source)
LOG  : General      f:4540, t:1775332691308, st:104,204,228> GameThread exited.
ERROR: General      f:4540, t:1775332691309, st:104,204,229> MainThread.uncaughtException        >   Notifying InvokeOnMainQueue...```

This is in a MP server with mods, is this vanilla or mod related?
#

Game Crash in MP

#

Game Crash in MP Unknown if Mod or Vanilla

#

Game Crash in MP. Unknown if Mod or Vanilla

exotic shoal
#

Seems like you just ran out of memory, how much did you assign the server and how much total memory do you have?

steep latch
#

Server has a total of 92 gig now allocated 16.
My client has 32 and never maxes out when playing the game

exotic shoal
#

How much total RAM do you have?

steep latch
#

32 gig total. I never see the use go higher then 17

steep latch
steep latch
#

this bug appears on multiple players and only when in louisville

#

and especially bad on skyscrapers

exotic shoal
#

You should never assign 32gb out of your total 32gb

#

The maximum I would recommend is 16gb, or a healthier 8gb for the client

steep latch
#

well I didin't assign anything to the client since I don't even know how to do that

#

In terms of ram every client crashes and then has thier map wiped.
My client has a total of 32 Ram. I didin't "assign" anything
Server has Total 92 with 16 assigned.

#

All crashes happen regardless of setup since every player crashes in Louisville when driving

exotic shoal
#

I see, there has been some miscommunication then

#

Try assigning 6gb to the game in that case

steep latch
#

besides the out of memory error I also found

ERROR: General      f:1, t:1775490842349, st:105,786,892> WorldMapVisited.getInstance> Exception thrown
    java.lang.ArrayIndexOutOfBoundsException: arraycopy: length -1 is negative at System.arraycopy (Native Method).
    Stack trace:
        java.base/java.lang.System.arraycopy(Native Method)
        zombie.worldMap.WorldMapVisited.load(WorldMapVisited.java:673)
        zombie.worldMap.WorldMapVisited.getInstance(WorldMapVisited.java:942)
        zombie.worldMap.WorldMapVisited.update(WorldMapVisited.java:959)
        zombie.gameStates.IngameState.UpdateStuff(IngameState.java:685)
        zombie.gameStates.IngameState.updateInternal(IngameState.java:1497)
        zombie.gameStates.IngameState.update(IngameState.java:1298)
        zombie.gameStates.GameStateMachine.update(GameStateMachine.java:65)
        zombie.GameWindow.logic(GameWindow.java:390)
        zombie.GameWindow.frameStep(GameWindow.java:807)
        zombie.GameWindow.mainThreadStep(GameWindow.java:580)
        zombie.MainThread.mainLoop(MainThread.java:70)
        java.base/java.lang.Thread.run(Unknown Source)

exotic shoal
#

LOG : General f:0, t:1775490894236> JVM (free: 410 Mb, max: 3072 Mb, total available: 512 Mb)

Log shows you still have 3gb assigned

#

You have to assign 6gb as I specified

steep latch
#

running it in steam starting options did not yield in the expected result, I know edited the json file and will try again