zed
zed copied to clipboard
Unsupported GPU on Pop_OS 24.04 LTS
Check for existing issues
- [X] Completed
Describe the bug / provide steps to reproduce it
I’ve encountered an issue with Zed IDE on Pop!_OS 24.04 LTS. Despite Pop!_OS being based on Ubuntu 24.04 LTS, where Zed IDE works perfectly, I’m receiving an “Unsupported GPU” error on Pop!_OS. and It uses LLVM 17.0.6, 256 bits
Here are some details that might be helpful:
Operating System: Pop!_OS 24.04 LTS with COSMIC Desktop
Zed IDE Version: 0.148.1
Error Message: Unsupported GPU
GPU Information: Intel(R) HD Graphics 5500 (BDW GT2)
I’ve verified that my system meets the general requirements for Zed IDE, and the issue seems to be specific to Pop!_OS despite its close relation to Ubuntu.
The results of vkcube-wayland: Selected GPU 0: Intel(R) HD Graphics 5500 (BDW GT2), type: IntegratedGpu
My vulkan info: https://pastebin.com/nK8taCtn
Environment
Zed: v0.148.1 (Zed) OS: Linux Wayland pop 24.04 Memory: 7.6 GiB Architecture: x86_64 GPU: llvmpipe (LLVM 17.0.6, 256 bits) || llvmpipe || Mesa 24.0.9-0ubuntu0.1 (LLVM 17.0.6)
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
2024-08-19T19:39:08.165139804Z [INFO] ========== starting zed ==========
2024-08-19T19:39:08.210708331Z [INFO] perform;
2024-08-19T19:39:08.210785522Z [INFO] read_command;
2024-08-19T19:39:08.210841378Z [INFO] read_command;
2024-08-19T19:39:08.211072731Z [INFO] socket reader;
2024-08-19T19:39:08.211122618Z [INFO] Opening main db
2024-08-19T19:39:08.211751375Z [INFO] new;
2024-08-19T19:39:08.212936627Z [INFO] keep_updated;
2024-08-19T19:39:08.233139288Z [INFO] Using git binary path: None
2024-08-19T19:39:08.289095217Z [ERROR] No such file or directory (os error 2) about ["/home/zakaria/.config/github-copilot"]
2024-08-19T19:39:08.295612012Z [INFO] activate is not implemented on Linux, ignoring the call
2024-08-19T19:39:08.298600524Z [INFO] Opening main db
2024-08-19T19:39:08.299283765Z [INFO] perform;
2024-08-19T19:39:08.299363666Z [INFO] read_command;
2024-08-19T19:39:08.299420923Z [INFO] read_command;
2024-08-19T19:39:08.299564484Z [INFO] socket reader;
2024-08-19T19:39:08.305355001Z [WARN] request completed with error: failed to connect to the server
2024-08-19T19:39:08.305427816Z [WARN] request completed with error: failed to connect to the server
2024-08-19T19:39:08.305473993Z [WARN] request completed with error: failed to connect to the server
2024-08-19T19:39:08.305624035Z [WARN] request completed with error: failed to connect to the server
2024-08-19T19:39:08.305669593Z [WARN] request completed with error: failed to connect to the server
2024-08-19T19:39:08.305711472Z [WARN] request completed with error: failed to connect to the server
2024-08-19T19:39:08.305752681Z [WARN] request completed with error: failed to connect to the server
2024-08-19T19:39:08.305794168Z [WARN] request completed with error: failed to connect to the server
2024-08-19T19:39:08.319558128Z [WARN] request completed with error: failed to connect to the server
2024-08-19T19:39:08.323712793Z [INFO] set environment variables from shell:/bin/bash, path:/home/zakaria/.local/bin:/home/zakaria/.local/bin:/home/zakaria/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
2024-08-19T19:39:08.367744075Z [INFO] Enabling Vulkan Portability
2024-08-19T19:39:08.367782291Z [INFO] Enabling color space support
2024-08-19T19:39:08.378222875Z [WARN] Rejecting Intel for not presenting when Nvidia is present (on Linux)
2024-08-19T19:39:08.378314772Z [INFO] Adapter "llvmpipe (LLVM 17.0.6, 256 bits)"
2024-08-19T19:39:08.378354419Z [INFO] No ray tracing extensions are supported
2024-08-19T19:39:09.326266157Z [INFO] Using surface present mode MAILBOX
2024-08-19T19:39:09.327475947Z [WARN] Unable to forbid exclusive full screen
2024-08-19T19:39:09.32813055Z [INFO] Creating a descriptor pool for at most 16 sets
2024-08-19T19:39:09.328170081Z [INFO] Creating a descriptor pool for at most 16 sets
2024-08-19T19:39:09.328199503Z [INFO] Initializing Blade pipelines for surface SurfaceInfo { format: Bgra8UnormSrgb, alpha: PreMultiplied }
2024-08-19T19:39:09.415433273Z [INFO] Using GPU: GPUSpecs { is_software_emulated: true, device_name: "llvmpipe (LLVM 17.0.6, 256 bits)", driver_name: "llvmpipe", driver_info: "Mesa 24.0.9-0ubuntu0.1 (LLVM 17.0.6)" }
2024-08-19T19:39:09.42056388Z [WARN] request completed with error: failed to connect to the server
2024-08-19T19:39:09.421312429Z [INFO] rebuilt extension index in 1.496124ms
2024-08-19T19:39:10.460866258Z [ERROR] Is a directory (os error 21)
2024-08-19T19:39:10.461434723Z [WARN] request completed with error: failed to connect to the server
2024-08-19T19:39:10.462258881Z [INFO] Opening main db
2024-08-19T19:39:10.466312814Z [WARN] request completed with error: failed to connect to the server
2024-08-19T19:39:10.466406796Z [WARN] request completed with error: failed to connect to the server
2024-08-19T19:39:10.474629066Z [INFO] Using surface present mode MAILBOX
2024-08-19T19:39:10.477355091Z [WARN] Unable to forbid exclusive full screen
2024-08-19T19:39:10.627597977Z [WARN] request completed with error: failed to connect to the server
2024-08-19T19:39:10.759779001Z [WARN] request completed with error: failed to connect to the server
2024-08-19T19:39:10.765149433Z [WARN] request completed with error: failed to connect to the server
2024-08-19T19:39:10.766101755Z [ERROR] no worktrees when constructing ProjectLspAdapterDelegate
2024-08-19T19:39:11.021119969Z [WARN] request completed with error: failed to connect to the server
2024-08-19T19:39:11.021568886Z [INFO] perform;
2024-08-19T19:39:11.021653018Z [INFO] read_command;
2024-08-19T19:39:11.021781672Z [INFO] read_command;
2024-08-19T19:39:11.022055498Z [INFO] socket reader;
2024-08-19T19:39:16.13446376Z [WARN] request completed with error: request or operation took longer than the configured timeout time
2024-08-19T19:39:16.134875816Z [ERROR] error downloading copilot release
Caused by:
0: request or operation took longer than the configured timeout time
1: [28] Timeout was reached
2024-08-19T19:39:57.280725656Z [INFO] Using surface present mode MAILBOX
2024-08-19T19:39:57.289959531Z [WARN] Unable to forbid exclusive full screen
2024-08-19T19:39:57.296164791Z [INFO] Using surface present mode MAILBOX
2024-08-19T19:39:57.298481183Z [WARN] Unable to forbid exclusive full screen
2024-08-19T19:40:39.51996852Z [INFO] new;
2024-08-19T19:40:39.521169212Z [INFO] keep_updated;
2024-08-19T19:40:39.521253264Z [INFO] new;
2024-08-19T19:41:17.900869413Z [INFO] ========== starting zed ==========
2024-08-19T19:41:17.954243633Z [INFO] perform;
2024-08-19T19:41:17.954374622Z [INFO] read_command;
2024-08-19T19:41:17.954483706Z [INFO] read_command;
2024-08-19T19:41:17.954574607Z [INFO] Opening main db
2024-08-19T19:41:17.955073374Z [INFO] socket reader;
2024-08-19T19:41:17.955516189Z [INFO] new;
2024-08-19T19:41:17.956933139Z [INFO] keep_updated;
2024-08-19T19:41:17.958188947Z [INFO] Using git binary path: None
2024-08-19T19:41:18.025394012Z [ERROR] No such file or directory (os error 2) about ["/home/zakaria/.config/github-copilot"]
2024-08-19T19:41:18.031829572Z [INFO] activate is not implemented on Linux, ignoring the call
2024-08-19T19:41:18.034718597Z [INFO] Opening main db
2024-08-19T19:41:18.035450252Z [INFO] perform;
2024-08-19T19:41:18.035580304Z [INFO] read_command;
2024-08-19T19:41:18.035685153Z [INFO] read_command;
2024-08-19T19:41:18.035880369Z [INFO] socket reader;
2024-08-19T19:41:18.037470933Z [INFO] set environment variables from shell:/bin/bash, path:/home/zakaria/.local/bin:/home/zakaria/.local/bin:/home/zakaria/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
2024-08-19T19:41:18.037930143Z [INFO] installing extension html latest version
2024-08-19T19:41:18.040207181Z [WARN] request completed with error: failed to connect to the server
2024-08-19T19:41:18.040310843Z [WARN] request completed with error: failed to connect to the server
2024-08-19T19:41:18.04038425Z [WARN] request completed with error: failed to connect to the server
2024-08-19T19:41:18.04057087Z [WARN] request completed with error: failed to connect to the server
2024-08-19T19:41:18.040646609Z [WARN] request completed with error: failed to connect to the server
2024-08-19T19:41:18.040717561Z [WARN] request completed with error: failed to connect to the server
2024-08-19T19:41:18.040785207Z [WARN] request completed with error: failed to connect to the server
2024-08-19T19:41:18.040856731Z [WARN] request completed with error: failed to connect to the server
2024-08-19T19:41:18.040927Z [WARN] request completed with error: failed to connect to the server
2024-08-19T19:41:18.080098393Z [INFO] Enabling Vulkan Portability
2024-08-19T19:41:18.080157025Z [INFO] Enabling color space support
2024-08-19T19:41:18.089825446Z [WARN] Rejecting Intel for not presenting when Nvidia is present (on Linux)
2024-08-19T19:41:18.089918234Z [INFO] Adapter "llvmpipe (LLVM 17.0.6, 256 bits)"
2024-08-19T19:41:18.089964814Z [INFO] No ray tracing extensions are supported
2024-08-19T19:41:18.105244705Z [INFO] Using surface present mode MAILBOX
2024-08-19T19:41:18.106132583Z [WARN] Unable to forbid exclusive full screen
2024-08-19T19:41:18.106661632Z [INFO] Creating a descriptor pool for at most 16 sets
2024-08-19T19:41:18.10672447Z [INFO] Creating a descriptor pool for at most 16 sets
2024-08-19T19:41:18.106753324Z [INFO] Initializing Blade pipelines for surface SurfaceInfo { format: Bgra8UnormSrgb, alpha: PreMultiplied }
2024-08-19T19:41:18.136196835Z [INFO] Using GPU: GPUSpecs { is_software_emulated: true, device_name: "llvmpipe (LLVM 17.0.6, 256 bits)", driver_name: "llvmpipe", driver_info: "Mesa 24.0.9-0ubuntu0.1 (LLVM 17.0.6)" }
2024-08-19T19:41:18.138327341Z [WARN] request completed with error: failed to connect to the server
2024-08-19T19:41:18.138392084Z [WARN] request completed with error: failed to connect to the server
2024-08-19T19:41:18.305080393Z [INFO] Opening main db
2024-08-19T19:41:18.313951757Z [INFO] Initializing default prettier with plugins {}
2024-08-19T19:41:18.318224499Z [INFO] Using surface present mode MAILBOX
2024-08-19T19:41:18.321980678Z [WARN] Unable to forbid exclusive full screen
2024-08-19T19:41:18.403562457Z [WARN] request completed with error: failed to connect to the server
2024-08-19T19:41:18.403647155Z [WARN] request completed with error: failed to connect to the server
2024-08-19T19:41:18.405945851Z [INFO] Initializing default prettier with plugins {}
2024-08-19T19:41:18.411441353Z [WARN] request completed with error: failed to connect to the server
2024-08-19T19:41:18.412200422Z [INFO] Node runtime install_if_needed
2024-08-19T19:41:18.424536224Z [INFO] Initializing default prettier with plugins {}
2024-08-19T19:41:18.431495378Z [WARN] request completed with error: failed to connect to the server
2024-08-19T19:41:18.581724803Z [INFO] Opening main db
2024-08-19T19:41:18.583075913Z [ERROR] no worktrees when constructing ProjectLspAdapterDelegate
2024-08-19T19:41:18.597228959Z [INFO] Initializing default prettier with plugins {}
2024-08-19T19:41:18.626780711Z [WARN] request completed with error: failed to connect to the server
2024-08-19T19:41:18.710573453Z [WARN] request completed with error: failed to connect to the server
2024-08-19T19:41:18.712045821Z [INFO] perform;
2024-08-19T19:41:18.712145339Z [INFO] read_command;
2024-08-19T19:41:18.712198717Z [INFO] read_command;
2024-08-19T19:41:18.712334377Z [INFO] socket reader;
2024-08-19T19:41:18.7161807Z [INFO] Initializing default prettier with plugins {}
2024-08-19T19:41:18.717352103Z [WARN] request completed with error: failed to connect to the server
2024-08-19T19:41:27.938938995Z [INFO] rebuilt extension index in 3.457296ms
2024-08-19T19:41:27.939298954Z [INFO] extensions updated. loading 1, reloading 0, unloading 0
2024-08-19T19:41:28.283274671Z [INFO] Initializing default prettier with plugins {}
2024-08-19T19:41:28.284306954Z [WARN] request completed with error: failed to connect to the server
2024-08-19T19:41:28.284535207Z [INFO] perform;
2024-08-19T19:41:28.284614612Z [INFO] read_command;
2024-08-19T19:41:28.284678006Z [INFO] read_command;
2024-08-19T19:41:28.284802357Z [INFO] socket reader;
2024-08-19T19:44:40.911561865Z [INFO] Using surface present mode MAILBOX
2024-08-19T19:44:40.91626818Z [WARN] Unable to forbid exclusive full screen
2024-08-19T19:44:43.677181239Z [INFO] Node runtime install_if_needed
2024-08-19T19:44:43.832742224Z [INFO] starting language server. binary path: "/home/zakaria/.local/share/zed/node/node-v22.5.1-linux-x64/bin/node", working directory: "/", args: ["/home/zakaria/.local/share/zed/copilot/copilot-v0.5.0/dist/agent.js", "--stdio"]
2024-08-19T19:44:44.522265838Z [INFO] Language server with id 0 sent unhandled notification LogMessage:
{
"level": 0,
"message": "[DEBUG] [agent] [2024-08-19T19:44:44.510Z] Agent service starting",
"metadataStr": "[DEBUG] [agent] [2024-08-19T19:44:44.510Z]",
"extra": [
"Agent service starting"
]
}
2024-08-19T19:44:44.523606615Z [INFO] Language server with id 0 sent unhandled notification client/registerCapability:
{
"registrations": [
{
"id": "63f54a50-1caf-43a0-b505-1928bdb0d57c",
"method": "workspace/didChangeWorkspaceFolders",
"registerOptions": {}
}
]
}
2024-08-19T19:44:44.589670162Z [INFO] Language server with id 0 sent unhandled notification LogMessage:
{
"level": 0,
"message": "[DEBUG] [agent] [2024-08-19T19:44:44.538Z] Telemetry initialized",
"metadataStr": "[DEBUG] [agent] [2024-08-19T19:44:44.538Z]",
"extra": [
"Telemetry initialized"
]
}
2024-08-19T19:44:47.033239083Z [INFO] Installing default prettier and plugins: [("prettier", "3.3.3")]
2024-08-19T19:44:47.033344697Z [INFO] Node runtime install_if_needed
2024-08-19T19:44:53.430768423Z [INFO] Initialized prettier with plugins: {}
2024-08-19T19:44:53.43087789Z [INFO] Node runtime install_if_needed
2024-08-19T19:46:27.827125308Z [INFO] Using surface present mode MAILBOX
2024-08-19T19:46:27.833796912Z [WARN] Unable to forbid exclusive full screen
2024-08-19T19:46:48.237749045Z [ERROR] window not found
2024-08-19T19:46:48.23782049Z [ERROR] window not found
Im having the exact same issue. On arch linux, i had no problems running zed, but on Pop os 24.04, I get the same error.
My gpu: Intel(R) Graphics (ADL GT2), type: IntegratedGpu
switching /etc/prime-discrete from on to off
https://github.com/zed-industries/zed/issues/15629#issuecomment-2277195893 worked for me :D
same issue on my side
Specs: OS: Pop!_OS 22.04 LTS Kernel: 6.9.3-76060903-generic CPU: 11th Gen Intel(R) Core(TM) i5-11400H @ 2.70GHz Memory: 23Gi Disk: 145G Graphics: 02.0 VGA compatible controller 00.0 VGA compatible controller Resolution: 1920x1080
The problem here is that Vulkan is not detecting your GPU correctly, and is falling back to CPU emulation with llvmpipe. You should be able to follow the trouble-shooting steps on https://zed.dev/docs/linux to make sure you have a working Vulkan installation.
The solution is switching /etc/prime-discrete from on to off and zed will work. ✅
@farhatizakaria nice find! I'd love to add that to the instructions here: https://zed.dev/docs/linux#zed-is-very-slow.
Is that configuration specific to Pop OS!? What would be a good way to explain it to others?
If you have a discrete GPU and you are using prime you may be able to configure Zed to work by setting
/etc/prime-discreteto 'on'?
@ConradIrwin I have encountered the unsupported GPU issue specifically with Pop!_OS 24.04 LTS running the COSMIC Desktop. As of now, I have not tested other distributions with the COSMIC Desktop to see if they have the same problem. However, I can confirm that Ubuntu 24.04 with the GNOME Desktop works well with Zed without any unsupported GPU issues. I apologize for any lack of clarity or thorough testing on my part.
The solution is switching
/etc/prime-discretefromontooffand zed will work. ✅
Meow it worked
switching /etc/prime-discrete from on to off
#15629 (comment) worked for me :D
Worked for me as well.
I am also on Pop OS, and sudo echo 'off' > /etc/prime-discrete also worked to clear the error on startup for me.
Anyone know of any caveats to this? It appears to be a tool for optimizing modern integrated GPUs for compiling with LLVM, I'm sure I've never explicitly used it, but I do build the occasional Cxx codebases. They aren't typically large projects, so it probably wouldn't affect me either way, but given the developer-targeted customers of equipment that ships with Pop OS, it's not unreasonable to expect it to be part of some folks' compilation routines.
It sounds like it may be something Pop OS may need to look into. This was also mentioned in Pop OS' issues #3336 as related to resource usage. I can help with troubleshooting if it's something Zed might be able to resolve themselves directly. I'd be interested to know if this interferes with any other Vulkan-based programs? I tried vkcube (from following Zed's current documentation) and it doesn't indicate any issues with the setting on or off either way.
[Edit: formatting and sudo]
Info re: root cause and permanent fix: https://github.com/pop-os/pop/issues/3336#issuecomment-2394738202
turning /etc/prime-discrete on to off worked for me.
Zed 0.209.6 on POP_OS 24.04 encountered
fixed it by turning /etc/prime-discrete on to off.