StokeBloke.com

Meersburg am Bodensee in Minecraft

Saturday, January 9th, 2016

I thought I would upload this model of Meerburg am Bodensee we made in Minecraft.

Steve and I build this one Christmas 2014/15

Meersburg am Bodensee in Minecraft
by neilwightman
on Sketchfab

Chambord in Minecraft

Wednesday, January 6th, 2016

I finally figured out how to get our minecraft builds up to SketchFab.

Steve, Lee and I created it over many many days.

Chambord in Minecraft
by neilwightman
on Sketchfab

Minecraft 1.8.2 – ArrayIndexOutOfBoundsException at LinuxDisplay.getAvailableDisplayModes()

Thursday, February 19th, 2015

I tried to play minecraft 1.8.2 this evening, only to have it crash on every startup with :

Time: 19/02/15 18:58
Description: Initializing game

java.lang.ExceptionInInitializerError
        at avf.ar(SourceFile:560)
        at avf.am(SourceFile:361)
        at avf.a(SourceFile:310)
        at net.minecraft.client.main.Main.main(SourceFile:124)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
        at org.lwjgl.opengl.LinuxDisplay.getAvailableDisplayModes(LinuxDisplay.java:951)
        at org.lwjgl.opengl.LinuxDisplay.init(LinuxDisplay.java:738)
        at org.lwjgl.opengl.Display.(Display.java:138)
        ... 4 more

The cause seems to be the move from lwjgl 2.9.1 to 2.9.4 with Minecraft 1.8.2.

After a lot of debugging and swearing from me, Steve found out that it was an issue with my dual monitors. Installing xrandr fixes lwjgl and then allows minecraft to start.

The issue comes from this line in the XRandR class which doesnt throw any exception when the command isnt available.  Parsing command line output from a child process in Java is really a bad idea.

Warning

/**
* Utility for working with the xrandr commmand-line utility. Assumes
* xrandr v1.2 or higher.
*/