Skip to content

Indirect issue with libGDX in Ubuntu/Linux with OpenJDK 11

Hello.

This isn't an issue from BuildGDX itself, but from libGDX what it was built.

The launcher works, but when i try to start any game with Polymost or PolyGDX, it crash (with Classic render seems to work).

In console i can see the error:

Inconsistency detected by ld.so: dl-lookup.c: 106: check_match: Assertion `version->filename == NULL || ! _dl_name_match_p (version->filename, map)' failed!

Looking a little bit, similar things happens to other projects. It seems that libGDX is using LWJGL2 by default, and OpenJDK 11 has issues with it. There is issues related here, a note in the Hiero libGDX package, a thread in stackoverflow and a Ubuntu Bug thread.

It seems there is two options:

  • Change OpenJDK 11 in the machine for OpenJDK 8 or Adopt OpenJDK 11. The issue here is OpenJDK 11 is the default one in these systems, and downgrading should be only a temporary solution. Maybe at some point OpenJDK 11 fixes the issue, i don't know, but it's seems a while since this happens. EDIT: Just tested OpenJDK 8, 11 (Of course), 17 and 18. Only OpenJDK 8 works, everything else throws the error. Adopt OpenJDK is not available directly in repositories and it's not as easiest to install like before, so i didn't try yet.
  • Change in BuildGDX to compile with lwjgl3 instead using lwjgl. lwjgl seems to be still the default, there is a thread in libGDX issue tracker pointing that lwjgl3 should be the default, but can be forced. Maybe there should be made some changes to the code to make it work, but with some luck there only with be changing the imports and some object declaration from lwjgl to lwjgl3.

I didn't try yet the workaround, but i will be updating this if something is different.

Thanks!

Edited by Lukas ThyWalls
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information