-
Notifications
You must be signed in to change notification settings - Fork 144
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
Gradle Kotlin daemon infinite loop until JVM max memory runs out #193
Comments
Can you please provide the debug/stacktrace log? |
@cortinico I've updated the issue with the log files. Sorry I took longer cleaning the security info from it, I did it the hard way. Going to write a Python script later to make it easier... |
@cortinico Could you review the Gradle log sometime this week for any obvious issues? |
Have you tried to run without the Gradle daemon (i.e. invoke the build with |
Unfortunately it appears to fail the same way, this time at 7 min 36 secs (due to no --info or --debug flag): |
Can you re-run with |
I'm starting to think using Gradle at all in a GitLab CI/CD pipeline is just cursed. First of all, very annoying that the Gradle docs you linked say
I have this in my if (hasProperty('buildScan')) {
buildScan {
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
termsOfServiceAgree = 'yes'
}
} The only thing that has been consistent across all of my attempts (across many docker image versions as well) is that these have all used Gradle version This is my local Gradle which works 100% of the time with all commands:
At this point I don't even think it is possible to use the docker image. I just don't understand what is going on. |
Yeah it seems specific to your CI setup at this point. I'm unsure how to help you at this point. Are you able to ssh inside the CI and run commands from there? That can help to debug |
Hello, thank you react native community for supporting this Docker image!
Issue Environment:
GitLab CI/CD Pipeline Job
reactnativecommunity/react-native-android:latest
(also tried6.0
and5.4
)7.5.1
31
-Xmx16g -Xms2g \ -XX\:MetaspaceSize\=512m -XX\:MaxMetaspaceSize\=1g \ -XX\:NewSize\=256m -XX\:MaxNewSize\=3g \ -Dfile.encoding\=UTF-8
node_modules
is downloaded from previous job which contains the necessary react native modulesIssue Description:
When attempting to run
./gradlew bundleRelease
the Gradle daemon starts as expected but on the first task:react-native-gradle-plugin:compileKotlin
causes an infinite loop with the Gradle kotlin daemon. When running with no options, the daemon runs out of memory (15.7GiB) and closes at about 15 minutes of running. With info or debug/stacktrace option, daemon runs out of memory and closes at about 45 minutes of running.Issue Reproduction:
I cannot reproduce this issue locally, only in the pipeline pod which uses this Docker image. Please look through the debug/stacktrace log dump below.
Issue Logs:
job.log
I am grateful for any expert to provide a diagnosis on what could be causing this!
The text was updated successfully, but these errors were encountered: