Gradle Kotlin daemon infinite loop until JVM max memory runs out

Aperta
#193 8 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
android, docker, gitlab, kotlin, react-native

Direzione di ricerca

Start with the linked job.log and the GitLab CI/CD pipeline environment for the react-nativecommunity/react-native-android image. Focus on the ./gradlew bundleRelease entry point and the :react-native-gradle-plugin:compileKotlin task, comparing runs with and without diagnostic options. Done means identifying a reproducible cause or a concrete fix for the Kotlin daemon loop and memory exhaustion.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Hello, thank you react native community for supporting this Docker image!

Issue Environment:

  • Runtime: GitLab CI/CD Pipeline Job
  • Image: reactnativecommunity/react-native-android:latest (also tried 6.0 and 5.4)
  • Gradle: 7.5.1
  • Android SDK Level: 31
  • jvmargs: -Xmx16g -Xms2g \ -XX\:MetaspaceSize\=512m -XX\:MaxMetaspaceSize\=1g \ -XX\:NewSize\=256m -XX\:MaxNewSize\=3g \ -Dfile.encoding\=UTF-8
  • Dependencies: node_modules is downloaded from previous job which contains the necessary react native modules

Issue 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!

Lingua principale
Dockerfile
Stelle
541
Fork
152
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di react-native-community/docker-android

Tutte le issue di react-native-community/docker-android

Issue simili

Altre issue su Build System

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.