See @unknown's comment for the reason and more ways to reproduce
I'm not sure, but somehow strange errors occure when using /blockdata which added a tons of backslashes (escaping sign in JSON).
I needed a setup where a repeating block makes a testfor continiously, but runs a chain of command blocks in case of true only once.
(comparable to repeating -> comparator -> command block, but I don't want any redstone)
So following setup (imagine a tower of command blocks)
1. Repeating (A): Testfor something, if true, run (B).
2. Chain, conditional (B): Sets blockdata of an impulse (C) directly above to auto:1b. (C) will not, of course, take any "signal" from (B) because it's not a chain cb.
3. Impulse (C): If (A) was successful, (C) and other chains (C2,C3,C4 etc) connected to (C) will run now ONCE (as (B) has set this block to auto:1b - so until here everything is working as expected and wanted).
Because (C) is in the "Always active"-state now, I need to reset this, so it would run again if (A) is true again.
How did I do this? (Now imagine a second command block tower, just right next to the first one; x-axis plus 1)
1.1. Repeating: This block checks if the repeating (A) from the first tower is false (by using testforblock and SuccessCount)
2.1. Chain, conditional: If 1.1. is TRUE (and A therefore FALSE), this chain will now run exactly as B did and sets its block above to auto:1b.
3.1. This impulse will now set its neighbour (C) back to auto:0b. (C) itself will do this exactly the other way and sets 3.1. back to auto:0b, as soon it is activated.
So these towers will reset them each other depending on the success state of the very first repeating block (A), but only run once.
(See screenshot, I think it is easier to understand then).
So far, so good. Now what happened is very, very unexpected. I was working on the map for many hours, everything was working fine as I wanted, just until the game began to lag. The FPS dropped from 60 to 10-20 until the game completely crashed.
For the first time, I just restarted the game, loading the world again. But nothing, until the game tried to save. Then the lags returned, followed by a crash again.
So I took a look into the logs (not the crash log, in order to look for the reason), finding the line
[File IO Thread/ERROR]: Failed to save chunk
java.io.UTFDataFormatException: encoded string too long
The crash logs said:
Description: Exception in server tick loop
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOfRange(Arrays.java:3664)
at java.lang.StringBuffer.toString(StringBuffer.java:671)
at java.io.StringWriter.toString(StringWriter.java:210)
at com.google.gson.Gson.toJson(Gson.java:528)
at com.google.gson.Gson.toJson(Gson.java:507)
at ew$a.a(SourceFile:201)
at ahj.a(SourceFile:54)
at apy.b(SourceFile:32)
at ast.a(SourceFile:226)
at ast.a(SourceFile:102)
at lp.c(SourceFile:147)
at lp.a(SourceFile:166)
at lq.a(SourceFile:883)
at net.minecraft.server.MinecraftServer.a(SourceFile:372)
at byl.a(SourceFile:214)
at byl.C(SourceFile:145)
at net.minecraft.server.MinecraftServer.run(SourceFile:458)
at java.lang.Thread.run(Thread.java:745)
After using Google I found out that this error is related to problems with JSON parsing. So I took a closer look to my command blocks (as this was a void map, there was not much to check).
And then this: In the "Last Output" fields of the command blocks containing the block state auto 0b / 1b thing, there was a giant line of backslashes.
[21:37:17] The data tag did not change: {conditionMet:1b,auto:1b,CustomName:"@",powered:0b,Command:"/blockdata ~1 ~ ~ {auto:0b}",x:-15,y:6,z:-15,id:"Control",SuccessCount:1,LastOutput:"{\"extra\":[{\"translate\":\"commands.blockdata.success\",\"with\":[\"{conditionMet:1b,auto:0b,CustomName:\\"@\\",powered:0b,Command:\\"/blockdata ~-1 ~ ~ {auto:0b}\\",x:-14,y:6,z:-15,id:\\"Control\\",SuccessCount:1,LastOutput:\\"{\\\\"extra\\\\":[{\\\\"translate\\\\":\\\\"commands.blockdata.success\\\\",\\\\"with\\\\":[\\\\"{conditionMet:1b,auto:0b,CustomName:\\\\\\"@\\\\\\",powered:0b,Command:\\\\\\"/blockdata ~1 ~ ~ {auto:0b}\\\\\\",x:-15,y:6,z:-15,id:\\\\\\"Control\\\\\\",SuccessCount:1,LastOutput:\\\\\\"{\\\\\\\\\\"extra\\\\\\\\\\":[{\\\\\\\\\\"translate\\\\\\\\\\":\\\\\\\\\\"commands.blockdata.success\\\\\\\\\\",\\\\\\\\\\"with\\\\\\\\\\":[\\\\\\\\\\"{conditionMet:1b,auto:0b,CustomName:\\\\\\\\\\\\\\"@\\\\\\\\\\\\\\",powered:0b,Command:\\\\\\\\\\\\\\"/blockdata ~-1 ~ ~ {auto:0b}\\\\\\\\\\\\\\",x:-14,y:6,z:-15,id:\\\\\\\\\\\\\\"Control\\\\\\\\\\\\\\",SuccessCount:1,LastOutput:\\\\\\\\\\\\\\"{\\\\\\\\\\\\\\\\\\\\\\"extra\\\\\\\\\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\\\\\\\\\"translate\\\\\\\\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\\\\\\\\"commands.blockdata.success\\\\\\\\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\\\\\\\\"with\\\\\\\\\\\\\\\\\\\\\\":[\\\\\\\\\\\\\\\\\\\\\\"{conditionMet:1b,auto:0b,CustomName:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"@\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\",powered:0b,Command:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"/blockdata ~1 ~ ~ {auto:0b}\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\",x:-15,y:6,z:-15,id:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Control\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\",SuccessCount:1,LastOutput:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"{\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"extra\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"translate\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"commands.blockdata.success\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"with\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\":[\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"{conditionMet:1b,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\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Control\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
(The bug report doesn't even allow that much chars...)
This was not only the case in one of the "pairs" I set up, but in every /blockdata with the auto 0b / 1b thing.
As the problem did not occur directly, but hours later, I guess that these backslashes came up after some time and stacked more and more.
No wonder that the memory got an overflow. But I really cannot imagine what I've made wrong, as the bug did not occur immediately...
Update: Uploaded a demo world: The problem does occur soon if you provoke it.
Related issues
is duplicated by
relates to
Attachments
Comments

Confirmed for both 1.9.4 and 16w21b.

This bug may related to this one here: MC-83313
Log:
[01:12:29] [File IO Thread/ERROR]: Failed to save chunk
java.io.UTFDataFormatException: encoded string too long: 801118 bytes
at java.io.DataOutputStream.writeUTF(DataOutputStream.java:364) ~[?:1.8.0_25]
at java.io.DataOutputStream.writeUTF(DataOutputStream.java:323) ~[?:1.8.0_25]
at ec.a(SourceFile:29) ~[1.9.4.jar:?]
at dq.a(SourceFile:399) ~[1.9.4.jar:?]
at dq.a(SourceFile:53) ~[1.9.4.jar:?]
at dw.a(SourceFile:45) ~[1.9.4.jar:?]
at dq.a(SourceFile:399) ~[1.9.4.jar:?]
at dq.a(SourceFile:53) ~[1.9.4.jar:?]
at dq.a(SourceFile:399) ~[1.9.4.jar:?]
at dq.a(SourceFile:53) ~[1.9.4.jar:?]
at dz.a(SourceFile:102) ~[1.9.4.jar:?]
at dz.a(SourceFile:90) ~[1.9.4.jar:?]
at ast.b(SourceFile:145) ~[1.9.4.jar:?]
at ast.c(SourceFile:131) [1.9.4.jar:?]
at bbb.c(SourceFile:37) [1.9.4.jar:?]
at bbb.run(SourceFile:30) [1.9.4.jar:?]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_25]

Made a small demo world. Also discovered something new: The backslashes will disappear if you reload the world (but you will lose all changes made after the last successful save).

That's because you have to command blocks changing each other's block data continuously. They each save each other's block data in their output, nesting each other's output and escaping it properly each time. That does tend to get a bit long, exponential growth and all.
A simple fix would be to limit the last command output to a sane max length when updating it.

Here's a simpler way to reproduce.
Still in 1.10-pre1
Still in 1.10

Found (resolved) old bug MC-49057 with same issues.
Still in 16w33a
Still in 16w35a.
Still in 16w38a.

How to reproduce (command blocks)
Place a repeating command block facing +x with the following command:
/blockdata ~1 ~ ~ {}
Place a chain command block, always active, in front of the repeating one with the following command:
/blockdata ~-1 ~ ~ {}
How to reproduce (command block minecarts)
Create two commandblock_minecart
entities on top of powered activator rails with the following command to execute:
/entitydata @e[type=commandblock_minecart,c=-1] {}
The reason
The reason why this only happens for 2+ command blocks or command block minecarts is because before a command is executed the LastOutput
is cleared. Because of that the feedback from /blockdata ~ ~ ~ {}
does not contain the LastOutput
tag. If you run it on a different command block however, the tag will be contained.
This bug then happens because the LastOutput
of one of the command blocks or command block minecarts contains the LastOutput
tag of the other one, vice versa.
Imagine having two command blocks, 1 and 2:
Command block executing |
|
---|---|
1 | NBT of 2 |
2 | NBT of 1 containg NBT of 2 |
1 | NBT of 2 containing NBT of 1 containing NBT of 2 |
2 | NBT of 1 containing NBT of 2 containing NBT of 1 containing NBT of 2 |
1 | ... |
How this could be solved
Leaving out the LastOutput
tag is not really a solution as then the NBT would not be complete.
Limitting the LastOutput
to a maximum of 32767 characters (encoded) and removing everything which exceeds that might be the better solution.
In general you should probably avoid this situation. In the case provided in the report you could probably have the command block C run /blockdata ~ ~ ~ {auto:0b}
. Additionally you could set TrackOutput
to 0b
.
Still in 16w39b.

Please link to my comment and or include its content in the description
Still in 16w41a.
Still in 16w42a.

Still in 17w14a.

Confirmed in 1.16.1 and 20w28a.
[^Bug Demo MC-102843.zip]
[media]