Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty window shows up when running on llvmpipe #16414

Open
1 task done
TadaHrd opened this issue Aug 17, 2024 · 8 comments
Open
1 task done

Empty window shows up when running on llvmpipe #16414

TadaHrd opened this issue Aug 17, 2024 · 8 comments
Labels
bug [core label] linux linux-x11 Linux X11 workspace Feedback for workspace management, layout, interactions, etc

Comments

@TadaHrd
Copy link

TadaHrd commented Aug 17, 2024

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

Since Zed doesn't support OpenGL yet (hopefully will support is soon), I have to use llvmpipe for vulkan.

Running zed directly didn't do anything (even though I'm logged in as root). Running sudo $(which ~/.local/zed.app/bin/zed) only opened a window with only a frame (you could click through it). This doesn't seem to be a WSL-only bug because I encountered it on an even older laptop.

Environment

WSL 2 - Ubuntu 22.04.3 LTS on Windows 10 x86_64
GPU - doesn't support vulkan

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-17T18:02:03.972087004+02:00 [INFO] ========== starting zed ==========
2024-08-17T18:04:13.939887978+02:00 [INFO] ========== starting zed ==========
2024-08-17T18:15:41.568452914+02:00 [INFO] ========== starting zed ==========
2024-08-17T18:26:03.01815957+02:00 [INFO] ========== starting zed ==========
2024-08-17T18:28:00.20540851+02:00 [INFO] ========== starting zed ==========
2024-08-17T18:28:00.229922711+02:00 [INFO] Compositor detection: _NET_WM_CM_S?=false, _NET_WM_CM_OWNER=false, _NET_SUPPORTING_WM_CHECK=true
2024-08-17T18:28:00.230209711+02:00 [INFO] x11: compositor present: true, gtk_frame_extents_supported: false
2024-08-17T18:28:00.261715212+02:00 [INFO] perform;
2024-08-17T18:28:00.261998312+02:00 [INFO] read_command;
2024-08-17T18:28:00.267071612+02:00 [INFO] Opening main db
2024-08-17T18:28:00.284795612+02:00 [INFO] Using git binary path: None
2024-08-17T18:28:00.338025613+02:00 [INFO] read_command;
2024-08-17T18:28:00.339526613+02:00 [INFO] socket reader;
2024-08-17T18:28:00.340385813+02:00 [INFO] new;
2024-08-17T18:28:00.367155314+02:00 [ERROR] No such file or directory (os error 2) about ["/root/.config/github-copilot"]
2024-08-17T18:28:00.386238815+02:00 [INFO] set environment variables from shell:/bin/bash, path:/root/.local/bin:/root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
2024-08-17T18:28:00.386950515+02:00 [INFO] activate is not implemented on Linux, ignoring the call
2024-08-17T18:28:00.387258115+02:00 [INFO] Opening main db
2024-08-17T18:28:00.402116415+02:00 [INFO] perform;
2024-08-17T18:28:00.402325415+02:00 [INFO] read_command;
2024-08-17T18:28:00.402646715+02:00 [INFO] read_command;
2024-08-17T18:28:00.402862515+02:00 [INFO] Using Visual { id: 73, colormap: 0, depth: 32 }
2024-08-17T18:28:00.403190515+02:00 [INFO] Creating colormap 6291459
2024-08-17T18:28:00.403467615+02:00 [INFO] socket reader;
2024-08-17T18:28:00.468657016+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-17T18:28:00.469080416+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-17T18:28:00.469282416+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-17T18:28:00.469804316+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-17T18:28:00.469983916+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-17T18:28:00.470082116+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-17T18:28:00.470170316+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-17T18:28:00.470258316+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-17T18:28:00.470492216+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-17T18:28:00.485831917+02:00 [INFO] Enabling color space support
2024-08-17T18:28:00.504275417+02:00 [INFO] Adapter "llvmpipe (LLVM 15.0.7, 256 bits)"
2024-08-17T18:28:00.504527917+02:00 [INFO] No ray tracing extensions are supported
2024-08-17T18:28:00.516921417+02:00 [INFO] Using surface present mode MAILBOX
2024-08-17T18:28:00.517120617+02:00 [WARN] Unable to forbid exclusive full screen
2024-08-17T18:28:00.529598218+02:00 [INFO] Creating a descriptor pool for at most 16 sets
2024-08-17T18:28:00.530292918+02:00 [INFO] Creating a descriptor pool for at most 16 sets
2024-08-17T18:28:00.531313918+02:00 [INFO] Initializing Blade pipelines for surface SurfaceInfo { format: Bgra8UnormSrgb, alpha: Ignored }
2024-08-17T18:28:00.763765423+02:00 [INFO] Refreshing at 16677 micros
2024-08-17T18:28:00.764320023+02:00 [INFO] x11: no compositor present, falling back to server-side window decorations
2024-08-17T18:28:00.767378823+02:00 [INFO] Using GPU: GPUSpecs { is_software_emulated: true, device_name: "llvmpipe (LLVM 15.0.7, 256 bits)", driver_name: "llvmpipe", driver_info: "Mesa 23.0.4-0ubuntu1~22.04.1 (LLVM 15.0.7)" }
2024-08-17T18:28:01.364264437+02:00 [INFO] keep_updated;
2024-08-17T18:28:02.074509653+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-17T18:28:02.075230353+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-17T18:28:02.076083453+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-17T18:28:02.076276053+02:00 [INFO] rebuilt extension index in 2.7024ms
2024-08-17T18:28:02.077761953+02:00 [INFO] Opening main db
2024-08-17T18:28:02.198713455+02:00 [ERROR] Is a directory (os error 21)
2024-08-17T18:28:02.199019455+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-17T18:28:02.214670356+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-17T18:28:02.215852756+02:00 [ERROR] no worktrees when constructing ProjectLspAdapterDelegate
2024-08-17T18:28:02.443295861+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-17T18:28:02.443932761+02:00 [INFO] perform;
2024-08-17T18:28:02.444192561+02:00 [INFO] read_command;
2024-08-17T18:28:02.444430161+02:00 [INFO] read_command;
2024-08-17T18:28:02.444823261+02:00 [INFO] socket reader;
2024-08-17T18:28:02.691799767+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-17T18:28:05.657211633+02:00 [INFO] Node runtime install_if_needed
2024-08-17T18:28:24.004836882+02:00 [INFO] Using surface present mode MAILBOX
2024-08-17T18:28:24.017542882+02:00 [WARN] Unable to forbid exclusive full screen
2024-08-17T18:28:24.300117196+02:00 [INFO] Using surface present mode MAILBOX
2024-08-17T18:28:24.301709296+02:00 [WARN] Unable to forbid exclusive full screen
2024-08-17T18:28:54.453339604+02:00 [INFO] starting language server. binary path: "/root/.local/share/zed/node/node-v22.5.1-linux-x64/bin/node", working directory: "/", args: ["/root/.local/share/zed/copilot/copilot-v0.5.0/dist/agent.js", "--stdio"]
2024-08-17T18:28:55.426660206+02:00 [INFO] Language server with id 0 sent unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-08-17T16:28:55.413Z] Agent service starting",
  "metadataStr": "[DEBUG] [agent] [2024-08-17T16:28:55.413Z]",
  "extra": [
    "Agent service starting"
  ]
}
2024-08-17T18:28:55.432884306+02:00 [INFO] Language server with id 0 sent unhandled notification client/registerCapability:
{
  "registrations": [
    {
      "id": "b54e97c8-0233-43fb-9c93-1ebe6247dcb0",
      "method": "workspace/didChangeWorkspaceFolders",
      "registerOptions": {}
    }
  ]
}
2024-08-17T18:28:55.509080206+02:00 [INFO] Language server with id 0 sent unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-08-17T16:28:55.448Z] Telemetry initialized",
  "metadataStr": "[DEBUG] [agent] [2024-08-17T16:28:55.448Z]",
  "extra": [
    "Telemetry initialized"
  ]
}
2024-08-17T18:48:12.077184947+02:00 [INFO] ========== starting zed ==========
2024-08-17T18:57:14.494058962+02:00 [INFO] ========== starting zed ==========
2024-08-17T18:57:14.702096372+02:00 [INFO] Compositor detection: _NET_WM_CM_S?=false, _NET_WM_CM_OWNER=false, _NET_SUPPORTING_WM_CHECK=true
2024-08-17T18:57:14.703125672+02:00 [INFO] x11: compositor present: true, gtk_frame_extents_supported: false
2024-08-17T18:57:14.749771774+02:00 [INFO] perform;
2024-08-17T18:57:14.750869075+02:00 [INFO] read_command;
2024-08-17T18:57:14.751985175+02:00 [INFO] read_command;
2024-08-17T18:57:14.759760075+02:00 [INFO] socket reader;
2024-08-17T18:57:14.764444275+02:00 [INFO] new;
2024-08-17T18:57:14.768371175+02:00 [INFO] keep_updated;
2024-08-17T18:57:14.785698476+02:00 [INFO] Opening main db
2024-08-17T18:57:14.836841779+02:00 [INFO] Using git binary path: None
2024-08-17T18:57:14.912202282+02:00 [INFO] set environment variables from shell:/bin/bash, path:/root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
2024-08-17T18:57:15.08034319+02:00 [ERROR] No such file or directory (os error 2) about ["/root/.config/github-copilot"]
2024-08-17T18:57:15.207445696+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-17T18:57:15.209054296+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-17T18:57:15.209448796+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-17T18:57:15.215797896+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-17T18:57:15.2954975+02:00 [INFO] activate is not implemented on Linux, ignoring the call
2024-08-17T18:57:15.2959464+02:00 [INFO] Opening main db
2024-08-17T18:57:15.317270301+02:00 [INFO] perform;
2024-08-17T18:57:15.317527401+02:00 [INFO] read_command;
2024-08-17T18:57:15.317801101+02:00 [INFO] Using Visual { id: 73, colormap: 0, depth: 32 }
2024-08-17T18:57:15.318213001+02:00 [INFO] Creating colormap 6291459
2024-08-17T18:57:15.318390501+02:00 [INFO] read_command;
2024-08-17T18:57:15.318862901+02:00 [INFO] socket reader;
2024-08-17T18:57:15.334510702+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-17T18:57:15.334751902+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-17T18:57:15.334907702+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-17T18:57:15.335062602+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-17T18:57:15.335217802+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-17T18:57:15.93202753+02:00 [INFO] Enabling color space support
2024-08-17T18:57:15.969710332+02:00 [INFO] Adapter "llvmpipe (LLVM 15.0.7, 256 bits)"
2024-08-17T18:57:15.969826832+02:00 [INFO] No ray tracing extensions are supported
2024-08-17T18:57:15.983263033+02:00 [INFO] Using surface present mode MAILBOX
2024-08-17T18:57:15.983899833+02:00 [WARN] Unable to forbid exclusive full screen
2024-08-17T18:57:15.984796933+02:00 [INFO] Creating a descriptor pool for at most 16 sets
2024-08-17T18:57:15.985027833+02:00 [INFO] Creating a descriptor pool for at most 16 sets
2024-08-17T18:57:15.985115233+02:00 [INFO] Initializing Blade pipelines for surface SurfaceInfo { format: Bgra8UnormSrgb, alpha: Ignored }
2024-08-17T18:57:16.172767942+02:00 [INFO] Refreshing at 16677 micros
2024-08-17T18:57:16.181106242+02:00 [INFO] x11: no compositor present, falling back to server-side window decorations
2024-08-17T18:57:16.266469646+02:00 [INFO] Using GPU: GPUSpecs { is_software_emulated: true, device_name: "llvmpipe (LLVM 15.0.7, 256 bits)", driver_name: "llvmpipe", driver_info: "Mesa 23.0.4-0ubuntu1~22.04.1 (LLVM 15.0.7)" }
2024-08-17T18:57:16.932780178+02:00 [INFO] rebuilt extension index in 3.120801ms
2024-08-17T18:57:16.938193978+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-17T18:57:17.066266084+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-17T18:57:17.066581384+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-17T18:57:17.067716884+02:00 [INFO] Node runtime install_if_needed
2024-08-17T18:57:17.078656384+02:00 [INFO] Opening main db
2024-08-17T18:57:17.540318306+02:00 [INFO] Initializing default prettier with plugins {}
2024-08-17T18:57:17.549880407+02:00 [INFO] Initializing default prettier with plugins {}
2024-08-17T18:57:17.551387707+02:00 [INFO] Opening main db
2024-08-17T18:57:17.764541817+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-17T18:57:17.765039117+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-17T18:57:17.771763617+02:00 [ERROR] no worktrees when constructing ProjectLspAdapterDelegate
2024-08-17T18:57:18.099101933+02:00 [INFO] Initializing default prettier with plugins {}
2024-08-17T18:57:18.102003533+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-17T18:57:18.103542433+02:00 [INFO] perform;
2024-08-17T18:57:18.103972533+02:00 [INFO] read_command;
2024-08-17T18:57:18.104218633+02:00 [INFO] read_command;
2024-08-17T18:57:18.104659233+02:00 [INFO] socket reader;
2024-08-17T18:57:18.137431834+02:00 [ERROR] window not found
2024-08-17T18:57:18.137707034+02:00 [ERROR] window not found
@TadaHrd TadaHrd added admin read Pending admin review bug [core label] triage Maintainer needs to classify the issue labels Aug 17, 2024
@TadaHrd TadaHrd changed the title Empty window shows up when running on llvmpipe. Empty window shows up when running on llvmpipe Aug 17, 2024
@Moshyfawn Moshyfawn added workspace Feedback for workspace management, layout, interactions, etc linux linux-x11 Linux X11 and removed triage Maintainer needs to classify the issue labels Aug 18, 2024
@Moshyfawn
Copy link
Member

Could be a duplicate of:

@TadaHrd
Copy link
Author

TadaHrd commented Aug 18, 2024

Could be a duplicate of:

That issue had no solution

@Moshyfawn
Copy link
Member

That issue had no solution

We're trying to identify the cause of the problem: the link to the problem above is for reference.

@notpeter notpeter removed the admin read Pending admin review label Aug 18, 2024
@notpeter
Copy link
Member

@TadaHrd I think your issue may be related to older packages in Ubuntu 22 (updated in Ubuntu24). Others have reported using the backported llvm and mesa from the kisak/kisak-mesa ppa have helped.

Could you try this:

sudo apt-get install libvulkan-dev
sudo add-apt-repository ppa:kisak/kisak-mesa
sudo apt update && sudo apt upgrade

@Moshyfawn Moshyfawn added the needs info / awaiting response Issue that needs more information from the user label Aug 19, 2024
@TadaHrd
Copy link
Author

TadaHrd commented Aug 19, 2024

@TadaHrd I think your issue may be related to older packages in Ubuntu 22 (updated in Ubuntu24). Others have reported using the backported llvm and mesa from the kisak/kisak-mesa ppa have helped.

Could you try this:

sudo apt-get install libvulkan-dev
sudo add-apt-repository ppa:kisak/kisak-mesa
sudo apt update && sudo apt upgrade

I'm on WSL, so installing the mesa drivers broke it even further (vkcube no longer works, it says Failed to create DXCore adapter factory) + there are no vulkan drivers for my GPU. There is no window, just a blinking cursor in the terminal.

@notpeter
Copy link
Member

Sorry to hear that @TadaHrd. One last thing, other folks reported under WSL that this was sufficient to get things working with X11 but not wayland. Any chance this works: WAYLAND_DISPLAY='' zed --foreground (or similarly WAYLAND_DISPLAY='' vkcube)?

@TadaHrd
Copy link
Author

TadaHrd commented Aug 19, 2024

@notpeter Same issue

@danpozmanter
Copy link

WAYLAND_DISPLAY='' zed --foreground doesn't work for me. Same issue.

Getting:

2024-09-30T15:56:45.64222027-04:00 [ERROR] window not found
2024-09-30T15:56:45.642524664-04:00 [ERROR] window not found

From my Zed.log.

Other errors/log info:

2024-09-30T15:56:42.293968626-04:00 [INFO] activate is not implemented on Linux, ignoring the call
2024-09-30T15:56:42.294058878-04:00 [INFO] Opening main db
2024-09-30T15:56:42.300195695-04:00 [INFO] Using Visual { id: 35, colormap: 0, depth: 32 }
2024-09-30T15:56:42.300298357-04:00 [INFO] Creating colormap 113246211
2024-09-30T15:56:42.308402717-04:00 [INFO] perform;
2024-09-30T15:56:42.308496388-04:00 [INFO] authenticate;
2024-09-30T15:56:42.30859013-04:00 [INFO] read_command;
2024-09-30T15:56:42.312594384-04:00 [WARN] request completed with error: failed to connect to the server
2024-09-30T15:56:42.312762436-04:00 [WARN] request completed with error: failed to connect to the server
2024-09-30T15:56:42.312820827-04:00 [WARN] request completed with error: failed to connect to the server
2024-09-30T15:56:42.312877018-04:00 [WARN] request completed with error: failed to connect to the server
2024-09-30T15:56:42.312933079-04:00 [WARN] request completed with error: failed to connect to the server
2024-09-30T15:56:42.31298939-04:00 [WARN] request completed with error: failed to connect to the server
2024-09-30T15:56:42.313138232-04:00 [WARN] request completed with error: failed to connect to the server
2024-09-30T15:56:42.313214053-04:00 [WARN] request completed with error: failed to connect to the server
2024-09-30T15:56:42.313764492-04:00 [WARN] request completed with error: failed to connect to the server
2024-09-30T15:56:42.314106678-04:00 [WARN] request completed with error: failed to connect to the server
2024-09-30T15:56:42.410982481-04:00 [INFO] Using GPU: GPUSpecs { is_software_emulated: true, device_name: "llvmpipe (LLVM 15.0.7, 
256 bits)", driver_name: "llvmpipe", driver_info: "Mesa 23.2.1-1ubuntu3.1~22.04.2 (LLVM 15.0.7)" }
2024-09-30T15:56:42.550158038-04:00 [ERROR] no worktrees when constructing LocalLspAdapterDelegate

@JosephTLyons JosephTLyons removed the needs info / awaiting response Issue that needs more information from the user label Oct 13, 2024
@github-actions github-actions bot added admin read Pending admin review triage Maintainer needs to classify the issue labels Nov 5, 2024
@notpeter notpeter removed triage Maintainer needs to classify the issue admin read Pending admin review labels Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug [core label] linux linux-x11 Linux X11 workspace Feedback for workspace management, layout, interactions, etc
Projects
None yet
Development

No branches or pull requests

6 participants
@notpeter @danpozmanter @Moshyfawn @JosephTLyons @TadaHrd and others