warpdotdev / Warp

Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster.
https://warp.dev
Other
20.86k stars 355 forks source link

warp not working under Chrome Remote Desktop #4237

Open w93163red opened 6 months ago

w93163red commented 6 months ago

Discord username (optional)

w93163red

Describe the bug

15:07:38 [INFO] Spawning terminal server process...
15:07:38 [INFO] Running terminal server...
15:07:38 [WARN] Failed to load font Some("/usr/share/fonts/type1/gsfonts/b018012l.pfb"): InvalidFontFormat("Type 1")
15:07:38 [WARN] Failed to load font Some("/usr/share/fonts/type1/gsfonts/s050000l.pfb"): InvalidFontFormat("Type 1")
15:07:38 [WARN] Unable to fetch system color scheme: FDO(
    ServiceUnknown(
        "The name org.freedesktop.portal.Desktop was not provided by any .service files",
    ),
)
15:07:38 [WARN] Failed to load font: Hack due to error Font family Hack does not contain any valid fonts
15:07:38 [INFO] Failed to read User from secure storage NotFound
15:07:38 [INFO] Initializing crash reporting Some("stable_release") with tag "v0.2024.02.20.08.01.stable_01"...
15:07: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://0195a81da0714f55a93ee4624825f9ec@o540343.ingest.sentry.io/5658526", logfile_name: "warp.log", show_autoupdate_menu_items: true, skip_login: false } and version Some("v0.2024.02.20.08.01.stable_01")
15:07:38 [INFO] Performance metrics collector started
15:07:38 [INFO] Start to flush telemetry events to Segment
15:07:38 [INFO] Initializing app services
15:07:38 [INFO] Start to flush telemetry events to Segment
libEGL warning: failed to open /dev/dri/renderD128: Permission denied

libEGL warning: failed to open /dev/dri/card0: Permission denied

15:07:39 [WARN] No config found!
15:07:39 [WARN] No config found!
15:07:39 [INFO] Connecting to SQLite database
15:07:39 [INFO] fetching team tester status
15:07:39 [INFO] Checking for update on channel stable_release. Update id is QiFpIbE
15:07:39 [INFO] Fetching channel versions (without changelogs) from Warp server
15:07:39 [INFO] dispatching global action for root_view:open_from_restored
15:07:39 [INFO] dispatching global action for root_view:open_new
15:07:39 [WARN] Failed to load font Some("/usr/share/fonts/type1/gsfonts/b018012l.pfb"): InvalidFontFormat("Type 1")
15:07:39 [WARN] Failed to load font Some("/usr/share/fonts/type1/gsfonts/s050000l.pfb"): InvalidFontFormat("Type 1")
15:07:39 [WARN] error getting team tester status: Failed to get access token for GraphQL request. Falling back to in-memory state.
15:07:39 [INFO] Guessed window scale factor: 1
15:07:39 [INFO] Received channel versions from Warp server: dev: ChannelVersion { version_info: VersionInfo { version: "v0.2024.02.22.08.02.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.02.22.08.02.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.02.20.08.02.beta_00", update_by: None, soft_cutoff: None }, overrides: [] }; stable: ChannelVersion { version_info: VersionInfo { version: "v0.2024.02.13.08.02.stable_00", update_by: None, soft_cutoff: Some("v0.2023.12.19.08.02.stable_00") }, overrides: [VersionOverride { predicate: TargetOS(Linux), version_info: VersionInfo { version: "v0.2024.02.20.08.01.stable_01", update_by: None, soft_cutoff: None } }] }
libEGL warning: failed to open /dev/dri/renderD128: Permission denied

libEGL warning: failed to open /dev/dri/card0: Permission denied

15:07:39 [WARN] No config found!
15:07:39 [WARN] No config found!
15:07:39 [INFO] Enabled wgpu backends: Backends(VULKAN | GL | METAL | DX12 | DX11 | BROWSER_WEBGPU)
15:07:39 [INFO] Available wgpu adapters:
15:07:39 [INFO] Cpu: llvmpipe (LLVM 15.0.7, 256 bits)
15:07:39 [INFO]         Driver: llvmpipe (Mesa 23.0.4-0ubuntu1~22.04.1 (LLVM 15.0.7))
15:07:39 [INFO] Cpu: llvmpipe (LLVM 15.0.7, 256 bits)
15:07:39 [INFO]         Driver: Unknown
15:07:39 [INFO] Using Cpu (llvmpipe (LLVM 15.0.7, 256 bits)) for rendering new window.
15:07:39 [WARN] Failed to load font Some("/usr/share/fonts/X11/Type1/c0583bt_.pfb"): InvalidFontFormat("Type 1")
15:07:39 [WARN] Failed to load font Some("/usr/share/fonts/type1/gsfonts/b018015l.pfb"): InvalidFontFormat("Type 1")
15:07:39 [WARN] Failed to load font Some("/usr/share/fonts/type1/gsfonts/s050000l.pfb"): InvalidFontFormat("Type 1")
15:07:39 [INFO] No update available
15:07:39 [WARN] redraw_frame was called 2 times before the frame was drawn
15:07:39 [INFO] active window changed: Some(WindowId(0))
15:07:39 [INFO] dispatching global action for root_view:update_quake_mode_state
15:07:39 [INFO] dispatching global action for workspace:save_app
15:07:39 [INFO] Successfully flushed events to segment from disk
15:07:39 [INFO] Flushed telemetry events.
15:07:41 [INFO] active window changed: None
15:07:41 [INFO] dispatching global action for root_view:update_quake_mode_state
15:07:41 [INFO] dispatching global action for workspace:save_app
15:08:09 [INFO] Start to flush telemetry events to Segment
15:08:09 [INFO] Dropping empty telemetry batch
15:08:09 [INFO] Flushed telemetry events.
15:08:38 [INFO] active window changed: Some(WindowId(0))
15:08:38 [INFO] dispatching global action for root_view:update_quake_mode_state
15:08:38 [INFO] dispatching global action for workspace:save_app
15:08:39 [INFO] active window changed: None
15:08:39 [INFO] dispatching global action for root_view:update_quake_mode_state
15:08:39 [INFO] dispatching global action for workspace:save_app
15:08:39 [INFO] active window changed: Some(WindowId(0))
15:08:39 [INFO] dispatching global action for root_view:update_quake_mode_state
15:08:39 [INFO] dispatching global action for workspace:save_app
15:08:39 [INFO] active window changed: None
15:08:39 [INFO] dispatching global action for root_view:update_quake_mode_state
15:08:39 [INFO] dispatching global action for workspace:save_app
15:08:39 [INFO] Start to flush telemetry events to Segment
15:08:39 [INFO] Dropping empty telemetry batch
15:08:39 [INFO] Flushed telemetry events.
15:08:41 [INFO] active window changed: Some(WindowId(0))
15:08:41 [INFO] dispatching global action for root_view:update_quake_mode_state
15:08:41 [INFO] dispatching global action for workspace:save_app
15:08:43 [INFO] active window changed: None
15:08:43 [INFO] dispatching global action for root_view:update_quake_mode_state
15:08:43 [INFO] dispatching global action for workspace:save_app
15:09:09 [INFO] Start to flush telemetry events to Segment
15:09:09 [INFO] Dropping empty telemetry batch
15:09:09 [INFO] Flushed telemetry events.

To reproduce

  1. use chrome remote desktop to connect to the target machine
  2. run warp

Expected behavior

should start the app

Screenshots

image

Operating system

Linux

Operating system and version

ubuntu 22.04 LTS

Shell Version

zsh 5.8.1 (x86_64-ubuntu-linux-gnu)

Current Warp version

latest linux version

Regression

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

Recent working Warp date

No response

Additional context

No response

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

dannyneira commented 6 months ago

hey @w93163red sorry about this blocker. It's not clear from the logs you posted what the issue may be. Please post fresh logs found in ~/.local/state/warp-terminal/warp.log. We recommend quitting Warp, deleting the log file, starting Warp again (for a fresh set of logs), and then attaching that file. Also, are you using Wayland or X11? Finally, we'd benefit from the output of glxinfo -B (you may need to install mesa-utils to run that).

w93163red commented 6 months ago

warp.log

$ echo $XDG_SESSION_TYPE 
x11

$ glxinfo -B 
name of display: :20
display: :20  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Mesa (0xffffffff)
    Device: llvmpipe (LLVM 15.0.7, 256 bits) (0xffffffff)
    Version: 23.0.4
    Accelerated: no
    Video memory: 63941MB
    Unified memory: yes
    Preferred profile: core (0x1)
    Max core profile version: 4.5
    Max compat profile version: 4.5
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
OpenGL vendor string: Mesa
OpenGL renderer string: llvmpipe (LLVM 15.0.7, 256 bits)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 23.0.4-0ubuntu1~22.04.1
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.5 (Compatibility Profile) Mesa 23.0.4-0ubuntu1~22.04.1
OpenGL shading language version string: 4.50
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 23.0.4-0ubuntu1~22.04.1
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
iat963 commented 6 months ago

% sudo apt install fonts-hack

w93163red commented 6 months ago

Thanks! this solved the problem

vorporeal commented 6 months ago

Wait - @w93163red did installing the Hack font fix the crash? Or just eliminate that warning log? (If the latter, you shouldn't need to install Hack, as we distribute it alongside the app.)

w93163red commented 6 months ago

After install fonts-hack it solved the crash

vorporeal commented 6 months ago

Did you install that package on your local machine or the remote one?

w93163red commented 6 months ago

Remote

alokedesai commented 5 months ago

@w93163red @iat963 If you uninstall hack could you elaborate on exactly what you see? Does a window open with no visible text?