mojira.dev
MC-121418

Crash when trying to paste non-string clipboard content

The bug

Minecraft crashes when you try to paste non-string clipboard content, like for example a copied folder.

22:11:06	bjr	########## GL ERROR ##########
22:11:06	bjr	@ Render
22:11:06	bjr	65545: Win32: Failed to convert clipboard to string: Der Vorgang wurde erfolgreich beendet. 
22:11:06	bjh	Reported exception thrown!
f: keyPressed event handler
	at bna.a(SourceFile:444)
	at bje.a(SourceFile:274)
	at bje$$Lambda$42/600270822.invoke(Unknown Source)
	at org.lwjgl.glfw.GLFWKeyCallbackI.callback(GLFWKeyCallbackI.java:23)
	at org.lwjgl.system.JNI.invokeV(Native Method)
	at org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout(GLFW.java:2599)
	at bjr.a(SourceFile:276)
	at bjh.b(SourceFile:882)
	at bjh.a(SourceFile:371)
	at net.minecraft.client.main.Main.main(SourceFile:134)
Caused by: java.lang.NullPointerException
	at g.a(SourceFile:77)
	at bkn.b(SourceFile:103)
	at bkn.a(SourceFile:267)
	at blj.a(SourceFile:30)
	at blg.a(SourceFile:69)
	at bna.a(SourceFile:80)
	at bmp.a(SourceFile:155)
	at bje.a(SourceFile:274)
	at bje$$Lambda$89/350761035.run(Unknown Source)
	at bna.a(SourceFile:439)
	... 9 more

How to reproduce

  1. Copy for a example a folder

  2. Go into Minecraft and press Ctrl + V in a text field to paste it

Environment

Windows 7 + 10 (64 bit)

Attachments

Comments 1

Confirmed. I took a screenshot with print screen (which, as we all know, it definitely the right way) and then tried to paste it into chat.

On my machine the message is in English:

[14:58:16.732] [Client thread/ERROR]: ########## GL ERROR ##########
[14:58:16.733] [Client thread/ERROR]: @ Render
[14:58:16.733] [Client thread/ERROR]: 65545: Win32: Failed to convert clipboard to string: The operation completed successfully.

Marcono1234

Fry

Confirmed

clipboard, copy, paste, string

Minecraft 17w43a, Minecraft 17w43b

Minecraft 17w45a

Retrieved