mojira.dev
MC-118998

Cannot open URLs on Linux with X11

When I try to open a link in the minecraft chat, it won't work and i get this exception in the log.

java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_121]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_121]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_121]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_121]
	at net.minecraft.client.gui.GuiScreen.func_175282_a(GuiScreen.java:652) [axu.class:?]
	at net.minecraft.client.gui.GuiScreen.func_73878_a(GuiScreen.java:638) [axu.class:?]
	at net.minecraft.client.gui.GuiConfirmOpenLink.func_146284_a(SourceFile:41) [aww.class:?]
	at net.minecraft.client.gui.GuiScreen.func_73864_a(GuiScreen.java:467) [axu.class:?]
	at net.minecraft.client.gui.GuiScreen.func_146274_d(GuiScreen.java:555) [axu.class:?]
	at net.minecraft.client.gui.GuiScreen.func_146269_k(GuiScreen.java:524) [axu.class:?]
	at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1674) [ave.class:?]
	at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1024) [ave.class:?]
	at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:349) [ave.class:?]
	at net.minecraft.client.main.Main.main(SourceFile:124) [Main.class:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_121]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_121]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_121]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_121]
	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
	at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
Caused by: java.io.IOException: Failed to show URI:http://bug.valaphee.de
	at sun.awt.X11.XDesktopPeer.launch(XDesktopPeer.java:121) ~[?:1.8.0_121]
	at sun.awt.X11.XDesktopPeer.browse(XDesktopPeer.java:105) ~[?:1.8.0_121]
	at java.awt.Desktop.browse(Desktop.java:386) ~[?:1.8.0_121]
	... 20 more

Comments 4

This is actually a very low priority exception. This won't crash the game. It is only annoying me that no window will be opened when I click on a URL.

Is this still an issue in the most recent versions (currently that is 1.12.2, or the latest 1.13 pre-release) of Minecraft?

I tested both versions and the bug is solved but the will be thrown a NullPointerException in bhk.d (SourceFile:228) and the log of the Browser is shown in the client log of Minecraft.

 

But the bug is solved so far.

Valaphee

(Unassigned)

Unconfirmed

Minecraft 1.12

Minecraft 1.12.2, Minecraft 1.13-pre7

Retrieved