Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistency detected by ld.so: dl-lookup.c: 111 #1887

Closed
HiranChaudhuri opened this issue Dec 31, 2022 · 11 comments · Fixed by #1902
Closed

Inconsistency detected by ld.so: dl-lookup.c: 111 #1887

HiranChaudhuri opened this issue Dec 31, 2022 · 11 comments · Fixed by #1902
Labels
duplicate This issue is a duplicate of a previously reported issue.
Milestone

Comments

@HiranChaudhuri
Copy link

I just downloaded the latest release 3.5.2-stable, unpacked the zip and ran it on my Ubuntu 20.04 system.
On startup a window appeared asking to to choose the test, and I picked TestJoystick.
Then a window asking for display settings appeared, in which I just clicked Continue.
After that I am back to the console with the below output.

$ ./jMonkeyEngine3.jar 
Dec 31, 2022 11:54:57 AM com.jme3.system.JmeDesktopSystem initialize
INFO: Running on jMonkeyEngine 3.5.2-stable
 * Branch: HEAD
 * Git Hash: 8ab3d24
 * Build Date: 2022-04-21
Inconsistency detected by ld.so: dl-lookup.c: 111: check_match: Assertion `version->filename == NULL || ! _dl_name_match_p (version->filename, map)' failed!
$

Is this an issue with my installation, or is it with JME? What could I look at to get further information?

@pspeed42
Copy link
Contributor

You should ask trouble shooting questions like this on the JME forum:
https://hub.jmonkeyengine.org/

More people will see it there. You can also include more information, like did you run any of the other tests or did you just randomly start with TestJoyStick and so that's the one you say is broken?

@MeFisto94
Copy link
Member

This definitely is an issue, but not with the joysticks only, it's because lwjgl2 doesn't play nicely with your openJDK version.
#1247

@pspeed42 This is the lwjgl2 problem I was talking about, do you have an updated version of lwjgl2 that we could ship?

@Ali-RS
Copy link
Member

Ali-RS commented Jan 4, 2023

@HiranChaudhuri as a quick solution, you may use the Adoptium OpenJDK

@pspeed42 This is the lwjgl2 problem I was talking about, do you have an updated version of lwjgl2 that we could ship?

@MeFisto94 please see https://hub.jmonkeyengine.org/t/ubuntu-22-nb14-jme-3-5-2-stable-error/45724/3?u=ali_rs

@Ali-RS
Copy link
Member

Ali-RS commented Jan 5, 2023

@HiranChaudhuri which java version are you using?
I am trying to reproduce it on my Linux Mint. I tested with Oracle JDK 11.0.5 but I could not reproduce it.

Edit:
Ok, never mind. I could reproduce it with ubuntu jre 11.0.9.1 and confirmed that using lwjgl 2.9.4 build from @MeFisto94 the issue goes away.

@HiranChaudhuri
Copy link
Author

You should ask trouble shooting questions like this on the JME forum: https://hub.jmonkeyengine.org/

More people will see it there. You can also include more information, like did you run any of the other tests or did you just randomly start with TestJoyStick and so that's the one you say is broken?

I started and picked the TestJoyStick (since I was interested in joystick handling) and thus I claim that one does not work.
Now I tried TestFog, but it fails as well. The suspect that Joystick is not the only one is correct.

@HiranChaudhuri
Copy link
Author

This definitely is an issue, but not with the joysticks only, it's because lwjgl2 doesn't play nicely with your openJDK version. #1247

@pspeed42 This is the lwjgl2 problem I was talking about, do you have an updated version of lwjgl2 that we could ship?

That may be. To be honest, i just launched the process like
./jMonkeyEngine3.jar
and thus did not choose any JDK, and did not even think of that. So now I am trying to find out what exactly is running under the hood...

Apparently my command line got translated into this (this is found on the process list):
java -Djava.library.path=/usr/lib/jni:/usr/lib/alpha-linux-gnu/jni:/usr/lib/x86_64-linux-gnu/jni:/usr/lib/aarch64-linux-gnu/jni:/usr/lib/x86_64-kfreebsd-gnu/jni:/usr/lib/powerpc64-linux-gnu/jni:/usr/lib/powerpc64le-linux-gnu/jni:/usr/lib/s390x-linux-gnu/jni:/usr/lib/sparc64-linux-gnu/jni -jar /.../jMonkeyEngine3.jar

But when I investigate
/proc/<pid>/exe -> /usr/lib/jvm/java-16-openjdk-amd64/bin/java

So it seems I was trying to run on OpenJDK 16, likely the same I get when executing java directly:

$ java --version
openjdk 16.0.1 2021-04-20
OpenJDK Runtime Environment (build 16.0.1+9-Ubuntu-120.04)
OpenJDK 64-Bit Server VM (build 16.0.1+9-Ubuntu-120.04, mixed mode, sharing)
$

As I also have OpenJDK 11 installed I tried running 
`/usr/lib/jvm/java-11-openjdk-amd64/bin/java -jar jMonkeyEngine3.jar`
but the results were the same.
Now I installed OpenJDK 17 (the latest available on the Ubuntu 20 repos) and am still getting the same results.

@HiranChaudhuri
Copy link
Author

I could reproduce it with ubuntu jre 11.0.9.1 and confirmed that using lwjgl 2.9.4 build from @MeFisto94 the issue goes away.

So how can I fix this? How would I install this lwjgl, or should it be part of the jMonkeyEngine3 package that I downloaded? After all it contains liblwjgl64.so and libopenal64.so. But I am not sure whether they would get used at runtime.

@Ali-RS
Copy link
Member

Ali-RS commented Jan 7, 2023

I am working on this issue and hope we fix it in the next release. But if you want to give it a try, download the liblwjgl64.so.zip and extract the zip file, and copy the liblwjgl64.so into the lwjgl-platform-natives-linux.jar file that is inside lib directory. Note a jar file is just a zip file and you can open it with a zip archive editor.

Please let me know if it fixed the issue.

@HiranChaudhuri
Copy link
Author

HiranChaudhuri commented Jan 7, 2023

download the liblwjgl64.so.zip and extract the zip file, and copy the liblwjgl64.so into the lwjgl-platform-natives-linux.jar file that is inside lib directory.

I did that, the result it is a big difference. jMonkeyEngine.jar no longer crashes. I can start the fog example and move the mouse to look around, and in case of the Joystick example it also does not crash but display a windows saying that no joystick was found.
Despite I believe I have one attached. But this may be a different issue.

@Ali-RS
Copy link
Member

Ali-RS commented Jan 7, 2023

Thanks for trying it out and reporting the result.

but display a windows saying that no joystick was found.
Despite I believe I have one attached. But this may be a different issue.

Yes, I believe that is a different issue.

@Ali-RS Ali-RS changed the title TestJoystick crashes on startup? Inconsistency detected by ld.so: dl-lookup.c: 111 Jan 7, 2023
@Ali-RS Ali-RS added the duplicate This issue is a duplicate of a previously reported issue. label Jan 7, 2023
@Ali-RS
Copy link
Member

Ali-RS commented Jan 11, 2023

Fixed in 3e1b823

@Ali-RS Ali-RS closed this as completed Jan 11, 2023
@Ali-RS Ali-RS added this to the v3.6.0 milestone Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue is a duplicate of a previously reported issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants