-
Bug
-
Resolution: Fixed
-
22w12a
-
None
-
Confirmed
-
Save Data
-
Very Important
The Bug:
The "Failed to save chunk" error is sometimes logged in the server console, thus indicating that the server occasionally fails to save chunks.
This issue was not present in 1.18.2 or 22w11a.
The following message was printed into the server console shortly after teleporting a far distance away and then running the "/kill" command. The full server log has also been attached which can be found below.
[18:22:28] [Server thread/ERROR]: Failed to save chunk -16,-11 java.lang.NullPointerException: Cannot invoke "java.util.UUID.getMostSignificantBits()" because "$$0" is null at hi.a(SourceFile:27) ~[server-22w12a.jar:?] at hi.b(SourceFile:13) ~[server-22w12a.jar:?] at com.mojang.serialization.Encoder$1.encode(Encoder.java:25) ~[datafixerupper-4.1.27.jar:?] at com.mojang.serialization.Codec$2.encode(Codec.java:76) ~[datafixerupper-4.1.27.jar:?] at com.mojang.serialization.Encoder.encodeStart(Encoder.java:14) ~[datafixerupper-4.1.27.jar:?] at com.mojang.serialization.codecs.FieldEncoder.encode(FieldEncoder.java:24) ~[datafixerupper-4.1.27.jar:?] at com.mojang.serialization.MapCodec$1.encode(MapCodec.java:39) ~[datafixerupper-4.1.27.jar:?] at com.mojang.serialization.MapCodec$3.encode(MapCodec.java:181) ~[datafixerupper-4.1.27.jar:?] at com.mojang.serialization.codecs.RecordCodecBuilder$Instance$8.encode(RecordCodecBuilder.java:379) ~[datafixerupper-4.1.27.jar:?] at com.mojang.serialization.codecs.RecordCodecBuilder$2.encode(RecordCodecBuilder.java:112) ~[datafixerupper-4.1.27.jar:?] at com.mojang.serialization.MapCodec$MapCodecCodec.encode(MapCodec.java:96) ~[datafixerupper-4.1.27.jar:?] at com.mojang.serialization.Encoder.encodeStart(Encoder.java:14) ~[datafixerupper-4.1.27.jar:?] at com.mojang.serialization.codecs.OptionalFieldCodec.encode(OptionalFieldCodec.java:42) ~[datafixerupper-4.1.27.jar:?] at com.mojang.serialization.codecs.OptionalFieldCodec.encode(OptionalFieldCodec.java:17) ~[datafixerupper-4.1.27.jar:?] at com.mojang.serialization.codecs.RecordCodecBuilder$Instance$6.encode(RecordCodecBuilder.java:295) ~[datafixerupper-4.1.27.jar:?] at com.mojang.serialization.codecs.RecordCodecBuilder$2.encode(RecordCodecBuilder.java:112) ~[datafixerupper-4.1.27.jar:?] at com.mojang.serialization.MapCodec$MapCodecCodec.encode(MapCodec.java:96) ~[datafixerupper-4.1.27.jar:?] at com.mojang.serialization.Encoder.encodeStart(Encoder.java:14) ~[datafixerupper-4.1.27.jar:?] at cqe.b(SourceFile:51) ~[server-22w12a.jar:?] at cpf.o(SourceFile:84) ~[server-22w12a.jar:?] at cpf.m(SourceFile:64) ~[server-22w12a.jar:?] at cto.g(SourceFile:380) ~[server-22w12a.jar:?] at cuc.a(SourceFile:345) ~[server-22w12a.jar:?] at ads.a(SourceFile:828) ~[server-22w12a.jar:?] at ads.d(SourceFile:792) ~[server-22w12a.jar:?] at ads.b(SourceFile:531) ~[server-22w12a.jar:?] at ads.a(SourceFile:486) ~[server-22w12a.jar:?] at aed.a(SourceFile:326) ~[server-22w12a.jar:?] at aef.a(SourceFile:314) ~[server-22w12a.jar:?] at net.minecraft.server.MinecraftServer.b(SourceFile:903) ~[server-22w12a.jar:?] at adg.b(SourceFile:322) ~[server-22w12a.jar:?] at net.minecraft.server.MinecraftServer.a(SourceFile:847) ~[server-22w12a.jar:?] at net.minecraft.server.MinecraftServer.w(SourceFile:693) ~[server-22w12a.jar:?] at net.minecraft.server.MinecraftServer.a(SourceFile:271) ~[server-22w12a.jar:?] at java.lang.Thread.run(Thread.java:833) [?:?]
Steps to Reproduce:
- Start a server running 22w12a.
- Teleport a far distance away and then run the "/kill" command in order to make some chunks unload.
/tp @s ~10000 ~ ~
/kill @s
- Respawn and watch the server console closely.
- Take note as to whether or not the server occasionally fails to save chunks.
Observed Behavior:
The server fails to save chunks.
Expected Behavior:
The server would not fail to save chunks.