-
Notifications
You must be signed in to change notification settings - Fork 0
Server world file refusing to load due to null pointer exception #364
Description
Describe the bug
I rebooted my server and I gracefully shutdown the server by running the 'stop' command, apon trying to relaunch the server I get the following error:
java.lang.NullPointerException: Cannot invoke "net.minecraft.core.world.pathfinder.IdHashMap.add(int, Object)" because "this.entityIdHashMap" is null
To Reproduce
Steps to reproduce the behavior:
Run server.jar
It refuses to start the server and crashes
Expected behavior
Server should open the world just fine
Version info (please complete the following information):
Better than Adventure! server for version 7.2_01
Additional context
Running on a proxmox container on debian, no modification's, using standard JVM flags (Same error and is not flag dependent)
Crash Logs
2024-12-04 13:22:32 INFO Minecraft - Starting Better than Adventure! server for version 7.2_01 2024-12-04 13:22:32 INFO Minecraft - Loading properties 2024-12-04 13:22:34 INFO Minecraft - Starting Minecraft server on *:25565 2024-12-04 13:22:34 INFO Minecraft - Preparing level "world" 2024-12-04 13:22:34 ERROR Minecraft - Unexpected exception java.lang.NullPointerException: Cannot invoke "net.minecraft.core.world.pathfinder.IdHashMap.add(int, Object)" because "this.entityIdHashMap" is null at net.minecraft.server.world.WorldServer.obtainEntitySkin(WorldServer.java:101) ~[server.jar:7.2_01] at net.minecraft.core.world.World.addLoadedEntities(World.java:2751) ~[server.jar:7.2_01] at net.minecraft.core.world.chunk.ChunkSection.onLoad(ChunkSection.java:167) ~[server.jar:7.2_01] at net.minecraft.core.world.chunk.Chunk.onLoad(Chunk.java:550) ~[server.jar:7.2_01] at net.minecraft.server.world.chunk.provider.ChunkProviderServer.prepareChunk(ChunkProviderServer.java:71) ~[server.jar:7.2_01] at net.minecraft.server.world.chunk.provider.ChunkProviderServer.provideChunk(ChunkProviderServer.java:141) ~[server.jar:7.2_01] at net.minecraft.core.world.World.getChunkFromChunkCoords(World.java:652) ~[server.jar:7.2_01] at net.minecraft.core.world.World.getBlockId(World.java:431) ~[server.jar:7.2_01] at net.minecraft.core.world.type.WorldTypeOverworld.isValidSpawn(WorldTypeOverworld.java:72) ~[server.jar:7.2_01] at net.minecraft.core.world.type.WorldType.getInitialSpawnLocation(WorldType.java:110) ~[server.jar:7.2_01] at net.minecraft.core.world.World.getInitialSpawnLocation(World.java:321) ~[server.jar:7.2_01] at net.minecraft.core.world.World.<init>(World.java:215) ~[server.jar:7.2_01] at net.minecraft.server.world.WorldServer.<init>(WorldServer.java:37) ~[server.jar:7.2_01] at net.minecraft.server.MinecraftServer.initWorld(MinecraftServer.java:346) ~[server.jar:7.2_01] at net.minecraft.server.MinecraftServer.startServer(MinecraftServer.java:263) ~[server.jar:7.2_01] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:460) [server.jar:7.2_01] at net.minecraft.server.net.thread.ThreadServerApplication.run(ThreadServerApplication.java:17) [server.jar:7.2_01] 2024-12-04 13:23:12 INFO Minecraft - Starting Better than Adventure! server for version 7.2_01 2024-12-04 13:23:12 INFO Minecraft - Loading properties 2024-12-04 13:23:14 INFO Minecraft - Starting Minecraft server on *:25565 2024-12-04 13:23:14 INFO Minecraft - Preparing level "world" 2024-12-04 13:23:14 ERROR Minecraft - Unexpected exception java.lang.NullPointerException: Cannot invoke "net.minecraft.core.world.pathfinder.IdHashMap.add(int, Object)" because "this.entityIdHashMap" is null at net.minecraft.server.world.WorldServer.obtainEntitySkin(WorldServer.java:101) ~[server.jar:7.2_01] at net.minecraft.core.world.World.addLoadedEntities(World.java:2751) ~[server.jar:7.2_01] at net.minecraft.core.world.chunk.ChunkSection.onLoad(ChunkSection.java:167) ~[server.jar:7.2_01] at net.minecraft.core.world.chunk.Chunk.onLoad(Chunk.java:550) ~[server.jar:7.2_01] at net.minecraft.server.world.chunk.provider.ChunkProviderServer.prepareChunk(ChunkProviderServer.java:71) ~[server.jar:7.2_01] at net.minecraft.server.world.chunk.provider.ChunkProviderServer.provideChunk(ChunkProviderServer.java:141) ~[server.jar:7.2_01] at net.minecraft.core.world.World.getChunkFromChunkCoords(World.java:652) ~[server.jar:7.2_01] at net.minecraft.core.world.World.getBlockId(World.java:431) ~[server.jar:7.2_01] at net.minecraft.core.world.type.WorldTypeOverworld.isValidSpawn(WorldTypeOverworld.java:72) ~[server.jar:7.2_01] at net.minecraft.core.world.type.WorldType.getInitialSpawnLocation(WorldType.java:110) ~[server.jar:7.2_01] at net.minecraft.core.world.World.getInitialSpawnLocation(World.java:321) ~[server.jar:7.2_01] at net.minecraft.core.world.World.<init>(World.java:215) ~[server.jar:7.2_01] at net.minecraft.server.world.WorldServer.<init>(WorldServer.java:37) ~[server.jar:7.2_01] at net.minecraft.server.MinecraftServer.initWorld(MinecraftServer.java:346) ~[server.jar:7.2_01] at net.minecraft.server.MinecraftServer.startServer(MinecraftServer.java:263) ~[server.jar:7.2_01] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:460) [server.jar:7.2_01] at net.minecraft.server.net.thread.ThreadServerApplication.run(ThreadServerApplication.java:17) [server.jar:7.2_01]
Note, The server usually hangs and no other log messages are produced, I've run this before and even after 24 hours no more log messages are created.