Hi all, I'm getting `org.gradle.api.tasks.TaskExec...
# gradle
p
Hi all, I'm getting
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':compileProductionExecutableKotlinJs'
error while compiling my project. I tried deleting build and gradle folder and rebuilding but it didn't fix the issue. Attached in the thread is a snippet of the complete stack trace. Has anyone experienced something similar? Thanks in advance
t
Could you share your build log with
--info
level output?
p
Got this after running with --info:
Copy code
Task :compileProductionExecutableKotlinJs
Custom actions are attached to task ':compileProductionExecutableKotlinJs'.
Caching disabled for task ':compileProductionExecutableKotlinJs' because:
  Build cache is disabled
Task ':compileProductionExecutableKotlinJs' is not up-to-date because:
  Task has failed previously.
The input changes require a full rebuild for incremental task ':compileProductionExecutableKotlinJs'.
Using Kotlin/JS IR backend
i: found daemon on port 17511 (1360180 ms old), trying to connect
i: connected to the daemon
e: java.lang.OutOfMemoryError: GC overhead limit exceeded

Restoring task outputs to pre-compilation state

> Task :compileProductionExecutableKotlinJs FAILED
:compileProductionExecutableKotlinJs (Thread[Execution worker for ':',5,main]) completed. Took 1 mins 3.431 secs.
java.lang.OutOfMemoryError: GC overhead limit exceeded

Restoring task outputs to pre-compilation state
t
you don't have enough memory for Kotlin daemon, try to increase it via kotlin.daemon.jvmargs
p
This works. Thank you!
v
And for the future, please don't crosspost. Choose one channel and stay there, or at most post a link to another channel. Otherwise you waste the time of everyone reading your post twice and you also get split discussions where a user in one channel might for example not be aware that the question is already answered / issue is already solved in a different channel.
👍 2