-
Bug
-
Resolution: Invalid
-
None
-
1.20.4
-
None
-
Unconfirmed
-
(Unassigned)
I think that this error may be common but it's on 1.19.4.
Firstly,I'm not an English speaker.So this article may not be very fluent.
I opened my Minecraft 1.19.4 Server with Fabric Mod Loader 0.15.6 as usual.But it crashed unexpectedly but I could open it normally last time and I did nothing to the files of the server between last time and this time that I opened it.I tried it on Windows and MacOS with Java 19 and was been returned the same result.I tried running the server without Fabric Mod Loader or without any mods but it didn't work,either.Then I supposed that maybe there is something wrong with the datapack I created,but I proved that nothing wrong with it.
And at first the exception is not that below but another strange one and the server.properties had become a mess:with a line of garbled codes look like unicode before the actual content and the motd and the level name had been replaced from unicodes I wrote with another phrase of unicodes and it was the characters just like "åß∂å∂∑œ∂ç≈Ωπ"(Add:not only this,but almost every json file of the server had turned into garbled codes).Then I fixed it:I replaced the server.properties with a copy of that I created before.And I found one more problem:level.dat and level.dat_old of the save had been broken and it caused another exception.But I fixed it through the same way.And the next exception is below.Totally I met about three different crashing.
By the way,the save works well on client.
The server logs is below(On MacOS):
Starting net.minecraft.server.Main
[22:00:02] [ServerMain/INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD'
[22:00:03] [ServerMain/WARN]: Missing data pack fabric
[22:00:03] [ServerMain/WARN]: Ignored non-lowercase namespace: .DS_Store in ./多人生存2/datapacks/Simple_Data_Pack
[22:00:03] [ServerMain/WARN]: Ignored non-lowercase namespace: .DS_Store in ./多人生存2/datapacks/Simple_Data_Pack
[22:00:08] [Worker-Main-1/ERROR]: Invalid path in pack: test:functions/.DS_Store, ignoring
[22:00:08] [Worker-Main-1/ERROR]: Invalid path in pack: test:advancements/.DS_Store, ignoring
[22:00:08] [Worker-Main-1/ERROR]: Invalid path in pack: test:advancements/chapter1/NOTE.txt, ignoring
[22:00:08] [Worker-Main-1/ERROR]: Invalid path in pack: test:advancements/chapter3/.DS_Store, ignoring
[22:00:08] [ServerMain/INFO]: Loaded 7 recipes
[22:00:09] [ServerMain/INFO]: Loaded 1253 advancements
[22:00:11] [Server thread/INFO]: Starting minecraft server version 1.19.4
[22:00:11] [Server thread/INFO]: Loading properties
[22:00:11] [Server thread/INFO]: Default game type: SURVIVAL
[22:00:11] [Server thread/INFO]: Generating keypair
[22:00:12] [Server thread/INFO]: Starting Minecraft server on *:25565
[22:00:12] [Server thread/INFO]: Using default channel type
[22:00:12] [Server thread/ERROR]: Encountered an unexpected exception
com.google.gson.JsonSyntaxException: Expected a com.google.gson.JsonArray but was com.google.gson.JsonPrimitive; at path $
at com.google.gson.internal.bind.TypeAdapters$34$1.read(TypeAdapters.java:1010) ~[gson-2.10.jar:?]
at com.google.gson.Gson.fromJson(Gson.java:1214) ~[gson-2.10.jar:?]
at com.google.gson.Gson.fromJson(Gson.java:1124) ~[gson-2.10.jar:?]
at com.google.gson.Gson.fromJson(Gson.java:1062) ~[gson-2.10.jar:?]
at alz.f(SourceFile:118) ~[server-1.19.4.jar:?]
at ahp.z(SourceFile:85) ~[server-1.19.4.jar:?]
at ahp.<init>(SourceFile:24) ~[server-1.19.4.jar:?]
at ahq.e(SourceFile:161) ~[server-1.19.4.jar:?]
at net.minecraft.server.MinecraftServer.w(SourceFile:650) ~[server-1.19.4.jar:?]
at net.minecraft.server.MinecraftServer.a(SourceFile:266) ~[server-1.19.4.jar:?]
at java.lang.Thread.run(Thread.java:1589) ~[?:?]
[22:00:13] [Server thread/ERROR]: This crash report has been saved to: /Volumes/File/File/Copy/MAC OS/Minecraft Server/多人生存服务器/1.19.4_Fabric_Server/./crash-reports/crash-2024-02-13_22.00.13-server.txt
[22:00:13] [Server thread/INFO]: Stopping server
[22:00:13] [Server thread/INFO]: Saving worlds
[22:00:13] [Server thread/ERROR]: Exception stopping the server
java.lang.NullPointerException: Cannot invoke "aip.p_()" because "$$5" is null
at net.minecraft.server.MinecraftServer.a(SourceFile:545) ~[server-1.19.4.jar:?]
at net.minecraft.server.MinecraftServer.t(SourceFile:606) ~[server-1.19.4.jar:?]
at ahq.t(SourceFile:536) ~[server-1.19.4.jar:?]
at net.minecraft.server.MinecraftServer.w(SourceFile:707) ~[server-1.19.4.jar:?]
at net.minecraft.server.MinecraftServer.a(SourceFile:266) ~[server-1.19.4.jar:?]
at java.lang.Thread.run(Thread.java:1589) ~[?:?]
The crash report is below:
---- Minecraft Crash Report ----
// Hey, that tickles! Hehehe!
Time: 2024-02-13 22:00:13
Description: Exception in server tick loop
com.google.gson.JsonSyntaxException: Expected a com.google.gson.JsonArray but was com.google.gson.JsonPrimitive; at path $
at com.google.gson.internal.bind.TypeAdapters$34$1.read(TypeAdapters.java:1010)
at com.google.gson.Gson.fromJson(Gson.java:1214)
at com.google.gson.Gson.fromJson(Gson.java:1124)
at com.google.gson.Gson.fromJson(Gson.java:1062)
at alz.f(SourceFile:118)
at ahp.z(SourceFile:85)
at ahp.<init>(SourceFile:24)
at ahq.e(SourceFile:161)
at net.minecraft.server.MinecraftServer.w(SourceFile:650)
at net.minecraft.server.MinecraftServer.a(SourceFile:266)
at java.base/java.lang.Thread.run(Thread.java:1589)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
– System Details –
Details:
Minecraft Version: 1.19.4
Minecraft Version ID: 1.19.4
Operating System: Mac OS X (x86_64) version 10.13.6
Java Version: 19.0.1, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode, sharing), Oracle Corporation
Memory: 221171120 bytes (210 MiB) / 536870912 bytes (512 MiB) up to 2147483648 bytes (2048 MiB)
CPUs: 4
Processor Vendor: GenuineIntel
Processor Name: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
Identifier: Intel64 Family 6 Model 58 Stepping 9
Microarchitecture: Ivy Bridge (Client)
Frequency (GHz): 2.50
Number of physical packages: 1
Number of physical CPUs: 2
Number of logical CPUs: 4
Graphics card #0 name: Intel HD Graphics 4000
Graphics card #0 vendor: Intel
Graphics card #0 VRAM (MB): 1536.00
Graphics card #0 deviceId: 0x0166
Graphics card #0 versionInfo: Revision ID: 0x0009
Memory slot #0 capacity (MB): 4096.00
Memory slot #0 clockSpeed (GHz): 1.60
Memory slot #0 type: DDR3
Memory slot #1 capacity (MB): 4096.00
Memory slot #1 clockSpeed (GHz): 1.60
Memory slot #1 type: DDR3
Virtual memory max (MB): 9216.00
Virtual memory used (MB): 4790.21
Swap memory total (MB): 1024.00
Swap memory used (MB): 150.25
JVM Flags: 2 total; -Xmx2048M -Xms512M
Server Running: true
Data Packs: vanilla, file/Simple_Data_Pack
Enabled Feature Flags: minecraft:vanilla
World Generation: Stable
Is Modded: Probably not. Server jar signature and brand is untouched
Type: Dedicated Server (map_server.txt)