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
50.17k stars 3.08k forks source link

Screen freeze, can't open #20793

Closed blackmind17 closed 3 hours ago

blackmind17 commented 5 hours ago

Check for existing issues

Describe the bug / provide steps to reproduce it

can't open zed, first time installed, found some similar issues, but logs are not same

Environment

image

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

Zed.log ``` 2024-11-18T00:17:27.255269946+05:00 [INFO] ========== starting zed ========== 2024-11-18T00:17:27.939053455+05:00 [INFO] Compositor detection: _NET_WM_CM_S?=false, _NET_WM_CM_OWNER=false, _NET_SUPPORTING_WM_CHECK=true 2024-11-18T00:17:27.939228686+05:00 [INFO] x11: compositor present: true, gtk_frame_extents_supported: true 2024-11-18T00:17:27.959196473+05:00 [INFO] Try connect ibus 2024-11-18T00:17:27.960703086+05:00 [INFO] perform; 2024-11-18T00:17:27.960791295+05:00 [INFO] authenticate; 2024-11-18T00:17:27.960902133+05:00 [INFO] read_command; 2024-11-18T00:17:27.961090285+05:00 [INFO] Opening main db 2024-11-18T00:17:27.962445482+05:00 [INFO] new; 2024-11-18T00:17:27.962669672+05:00 [INFO] socket reader; 2024-11-18T00:17:27.994658234+05:00 [INFO] Opening main db 2024-11-18T00:17:28.017101402+05:00 [INFO] Using git binary path: None 2024-11-18T00:17:28.030016355+05:00 [INFO] no tokio runtime found, creating one for Reqwest... 2024-11-18T00:17:28.102822804+05:00 [INFO] initializing context server client 2024-11-18T00:17:28.103010956+05:00 [INFO] Registering built-in prompt template: content_prompt 2024-11-18T00:17:28.103992084+05:00 [INFO] Registering built-in prompt template: project_slash_command 2024-11-18T00:17:28.104130928+05:00 [INFO] Registering built-in prompt template: suggest_edits 2024-11-18T00:17:28.104555074+05:00 [INFO] Registering built-in prompt template: terminal_assistant_prompt 2024-11-18T00:17:28.104990812+05:00 [INFO] No prompt template overrides directory found at /home/blackm1nd/.local/share/zed/prompt_overrides. Using built-in prompts. 2024-11-18T00:17:28.109486975+05:00 [INFO] activate is not implemented on Linux, ignoring the call 2024-11-18T00:17:28.1123249+05:00 [INFO] Opening main db 2024-11-18T00:17:28.112849267+05:00 [INFO] perform; 2024-11-18T00:17:28.11291813+05:00 [INFO] authenticate; 2024-11-18T00:17:28.112994886+05:00 [INFO] read_command; 2024-11-18T00:17:28.114090064+05:00 [INFO] socket reader; 2024-11-18T00:17:28.12492424+05:00 [INFO] new; 2024-11-18T00:17:28.126645196+05:00 [INFO] keep_updated; 2024-11-18T00:17:28.133635874+05:00 [INFO] set status on client 0: Authenticating 2024-11-18T00:17:28.134189295+05:00 [INFO] perform; 2024-11-18T00:17:28.134271568+05:00 [INFO] authenticate; 2024-11-18T00:17:28.134359079+05:00 [INFO] read_command; 2024-11-18T00:17:28.134741389+05:00 [INFO] Using Visual { id: 35, colormap: 0, depth: 32 } 2024-11-18T00:17:28.134851249+05:00 [INFO] Creating colormap 54525955 2024-11-18T00:17:28.135797806+05:00 [INFO] socket reader; 2024-11-18T00:17:28.147565688+05:00 [INFO] new; 2024-11-18T00:17:28.149555881+05:00 [INFO] keep_updated; 2024-11-18T00:17:28.217669914+05:00 [INFO] Enabling color space support 2024-11-18T00:17:28.279836764+05:00 [INFO] Adapter: "AMD Radeon Vega 8 Graphics (RADV RAVEN)" 2024-11-18T00:17:28.28247627+05:00 [INFO] No ray tracing extensions are supported 2024-11-18T00:17:28.315356638+05:00 [INFO] set environment variables from shell:/usr/bin/zsh, path:/home/blackm1nd/vk-cloud-solutions/bin:/opt/apache-maven-3.9.4/bin:/opt/jdk-20.0.2/bin:/home/blackm1nd/go/bin:/home/blackm1nd/.cargo/bin:/home/blackm1nd/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/blackm1nd/.local/share/JetBrains/Toolbox/scripts:/usr/local/go/bin 2024-11-18T00:17:28.317879439+05:00 [INFO] Using surface present mode MAILBOX 2024-11-18T00:17:28.31805509+05:00 [WARN] Unable to forbid exclusive full screen 2024-11-18T00:17:28.338061292+05:00 [INFO] Creating a descriptor pool for at most 16 sets 2024-11-18T00:17:28.338190568+05:00 [INFO] Creating a descriptor pool for at most 16 sets 2024-11-18T00:17:28.338285971+05:00 [INFO] Initializing Blade pipelines for surface SurfaceInfo { format: Bgra8UnormSrgb, alpha: Ignored } 2024-11-18T00:17:28.40027787+05:00 [INFO] Refreshing at 16664 micros 2024-11-18T00:17:28.402549243+05:00 [INFO] Using GPU: GPUSpecs { is_software_emulated: false, device_name: "AMD Radeon Vega 8 Graphics (RADV RAVEN)", driver_name: "radv", driver_info: "Mesa 23.2.1-1ubuntu3.1~22.04.2" } 2024-11-18T00:17:28.434638241+05:00 [INFO] XConnected server on 25165831, transport version: 0.0, TRANSPORT_MAX: 20 2024-11-18T00:17:28.445910949+05:00 [INFO] Using surface present mode MAILBOX 2024-11-18T00:17:28.44617446+05:00 [WARN] Unable to forbid exclusive full screen 2024-11-18T00:17:28.478387845+05:00 [INFO] set status on client 253609: Connecting 2024-11-18T00:17:28.485716834+05:00 [INFO] rebuilt extension index in 1.366861ms 2024-11-18T00:17:28.489959543+05:00 [INFO] Opening main db 2024-11-18T00:17:28.501137896+05:00 [ERROR] missing field `name` at line 17 column 1 2024-11-18T00:17:28.510913839+05:00 [ERROR] Is a directory (os error 21) 2024-11-18T00:17:28.947307225+05:00 [INFO] connected to rpc endpoint https://collab.zed.dev/rpc ```
blackmind17 commented 4 hours ago

I think problem with my GPU, how do I force zed to use NVIDIA GPU?

blackmind17 commented 3 hours ago

finally, solved problem using

MESA_VK_DEVICE_SELECT=list zed --foreground

Then setting nvidia gpu instead of amd

MESA_VK_DEVICE_SELECT=xxxx:yyy

idk why by default chooses this GPU