Skip to content

OOM exception when running the buildHealth task with version 3.5.0 #1604

@akoufa

Description

@akoufa

Hello and thanks for the great work. I found a possible issue after updating to the latest version of the plugin.

Plugin version
3.5.0
Gradle version
9.2.1

JDK version
21

(Optional) Kotlin and Kotlin Gradle Plugin (KGP) version
kotlin("jvm") version "2.2.21"

Describe the bug
OOM exception when running the buildHealth task after updating to the lastest version 3.5.0 of the plugin and running ./gradlew clean buildHealth . The task that fails then is: Task :synthesizeDependenciesTest . Reverting to version 3.4.1 it works. I also check that after setting the Heap size to org.gradle.jvmargs=-Xmx1024M it seems to work. Nevertheless I would not expect to have to adapt the heap size after a version upgrade.

Additional context

Error while receiving file changes net.rubygrapefruit.platform.NativeException: Caught java.lang.OutOfMemoryError with message: Java heap space         at org.gradle.fileevents.internal.AbstractNativeFileEventFunctions$NativeFileWatcher.executeRunLoop0(Native Method)   
ERROR] [system.err] java.lang.OutOfMemoryError: Java heap space 2025-11-20T11:08:16.122+0200 [DEBUG] [sun.rmi.transport.tcp] RMI TCP Connection(13)-127.0.0.1: (port 59703) connection closed 2025-11-20T11:08:16.123+0200 [ERROR] [system.err]       at org.gradle.fileevents.internal.AbstractNativeFileEventFunctions$NativeFileWatcher.executeRunLoop0(Native Method) 2025-11-20T11:08:16.122+0200 [DEBUG] [sun.rmi.transport.tcp] RMI Scheduler(0): close connection, socket: Socket[addr=localhost/127.0.0.1,port=17615,localport=60340] 2025-11-20T11:08:16.122+0200 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'com.autonomousapps.tasks.SynthesizeDependenciesTask$SynthesizeDependenciesWorkAction' 2025-11-20T11:08:16.123+0200 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'com.autonomousapps.tasks.SynthesizeDependenciesTask$SynthesizeDependenciesWorkAction' completed 2025-11-20T11:08:16.123+0200 [ERROR] [system.err]       at org.gradle.fileevents.internal.AbstractNativeFileEventFunctions$NativeFileWatcher.executeRunLoop(AbstractNativeFileEventFunctions.java:32)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions