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

Zed freezing up whole system due to memory leaks when using inline assist #18062

Open
1 task done
EDLLT opened this issue Sep 19, 2024 · 1 comment
Open
1 task done
Labels
admin read Pending admin review defect [core label] panic / crash [core label] triage Maintainer needs to classify the issue

Comments

@EDLLT
Copy link

EDLLT commented Sep 19, 2024

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

Related: #15692 #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.

Screenshot from 2024-09-19 13-27-45

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

            .-/+oossssoo+/-.               edllt@HP 
        `:+ssssssssssssssssss+:`           -------- 
      -+ssssssssssssssssssyyssss+-         OS: Ubuntu 24.04.1 LTS x86_64 
\   .ossssssssssssssssssdMMMNysssso.        Kernel: 6.8.0-41-generic 
   /ssssssssssshdmmNNmmyNMMMMhssssss/      Uptime: 10 days, 2 hours, 10 mins 
  +ssssssssshmydMMMMMMMNddddyssssssss+     Packages: 3971 (dpkg), 49 (flatpak), 
 /sssssssshNMMMyhhyyyyhmNMMMNhssssssss/    Shell: bash 5.2.21 
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Resolution: 1366x768, 2560x1440 
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   DE: GNOME 46.0 
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   WM: Mutter 
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   WM Theme: Adwaita 
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   Theme: Yaru-dark [GTK2/3] 
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Icons: Yaru [GTK2/3] 
 /sssssssshNMMMyhhyyyyhdNMMMNhssssssss/    Terminal: gnome-terminal 
  +sssssssssdmydMMMMMMMMddddyssssssss+     CPU: AMD Ryzen 7 3700X (16) @ 3.600G 
   /ssssssssssshdmNNNNmyNMMMMhssssss/      GPU: NVIDIA GeForce RTX 3060 Ti Lite 
    .ossssssssssssssssssdMMMNysssso.       Memory: 3845MiB / 15895MiB 
      -+sssssssssssssssssyyyssss+-
        `:+ssssssssssssssssss+:`                                   
            .-/+oossssoo+/-.                                       

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

@EDLLT EDLLT added admin read Pending admin review defect [core label] panic / crash [core label] triage Maintainer needs to classify the issue labels Sep 19, 2024
@CharlesChen0823
Copy link
Contributor

I can give an step to reproduce.

  • open zed code with Zed
  • ctrl-p select x11/window.rs file
  • select all contents
  • using inline assist with prompts "can you find bug"
  • eat all ram, then unresponse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
admin read Pending admin review defect [core label] panic / crash [core label] triage Maintainer needs to classify the issue
Projects
None yet
Development

No branches or pull requests

3 participants
@CharlesChen0823 @EDLLT and others