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
48.57k stars 2.9k forks source link

Zed freezing my enviroment #14519

Open dayves opened 3 months ago

dayves commented 3 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

The screen frequently freezes, causing all visual elements on my laptop to become unresponsive for a few seconds. However, it seems to be only a visual freeze, bacause when I use ctrl+tab, for example, it's change the app tab, after the screen freeze. Same bug on zed 0.143.6 and 0.143.7

Environment

image

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

No response

If applicable, attach your Zed.log file to this issue.

Zed.log

[Zed.log](https://github.com/user-attachments/files/16240426/Zed.log)

betancour commented 3 months ago

Same thing happens in my environment. When using hybrid mode with both GPUs, everything works flawlessly. However, when I switch to using only the integrated graphics, the Zed Editor starts consuming a lot of CPU and my computer freezes. So, I can relate to the person who reported this issue. I am using an Nvidia graphics card.

Zed LogZed.log

Screenshot from 2024-07-15 21-10-57

notpeter commented 3 months ago

Of note, both your laptops have an Nvidia Geforce RTX 3050 GPU.

ConradIrwin commented 2 months ago

@dayves Can you confirm if the graphics mode is what causes this?

If so, this might be another GPU compatibility issue

betancour commented 2 months ago

@dayves Can you confirm if the graphics mode is what causes this?

If so, this might be another GPU compatibility issue

Conrad, I'd like to point out that the issue occurs exclusively when using Wayland. When I switch to X, this problem doesn't arise.

ConradIrwin commented 2 months ago

Weird. Do you know why that would cause a difference?

betancour commented 2 months ago

Weird. Do you know why that would cause a difference?

It might be a GPU issue. The GPU shows usage by the app, but since my CPU usage spikes due to Zed, I'm wondering how to debug this. It likely has to do with how Wayland handles GPU calls. When using hybrid mode, the integrated GPU on CPU works fine. It also works with NVIDIA Prime, so I'm trying to figure out what the problem could be.

dayves commented 2 months ago

@ConradIrwin I trying on another DE, and distro, and now it's working fine, but this time my Nvidia gpu is disabled. Now I'm using Popos