Server crashes when an item frame with a map is loaded, and no player has that map in their inventory
The bug
The server crashes when a player connects to it.
Crash report
Description: Exception in server tick loop
java.lang.NullPointerException: Exception in server tick loop
at hk.hashCode(SourceFile:121)
at java.util.HashMap.hash(Unknown Source)
at java.util.HashMap.remove(Unknown Source)
at bjy.a(SourceFile:143)
at rr.a(SourceFile:168)
at rk.a(SourceFile:202)
at net.minecraft.server.MinecraftServer.w(SourceFile:687)
at qy.w(SourceFile:352)
at net.minecraft.server.MinecraftServer.v(SourceFile:604)
at net.minecraft.server.MinecraftServer.run(SourceFile:509)
at java.lang.Thread.run(Unknown Source)
Environment
Server :
Minecraft Version: 18w01a
Operating System: Linux (amd64) version 2.6.32-48-pve
Java Version: 1.8.0_45-internal, Oracle Corporation
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 433525536 bytes (413 MB) / 1072889856 bytes (1023 MB) up to 4159438848 bytes (3966 MB)
JVM Flags: 6 total; -Xms512M -Xmx4000M -XX:MaxPermSize=512M -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalPacing
IntCache: cache: 0, tcache: 0, allocated: 20, tallocated: 86
Profiler Position: N/A (disabled)
Player Count: 1 / 20; [rp['TextComponent{text='donk7413', siblings=[], style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null}}'/749, l='world', x=149966.61, y=65.00, z=1887.62]]
Data Packs: vanilla, file/datapack_admin.zip (incompatible)
Is Modded: No
Type: Dedicated Server (map_server.txt)
Linked Issues
Created Issue:
Crash when player connect to the server
The server crash when a player connect.
Erro in server log :
Description: Exception in server tick loopjava.lang.NullPointerException: Exception in server tick loop
at hk.hashCode(SourceFile:121)
at java.util.HashMap.hash(HashMap.java:338)
at java.util.HashMap.remove(HashMap.java:798)
at bjy.a(SourceFile:143)
at rr.a(SourceFile:168)
at rk.a(SourceFile:202)
at net.minecraft.server.MinecraftServer.w(SourceFile:687)
at qy.w(SourceFile:352)
at net.minecraft.server.MinecraftServer.v(SourceFile:604)
at net.minecraft.server.MinecraftServer.run(SourceFile:509)
at java.lang.Thread.run(Thread.java:745)Environment
Server :
Minecraft Version: 18w01a
Operating System: Linux (amd64) version 2.6.32-48-pve
Java Version: 1.8.0_45-internal, Oracle Corporation
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 433525536 bytes (413 MB) / 1072889856 bytes (1023 MB) up to 4159438848 bytes (3966 MB)
JVM Flags: 6 total; -Xms512M -Xmx4000M -XX:MaxPermSize=512M -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalPacing
IntCache: cache: 0, tcache: 0, allocated: 20, tallocated: 86
Profiler Position: N/A (disabled)
Player Count: 1 / 20; [rp['TextComponent{text='donk7413', siblings=[], style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null}}'/749, l='world', x=149966.61, y=65.00, z=1887.62]]
Data Packs: vanilla, file/datapack_admin.zip (incompatible)
Is Modded: No
Type: Dedicated Server (map_server.txt)
is duplicated by
MC-123785
The server crash when a player connect.
Erro in server log :
Description: Exception in server tick loopjava.lang.NullPointerException: Exception in server tick loop
at hk.hashCode(SourceFile:121)
at java.util.HashMap.hash(HashMap.java:338)
at java.util.HashMap.remove(HashMap.java:798)
at bjy.a(SourceFile:143)
at rr.a(SourceFile:168)
at rk.a(SourceFile:202)
at net.minecraft.server.MinecraftServer.w(SourceFile:687)
at qy.w(SourceFile:352)
at net.minecraft.server.MinecraftServer.v(SourceFile:604)
at net.minecraft.server.MinecraftServer.run(SourceFile:509)
at java.lang.Thread.run(Thread.java:745)The server crash when a player connect.
Description: Exception in server tick loop java.lang.NullPointerException: Exception in server tick loop at hk.hashCode(SourceFile:121) at java.util.HashMap.hash(HashMap.java:338) at java.util.HashMap.remove(HashMap.java:798) at bjy.a(SourceFile:143) at rr.a(SourceFile:168) at rk.a(SourceFile:202) at net.minecraft.server.MinecraftServer.w(SourceFile:687) at qy.w(SourceFile:352) at net.minecraft.server.MinecraftServer.v(SourceFile:604) at net.minecraft.server.MinecraftServer.run(SourceFile:509) at java.lang.Thread.run(Thread.java:745)
The server crash when a player connect.
Description: Exception in server tick loop java.lang.NullPointerException: Exception in server tick loop at hk.hashCode(SourceFile:121) at java.util.HashMap.hash(HashMap.java:338) at java.util.HashMap.remove(HashMap.java:798) at bjy.a(SourceFile:143) at rr.a(SourceFile:168) at rk.a(SourceFile:202) at net.minecraft.server.MinecraftServer.w(SourceFile:687) at qy.w(SourceFile:352) at net.minecraft.server.MinecraftServer.v(SourceFile:604) at net.minecraft.server.MinecraftServer.run(SourceFile:509) at java.lang.Thread.run(Thread.java:745)The bug
The server crashes when a player connects to it.
Crash report
Description: Exception in server tick loop java.lang.NullPointerException: Exception in server tick loop at hk.hashCode(SourceFile:121) at java.util.HashMap.hash(Unknown Source) at java.util.HashMap.remove(Unknown Source) at bjy.a(SourceFile:143) at rr.a(SourceFile:168) at rk.a(SourceFile:202) at net.minecraft.server.MinecraftServer.w(SourceFile:687) at qy.w(SourceFile:352) at net.minecraft.server.MinecraftServer.v(SourceFile:604) at net.minecraft.server.MinecraftServer.run(SourceFile:509) at java.lang.Thread.run(Unknown Source)
Crash when player connects to the server
is duplicated by
is duplicated by
is duplicated by
Crash when playerconnects to the serverServer crashes when a player is in the overworld
Server crashes when aplayer is in the overworldServer crashes when a item frame with a map is loaded, and no player has that map in their inventory
is duplicated by
is duplicated by
Server crashes when an item frame with a map is loaded, and no player has that map in their inventory
Thank you for your report!
However, this issue has been closed as a Duplicate of MC-123771.
It has been linked to this report. If you have additional information, please add it to the duplicated report.
Please search before reporting, as it's likely that one exists already.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki
Thank you for your report!
However, this issue is a Duplicate of MC-123771.
It has been linked to this report. If you have additional information, please add it to that report.
Please search before reporting, as it's likely that one exists already.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki
Does this also happen when the datapack is deactivated?
Yes, when I see this, i have delete my datapack from the server then reload it but nothing change.
Log file without datapack
Getting this same issue. First player joins fine, second player joining crashes the server. crash-2018-01-03_14.47.58-server.txt
EDIT: If the original issue is on first connect, it might be related to players loading into the overworld? First player to join was in the nether for me.
I also have the same problem in my world so i edited the world. I put the player in the end dimension en it worked completely fine. As soon as I went trough the end portal i got the same crash.
Happened for me as well. My character was in the overworld when I tried to log on. I will try again later in a different dimension.
This is also happening to my singleplayer world in 18w01a. It affects more than just servers.
Edit 1:
After a bit of testing I can trigger this bug in a superflat world by following these steps:
1. Create a new superflat world
2. Place an item frame
3. Fill a map
4. Place a copy of the map into the item frame
5. Use the mouse to pick up the original map in your inventory
6. The game immediately crashes with this crash report and continues to crash whenever that world is opened
Edit 2:
Removing the item frame by editing the world NBT allowed the world to be loaded again without crashing.
Edit 3:
{map:}The crash doesn't occur if the map has had tag:
stripped out of the NBT.
This also seems to occur when you delete a map. I had two copies of the same map, One with an ID of 0, and another with an ID of 4. Upon attempt to delete the map with ID 0, the map is deleted followed by an immediate game crash. Attempts to reopen the world result in immediate crash.
Please note that this Map with ID of 0 was not in any item frames.
I added my crash report to the attachments section as well.
Placing a map in a frame triggers this. Any attempt to connect again crashes immediately.
Found out that this is not because of picking up the map, but because of nobody having the map.