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
21.29k stars 370 forks source link

Can't open Warp-terminal in garuda-linux #4332

Closed Sarath191181208 closed 8 months ago

Sarath191181208 commented 8 months ago

Discord username (optional)

No response

Describe the bug

I can't run warp-terminal it isn't even starting up

To reproduce

// lsb_release -a
LSB Version: n/a Distributor ID: Garuda Description: Garuda Linux Release: Soaring Codename: Spizaetus

// zsh --version
zsh 5.9 (x86_64-pc-linux-gnu)

This is the os and the shell I am using, maybe this will help to reproduce the bug

Expected behavior

I expect the terminal to open and work just fine from the command line

Screenshots

No response

Operating system

Linux

Operating system and version

Garuda Linux

Shell Version

zsh 5.9 (x86_64-pc-linux-gnu)

Current Warp version

v0.2024.02.20.08.01.stable_02-1-x86_64

Regression

No, this bug or issue has existed throughout my experience using Warp

Recent working Warp date

-- None --

Additional context

I am using i3-wm if it has to do anything with it

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

LFd3v commented 8 months ago

Hi, there. Can you please try to start warp-terminal from another terminal add share the output here as a code block to help troubleshooting it? Thank you.

Sarath191181208 commented 8 months ago

command run is RUST_BACKTRACE=1 warp-terminal

stdout is a tty true, in CI false.  using logfile: false
19:33:45 [INFO] Spawning terminal server process...
19:33:45 [INFO] Running terminal server...
19:33:45 [WARN] Failed to load a font face 0 from source cause font doesn't have a family name.
19:33:45 [WARN] Unable to fetch system color scheme: FDO(
    UnknownMethod(
        "No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop",
    ),
)
19:33:45 [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: __libc_start_main
  15: <unknown>
19:33:45 [ERROR] Failed to acquire default Secret Service collection: unknown error
19:33:45 [INFO] Failed to read User from secure storage NotFound
19:33:45 [INFO] Initializing crash reporting Some("stable_release") with tag "v0.2024.02.20.08.01.stable_02"...
19:33:45 [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_02")
19:33:45 [INFO] Performance metrics collector started
19:33:45 [INFO] Start to flush telemetry events to Segment
19:33:45 [INFO] Initializing app services
libEGL warning: failed to get driver name for fd -1

libEGL warning: MESA-LOADER: failed to retrieve device information

libEGL warning: failed to get driver name for fd -1

19:33:45 [WARN]     EGL context: -robust access
19:33:45 [INFO] Connecting to SQLite database
19:33:45 [INFO] Checking for update on channel stable_release. Update id is Set4E20
19:33:45 [INFO] fetching team tester status
19:33:45 [INFO] Fetching channel versions (without changelogs) from Warp server
19:33:45 [INFO] dispatching global action for root_view:open_from_restored
19:33:45 [INFO] dispatching global action for root_view:open_new
19:33:45 [WARN] Failed to load a font face 0 from source cause font doesn't have a family name.
19:33:45 [WARN] error getting team tester status: Failed to get access token for GraphQL request. Falling back to in-memory state.
19:33:45 [INFO] Guessed window scale factor: 1
libEGL warning: failed to get driver name for fd -1

libEGL warning: MESA-LOADER: failed to retrieve device information

libEGL warning: failed to get driver name for fd -1

19:33:45 [WARN]     EGL context: -robust access
19:33:45 [INFO] Enabled wgpu backends: Backends(VULKAN | GL | METAL | DX12 | DX11 | BROWSER_WEBGPU)
19:33:45 [INFO] Available wgpu adapters:
19:33:45 [INFO] Cpu: llvmpipe (LLVM 16.0.6, 128 bits)
19:33:45 [INFO]     Driver: llvmpipe (Mesa 24.0.1-arch1.1 (LLVM 16.0.6))
19:33:45 [INFO] Other: NVA8
19:33:45 [INFO]     Driver: Unknown
19:33:45 [INFO] Using Other (NVA8) for rendering new window.
19:33:45 [ERROR] Failed to open window: Limit 'max_inter_stage_shader_components' value 64 is better than allowed 60
19:33:45 [WARN] Redraw requested for a window for which we have no state
19:33:45 [WARN] Redraw requested for a window for which we have no state
19:33:45 [INFO] application will terminate
19:33:45 [INFO] Shutting down SQLite writer thread
19:33:45 [INFO] Shut down SQLite writer in 434.651µs
19:33:45 [INFO] Writing queued events to disk because telemetry is enabled.
19:33:45 [INFO] Successfully wrote telemetry events to disk
19:33:45 [INFO] Tearing down app services...
19:33:45 [INFO] Received empty message; assuming the connection has been closed.
Sarath191181208 commented 8 months ago

I don't know if this will help but, I have already tired deleting the config of warp-terminal found in ~/.config/warp-terminal as mentioned in this issue-4233 but this didn't change anything. I even diffed it to find no change in the terminal logs. Tried running warp-terminal as super user but no luck.

LFd3v commented 8 months ago

19:33:45 [INFO] Enabled wgpu backends: Backends(VULKAN | GL | METAL | DX12 | DX11 | BROWSER_WEBGPU) 19:33:45 [INFO] Available wgpu adapters: 19:33:45 [INFO] Cpu: llvmpipe (LLVM 16.0.6, 128 bits) 19:33:45 [INFO] Driver: llvmpipe (Mesa 24.0.1-arch1.1 (LLVM 16.0.6)) 19:33:45 [INFO] Other: NVA8 19:33:45 [INFO] Driver: Unknown 19:33:45 [INFO] Using Other (NVA8) for rendering new window.

Hello, again. What DE is being used? It seems that a proper GPU driver is not installed/available. Could you please add this extra info as a code block?

lspci -k | grep -A 2 -E "(VGA|3D)"
glxinfo | grep -i opengl
Sarath191181208 commented 8 months ago

I am really sorry for not knowing what a DE is. I think it's developer environment if so, I am using

lspci -k | grep -A 2 -E "(VGA|3D)"

01:00.0 VGA compatible controller: NVIDIA Corporation GT218M [NVS 3100M] (rev a2)
    Subsystem: Dell GT218M [NVS 3100M]
    Kernel driver in use: nouveau

glxinfo | grep -i opengl

OpenGL vendor string: Mesa
OpenGL renderer string: NVA8
OpenGL core profile version string: 3.3 (Core Profile) Mesa 24.0.1-arch1.1
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.3 (Compatibility Profile) Mesa 24.0.1-arch1.1
OpenGL shading language version string: 3.30
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.1 Mesa 24.0.1-arch1.1
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10
OpenGL ES profile extensions:
LFd3v commented 8 months ago

01:00.0 VGA compatible controller: NVIDIA Corporation GT218M [NVS 3100M] (rev a2) Subsystem: Dell GT218M [NVS 3100M] Kernel driver in use: nouveau

Thank you for the info. DE = Desktop Environment, you are using i3.

It seems that the open source driver nouveau does not provide the necessary features needed for Warp GPU rendering (wgpu). If your machine has hybrid graphics, you can try to use the internal GPU. Or try installing the proprietary NVidia drivers, which should add 3D acceleration and other features as well.

Sarath191181208 commented 8 months ago

Ok sure I will try it and will let you know. Thanks

Sarath191181208 commented 8 months ago

I tried hybrid graphics by following arch wiki but it didn't work there are no graphics. So I tried installing proprietary NVidia drivers using this command sudo pacman -S garuda-nvidia-prime-config. I have sucessfully installed drivers which I confirmed using lspci -k | grep -A 2 -E "(VGA|3D)" Output:

01:00.0 VGA compatible controller: NVIDIA Corporation GT218M [NVS 3100M] (rev a2)
    Subsystem: Dell GT218M [NVS 3100M]
    Kernel modules: nouveau, nvidia_drm, nvidia

The same issue as hybrid graphics persists no graphics output. For reference the graphics is like this the background is just my wallpaper, please ignore: warp-transparent-terminal.

LFd3v commented 8 months ago

01:00.0 VGA compatible controller: NVIDIA Corporation GT218M [NVS 3100M] (rev a2) Subsystem: Dell GT218M [NVS 3100M] Kernel modules: nouveau, nvidia_drm, nvidia

Thank you for your reply. I think maybe there is some problem now, because the output is missing Kernel driver in use as before. You may need to blacklist nouveau in order to allow the proprietary driver to load.

Also, you can try to force the use of the OpenGL driver, maybe it works even with the nouveau driver (I am sorry, I should have mentioned this before):

WGPU_BACKEND=gl warp-terminal
Sarath191181208 commented 8 months ago

Thank you it worked.

LFd3v commented 8 months ago

Thank you it worked.

Could you please detail what you did: you had to blacklist nouveau or use the OpenGL driver? Thanks.

Sarath191181208 commented 8 months ago

I tried both using the opengl driver was quite slow. When I was searching up for hybrid graphics stumbled upon this arch wiki used the same to blacklist nouveau driver