Chainlit / chainlit

Build Conversational AI in minutes ⚡️
https://docs.chainlit.io
Apache License 2.0
6.92k stars 912 forks source link

Really bad memory leak #35

Closed Banbury closed 1 year ago

Banbury commented 1 year ago

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:

willydouhard commented 1 year ago

Thank you for letting me know, will investigate that tomorrow

willydouhard commented 1 year ago

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 commented 1 year ago

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.