mojira.dev

Alexander Melkov

Assigned

No issues.

Reported

MC-152977 Server hangs while "preparing spawn area" with older Java 8 JRE Invalid MC-152433 Allow feathers to be used as fuel Invalid MC-76149 Minecraft server hung and got killed by watchdog Duplicate

Comments

I'm not sure why .txt files are initially related, but existing ops.json was destroyed while updating from 20w08a to 20w09a.

It now contains a single square bracket ("[").

 
Should I add a number of ops to ops.txt and restart the server,

---- Minecraft Crash Report ----
// Shall we play a game?

Time: 2/26/20 9:55 PM
Description: Exception in server tick loop

com.google.gson.JsonSyntaxException: java.io.EOFException: End of input at line 1 column 2 path $[0]
        at com.google.gson.Gson.fromJson(Gson.java:897)
        at com.google.gson.Gson.fromJson(Gson.java:825)
        at zw.g(SourceFile:125)
        at zr.c(SourceFile:153)
        at wh.bf(SourceFile:538)
        at wh.d(SourceFile:179)
        at net.minecraft.server.MinecraftServer.run(SourceFile:634)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.EOFException: End of input at line 1 column 2 path $[0]
        at com.google.gson.stream.JsonReader.nextNonWhitespace(JsonReader.java:1393)
        at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:549)
        at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:414)
        at com.google.gson.internal.bind.TypeAdapters$29.read(TypeAdapters.java:730)
        at com.google.gson.internal.bind.TypeAdapters$29.read(TypeAdapters.java:714)
        at com.google.gson.internal.bind.TypeAdapters$35$1.read(TypeAdapters.java:910)
        at com.google.gson.Gson.fromJson(Gson.java:887)
        ... 7 more


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- System Details --
Details:
        Minecraft Version: 20w09a
        Minecraft Version ID: 20w09a
        Operating System: FreeBSD (amd64) version 12.1-RELEASE-p1
        Java Version: 1.8.0_212, Oracle Corporation
        Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Oracle Corporation
        Memory: 3903969208 bytes (3723 MB) / 4294967296 bytes (4096 MB) up to 4294967296 bytes (4096 MB)
        CPUs: 4
        JVM Flags: 8 total; -Xmx4096M -Xms4096M -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
        Data Packs:
        Is Modded: Unknown (can't tell)
        Type: Dedicated Server (map_server.txt)

Thank you @@unknown, it actually helped (as of openjdk8-jre 1.8.0_202-b08).

I think that some announcement that older java versions are not usable any more would not hurt.

I have also tried to move world spawn point to another clean location. I even deleted chunks at that location. 1.14.2 still hangs.

So my guess is that actual chunk data is unrelated to the issue, it is rather some global metadata of the world that is causing the trouble.

@slicedlime I created this issue about the server hang: MC-152977

Well in my case, running 1.14.2_Pre-Release_3 server with --forceUpgrade --eraseCache (or --eraseCache alone) just caused the server to hang at "[04:38:26] [Server-Worker-3/INFO]: Preparing spawn area: 0%" at zero cpu usage and no response except hard-killing the java process.

Downgraded to 1.14.2_Pre-Release_2 and it started just fine. However the light seems to be fixed because 1.14.2_Pre-Release_3 upgraded chunks before hanging.

I'm not asking for a help. I do not have performance issues.

The issue linked by the mod is not related to the problem reported. My report is not about the watchdog.
There seems to be a scenario when the server hangs, it is a bug in minecraft.