mojira.dev
MC-102011

Cannot connect to server using debug world

The bug

Setting level-type to DEBUG_ALL_BLOCK_STATES in server.properties causes the client to throw an exception when trying to connect:

Internal Exception: io.netty.handler.codec.DecoderException: The received string length is longer than maximum allowed (22 > 16)

The expected behavior is being able to connect and view a debug style world. This is important for testing purposes.

Attachments

Comments 4

Don't mess around with the debug world.
The only legit way to enter a debug world is in spectator mode via SHIFT in the world type menu.

The only reason your comment is correct is because this exception is occurring.

If you set the level-type to "DEBUG_ALL_BLOCK_STATES" the world is created successfully and correctly. It can be viewed in a world editor or via something like DynMap on CraftBukkit to verify my statement.

If the string "DEBUG_ALL_BLOCK_STATES" was shorter than 16 characters and gamemode was set to 3 (Spectator) things should work just fine.

This is NOT a duplicate of the issue linked. The only thing it has in common is that both issues deal with the debug world type. You must have misread or misunderstood this issue.

This is also NOT intended behavior. That string is literally too long for Netty to handle. If Mojang didn't want people to use the debug world type, it should fail gracefully with a human readable message.

Cannot reproduce in 1.17.1

KovuTheHusky

(Unassigned)

Confirmed

(Unassigned)

debug, server, world

Minecraft 1.9.2, Minecraft 1.9.4, Minecraft 1.10.2, Minecraft 16w32a, Minecraft 16w32b, ..., Minecraft 1.12.2, Minecraft 17w50a, Minecraft 1.13.1, Minecraft 1.14.2, Minecraft 1.14.3 Pre-Release 3

Retrieved