mojira.dev
MC-136484

Game crash when placing sign with character that doesn't fit on a sign

How to reproduce

  1. Apply the attached resource pack 'Crash.zip'

  2. Create a new world

  3. Run command: 

    /setblock ~ ~ ~ minecraft:sign{Text1:"{\"text\":\"M\"}"}
  4. Your game should crash

Why does it happend (my idea)

Text in Minecraft signs is limited by character width (max. 15 'M' characters in one line)
Even if you try

/setblock ~ ~ ~ minecraft:sign{Text1:"{\"text\":\"MMMMMMMMMMMMMMMMMMMMM\"}"}

There will be only 15 M characters on the sign.
These extra characters are still stored in the sing (can be seen with /data get block <coordinates>).

My resource pack 'Crash.zip' makes the M character 100 px long.
If you try to write this character in a sign, it doesn't work, nothing happens.

But when you "force" it into a sign with /setblock , the game tries to hide characters that don't fit into a sign, fails doing this and crashes.

Linked issues

Attachments

Comments 3

MC-12949:

This issue is often caused when installing large resource packs. If increasing the memory usage does not correct the issue, or results in other crashes, remove the resource pack.
Resource packs may be access by opening the launcher, clicking Edit Profile -> Open Game Dir, and opening the resourcepacks directory.

This is not a issue with large resource packs, as the game doesn't crash immediatly or when typing the (now 100 px long) M character and the resource pack is only 2KB in size. I'm reporting an issue with sign rendering and long characters.

Can't be reproduced as of 21w08a.

Susko3

migrated

Community Consensus

Crash

Minecraft 1.13.1, Minecraft 1.14.2 Pre-Release 4

Retrieved