zed
zed copied to clipboard
Zed Crashes After a minute or two on Windows 11
Check for existing issues
- [X] Completed
Describe the bug / provide steps to reproduce it
Once compiled for Windows 11, Zed crashes after a minute or two. I could be writing for example the settings file and it would randomly crash on me. Happened on both Release and Debug builds.
Environment
Zed 0.134.0.0 Windows 11 22H2 22621.3447
Type: Laptop Manufacturer: ASUS Mode: TUF FX506HF CPU: Intel Core i5-11400H GPU1: Intel UHD Graphics GPU2: NVIDIA GeForce RTX 2050 RAM: 32 GB Storage: Intel 670P Series 512GB + Crucial P3 1TB
If applicable, attach your ~/Library/Logs/Zed/Zed.log
file to this issue.
Is there a temporary workaround for this bug, as I am really excited to use Zed for lightweight coding.
EDIT: Incorrect wording.
I have the same specs as the original comment, difference is - 16 GB RAM and i7.
For me as well, Zed is closing without any working in the release build.
This may have been fixed by https://github.com/zed-industries/zed/pull/11393 Could be closed if resolved, I haven't had any issues.
Give me a few hours, I will check and get back to you..
Can confirm. Seemingly random crashes, for no any particular reason. Works fine if i just restart and do the same action.
Yes, I worked on it for couple of hours and it didn't crashed. This issue is resolved.
Is there a way, I can define a local language-sdk and LSP on WIndows? I am using the latest build.
Nope, still crashes after a couple minutes. But I'm on Windows 10.
Still crashes, windows 11
Edit: Fixed it by setting zed to use the main gpu and not an igpu through windows display settings.
Still crashes, windows 11
Edit: Fixed it by setting zed to use the main gpu and not an igpu through windows display settings.
Will try using dGPU, but #11393 may have fixed it for both. Will see.
Edit: Referenced Merge Request from @JunkuiZhang
Update: So far, Zed has not crashed once it has been set to use my dGPU (NVIDIA). I will check for another few minutes to see if it does, but if not, will close.
Fixed: Using a discrete GPU (Tested NVIDIA here) did indeed work in preventing the OUT_OF_POOL_MEMORY crash. Something is up with GPUI using iGPUs but dGPUs do indeed work fine. Closing Issue.
That's a shame. Is there a plan to support iGPU's? I use a work laptop, it doesn't have anything fancy in it.
It's much better now, crashes after maybe every half an hour, actually quite usable. I notice the memory spikes from 400Mb immediately to 3.5Gb after some random point. After that it keeps running on ~4gb until it crashes completely. I suspect it has to do with #10203
Still crashes just like @skejeton
Windows 11
Rustc: 1.78.0 (9b00956e5 2024-04-29)
Zed: main branch, f780504b, Thu Jun 13 01:41:25 2024 +0100
Zed crashed, it may be because of igvk64.dll
.
@xgfone
Should be fixed when they update blade
: https://github.com/kvark/blade/commit/845cdadbfe78b07a3f2b53af105cb497263b9cc4
@skejeton tks, I re-compile zed later.
I re-compiled zed with https://github.com/kvark/blade/commit/845cdadbfe78b07a3f2b53af105cb497263b9cc4, which has solved two bugs:
- The memory leak
- Zed crashes
So, hope Zed main branch updates Cargo.toml
to https://github.com/kvark/blade/commit/845cdadbfe78b07a3f2b53af105cb497263b9cc4