warp icon indicating copy to clipboard operation
warp copied to clipboard

Warp Terminal panics when opened on Ubuntu 22.04 with XError { description: "136", error_code: 136, request_code: 148, minor_code: 1 }

Open C2thehris opened this issue 2 years ago • 9 comments

Discord username (optional)

No response

Describe the bug

21:03:38 [INFO] Spawning terminal server process...
21:03:38 [INFO] Running terminal server...
21:03:38 [WARN] Failed to load font Some("/usr/share/fonts/X11/Type1/c0419bt_.pfb"): InvalidFontFormat("Type 1")
21:03:38 [WARN] Failed to load font Some("/usr/share/fonts/type1/gsfonts/b018012l.pfb"): InvalidFontFormat("Type 1")
21:03:38 [WARN] Failed to load font Some("/usr/share/fonts/type1/gsfonts/s050000l.pfb"): InvalidFontFormat("Type 1")
21:03:38 [WARN] Failed to load font: Hack due to error Font family Hack does not contain any valid fonts

Stack backtrace:
   0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: <unknown>
   7: <unknown>
   8: <unknown>
   9: <unknown>
  10: <unknown>
  11: <unknown>
  12: <unknown>
  13: <unknown>
  14: <unknown>
  15: __libc_start_call_main
             at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
  16: __libc_start_main_impl
             at ./csu/../csu/libc-start.c:392:3
  17: <unknown>
21:03:38 [INFO] Initializing crash reporting Some("linux_stable_release") with tag "v0.2024.03.19.08.01.stable_01"...
21:03:38 [INFO] Starting warp with channel state ChannelState { channel: Stable, app_id: AppId { qualifier: "dev", organization: "warp", application_name: "Warp" }, additional_features: {}, firebase_api_key: "AIzaSyBdy3O3S9hrdayLJxJ7mriBR4qgUaUygAs", server_root_url: "https://app.warp.dev", ws_server_url: "wss://rtc.app.warp.dev/graphql", session_sharing_server_url: Some("wss://session-sharing-server-o3mgmiurkq-uk.a.run.app"), segment_write_key: "sTT9ZajzIaQ0phzLFOnqZ6VOqplJTlaJ", segment_root_url: "https://api.segment.io", releases_base_url: "https://releases.warp.dev", sentry_url: "https://[email protected]/5658526", logfile_name: "warp.log", show_autoupdate_menu_items: true, skip_login: false } and version Some("v0.2024.03.19.08.01.stable_01")
21:03:38 [INFO] Performance metrics collector started
21:03:38 [INFO] Start to flush telemetry events to Segment
21:03:38 [INFO] Dropping empty telemetry batch
21:03:38 [INFO] Initializing app services
21:03:38 [INFO] Flushed telemetry events.
libEGL warning: DRI3: Screen seems not DRI3 capable
libEGL warning: DRI2: failed to authenticate
21:03:38 [INFO] Connecting to SQLite database
21:03:38 [INFO] fetching team tester status
21:03:38 [INFO] Checking for update on channel stable_release. Update id is XNO7LMG
21:03:38 [INFO] Fetching channel versions (without changelogs) from Warp server
21:03:38 [INFO] dispatching global action for root_view:open_from_restored
21:03:38 [INFO] Computing available system fonts
21:03:38 [INFO] Block finished with new state DoneWithExecution
21:03:38 [INFO] Block finished with new state DoneWithExecution
21:03:38 [INFO] Block finished with new state DoneWithExecution
21:03:38 [INFO] Block finished with new state DoneWithExecution
21:03:38 [INFO] Block finished with new state DoneWithExecution
21:03:38 [INFO] Block finished with new state DoneWithExecution
21:03:38 [INFO] Block finished with new state DoneWithExecution
21:03:38 [INFO] Block finished with new state DoneWithExecution
21:03:38 [INFO] Block finished with new state DoneWithExecution
21:03:38 [INFO] Block finished with new state DoneWithExecution
21:03:38 [INFO] Block finished with new state DoneWithExecution
21:03:38 [INFO] Starting shell /bin/bash
21:03:38 [INFO] Successfully spawned tty with pid: 340487
21:03:38 [INFO] Successfully spawned child bash process with pid 340487
21:03:38 [INFO] Fetching channel versions and changelogs from Warp server
21:03:38 [INFO] dispatching global action for workspace:save_app
21:03:38 [INFO] dispatching global action for workspace:save_app
21:03:38 [WARN] Tried to update block filter query without active_filter_editor_block_index set
21:03:38 [INFO] dispatching global action for workspace:save_app
21:03:38 [WARN] Failed to load font Some("/usr/share/fonts/X11/Type1/c0419bt_.pfb"): InvalidFontFormat("Type 1")
21:03:38 [WARN] Failed to load font Some("/usr/share/fonts/type1/gsfonts/b018012l.pfb"): InvalidFontFormat("Type 1")
21:03:38 [WARN] Failed to load font Some("/usr/share/fonts/type1/gsfonts/s050000l.pfb"): InvalidFontFormat("Type 1")
21:03:38 [WARN] No alert dialog was set for the native modal
21:03:38 [WARN] Tried to render share modal without a model
21:03:38 [WARN] Tried to render share modal without a model
21:03:38 [WARN] No alert dialog was set for the native modal
21:03:38 [INFO] Received InitShell hook
21:03:38 [INFO] Guessed window scale factor: 2
21:03:38 [INFO] Loaded 108 font families
libEGL warning: DRI3: Screen seems not DRI3 capable
libEGL warning: DRI2: failed to authenticate
21:03:38 [INFO] Received channel versions from Warp server: dev: ChannelVersion { version_info: VersionInfo { version: "v0.2024.03.27.08.01.dev_00", update_by: None, soft_cutoff: Some("v0.2023.05.12.08.03.dev_00") }, overrides: [] }; preview: ChannelVersion { version_info: VersionInfo { version: "v0.2024.03.27.08.01.preview_00", update_by: None, soft_cutoff: None }, overrides: [] }; canary: ChannelVersion { version_info: VersionInfo { version: "v0.2022.09.29.08.08.canary_00", update_by: None, soft_cutoff: None }, overrides: [] }; beta: ChannelVersion { version_info: VersionInfo { version: "v0.2024.03.26.08.02.beta_00", update_by: None, soft_cutoff: None }, overrides: [] }; stable: ChannelVersion { version_info: VersionInfo { version: "v0.2024.03.19.08.01.stable_01", update_by: None, soft_cutoff: Some("v0.2024.01.30.16.52.stable_01") }, overrides: [] }
21:03:38 [INFO] Enabled wgpu backends: Backends(VULKAN | GL | METAL | DX12 | DX11 | BROWSER_WEBGPU)
21:03:38 [INFO] Available wgpu adapters (in priority order):
21:03:38 [INFO] IntegratedGpu: Intel(R) UHD Graphics 630 (CFL GT2)
	Backend: Vulkan
	Driver: Intel open-source Mesa driver (Mesa 23.2.1-1ubuntu3.1~22.04.2)
	Can present? true
	Supported texture format: Some(Bgra8UnormSrgb)
21:03:38 [INFO] Cpu: llvmpipe (LLVM 15.0.7, 256 bits)
	Backend: Vulkan
	Driver: llvmpipe (Mesa 23.2.1-1ubuntu3.1~22.04.2 (LLVM 15.0.7))
	Can present? true
	Supported texture format: Some(Bgra8UnormSrgb)
21:03:38 [WARN] Discarding Vulkan-backed llvmpipe adapter due to Mesa < 24.0.2 (unsupported)
21:03:38 [INFO] Cpu: llvmpipe (LLVM 15.0.7, 256 bits)
	Backend: Gl
	Driver: Unknown
	Can present? true
	Supported texture format: Some(Rgba8UnormSrgb)
21:03:38 [INFO] Verifying adapter "Intel(R) UHD Graphics 630 (CFL GT2)" is valid...
21:03:38 [WARN] Requested size 4x4 is outside of the supported range: Extent3d { width: 2560, height: 1440, depth_or_array_layers: 1 }..=Extent3d { width: 2560, height: 1440, depth_or_array_layers: 1 }
21:03:38 [INFO] Using IntegratedGpu (Intel(R) UHD Graphics 630 (CFL GT2)) for rendering new window.
21:03:38 [WARN] Tried to render share modal without a model
21:03:38 [WARN] No alert dialog was set for the native modal
21:03:38 [WARN] Failed to load font Some("/usr/share/fonts/type1/gsfonts/c059013l.pfb"): InvalidFontFormat("Type 1")
21:03:38 [WARN] Failed to load font Some("/usr/share/fonts/type1/urw-base35/C059-Roman.t1"): InvalidFontFormat("Type 1")
21:03:38 [WARN] Failed to load font Some("/usr/share/fonts/type1/gsfonts/s050000l.pfb"): InvalidFontFormat("Type 1")
21:03:38 [WARN] Failed to load font Some("/usr/share/fonts/X11/Type1/c0583bt_.pfb"): InvalidFontFormat("Type 1")
21:03:38 [WARN] Failed to load font Some("/usr/share/fonts/type1/gsfonts/b018015l.pfb"): InvalidFontFormat("Type 1")
21:03:38 [WARN] Failed to load font Some("/usr/share/fonts/type1/gsfonts/s050000l.pfb"): InvalidFontFormat("Type 1")
21:03:38 [INFO] fetching teams metadata
21:03:38 [INFO] fetching updated cloud objects, including generic string objects
21:03:38 [INFO] forcing sync of all objects
21:03:38 [INFO] Finished loading 108 fonts
21:03:38 [INFO] Received channel versions from Warp server: dev: ChannelVersion { version_info: VersionInfo { version: "v0.2024.03.27.08.01.dev_00", update_by: None, soft_cutoff: Some("v0.2023.05.12.08.03.dev_00") }, overrides: [] }; preview: ChannelVersion { version_info: VersionInfo { version: "v0.2024.03.27.08.01.preview_00", update_by: None, soft_cutoff: None }, overrides: [] }; canary: ChannelVersion { version_info: VersionInfo { version: "v0.2022.09.29.08.08.canary_00", update_by: None, soft_cutoff: None }, overrides: [] }; beta: ChannelVersion { version_info: VersionInfo { version: "v0.2024.03.26.08.02.beta_00", update_by: None, soft_cutoff: None }, overrides: [] }; stable: ChannelVersion { version_info: VersionInfo { version: "v0.2024.03.19.08.01.stable_01", update_by: None, soft_cutoff: Some("v0.2024.01.30.16.52.stable_01") }, overrides: [] }
21:03:38 [INFO] No update available
21:03:38 [WARN] redraw_frame was called 24 times before the frame was drawn
21:03:38 [ERROR] X11 error: XError {
    description: "BadMatch (invalid parameter attributes)",
    error_code: 8,
    request_code: 149,
    minor_code: 4,
}
21:03:38 [ERROR] X11 error: XError {
    description: "BadMatch (invalid parameter attributes)",
    error_code: 8,
    request_code: 149,
    minor_code: 4,
}
21:03:38 [ERROR] X11 error: XError {
    description: "BadMatch (invalid parameter attributes)",
    error_code: 8,
    request_code: 149,
    minor_code: 4,
}
21:03:38 [ERROR] X11 error: XError {
    description: "BadMatch (invalid parameter attributes)",
    error_code: 8,
    request_code: 149,
    minor_code: 4,
}
21:03:38 [ERROR] X11 error: XError {
    description: "BadMatch (invalid parameter attributes)",
    error_code: 8,
    request_code: 149,
    minor_code: 4,
}
21:03:38 [ERROR] X11 error: XError {
    description: "BadMatch (invalid parameter attributes)",
    error_code: 8,
    request_code: 149,
    minor_code: 4,
}
21:03:38 [ERROR] X11 error: XError {
    description: "136",
    error_code: 136,
    request_code: 148,
    minor_code: 1,
}
21:03:38 [INFO] dispatching global action for workspace:save_app
21:03:38 [INFO] window resized
21:03:38 [INFO] dispatching global action for workspace:save_app
21:03:38 [INFO] Received CommandFinished hook
21:03:38 [INFO] Block finished with new state DoneWithNoExecution
21:03:38 [INFO] Incrementing stage from WarpInput to ScriptExecution
21:03:38 [INFO] dispatching global action for workspace:save_app
21:03:38 [INFO] active window changed: Some(WindowId(0))
21:03:38 [INFO] dispatching global action for root_view:update_quake_mode_state
21:03:38 [INFO] dispatching global action for workspace:save_app
21:03:38 [INFO] Received Precmd hook
21:03:38 [WARN] redraw_frame was called 5 times before the frame was drawn
21:03:38 [ERROR] X11 error: XError {
    description: "136",
    error_code: 136,
    request_code: 148,
    minor_code: 1,
}
21:03:38 [WARN] redraw_frame was called 4 times before the frame was drawn
21:03:38 [INFO] Received Bootstrapped hook
21:03:38 [INFO] Configured typeahead mode as ShellReported
21:03:38 [INFO] Parsed shell version string: Some([Number(5), Number(1), Number(16), Number(1), Text("release")])
21:03:38 [INFO] Shell is bootstrapped with session_id SessionId(171158781821193)
21:03:38 [INFO] Loading history from file /home/username/.bash_history for shell bash
21:03:38 [ERROR] X11 error: XError {
    description: "136",
    error_code: 136,
    request_code: 148,
    minor_code: 1,
}
21:03:38 [INFO] Received CommandFinished hook
21:03:38 [INFO] Block finished with new state DoneWithNoExecution
21:03:38 [INFO] Incrementing stage from Bootstrapped to PostBootstrapPrecmd
21:03:38 [INFO] Received Precmd hook
thread 'main' panicked at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/platform_impl/linux/x11/window.rs:1084:14:
Failed to set window title: XError { description: "136", error_code: 136, request_code: 148, minor_code: 1 }
stack backtrace:
   0:     0x62091cdbf97b - <unknown>
   1:     0x62091c510f70 - <unknown>
   2:     0x62091cdbae53 - <unknown>
   3:     0x62091cdbf714 - <unknown>
   4:     0x62091cdc1bc0 - <unknown>
   5:     0x62091cdc18df - <unknown>
   6:     0x62091cdc228f - <unknown>
   7:     0x62091cdc1fe2 - <unknown>
   8:     0x62091cdbfe76 - <unknown>
   9:     0x62091cdc1d50 - <unknown>
  10:     0x62091c1d2325 - <unknown>
  11:     0x62091c1d2873 - <unknown>
  12:     0x62091e687291 - <unknown>
  13:     0x62091df622b9 - <unknown>
  14:     0x62091df6e7ae - <unknown>
  15:     0x62091d7ec406 - <unknown>
  16:     0x62091e751487 - <unknown>
  17:     0x62091e75652d - <unknown>
  18:     0x62091d179c79 - <unknown>
  19:     0x62091e5bde5f - <unknown>
  20:     0x62091e680c0f - <unknown>
  21:     0x62091d1d1b60 - <unknown>
  22:     0x62091df872ca - <unknown>
  23:     0x62091cd94184 - <unknown>
  24:     0x62091cd93cf3 - <unknown>
  25:     0x62091cd93d0d - <unknown>
  26:     0x62091cdb1615 - <unknown>
  27:     0x62091cd9427c - <unknown>
  28:     0x7b1fba229d90 - __libc_start_call_main
                               at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
  29:     0x7b1fba229e40 - __libc_start_main_impl
                               at ./csu/../csu/libc-start.c:392:3
  30:     0x62091c30daae - <unknown>
  31:                0x0 - <unknown>

To reproduce

$ RUST_BACKTRACE=full warp-terminal

Expected behavior

No response

Screenshots

No response

Operating system

Linux

Operating system and version

Ubuntu 22.04

Shell Version

GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu)

Current Warp version

v0.2024.03.19.08.01.stable.01

Regression

Yes, this bug started recently or with an X Warp version

Recent working Warp date

About a week ago, probably before update

Additional context

Using X11

Does this block you from using Warp daily?

Yes, this issue prevents me from using Warp daily.

Is this a Warp specific issue? (i.e. does it happen in Terminal, iTerm, Kitty, etc.)

Yes, this I confirmed this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

C2thehris avatar Mar 28 '24 01:03 C2thehris

Mind sharing the output of xdpyinfo -queryExt | grep opcode? It'll let us know what X11 extensions the request codes in the output represent.

vorporeal avatar Mar 28 '24 01:03 vorporeal

BIG-REQUESTS  (opcode: 133)
Composite  (opcode: 142)
DAMAGE  (opcode: 143, base event: 91, base error: 152)
DOUBLE-BUFFER  (opcode: 145, base error: 153)
DPMS  (opcode: 147)
DRI2  (opcode: 155, base event: 119)
DRI3  (opcode: 149)
GLX  (opcode: 152, base event: 95, base error: 158)
Generic Event Extension  (opcode: 128)
MIT-SCREEN-SAVER  (opcode: 144, base event: 92)
MIT-SHM  (opcode: 130, base event: 65, base error: 128)
NV-CONTROL  (opcode: 157, base event: 121)
NV-GLX  (opcode: 156)
Present  (opcode: 148)
RANDR  (opcode: 140, base event: 89, base error: 147)
RECORD  (opcode: 146, base error: 154)
RENDER  (opcode: 139, base error: 142)
SECURITY  (opcode: 137, base event: 86, base error: 138)
SHAPE  (opcode: 129, base event: 64)
SYNC  (opcode: 134, base event: 83, base error: 134)
X-Resource  (opcode: 150)
XC-MISC  (opcode: 136)
XFIXES  (opcode: 138, base event: 87, base error: 140)
XFree86-DGA  (opcode: 154, base event: 112, base error: 179)
XFree86-VidModeExtension  (opcode: 153, base error: 172)
XINERAMA  (opcode: 141)
XINERAMA  (opcode: 141)
XInputExtension  (opcode: 131, base event: 66, base error: 129)
XKEYBOARD  (opcode: 135, base event: 85, base error: 137)
XTEST  (opcode: 132)
XVideo  (opcode: 151, base event: 93, base error: 155)

C2thehris avatar Mar 28 '24 01:03 C2thehris

Just to confirm - are you running Ubuntu inside a VM/virtualized environment (including WSL) or directly on the hardware?

vorporeal avatar Mar 28 '24 01:03 vorporeal

Also, do you see a window appear at any point or does it crash without anything visible showing up?

vorporeal avatar Mar 28 '24 01:03 vorporeal

I am running Ubuntu directly on hardware. There was a window popping up for a split second that looked identical to the terminal I was running warp from.

Thanks for the speedy replies by the way!

C2thehris avatar Mar 28 '24 01:03 C2thehris

No problem; trying to see if there's anything important we should attempt to fix last-minute before tomorrow's release. :)

If you run WGPU_BACKEND=gl warp-terminal, does that start correctly?

Also, your original response indicated that a previous version of Warp worked? If so, try downloading and installing this .deb package (the previous release) and let me know if that works as expected: https://releases.warp.dev/stable/v0.2024.03.12.08.02.stable_02/warp-terminal_0.2024.03.12.08.02.stable.02_amd64.deb

vorporeal avatar Mar 28 '24 01:03 vorporeal

One other easy thing to check: is libxshmfence1 installed? (Can run apt search libxshmfence1 and paste the output here.)

vorporeal avatar Mar 28 '24 01:03 vorporeal

Actually I realized I hadn't rebooted in a while (probably about a week). Rebooting solved the issue!

C2thehris avatar Mar 28 '24 02:03 C2thehris

Aha! That was the next thing I was going to suggest :sweat_smile:

Glad to hear it was such a simple fix! I wonder if we should add a log line when we detect such errors to let users know they might want to reboot :thinking:

vorporeal avatar Mar 28 '24 02:03 vorporeal