chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

Really bad memory leak

Open Banbury opened this issue 1 year ago • 2 comments

Version: 0.2.109

When I start chainlit with a completely empty file, there is a constant load on the CPU and the RAM usage goes constantly up at a very quick rate. After a few minutes the Python process fills up all RAM. This only seems to happen with the watch mode (-w).

Steps to reproduce:

  • Create an empty file app.py
  • Start chainlit with the code below.
chainlit run app.py -w

Banbury avatar Jun 04 '23 12:06 Banbury

Thank you for letting me know, will investigate that tomorrow

willydouhard avatar Jun 04 '23 18:06 willydouhard

Could you try to:

  1. install chainlit from the wheel provided in this PR https://github.com/Chainlit/chainlit/pull/40
  2. run chainlit hello

I would like to see if the rework fix this issue. Note that this version is not merged yet. The infos to install are at the end of the PR's description.

willydouhard avatar Jun 08 '23 17:06 willydouhard

Should be fixed in the latest version 0.3.0. Please note that it contains breaking changes. We prepared a migration guide to make it easy for everyone.

willydouhard avatar Jun 13 '23 16:06 willydouhard