zed icon indicating copy to clipboard operation
zed copied to clipboard

Zed is sometimes unresponsive when macOS awakes from sleep

Open mpfaff opened this issue 1 year ago • 4 comments

Check for existing issues

  • [X] Completed

Describe the bug / provide steps to reproduce it

  • Allow your system to go to sleep (I haven't encountered this enough to say for sure, but it might only trigger when the display turns off without the system going to sleep or locking)
  • Wake it up
  • Zed might be unresponsive

At this point, killing Zed will result in it shutting down (sort of) cleanly, as far as I can tell from the logs.

Environment

Zed: v0.121.7 (Zed) OS: macOS 13.2.1 Memory: 32 GiB Architecture: x86_64

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

No response

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

If you only need the most recent lines, you can run the zed: open log command palette action to see the last 1000.

This is the log output when the issue occurs:

2024-02-16T23:26:24-05:00 [ERROR] crates/gpui/src/platform/mac/window.rs:410: could not create display link, code: -6661
2024-02-16T23:26:24-05:00 [ERROR] crates/gpui/src/platform/mac/window.rs:410: could not create display link, code: -6661
2024-02-16T23:26:24-05:00 [ERROR] crates/gpui/src/platform/mac/window.rs:410: could not create display link, code: -6661

And then nothing else until I kill Zed:

2024-02-16T23:42:53-05:00 [WARN] Generic lsp request to zls failed: server shut down
2024-02-16T23:42:53-05:00 [ERROR] crates/editor/src/editor.rs:3608: server shut down
2024-02-16T23:42:53-05:00 [WARN] Generic lsp request to zls failed: server shut down
2024-02-16T23:42:53-05:00 [ERROR] crates/editor/src/editor.rs:3608: server shut down
2024-02-16T23:42:53-05:00 [WARN] Generic lsp request to zls failed: server shut down
2024-02-16T23:42:53-05:00 [ERROR] crates/editor/src/editor.rs:3561: server shut down

mpfaff avatar Feb 17 '24 04:02 mpfaff

I have this issue too and in my case the content of unsaved file was lost after restart which is suboptimal

pronebird avatar Mar 07 '24 06:03 pronebird

same issue

lichtcui avatar Mar 19 '24 08:03 lichtcui

Is everybody who runs into this on macOS 13.x?

mrnugget avatar Mar 19 '24 10:03 mrnugget

Same issue here, but still can run command cmd+shift+p > type 'restart' > enter without visual (the window freeze)

MacOS Sonoma 14.2.1 Intel Zed 0.134.4

suciptoid avatar May 15 '24 13:05 suciptoid

Same on 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:09:52 PDT 2024; root:xnu-10063.121.3~5/RELEASE_X86_64 x86_64 with Zed 0.138.6: Zed wont update the display anymore although if I type and try to close it it will prompt me for saving. It used to work fine on my previous Intel mac, which in fact was newer (2019) than this one (2017).

pierrec avatar Jun 07 '24 16:06 pierrec

I'm running into this on Ubuntu 24.04. It's not responsive to any shortcuts to close the app. I have to open a terminal and kill the editor.

arathunku avatar Sep 10 '24 08:09 arathunku