Open earwax1uk opened 1 month ago
Thanks for reporting! Is it always the same stack trace? I wonder if that one has actually anything to do with the memory leak or is it just coincidence. Would be useful to maybe get a heap dump, I think there is an option to have JVM dump it on OOM
Yes does appear to always be the same stack trace. Will try and get a JVM dump. I believe that's -XX:+HeapDumpOnOutOfMemoryError
should we add that in metals.serverProperties
?
Yes, that's it.
If it's the same stack trace every time it seems we are generating too many semanticdb files on demand. They should only be created for build files, worksheets, scripts and standalone files :thinking:
Would you be able to also attach .metals/metals.log file?
I think this should be fixed now. We were reading too many semanticdb files at the same time, which might have caused oom with some larger files
Describe the bug
We're using Metals in VSCode in a code base without 5k Scala files. In the past few months we've started receiving fatal errors like the following. These occur multiple times a day per developer. We've tried increasing heap space via
metals.serverProperties
with no effect. We've also tried snapshot versions of Metals which haven't helped either.What further debugging information do you need from us?
Expected behavior
Metals not to crash with an OOM
Operating system
Linux
Editor/Extension
VS Code
Version of Metals
v1.3.5
Extra context or search terms
No response