mojira.dev
MC-112165

Minecraft crashes when trying to render supplementary character (UTF-16) in right to left language

The bug

All my players use Minecraft in Hebrew interface.

If we copy emoji (for example form this site: http://getemoji.com/) and paste it in the Minecraft chat the game will crash for several players in the server.
If you named something (a minecraft:book for example) with the emoji you copied, anyone that look at that something it will crash his game.

[^crash-2017-01-02_13.25.45-client.txt]

Description: Rendering screen

java.lang.ExceptionInInitializerError
	at com.ibm.icu.text.UTF16.charAt(UTF16.java:401)
	at com.ibm.icu.text.Bidi.getDirProps(Bidi.java:1675)
	at com.ibm.icu.text.Bidi.setPara(Bidi.java:3294)
	at com.ibm.icu.text.Bidi.<init>(Bidi.java:4631)
	at com.ibm.icu.text.Bidi.<init>(Bidi.java:4518)
	at bfg.c(SourceFile:280)
	at bfg.b(SourceFile:439)
	at bfg.a(SourceFile:269)
	at bfg.a(SourceFile:255)
	at bfq.g(SourceFile:402)
	at bgr.a(SourceFile:166)
	at bqe.a(SourceFile:1078)
	at bes.av(SourceFile:993)
	at bes.a(SourceFile:398)
	at net.minecraft.client.main.Main.main(SourceFile:124)
Caused by: java.util.MissingResourceException: could not locate data data/icudt51b/uprops.icu
	at com.ibm.icu.impl.ICUData.getStream(ICUData.java:56)
	at com.ibm.icu.impl.ICUData.getRequiredStream(ICUData.java:97)
	at com.ibm.icu.impl.UCharacterProperty.<init>(UCharacterProperty.java:1187)
	at com.ibm.icu.impl.UCharacterProperty.<clinit>(UCharacterProperty.java:1411)
	... 15 more

How to reproduce

  1. Set the language to one which is read and written right to left, for example Hebrew

  2. Paste any supplementary character (UTF-16) like 𐀀 (U+10000) in any text field for example the chat

Linked issues

Attachments

Comments 10

Confirmed, also happens in single player, but only if using a RTL language.

also happens in windows 7 with last updates

Changed the summary. This should happen in every case where Minecraft tries to render supplementary characters when a right to left language is selected.

Since font rendering was changed, is this still an issue in 1.13.1?
If so, please update the affected versions.

same here, in Minecraft 1.13.2

I would like to request ownership of this ticket as the owner has been inactive since 2017.

This report is currently missing crucial information. Please take a look at the other comments to find out what we are looking for.
If you added the required information and a moderator sees your comment, they will reopen and update the report. However, if you think your update to this report has been overlooked or you want to make sure that this report is reopened, you can contact the Mojira staff on Discord or Reddit.
-- I am a bot. This action was performed automatically! Please report any issues on Discord or Reddit

@unknown: Does that mean you're able to reproduce the issue in a current version? If so I'll transfer ownership.

This report is currently missing crucial information. Please take a look at the other comments to find out what we are looking for.
If you added the required information and a moderator sees your comment, they will reopen and update the report. However, if you think your update to this report has been overlooked or you want to make sure that this report is reopened, you can contact the Mojira staff on Discord or Reddit.
-- I am a bot. This action was performed automatically! Please report any issues on Discord or Reddit

Eyal Solomon

(Unassigned)

Confirmed

crash, language, rendering, right-to-left, text, unicode, utf-16

Minecraft 1.11.2, Minecraft 1.12.2

Retrieved