Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Gradle Kotlin daemon infinite loop until JVM max memory runs out

Abierto
#193 8 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
android, docker, gitlab, kotlin, react-native

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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!

Lenguaje dominante
Dockerfile
Estrellas
540
Forks
153
Merge medio
7 h 6 min
PR fusionados (30 d)
3

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de react-native-community/docker-android

Todos los issues de react-native-community/docker-android

Issues similares

Más issues de Build System

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.