简体   繁体   English

如何解决“检测到不一致:dl-lookup.c:111”(Java 结果 127)错误?

[英]How do I troubleshoot "Inconsistency detected: dl-lookup.c: 111" (Java Result 127) error?

I'm currently trying to build a Java project using Maven for a game I'm working on.我目前正在尝试使用 Maven 为我正在开发的游戏构建一个 Java 项目。

I think I'm using Java 8 OpenJDK (1.8.0_211) on a Ubuntu 18.04 LTS distribution.我想我在 Ubuntu 18.04 LTS 发行版上使用 Java 8 OpenJDK (1.8.0_211)。

The related question debugging ld, "Inconsistency detected by ld.so" was not able to help me.相关问题调试 ld,“ld.so 检测到不一致”无法帮助我。 The Java Error Code 127 suggests that a resource cannot be found on my CLASSPATH (?) Java 错误代码 127 表明在我的CLASSPATH (?)

The error, formatted for readability:为便于阅读而格式化的错误:

[java] Inconsistency detected by ld.so: dl-lookup.c: 111: check_match: 
    Assertion `version->filename == NULL || 
    ! _dl_name_match_p (version->filename, map)' failed!
[java] Java Result: 127

I'm currently trying to build a Java project using Maven for a game I'm working on.我目前正在尝试使用Maven为我正在开发的游戏构建Java项目。

A recent push to our repository by another user has broken the build for me, but not other users.另一个用户最近推送到我们的存储库已破坏了我的构建,但其他用户则没有。

No changes have been made the to Pom.xml in recent builds and my Java environment has remained consistent.在最近的构建中,未对Pom.xml进行任何更改,并且我的Java环境保持一致。

I'm using Java 8 OpenJDK (1.8.0_211) on a Ubuntu 18.04 LTS distribution.我在Ubuntu 18.04 LTS发行版上使用Java 8 OpenJDK(1.8.0_211)。

The maven repository is able to compile successfully, but when I try to execute the code using our predetermined (mvn integration-test -Pdesktop) build I receive a Build Success, some errors and no application launch. Maven存储库能够成功编译,但是当我尝试使用预定的(mvn Integration-test -Pdesktop)构建执行代码时,会收到“构建成功”,一些错误并且没有启动应用程序。

I've looked on Linux forums, but have been unable to find similar cases.我看过Linux论坛,但是找不到类似的案例。

Normal Maven Debug options have not provided any initial indication of the problem that I recognise.普通的Maven调试选项尚未提供我认识到的问题的任何初始指示。

I've looked at several Stack Overflow questions including debugging ld, "Inconsistency detected by ld.so" but am unsure where to begin with the comments suggested approaches and if this is viable for my case.我看过几个Stack Overflow问题,包括调试ld,“ ld.so检测到不一致”,但不确定从何处开始以注释建议的方法开始,以及这是否适合我的情况。

I've looked at the Java Error Code 127, which suggests that a resource cannot be found on my CLASSPATH.我看过Java错误代码127,它表明在我的CLASSPATH上找不到资源。 Is this correct and how do I identify the missing resource on what seems to be a successful build?这是正确的吗?如何确定似乎成功的构建中缺少的资源?

The error is as follows.错误如下。

 [java] Inconsistency detected by ld.so: dl-lookup.c: 111: check_match: Assertion `version->filename == NULL || ! _dl_name_match_p (version->filename, map)' failed!
[java] Java Result: 127

On success, I'm expecting the build to report a success and to launch the Game.成功之后,我希望该版本能够报告成功并启动游戏。 On failure, I had expected the build to report a failure, but instead I'm seeing a build success without the launch of the LibGDX application.在失败时,我原以为构建会报告失败,但是相反,我看到在没有启动LibGDX应用程序的情况下构建成功。

The build is currently running for users on other platforms.该构建当前正在为其他平台上的用户运行。

Switch libGDX from lwjgl to lwjgl3将 libGDX 从lwjgl切换到lwjgl3

I had the same issue as you with OpenJDK 11 / Java 11 ( openjdk 11.0.10 2021-01-19 ).我在使用 OpenJDK 11 / Java 11 ( openjdk 11.0.10 2021-01-19 ) 时遇到了与您相同的问题。 What fixed it was switching to lwjgl3 everywhere, which incidentally also fixed some other issues for me !修复它的原因是到处都切换到lwjgl3顺便说一句,它还为我解决了其他一些问题 (whole screen going black when I exit the app, mouse cursor capture only partially working, etc) (退出应用程序时整个屏幕变黑,鼠标光标捕获仅部分工作等)

In build.gradle change the first into the second block:build.gradle将第一个块更改为第二个块:

api "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion"
api "com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion"

Also adjust your imports (eg in the DesktopLauncher class):还要调整您的导入(例如在DesktopLauncher类中):

import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;
import com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application;
import com.badlogic.gdx.backends.lwjgl3.Lwjgl3ApplicationConfiguration;

lwjgl3 should be almost entirely compatible, in my case I just needed to update the config: lwjgl3应该几乎完全兼容,就我而言,我只需要更新配置:

LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
config.samples = 8;
config.height = 720;
config.width = 1280;
config.vSyncEnabled = true;
new LwjglApplication(new RangeAnxietyGame(), config);
Lwjgl3ApplicationConfiguration config = new Lwjgl3ApplicationConfiguration();
config.setBackBufferConfig(8, 8, 8, 8, 16, 0, 8);
config.setWindowedMode(1280, 720);
config.useVsync(true);
new Lwjgl3Application(new RangeAnxietyGame(), config);

I'm currently trying to build a Java project using Maven for a game I'm working on.我目前正在尝试使用Maven为我正在开发的游戏构建Java项目。

A recent push to our repository by another user has broken the build for me, but not other users.另一个用户最近推送到我们的存储库已破坏了我的构建,但其他用户则没有。

No changes have been made the to Pom.xml in recent builds and my Java environment has remained consistent.在最近的构建中,未对Pom.xml进行任何更改,并且我的Java环境保持一致。

I'm using Java 8 OpenJDK (1.8.0_211) on a Ubuntu 18.04 LTS distribution.我在Ubuntu 18.04 LTS发行版上使用Java 8 OpenJDK(1.8.0_211)。

The maven repository is able to compile successfully, but when I try to execute the code using our predetermined (mvn integration-test -Pdesktop) build I receive a Build Success, some errors and no application launch. Maven存储库能够成功编译,但是当我尝试使用预定的(mvn Integration-test -Pdesktop)构建执行代码时,会收到“构建成功”,一些错误并且没有启动应用程序。

I've looked on Linux forums, but have been unable to find similar cases.我看过Linux论坛,但是找不到类似的案例。

Normal Maven Debug options have not provided any initial indication of the problem that I recognise.普通的Maven调试选项尚未提供我认识到的问题的任何初始指示。

I've looked at several Stack Overflow questions including debugging ld, "Inconsistency detected by ld.so" but am unsure where to begin with the comments suggested approaches and if this is viable for my case.我看过几个Stack Overflow问题,包括调试ld,“ ld.so检测到不一致”,但不确定从何处开始以注释建议的方法开始,以及这是否适合我的情况。

I've looked at the Java Error Code 127, which suggests that a resource cannot be found on my CLASSPATH.我看过Java错误代码127,它表明在我的CLASSPATH上找不到资源。 Is this correct and how do I identify the missing resource on what seems to be a successful build?这是正确的吗?如何确定似乎成功的构建中缺少的资源?

The error is as follows.错误如下。

 [java] Inconsistency detected by ld.so: dl-lookup.c: 111: check_match: Assertion `version->filename == NULL || ! _dl_name_match_p (version->filename, map)' failed!
[java] Java Result: 127

On success, I'm expecting the build to report a success and to launch the Game.成功之后,我希望该版本能够报告成功并启动游戏。 On failure, I had expected the build to report a failure, but instead I'm seeing a build success without the launch of the LibGDX application.在失败时,我原以为构建会报告失败,但是相反,我看到在没有启动LibGDX应用程序的情况下构建成功。

The build is currently running for users on other platforms.该构建当前正在为其他平台上的用户运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何解决NetBeans中的wsimport错误? - How do I troubleshoot this wsimport error in NetBeans? 如何将 Java integer 的前三个字符替换为 111? - How do I replace the first three characters of a Java integer by 111? 尝试从 Java 中的全名获取首字母时,如何解决 OutOfBoundsException 错误? - How do I troubleshoot an OutOfBoundsException error when trying to get initials from a full name in Java? 如何替换Java中检测到的字符串 - how do I to replace a detected String in Java 如何解决ANT“ exec”命令行错误消息? - How do I troubleshoot an ANT “exec” command line error message? 如何解决 Informatica Java Transformation 编译错误? - How to troubleshoot Informatica Java Transformation compilation error? 如何解决此 MQ 的问题 - How do I troubleshoot problems with this MQ 不一致检测到无效的 View Holder 适配器错误 - Inconsistency Detected Invalid View Holder Adapter Error 添加notifyDataSetChanged()后检测到不一致错误 - Inconsistency detected error after adding notifyDataSetChanged() Java / JDBC / MySQL:如何解决为什么DriverManager.getConnection()返回NULL? - Java/JDBC/MySQL: How do I troubleshoot why DriverManager.getConnection() is returning NULL?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM