Closed EDLLT closed 1 week ago
I can give an step to reproduce.
ctrl-p
select x11/window.rs
fileI'm using 0.154.4 and it still goes bonkers as soon as launched and consumes all RAM, Macbook pro Intel chip
Did some profiling with @mgsloan in heaptrack, it looks like the streaming diff pushes a lot memory, specifically around StreamingDiff::push_new.
Here's a screenshot of heaptrack flamegraph for this case.
Confirmed that this is fixed in #20296 , good stuff @as-cii !!! Memory profiler flamegraph is a lot more normal and no big leak
Check for existing issues
Describe the bug / provide steps to reproduce it
Related: https://github.com/zed-industries/zed/issues/15692 https://github.com/zed-industries/zed/issues/17937
Zed Version: 0.152.4 Architecture: x86_64 OS: Ubuntu 24.04
When I use inline assist on my file with 19k tokens, zed starts eating up all my ram and swap then my whole system crashes shortly afterwards.
File I was performing inline assist on(in hopes of improving reproducability) https://github.com/flxzt/rnote/blob/main/crates/rnote-engine/src/pens/typewriter/penevents.rs I was telling Zed AI in the inline assist feature after selecting the whole script to "remove occurrences of audio usage"
Environment
If applicable, attach your
~/Library/Logs/Zed/Zed.log
file to this issue.Zed.log
Zed.log
Captured the log while it was running the inline assist