- Змінено
Which version of Java for Spine Skeleon Viewer (crash)
I'm using Arch Linux 64bit. I've tried installing Java ver. 8, 9 and 10.
I keep getting the following error upon running, "java -jar skeletonViewer.jar"
Using nvidia drivers (Quadro 600 card) + xorg-server
Exception in thread "LWJGL Application" java.lang.ExceptionInInitializerError
at com.badlogic.gdx.backends.lwjgl.LwjglGraphics.setVSync(LwjglGraphics.java:591)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:124)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
at org.lwjgl.opengl.LinuxDisplay.getAvailableDisplayModes(LinuxDisplay.java:954)
at org.lwjgl.opengl.LinuxDisplay.init(LinuxDisplay.java:738)
at org.lwjgl.opengl.Display.<clinit>(Display.java:138)
... 2 more
It appears your graphics driver is not reporting any displays to the runtime. Do you have OpenGL drivers installed as well?
Excuse me if I've misunderstood, but yes, I have the propriety nVidia drivers installed, which I suppose yes, do include OpenGL drivers.
All other applications the utilize the GPU work fine, including WebGL and native 3D games, so I think it's unlikely got anything to do with my drivers.
For whatever it's worth, I get the same error when I try and run the trial version of Spine with it's bundled JRE.
The error is slightly different, but it still might be related to this:
LWJGL fails in certain display configurations on Linux · #94 · EsotericSoftware/spine-editor
It's not clear what would cause LWJGL/OpenGL to not see any available modes, making it difficult to reproduce.