-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OOM from textDocument/definition #6851
Comments
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 |
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 🤔 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
The text was updated successfully, but these errors were encountered: