Crash in gpui X11 when running with custom display
Summary
zed --foreground
thread 'main' panicked at crates/gpui/src/platform/linux/x11/client.rs:317:14:
called `Result::unwrap()` on an `Err` value: X11Error(X11Error { error_kind: Request, error_code: 1, sequence: 5, bad_value: 0, minor_opcode: 47, major_opcode: 130, extension_name: Some("XInputExtension"), request_name: Some("XIQueryVersion") })
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Description
Steps to trigger the problem:
- Use custom display (in my example i open i3wm via x2go and try execute zed)
- run zed #--foreground for debug
- have problem
Actual Behavior: fail start Expected Behavior: normal opening application
if i start via ssh -X forwarding - window is openning, also i tryed export DISPLAY=:DISPLAY_USED_FOR_SESSION_I3_IN_X2GO; zed --foreground
Zed Version and System Specs
preview 0.181.5 569132dec162c00797416e62f6b6235883864693 archlinux
If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.
No response
Hey, I'm a bit confused from your issue description, are you trying to run Zed in remote dev, i.e. connecting via ssh to a remote server, or is the crash only related to using the custom display and it happens regardless of whether the open project is local on the machine or on a remote machine.
The crash occurs specifically when using X2Go's X server (likely Xvfb or Xorg with limited extensions), regardless of whether I open local or remote projects. Reproduction steps:
Connect via X2Go to a remote Linux machine running i3wm.
Run zed --foreground in the terminal → Crash.
Works when:
Using SSH with X11 forwarding (ssh -X user@host zed).
Using local X server (outside X2Go session).
I believe this is because Zed currently requires XInput >= 2 and from searching online x2go does not support it. I've updated the issue title to reflect this