zed icon indicating copy to clipboard operation
zed copied to clipboard

Zed Crashes After a minute or two on Windows 11

Open 1982FenceHopper opened this issue 9 months ago • 8 comments

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.

Zed.log

1982FenceHopper avatar Apr 29 '24 22:04 1982FenceHopper

Is there a temporary workaround for this bug, as I am really excited to use Zed for lightweight coding.

EDIT: Incorrect wording.

1982FenceHopper avatar May 02 '24 01:05 1982FenceHopper

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.

kaljitism avatar May 04 '24 13:05 kaljitism

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.

MatinAniss avatar May 11 '24 06:05 MatinAniss

Give me a few hours, I will check and get back to you..

kaljitism avatar May 11 '24 16:05 kaljitism

Can confirm. Seemingly random crashes, for no any particular reason. Works fine if i just restart and do the same action.

ske2004 avatar May 11 '24 19:05 ske2004

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.

kaljitism avatar May 12 '24 19:05 kaljitism

Nope, still crashes after a couple minutes. But I'm on Windows 10.

ske2004 avatar May 12 '24 19:05 ske2004

Still crashes, windows 11

Edit: Fixed it by setting zed to use the main gpu and not an igpu through windows display settings.

superboxes avatar May 16 '24 13:05 superboxes

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

1982FenceHopper avatar May 27 '24 23:05 1982FenceHopper

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.

1982FenceHopper avatar May 27 '24 23:05 1982FenceHopper

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.

1982FenceHopper avatar May 28 '24 00:05 1982FenceHopper

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.

ske2004 avatar May 29 '24 12:05 ske2004

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

ske2004 avatar May 31 '24 02:05 ske2004

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

xgfone avatar Jun 13 '24 02:06 xgfone

Zed crashed, it may be because of igvk64.dll.

image

xgfone avatar Jun 13 '24 05:06 xgfone

@xgfone Should be fixed when they update blade: https://github.com/kvark/blade/commit/845cdadbfe78b07a3f2b53af105cb497263b9cc4

ske2004 avatar Jun 13 '24 09:06 ske2004

@skejeton tks, I re-compile zed later.

xgfone avatar Jun 13 '24 11:06 xgfone

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

xgfone avatar Jun 14 '24 02:06 xgfone