Skip to content
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

Memory leaks in IDE server mode #4145

Open
clayrat opened this issue Oct 23, 2017 · 11 comments
Open

Memory leaks in IDE server mode #4145

clayrat opened this issue Oct 23, 2017 · 11 comments

Comments

@clayrat
Copy link
Contributor

clayrat commented Oct 23, 2017

Steps to Reproduce

Load any sufficiently large Idris project (like idris-bi) in the IDE of your choice, reload any large file (like a list of Z proofs) several times and watch the memory consumption.

Expected Behavior

Memory usage stays more or less constant.

Observed Behavior

Memory usage grows rapidly on each reload, eventually crashing or freezing the server after several iterations.

@david-christiansen had a following comment here:

GHC heap profiles seem to show that it's the backing store for
ByteStrings that doesn't get released. These are part of the
implementaiton for Text, which is used in the representation of names.
I've poked at this a few times without luck.

@ahmadsalim
Copy link

@clayrat I thought we had fixed that problem.
In any case contributions are welcome again.

@hardliner66
Copy link

You don't need to load a large project. I had loaded a small test
file and let it open in the background for a few hours.

Suddenly my computer startet to slow down, so I checked the task manager:
memory

@clayrat
Copy link
Contributor Author

clayrat commented Dec 1, 2017

reactormonk/non-constant-memory#1 describes one way to profile Haskell code

@ahmadsalim
Copy link

@clayrat @effectfully Thanks 👍

@ahmadsalim
Copy link

@clayrat The main problem I had was that the Idris process was launched by the IDE mode, and I have no idea how to give it the right arguments there.

@jutaro
Copy link

jutaro commented Apr 5, 2018

Just wanted to say that I try to use Idris with the language-idris package on Atom, and the massive memory leak is a huge problem. I have to stop the idris process every 5 minutes...

@clayrat
Copy link
Contributor Author

clayrat commented Apr 5, 2018

@jutaro The workaround I've settled on for now is to only use the syntax highlighting and check the holes in REPL in the terminal panel. Of course you lose case splits and such :(

@jutaro
Copy link

jutaro commented Apr 5, 2018

@clayrat I'm not shure which way is more convenient, and alter between both variants. Anyway, I woud like to use Idris for teaching and hope this bug can be fixed soon.

@zenntenn
Copy link
Contributor

zenntenn commented Apr 5, 2018 via email

@thalerjonathan
Copy link

thalerjonathan commented May 3, 2018

Can confirm this behaviour also with VS Code (1.22.2 with zjhmale Idris Language Plugin) on Fedora 27.

@corazza
Copy link

corazza commented Feb 26, 2019

I have this problem with Atom 1.34.0. Manjaro Linux, Idris 1.3.1, language-idris 0.5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants