zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
39.08k stars 2.02k forks source link

100%+ CPU usage when opening Zed at `/` #11070

Open red-mantis opened 2 months ago

red-mantis commented 2 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

Just opening Zed causes my CPU usage to become extremely high. This is without opening up anything in it, and I'm only using the standard with no add-ins.

Environment

Zed: v0.132.2 (Zed) OS: macOS 14.4.1 Memory: 8 GiB Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

CleanShot 2024-04-26 at 16 09 36@2x

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

zed.log.txt

No response

mikayla-maki commented 2 months ago

Did you last open Zed at /? You'll probably need to clear the local database at ~/Library/Application\ Support/Zed/db.

red-mantis commented 2 months ago

Did you last open Zed at /? You'll probably need to clear the local database at ~/Library/Application\ Support/Zed/db.

These are files in 0-stable in that folder, should I just delete them? db.sqlite db.sqlite-shm db.sqlite-wal

mikayla-maki commented 2 months ago

Yes!

We should handle this case better, but in the interim, this should make Zed usable for you again!

red-mantis commented 2 months ago

OK, MUCH better, thank you! Should I leave the case open if you and the rest of Zed team wants to review it more?

mikayla-maki commented 2 months ago

Glad to hear it! I'm sure there's a duplicate issue around here covering it already. But just in case there isn't, lets leave it open :)

Moshyfawn commented 2 months ago

@mikayla-maki, just to make sure, does #6894 sound like the same cause to you?

red-mantis commented 2 months ago

@Moshyfawn I thought that one may have been more specifically related to Node.

Moshyfawn commented 2 months ago

Sorry, stale clipboard. I meant to link to another issue, but it doesn't seem to be related either.