After upgrading to Kotlin 1.3.40 I got a `Compilat...
# kotlin-native
j
After upgrading to Kotlin 1.3.40 I got a
Compilation failed: GC overhead limit exceeded
when running
linkDebugTestMacos
. How do I higher the memory limit for the task/project? I have tried
org.gradle.jvmargs=-Xmx4g
in the gradle.properties. I use gradle 5.1.1
l
Just kill the gradle daemon (by closing the Java processes) and retry. There was probably a memory leak in it.
j
I closed the gradle daemons and it still happens afterwards. Also when I run konan outside of gradle with the same argments as gradle. It will only succeed if I give it more than 4gb (8gb I tried and then it succeeded) But how can I set the memory of the gradle task?
t
I have a similar issue. If I run my “pack for xcode” task from Android Studio it throws this exception:
Copy code
e: java.lang.OutOfMemoryError: Java heap space
However, if I run the gradle task from the terminal (like Xcode) I do not get the exception.
j
I have created an issue including profiling results. My link time went up from 2:30 to around 10 minutes... https://github.com/JetBrains/kotlin-native/issues/3098