Hello Guest

Could not initialize class org.lwjgl.system.MemoryAccess

  • 20 Replies
  • 13441 Views
Re: Could not initialize class org.lwjgl.system.MemoryAccess
« Reply #15 on: January 04, 2017, 18:46:12 »
Results attached.

*

Offline spasi

  • *****
  • 2261
    • WebHotelier
Re: Could not initialize class org.lwjgl.system.MemoryAccess
« Reply #16 on: January 04, 2017, 19:38:05 »
@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.

Re: Could not initialize class org.lwjgl.system.MemoryAccess
« Reply #17 on: January 05, 2017, 13:55:20 »
Here it is simply calling glfwInit().

EDIT: The classpath section of the start script (generated by gradle):
Code: [Select]
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.jarReformatted for ease of reading:
Code: [Select]
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
« Last Edit: January 05, 2017, 14:01:16 by sf17k »

*

Offline spasi

  • *****
  • 2261
    • WebHotelier
Re: Could not initialize class org.lwjgl.system.MemoryAccess
« Reply #18 on: January 05, 2017, 14:39:12 »
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.

Re: Could not initialize class org.lwjgl.system.MemoryAccess
« Reply #19 on: January 05, 2017, 21:31:05 »
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.

*

Offline spasi

  • *****
  • 2261
    • WebHotelier
Re: Could not initialize class org.lwjgl.system.MemoryAccess
« Reply #20 on: January 06, 2017, 18:11:44 »
@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?