Could not initialize class org.lwjgl.system.MemoryAccess

Started by tomera, December 26, 2016, 23:48:05

Previous topic - Next topic

spasi

@sf17k That indeed looks like a different error, but an exception is probably being swallowed. Could you run a simpler test please? E.g. a simple call to glfwInit() or the getting started sample.

@tomera I've been making progress with your issue, it is not trivial to fix. Will post as soon as a build that fixes it is available.

sf17k

Here it is simply calling glfwInit().

EDIT: The classpath section of the start script (generated by gradle):
CLASSPATH=$APP_HOME/lib/client.jar:$APP_HOME/lib/kotlin-stdlib-1.0.5.jar:$APP_HOME/lib/gdx-1.9.5.jar:$APP_HOME/lib/gdx-backend-lwjgl3-1.9.5.jar:$APP_HOME/lib/gdx-platform-1.9.5-natives-desktop.jar:$APP_HOME/lib/gdx-tools-1.9.5.jar:$APP_HOME/lib/kotlin-runtime-1.0.5.jar:$APP_HOME/lib/lwjgl-3.1.0.jar:$APP_HOME/lib/lwjgl-3.1.0-natives-windows.jar:$APP_HOME/lib/lwjgl-3.1.0-natives-linux.jar:$APP_HOME/lib/lwjgl-3.1.0-natives-macos.jar:$APP_HOME/lib/lwjgl-glfw-3.1.0.jar:$APP_HOME/lib/lwjgl-glfw-3.1.0-natives-windows.jar:$APP_HOME/lib/lwjgl-glfw-3.1.0-natives-linux.jar:$APP_HOME/lib/lwjgl-glfw-3.1.0-natives-macos.jar:$APP_HOME/lib/lwjgl-jemalloc-3.1.0.jar:$APP_HOME/lib/lwjgl-jemalloc-3.1.0-natives-windows.jar:$APP_HOME/lib/lwjgl-jemalloc-3.1.0-natives-linux.jar:$APP_HOME/lib/lwjgl-jemalloc-3.1.0-natives-macos.jar:$APP_HOME/lib/lwjgl-opengl-3.1.0.jar:$APP_HOME/lib/lwjgl-openal-3.1.0.jar:$APP_HOME/lib/lwjgl-openal-3.1.0-natives-windows.jar:$APP_HOME/lib/lwjgl-openal-3.1.0-natives-linux.jar:$APP_HOME/lib/lwjgl-openal-3.1.0-natives-macos.jar:$APP_HOME/lib/jlayer-1.0.1-gdx.jar:$APP_HOME/lib/jorbis-0.0.17.jar:$APP_HOME/lib/gdx-backend-lwjgl-1.9.5.jar:$APP_HOME/lib/gdx-backend-headless-1.9.5.jar:$APP_HOME/lib/gdx-freetype-1.9.5.jar:$APP_HOME/lib/gdx-freetype-platform-1.9.5-natives-desktop.jar:$APP_HOME/lib/lwjgl-2.9.2.jar:$APP_HOME/lib/lwjgl_util-2.9.2.jar:$APP_HOME/lib/lwjgl-platform-2.9.2-natives-windows.jar:$APP_HOME/lib/lwjgl-platform-2.9.2-natives-linux.jar:$APP_HOME/lib/lwjgl-platform-2.9.2-natives-osx.jar:$APP_HOME/lib/jinput-2.0.5.jar:$APP_HOME/lib/jutils-1.0.0.jar:$APP_HOME/lib/jinput-platform-2.0.5-natives-linux.jar:$APP_HOME/lib/jinput-platform-2.0.5-natives-windows.jar:$APP_HOME/lib/jinput-platform-2.0.5-natives-osx.jar

Reformatted for ease of reading:
client.jar
kotlin-stdlib-1.0.5.jar
gdx-1.9.5.jar
gdx-backend-lwjgl3-1.9.5.jar
gdx-platform-1.9.5-natives-desktop.jar
gdx-tools-1.9.5.jar
kotlin-runtime-1.0.5.jar
lwjgl-3.1.0.jar
lwjgl-3.1.0-natives-windows.jar
lwjgl-3.1.0-natives-linux.jar
lwjgl-3.1.0-natives-macos.jar
lwjgl-glfw-3.1.0.jar
lwjgl-glfw-3.1.0-natives-windows.jar
lwjgl-glfw-3.1.0-natives-linux.jar
lwjgl-glfw-3.1.0-natives-macos.jar
lwjgl-jemalloc-3.1.0.jar
lwjgl-jemalloc-3.1.0-natives-windows.jar
lwjgl-jemalloc-3.1.0-natives-linux.jar
lwjgl-jemalloc-3.1.0-natives-macos.jar
lwjgl-opengl-3.1.0.jar
lwjgl-openal-3.1.0.jar
lwjgl-openal-3.1.0-natives-windows.jar
lwjgl-openal-3.1.0-natives-linux.jar
lwjgl-openal-3.1.0-natives-macos.jar
jlayer-1.0.1-gdx.jar
jorbis-0.0.17.jar
gdx-backend-lwjgl-1.9.5.jar
gdx-backend-headless-1.9.5.jar
gdx-freetype-1.9.5.jar
gdx-freetype-platform-1.9.5-natives-desktop.jar
lwjgl-2.9.2.jar
lwjgl_util-2.9.2.jar
lwjgl-platform-2.9.2-natives-windows.jar
lwjgl-platform-2.9.2-natives-linux.jar
lwjgl-platform-2.9.2-natives-osx.jar
jinput-2.0.5.jar
jutils-1.0.0.jar
jinput-platform-2.0.5-natives-linux.jar
jinput-platform-2.0.5-natives-windows.jar
jinput-platform-2.0.5-natives-osx.jar

spasi

Oh, you're on 32-bit Linux. I should have noticed the "i386" in your previous post. I'm afraid the default LWJGL distribution does not come with 32-bit Linux binaries, see #162. It should be possible to build it on your own, though I haven't tried it lately. Let me know if you face any issues.

sf17k

Got it. Will probably have to build it eventually, since this will be a commercial game aiming at compatibility with a fairly wide range of systems. There's even Windows XP support! In the meantime, using a previous version of LWJGL should suffice.

spasi

@tomera

LWJGL 3.1.2 build #2 is now available. The dependencies on newer GLIBC versions have been eliminated in all shared libraries and it should work on your system. Could you please verify?