Hello! When bumping a project from Kotlin 1.3.60 t...
# announcements
s
Hello! When bumping a project from Kotlin 1.3.60 to 1.5.10, the compiler seems to be erroring out with a java.lang.OutOfMemoryError. What can I do to analyze this further?
Ok, it seems giving it some more max heap space by adding this to
gradle.properties
worked:
Copy code
org.gradle.jvmargs=-Dkotlin.daemon.jvm.options="-Xmx1g"
r
Still probably worth reporting a bug at http://kotl.in/issue, compiler OOMs are bad
👍 1
A repo project is the best thing you can give them, if it's not private
s
Unfortunately I can't, it's a private project... So I'm not sure how I can give them any useful reproducable info? I wasn't able to nail it down to any specific code.
In some cases, I got a stack trace for a specific class, and then I commented out all the code in that, but still got OOM – but with no stack trace...
r
Yeah, I'm not sure how much good it'll do in that case, but it can't hurt. There might be diagnostics you can run, too, but I don't know of any off the top of my head.
s
Right! Maybe if I report the issue, relevant person will tell me what diagnostics to run.
Seeing some other similar issues, one seems to have attached a
hprof
– how would I get that...?
r
I think Help > Diagnostic Tools > Capture Memory Snapshot