https://kotlinlang.org logo
Title
b

Brendan Weinstein

03/04/2020, 4:50 AM
Trying to run macx64Test of
native-mt
branch of the coroutines library using kotlin 1.3.70 and getting the below error message:
Expiring Daemon because JVM heap space is exhausted
Any pointers? When I've been running into ios-specific issues in my codebase, I've been using the nativeTest setup in coroutines to write sanity tests to confirm or reject learnings. It takes a good 1-2 minutes with kotlin 1.3.61 to compile and run the tests though, so I am eager to see some improvement.
i

itnoles

03/04/2020, 5:11 AM
Basically ran out of memory for Gradle daemon
👍 1
b

Brendan Weinstein

03/04/2020, 5:16 AM
thanks. added
org.gradle.jvmargs=-Xmx4096m
to gradle.properties and can finish compiling
l

louiscad

03/04/2020, 6:48 AM
Is it faster now after second compilation? @Brendan Weinstein
e

elizarov

03/04/2020, 9:26 AM
I’ve just force-pushed this branch: rebased onto the latest
develop
, moved to Kotlin 1.3.70, added more memory for compiler.
Note, that
native-mt
branch is currently not passing tests under Kotlin
1.3.70
. There will be no
native-mt
release for Kotlin
1.3.70
.
l

louiscad

03/04/2020, 12:44 PM
😞 What's the plan then?
e

elizarov

03/04/2020, 12:45 PM
Here’s the underlying problem. Let’s see how it goes https://youtrack.jetbrains.com/issue/KT-37232
:tnx: 1
👍 1
b

Brendan Weinstein

03/14/2020, 9:23 PM
@louiscad Started playing around with kotlin 1.3.70 here https://github.com/brendanw/kotlin-native-statemachine and the debugging experience is better. Compilation feels faster on the second run and about the same for first run.
👍 1