Inconsistency detected by ld.so
See original GitHub issueDescribe the bug
I just wanted to run unciv (Gradle build, desktop:run
), but then this error occurred:
Inconsistency detected by ld.so: dl-lookup.c: 111: check_match: Assertion `version->filename == NULL || ! _dl_name_match_p (version->filename, map)' failed!
To Reproduce Steps to reproduce the behavior:
gradle desktop:run
Expected behavior Unciv starts
Additional context
The build log:
> Task :core:compileKotlin
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/GameSaver.kt: (160, 47): 'minBy((T) -> R): T?' is deprecated. Use minByOrNull instead.
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/GameStarter.kt: (158, 43): 'maxBy((T) -> R): T?' is deprecated. Use maxByOrNull instead.
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/automation/Automation.kt: (81, 82): 'maxBy((T) -> R): T?' is deprecated. Use maxByOrNull instead.
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/automation/Automation.kt: (86, 77): 'maxBy((T) -> R): T?' is deprecated. Use maxByOrNull instead.
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/automation/BattleHelper.kt: (140, 18): 'minBy((T) -> R): T?' is deprecated. Use minByOrNull instead.
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/automation/BattleHelper.kt: (146, 54): 'minBy((T) -> R): T?' is deprecated. Use minByOrNull instead.
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/automation/ConstructionAutomation.kt: (83, 54): 'minBy((T) -> R): T?' is deprecated. Use minByOrNull instead.
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/automation/ConstructionAutomation.kt: (87, 55): 'minBy((T) -> R): T?' is deprecated. Use minByOrNull instead.
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/automation/ConstructionAutomation.kt: (135, 69): 'minBy((T) -> R): T?' is deprecated. Use minByOrNull instead.
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/automation/ConstructionAutomation.kt: (149, 68): 'minBy((T) -> R): T?' is deprecated. Use minByOrNull instead.
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/automation/ConstructionAutomation.kt: (155, 60): 'minBy((T) -> R): T?' is deprecated. Use minByOrNull instead.
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/automation/ConstructionAutomation.kt: (177, 49): 'minBy((T) -> R): T?' is deprecated. Use minByOrNull instead.
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/automation/ConstructionAutomation.kt: (208, 18): 'maxBy((T) -> R): T?' is deprecated. Use maxByOrNull instead.
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/automation/ConstructionAutomation.kt: (219, 50): 'minBy((T) -> R): T?' is deprecated. Use minByOrNull instead.
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/automation/ConstructionAutomation.kt: (231, 49): 'minBy((T) -> R): T?' is deprecated. Use minByOrNull instead.
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/automation/ConstructionAutomation.kt: (249, 18): 'minBy((T) -> R): T?' is deprecated. Use minByOrNull instead.
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/automation/ConstructionAutomation.kt: (263, 18): 'minBy((T) -> R): T?' is deprecated. Use minByOrNull instead.
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/automation/ConstructionAutomation.kt: (274, 18): 'minBy((T) -> R): T?' is deprecated. Use minByOrNull instead.
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/automation/ConstructionAutomation.kt: (289, 18): 'minBy((T) -> R): T?' is deprecated. Use minByOrNull instead.
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/automation/ConstructionAutomation.kt: (298, 18): 'minBy((T) -> R): T?' is deprecated. Use minByOrNull instead.
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/automation/UnitAutomation.kt: (34, 22): 'maxBy((T) -> R): T?' is deprecated. Use maxByOrNull instead.
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/automation/UnitAutomation.kt: (212, 54): 'maxBy((Map.Entry<K, V>) -> R): Map.Entry<K, V>?' is deprecated. Use maxByOrNull instead.
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/automation/UnitAutomation.kt: (213, 54): 'maxBy((T) -> R): T?' is deprecated. Use maxByOrNull instead.
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/automation/UnitAutomation.kt: (232, 62): 'maxBy((T) -> R): T?' is deprecated. Use maxByOrNull instead.
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/automation/UnitAutomation.kt: (268, 41): 'minBy((T) -> R): T?' is deprecated. Use minByOrNull instead.
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/automation/UnitAutomation.kt: (326, 114): 'min(): T?' is deprecated. Use minOrNull instead.
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/automation/UnitAutomation.kt: (348, 30): 'minBy((T) -> R): T?' is deprecated. Use minByOrNull instead.
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/automation/UnitAutomation.kt: (404, 24): 'minBy((T) -> R): T?' is deprecated. Use minByOrNull instead.
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/automation/UnitAutomation.kt: (490, 18): 'maxBy((T) -> R): T?' is deprecated. Use maxByOrNull instead.
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/automation/WorkerAutomation.kt: (292, 44): 'minBy((T) -> R): T?' is deprecated. Use minByOrNull instead.
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/automation/WorkerAutomation.kt: (296, 45): 'minBy((T) -> R): T?' is deprecated. Use minByOrNull instead.
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/battle/BattleDamage.kt: (114, 50): Parameter 'tileToAttackFrom' is never used
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/city/CityConstructions.kt: (387, 64): 'minBy((T) -> R): T?' is deprecated. Use minByOrNull instead.
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/city/CityExpansionManager.kt: (76, 36): 'maxBy((T) -> R): T?' is deprecated. Use maxByOrNull instead.
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/civilization/CivilizationInfo.kt: (622, 34): Parameter 'otherCiv' is never used
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/civilization/PolicyManager.kt: (159, 78): Unnecessary non-null assertion (!!) on a non-null receiver of type String
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/civilization/QuestManager.kt: (199, 60): 'max(): T?' is deprecated. Use maxOrNull instead.
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/civilization/QuestManager.kt: (355, 13): Variable 'assignee' is never used
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/civilization/QuestManager.kt: (388, 17): 'when' expression on enum is recommended to be exhaustive, add 'Neutral', 'Irrational' branches or 'else' branch instead
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/civilization/QuestManager.kt: (392, 17): 'when' expression on enum is recommended to be exhaustive, add 'Cultured', 'Militaristic' branches or 'else' branch instead
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/civilization/QuestManager.kt: (398, 17): 'when' expression on enum is recommended to be exhaustive, add 'Cultured', 'Militaristic' branches or 'else' branch instead
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/civilization/QuestManager.kt: (414, 17): 'when' expression on enum is recommended to be exhaustive, add 'Friendly', 'Irrational' branches or 'else' branch instead
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/civilization/QuestManager.kt: (420, 17): 'when' expression on enum is recommended to be exhaustive, add 'Cultured', 'Militaristic' branches or 'else' branch instead
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/civilization/QuestManager.kt: (445, 48): Parameter 'challenger' is never used
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/civilization/diplomacy/DiplomacyManager.kt: (642, 13): 'when' expression on enum is recommended to be exhaustive, add 'Competitor', 'Neutral', 'Favorable' branches or 'else' branch instead
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/civilization/diplomacy/DiplomacyManager.kt: (663, 13): 'when' expression on enum is recommended to be exhaustive, add 'Competitor', 'Neutral', 'Favorable' branches or 'else' branch instead
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/map/TileInfo.kt: (63, 13): 'terrainFeature: String?' is deprecated. Since 3.13.7 - replaced by terrainFeatures
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/map/TileInfo.kt: (64, 33): 'terrainFeature: String?' is deprecated. Since 3.13.7 - replaced by terrainFeatures
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/map/TileInfo.kt: (65, 13): 'terrainFeature: String?' is deprecated. Since 3.13.7 - replaced by terrainFeatures
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/map/TileInfo.kt: (251, 26): 'building: String?' is deprecated. Since 3.13.3 - replaced with '[stats] from [resource] tiles in this city' unique in the building
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/map/TileInfo.kt: (251, 102): 'building: String?' is deprecated. Since 3.13.3 - replaced with '[stats] from [resource] tiles in this city' unique in the building
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/map/TileInfo.kt: (252, 84): 'building: String?' is deprecated. Since 3.13.3 - replaced with '[stats] from [resource] tiles in this city' unique in the building
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/map/TileInfo.kt: (253, 66): 'resourceBonusStats: Stats?' is deprecated. Since 3.13.3 - replaced with '[stats] from [resource] tiles in this city'
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/map/TileInfo.kt: (254, 48): 'resourceBonusStats: Stats?' is deprecated. Since 3.13.3 - replaced with '[stats] from [resource] tiles in this city'
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/map/TileMap.kt: (28, 100): 'max(): Float?' is deprecated. Use maxOrNull instead.
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/map/TileMap.kt: (31, 102): 'max(): Float?' is deprecated. Use maxOrNull instead.
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/map/UnitMovementAlgorithms.kt: (148, 62): 'minBy((Map.Entry<K, V>) -> R): Map.Entry<K, V>?' is deprecated. Use minByOrNull instead.
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/map/UnitMovementAlgorithms.kt: (195, 22): 'minBy((T) -> R): T?' is deprecated. Use minByOrNull instead.
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/map/mapgenerator/MapGenerator.kt: (173, 66): 'minBy((T) -> R): T?' is deprecated. Use minByOrNull instead.
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/map/mapgenerator/RiverGenerator.kt: (58, 99): 'min(): T?' is deprecated. Use minOrNull instead.
w: /home/<userName>/UnCiv/core/src/com/unciv/logic/map/mapgenerator/RiverGenerator.kt: (59, 22): 'minBy((Map.Entry<K, V>) -> R): Map.Entry<K, V>?' is deprecated. Use minByOrNull instead.
w: /home/<userName>/UnCiv/core/src/com/unciv/models/ruleset/Building.kt: (80, 87): 'building: String?' is deprecated. Since 3.13.3 - replaced with '[stats] from [resource] tiles in this city' unique in the building
w: /home/<userName>/UnCiv/core/src/com/unciv/models/ruleset/Building.kt: (83, 76): 'resourceBonusStats: Stats?' is deprecated. Since 3.13.3 - replaced with '[stats] from [resource] tiles in this city'
w: /home/<userName>/UnCiv/core/src/com/unciv/models/ruleset/Building.kt: (155, 13): 'resourceBonusStats: Stats?' is deprecated. Since 3.13.3 - replaced with '[stats] from [resource] tiles in this city'
w: /home/<userName>/UnCiv/core/src/com/unciv/models/ruleset/Building.kt: (156, 78): 'building: String?' is deprecated. Since 3.13.3 - replaced with '[stats] from [resource] tiles in this city' unique in the building
w: /home/<userName>/UnCiv/core/src/com/unciv/models/ruleset/Building.kt: (157, 61): 'resourceBonusStats: Stats?' is deprecated. Since 3.13.3 - replaced with '[stats] from [resource] tiles in this city'
w: /home/<userName>/UnCiv/core/src/com/unciv/models/ruleset/Building.kt: (409, 33): The corresponding parameter in the supertype 'IConstruction' is named 'construction'. This may cause problems when calling this function with named arguments.
w: /home/<userName>/UnCiv/core/src/com/unciv/models/ruleset/Building.kt: (460, 13): 'resourceBonusStats: Stats?' is deprecated. Since 3.13.3 - replaced with '[stats] from [resource] tiles in this city'
w: /home/<userName>/UnCiv/core/src/com/unciv/models/ruleset/Building.kt: (460, 43): 'resourceBonusStats: Stats?' is deprecated. Since 3.13.3 - replaced with '[stats] from [resource] tiles in this city'
w: /home/<userName>/UnCiv/core/src/com/unciv/models/ruleset/tile/TileResource.kt: (33, 23): 'appendln(): kotlin.text.StringBuilder /* = java.lang.StringBuilder */' is deprecated. Use appendLine instead. Note that the new method always appends the line feed character '\n' regardless of the system line separator.
w: /home/<userName>/UnCiv/core/src/com/unciv/models/ruleset/unit/BaseUnit.kt: (123, 36): The corresponding parameter in the supertype 'IConstruction' is named 'cityConstructions'. This may cause problems when calling this function with named arguments.
w: /home/<userName>/UnCiv/core/src/com/unciv/models/simulation/Simulation.kt: (70, 49): Parameter 'threadId' is never used
w: /home/<userName>/UnCiv/core/src/com/unciv/models/simulation/Simulation.kt: (75, 37): Parameter 'threadId' is never used
w: /home/<userName>/UnCiv/core/src/com/unciv/ui/map/TileGroupMap.kt: (23, 79): Unchecked cast: TileGroup to T
w: /home/<userName>/UnCiv/core/src/com/unciv/ui/map/TileGroupMap.kt: (23, 103): Unchecked cast: TileGroup to T
w: /home/<userName>/UnCiv/core/src/com/unciv/ui/mapeditor/GameParametersScreen.kt: (18, 1): Names of the parameter #1 conflict in the following members of supertypes: 'public abstract fun setRightSideButtonEnabled(boolean: Boolean): Unit defined in com.unciv.ui.newgamescreen.IPreviousScreen, public final fun setRightSideButtonEnabled(bool: Boolean): Unit defined in com.unciv.ui.pickerscreens.PickerScreen'. This may cause problems when calling this function with named arguments.
w: /home/<userName>/UnCiv/core/src/com/unciv/ui/newgamescreen/NewGameScreen.kt: (40, 1): Names of the parameter #1 conflict in the following members of supertypes: 'public abstract fun setRightSideButtonEnabled(boolean: Boolean): Unit defined in com.unciv.ui.newgamescreen.IPreviousScreen, public final fun setRightSideButtonEnabled(bool: Boolean): Unit defined in com.unciv.ui.pickerscreens.PickerScreen'. This may cause problems when calling this function with named arguments.
w: /home/<userName>/UnCiv/core/src/com/unciv/ui/pickerscreens/TechPickerScreen.kt: (113, 20): Name shadowed: columns
w: /home/<userName>/UnCiv/core/src/com/unciv/ui/utils/ImageGetter.kt: (127, 14): Name shadowed: i
w: /home/<userName>/UnCiv/core/src/com/unciv/ui/worldscreen/Minimap.kt: (37, 91): 'max(): Float?' is deprecated. Use maxOrNull instead.
w: /home/<userName>/UnCiv/core/src/com/unciv/ui/worldscreen/Minimap.kt: (38, 91): 'min(): Float?' is deprecated. Use minOrNull instead.
w: /home/<userName>/UnCiv/core/src/com/unciv/ui/worldscreen/NotificationsScroll.kt: (51, 34): 'color: Color?' is deprecated. As of 3.13.10 - replaced with icons
w: /home/<userName>/UnCiv/core/src/com/unciv/ui/worldscreen/NotificationsScroll.kt: (52, 51): 'color: Color?' is deprecated. As of 3.13.10 - replaced with icons
w: /home/<userName>/UnCiv/core/src/com/unciv/ui/worldscreen/WorldMapHolder.kt: (421, 18): Name shadowed: tileGroup
> Task :desktop:compileKotlin
w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
/home/<userName>/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.3.70/c706d9a12aa043400daacbb15b61ba662a1eb9a9/kotlin-stdlib-jdk8-1.3.70.jar (version 1.3)
/home/<userName>/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.3.70/95aee922bc2a0fff3b7bfa1b6503ff0afe38264a/kotlin-stdlib-jdk7-1.3.70.jar (version 1.3)
/home/<userName>/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-reflect/1.3.70/75a87c4141e55abbaf418b8495550ced8894045d/kotlin-reflect-1.3.70.jar (version 1.3)
/home/<userName>/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.4.30/d10d1e10f47006ee08162dde039e38ac487de4ac/kotlin-stdlib-1.4.30.jar (version 1.4)
/home/<userName>/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.4.30/bb9a3173350f55732416ee27956ea8f9b81f4dbb/kotlin-stdlib-common-1.4.30.jar (version 1.4)
w: Consider providing an explicit dependency on kotlin-reflect 1.4 to prevent strange errors
w: Some runtime JAR files in the classpath have an incompatible version. Consider removing them from the classpath
> Task :desktop:run
Packing textures - 68ms
Inconsistency detected by ld.so: dl-lookup.c: 111: check_match: Assertion `version->filename == NULL || ! _dl_name_match_p (version->filename, map)' failed!
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/7.0/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 35s
5 actionable tasks: 5 executed
uname -a
: Linux deb 5.10.0-5-amd64 #1 SMP Debian 5.10.24-1 (2021-03-19) x86_64 GNU/Linux
java --version
:
openjdk 16 2021-03-16
OpenJDK Runtime Environment (build 16+36-Debian-4)
OpenJDK 64-Bit Server VM (build 16+36-Debian-4, mixed mode, sharing)
gradle--version
:
------------------------------------------------------------
Gradle 7.0
------------------------------------------------------------
Build time: 2021-04-09 22:27:31 UTC
Revision: d5661e3f0e07a8caff705f1badf79fb5df8022c4
Kotlin: 1.4.31
Groovy: 3.0.7
Ant: Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM: 16 (Debian 16+36-Debian-4)
OS: Linux 5.10.0-5-amd64 amd64
I can reproduce it with the gradlewrapper, too. Even the downloaded Unciv.jar fails with the same error. (From the release section)
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
debugging ld, "Inconsistency detected by ld.so" - Stack Overflow
This is a bug in glibc, or a corruption in one of your shared libraries. The glibc code reads: while (1) { ElfW(Vernaux)...
Read more >Inconsistency detected by ld.so: dl-version.c: 224 ... - GitHub
Describe the bug use onnxruntime-gpu inference my own onnx model. It works well when I use data in cpu device. But there is...
Read more >[SOLVED] How to fix inconsistency detected by ld.so
Hi! with the latest upgrade to slackware64-current, I have some crashes using Konqueror and kwebkitpart on websites I could visit without ...
Read more >Inconsistency detected by ld.so during Apache Reload/restart
Hello, Sometimes in the morning when some process restart apache (after log rotation or update) we have an error and Apache crash.
Read more >Inconsistency detected by ld.so : r/pop_os - Reddit
I've tried to run couple of commands in the terminal and I started getting this error, one of the programs was neofetch, but...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I can confirm Unciv runs under
(AdoptOpenJDK)(build 1.8.0_282-b08)
- just untar, point JDK_HOME to the folder containing bin/java and call that java binary directly.I am currently investigating a quote I found: “I can also use the libjawt.so from adoptOpenJDK and run my SWT/AWT ui without any issues” - implying adoptOpenJDK 11.Pulling libjawt.so from the adoptOpenJDK 11 tarball and forcibly replacing the ubuntu-provided one in /usr/lib/jvm/java-11-openjdk-amd64/lib does indeed work, now does Linux hat a libpath/masking mechanism to avoid that kludge…? Nope, can’t find a way.My final guess: This is an ubuntu issue, as replacing one single 8k binary within the system JRE with one from an independent build of the exact same major openJDK build fixes this. Any of the adoptOpenJDK LTE openJDK/openJRE packages (8,11,16) are fine. (openJDK 16 doesn’t even show the “Illegal reflective access” warnings - a completely separate issue, not caused by Unciv in any way either.)
It worked with the bundled JRE (From the releases section)