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

Cannot Build #11453

Closed
1 task done
mmalikn opened this issue Apr 11, 2024 · 4 comments
Closed
1 task done

Cannot Build #11453

mmalikn opened this issue Apr 11, 2024 · 4 comments
Labels

Comments

@mmalikn
Copy link

mmalikn commented Apr 11, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Game Version

latest

Describe the bug

Has probably to do with my environment, but I hope to make it work.

Running the command ./gradlew desktop:runcauses the following response:


Starting a Gradle Daemon (subsequent builds will be faster)

FAILURE: Build failed with an exception.

* What went wrong:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.For more details on the daemon, please refer to https://docs.gradle.org/8.2/userguide/gradle_daemon.html in the Gradle documentation.
Process command line: /usr/lib/jvm/java-17-openjdk/bin/java -XX:MaxMetaspaceSize=512m --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED -Xmx4096m -Dfile.encoding=UTF-8 -Duser.country=DE -Duser.language=de -Duser.variant -cp /home/malik/.gradle/wrapper/dists/gradle-8.2-bin/bbg7u40eoinfdyxsxr3z4i7ta/gradle-8.2/lib/gradle-launcher-8.2.jar -javaagent:/home/malik/.gradle/wrapper/dists/gradle-8.2-bin/bbg7u40eoinfdyxsxr3z4i7ta/gradle-8.2/lib/agents/gradle-instrumentation-agent-8.2.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 8.2
Please read the following process output to find out more:
-----------------------
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x000000000002b1c0, pid=19482, tid=19483
#
# JRE version: OpenJDK Runtime Environment (17.0.10+7) (build 17.0.10+7-alpine-r0)
# Java VM: OpenJDK 64-Bit Server VM (17.0.10+7-alpine-r0, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
# Problematic frame:
# C  [libnative-platform-file-events.so+0x2eb8c]  _init+0x39e4
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/malik/.gradle/daemon/8.2/hs_err_pid19482.log
#
# If you would like to submit a bug report, please visit:
#   https://gitlab.alpinelinux.org/alpine/aports/issues
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#


* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

I am running PostmarketOS on an 64 Bit Tablet. Maybe it's missing some GNU tools I don't have yet installed because PostmarketOS like Alpine Linux comes with Busybox on default instead.

Steps to Reproduce

  1. Go to the project directory with the terminal
  2. Run `./gradlew desktop:run

Screenshots

No response

Link to save file

No response

Operating System

Linux

Additional Information

No response

@mmalikn mmalikn added the bug label Apr 11, 2024
@yairm210
Copy link
Owner

That's... An error in the JRE, from native code, which is definitely out of scope for us.

So I would definitely download the latest version, but if that still happens, put a bug report in OpenJDK

@yairm210
Copy link
Owner

gradle/gradle#24875

Apparently a Gradle bug which has since been fixed... but in Gradle 8.8 RC, which means it's not publicly available :/
So you can update the gradle locally on your device to 8.8 and it should work, but we can't yet introduce this to Unciv, in due time with the upgrades etc this shall pass

@yairm210
Copy link
Owner

Closing as unactionable
But an interesting trek all the same

@yairm210 yairm210 closed this as not planned Won't fix, can't repro, duplicate, stale Apr 11, 2024
@mmalikn
Copy link
Author

mmalikn commented Apr 12, 2024

Ok thanks.
I might try to build and install Gradle manually. Especially because I want to use openjdk17 since the alpine package needs version 8 or 21. But I already had the experience on Gentoo, that I wasn't able to build Unciv with version 21.

With what command would I than build unciv? If the manually installed gradle would be in path I could do something like gradle . desktop:run?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants