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

Support Warp for Linux on WSL (Windows Subsystem for Linux) #4240

Open
dannyneira opened this issue Feb 22, 2024 · 129 comments
Open

Support Warp for Linux on WSL (Windows Subsystem for Linux) #4240

dannyneira opened this issue Feb 22, 2024 · 129 comments
Labels
Feature requests Feature Requests

Comments

@dannyneira
Copy link
Member

dannyneira commented Feb 22, 2024

The issue for users to track and show support for running Warp for Linux on WSL.

To be clear, we are still working on making a native Warp for Windows (exe), which we will post about on #204 later this year so stay tuned!

We have a list of workarounds to issues running Linux here. If any of the workarounds help, please comment on #4513 with your Linux distro, installation (WSL, Baremetal or VM, x86 or ARM), the issue you had, the workaround that fixed it, and any other workarounds are not on the list.

How important is this feature to you?

Please add a 👍 to the original post at the top to signal that you want this feature, and subscribe if you'd like to be notified. We'll be posting updates on this thread (if/when this is being worked on).

Please avoid comments with spam-like "+1" or 👍 .

@dannyneira dannyneira added the Feature requests Feature Requests label Feb 22, 2024
@cj81499
Copy link

cj81499 commented Feb 22, 2024

@dannyneira I think you meant to link to this issue from your comment on #204, but made a typo (and accidentally linked to #424).

@dannyneira
Copy link
Member Author

dannyneira commented Feb 22, 2024

@dannyneira I think you meant to link to this issue from your comment on #204, but made a typo (and accidentally linked to #424).

@cj81499 thanks for catching that, fixed!

@JonParton
Copy link

Just to share, I've actually had success this morning just installing the linux .deb in an ubuntu WSL2 on windows 11 that allows GUI apps. Install the .deb and then just launch warp from the windows start menu!

Pretty much everything seems to be working really well, you just need to make sure you have Firefox installed to allow you to log in etc and I had to use the copy auth code method rather then being automatically logged in as the referral back to warp didn't function with wsl2 in the way.

It's not a perfect experience as things like maximising the window don't really work and the start menu icon is just linux instead of indicating it is warp, but its already soooo much better then any other terminal experience so far 🙌 Kudos 🤜

p.s. I had happened to be trying Git Butler too and hence knowing to install Firefox etc. Some useful git-butler install instructions that ended up being helpful for warp!

@S1monlol
Copy link

Works decently on wsl2, but I can't resize or move the window at all besides clicking the fullscreen button, and once I fullscreen the window, I can't change it back to windowed again.

@WilsonCazarre
Copy link

WilsonCazarre commented Feb 22, 2024

Hi @JonParton. I tried earlier to run on wsl2, but I keep running into this error when trying to launch Warp. Any insight on how to work around it?
image

@Anidion
Copy link

Anidion commented Feb 22, 2024

Same issue as @WilsonCazarre, this time on an NVIDIA GPU. Firefox works fine in GUI.
image

Update: running it with the environment variable WARP_ENABLE_WAYLAND=1 opened the GUI, but now I'm having issues pasting the auth code in to activate, but that's a separate issue.

@WilsonCazarre
Copy link

@Anidion I forgot to mention that I'm also using an NVIDIA GPU (GTX 1050) but I think WSL is not detecting that, I'm not sure why.

@iambj
Copy link

iambj commented Feb 23, 2024

I ended up with this command:
WARP_ENABLE_WAYLAND=1 MESA_D3D12_DEFAULT_ADAPTER_NAME=NVIDIA warp-terminal, and I get to the login screen but can't paste my token. However, it now detects my RTX 2070 Super. (source for the MESA variable: https://github.com/microsoft/wslg/wiki/GPU-selection-in-WSLg)

On a side note, I know this isn't the same issue, but I've been trying all day to get it to launch in my Ubuntu 20.04 VM (VMWare Player), and it launched with that command. I had tried with X11 and Wayland, and after both didn't work, I switched back to Wayland. On a whim, I tried the environment variable, and Warp launched.

@bedesv
Copy link

bedesv commented Feb 23, 2024

I've also got it running using WARP_ENABLE_WAYLAND=1 warp-terminal and am having trouble pasting my auth token. The Warp client says "An invalid auth token was entered into the modal. Not the first time? See our troubleshooting docs." I can paste the auth token into other WSL gui apps such as Firefox.

In the WSL terminal I can see that these events occur when I attempt to paste my auth token.

17:09:32 [INFO] dispatching typed action: PasteAuthUrl
17:09:32 [ERROR] Failed to parse AuthRedirectPayload from redirect URL: relative URL without a base

Any ideas on how to successfully login?

@joanalexisc
Copy link

I ended up with this command: WARP_ENABLE_WAYLAND=1 MESA_D3D12_DEFAULT_ADAPTER_NAME=NVIDIA warp-terminal, and I get to the login screen but can't paste my token. However, it now detects my RTX 2070 Super. (source for the MESA variable: https://github.com/microsoft/wslg/wiki/GPU-selection-in-WSLg)

On a side note, I know this isn't the same issue, but I've been trying all day to get it to launch in my Ubuntu 20.04 VM (VMWare Player), and it launched with that command. I had tried with X11 and Wayland, and after both didn't work, I switched back to Wayland. On a whim, I tried the environment variable, and Warp launched.

same for me... in the console is throwing this message: Failed to parse AuthRedirectPayload from redirect URL: relative URL without a base

@TechNerd8
Copy link

I've also got it running using WARP_ENABLE_WAYLAND=1 warp-terminal and am having trouble pasting my auth token. The Warp client says "An invalid auth token was entered into the modal. Not the first time? See our troubleshooting docs." I can paste the auth token into other WSL gui apps such as Firefox.

In the WSL terminal I can see that these events occur when I attempt to paste my auth token.

17:09:32 [INFO] dispatching typed action: PasteAuthUrl
17:09:32 [ERROR] Failed to parse AuthRedirectPayload from redirect URL: relative URL without a base

Any ideas on how to successfully login?

Looks like there are a few of us with this issue now. I'm in the same boat. I tried copying and pasting only specific sections of the full token length, but nothing has worked so far. Seems the parsing instructions aren't aligning with what the auth link actually spits out. I'll see if I can find where the faulty instructions are, unless one of the devs beats me to it (or identifies another issue I'm not considering).

@bedesv
Copy link

bedesv commented Feb 23, 2024

I’m away from my computer atm but I saw a few threads in the Warp Discord channel about both people successfully running Warp in WSL and other ways to pass the auth token into Warp. Haven’t got anything working yet

@eglove
Copy link

eglove commented Feb 23, 2024

It's been awhile since I used warp because I don't use Linux. It is my favorite terminal though.

WSL support isn't terribly important. WSL virtual memory is too slow for things like simple web servers. So there's not much I'd ever use it for.

Definitely looking forward to the native windows support though. I'd love to get back to warp.

@bedesv
Copy link

bedesv commented Feb 23, 2024

@eglove I think the interest in Warp on WSL now is mostly Windows users wanting to use Warp now - at least that’s why I’m interested. I doubt that it’ll be a long term thing.

@dangenendt
Copy link

It's been awhile since I used warp because I don't use Linux. It is my favorite terminal though.

WSL support isn't terribly important. WSL virtual memory is too slow for things like simple web servers. So there's not much I'd ever use it for.

Definitely looking forward to the native windows support though. I'd love to get back to warp.

What?! Did you already used WSL2?! I'm just using everything within wsl without any memory issues.
Docker (20 containers up and running), phpstorm, vscode + running bun dev server. Never had any issues with "slow memory"

@TechNerd8
Copy link

I was able to find a workaround for the login issue! The "mimeapps.list" file was not getting updated with the custom x-scheme-handler entry for "warp://" files/URLs, so I added "x-scheme-handler/warp=dev.warp.Warp.desktop" to the end of that file (for me, located at ~/.config/mimeapps.list). Then, I updated the WSL's .desktop file database with the command "update-desktop-database", and finally I had to open a second WSL command line tab to use this command: "xdg-open [PASTE AUTH URL HERE]" on the command line once I got the auth url after logging in. Make sure you surround your URL with double quotes, and then go check your Warp terminal-- you should be successfully logged in!

(Not sure if it matters, but I just realized one of the first things I tried was to replace the "%U" with "%u" in the dev.warp.Warp.desktop file, and I forgot to change it back, so that may or may not have contributed to my success.)

@HRA42
Copy link

HRA42 commented Feb 23, 2024

I got it working now!
grafik

@dangenendt
Copy link

dangenendt commented Feb 23, 2024

Just to share, I've actually had success this morning just installing the linux .deb in an ubuntu WSL2 on windows 11 that allows GUI apps. Install the .deb and then just launch warp from the windows start menu!

Pretty much everything seems to be working really well, you just need to make sure you have Firefox installed to allow you to log in etc and I had to use the copy auth code method rather then being automatically logged in as the referral back to warp didn't function with wsl2 in the way.

It's not a perfect experience as things like maximising the window don't really work and the start menu icon is just linux instead of indicating it is warp, but its already soooo much better then any other terminal experience so far 🙌 Kudos 🤜

p.s. I had happened to be trying Git Butler too and hence knowing to install Firefox etc. Some useful git-butler install instructions that ended up being helpful for warp!

This way i also got it working. Thats pretty Easy.

  • Install .deb package in wsl
  • Open up windows host start menu
  • type in "warp"
  • start
    😆

But as some other already mentioned, there are issues with window resizing and login-auth-token pasting stuff... I worked around it and now i can play around 😍
Thanks!

@bedesv
Copy link

bedesv commented Feb 23, 2024

I couldn't get the login working using @TechNerd8 method. Running the xdg-open command in a new terminal just opened a new Warp instance rather than logging in my open one.

I did find another workaround by using an AutoHotkey script to type in my auth token. Create a .ahk file with the script below, then open it in AutoHotkey. Then click in the auth token field and press Ctrl + 5, the token will be typed in. Finally, press enter and you will be logged in. You can then delete the .ahk file if desired.

^5::
    Send,warp://auth/<rest of token...>
return

@JacobArrow
Copy link

JacobArrow commented Feb 23, 2024

@dangenendt

This way i also got it working. Thats pretty Easy.

  • Install .deb package in wsl
  • Open up windows host start menu
  • type in "warp"
  • start
    😆

But as some other already mentioned, there are issues with window resizing and login-auth-token pasting stuff... I worked around it and now i can play around 😍 Thanks!

I also just tried this, but whenever I launch the app, it just crashes immediately...

@nemolivier
Copy link

Just adding the fact that it run on WSL2 arch on framework laptop 13. Running it with WARP_ENABLE_WAYLAND=1 warp-terminal worked here.
Same issue as the others with resizing.
Also, font of the interface are really small, can't find a way to change them.

@ljtruong
Copy link

ljtruong commented Feb 23, 2024

I got warp terminal working on windows 11 using the suggested install. This uses window 11's GUI apps. reading

  1. Download warp .deb install from warp website
    https://app.warp.dev/download?package=deb
  2. Install within WSL
sudo -i dpkg warp-terminal_<latest_version>_amd64.deb
  1. Then in windows start menu search for warp terminal

Notes: don't maximise window otherwise you might face resizing issues
Other issues:

  • unable to copy and paste

update: I can copy and paste using ctrl + shift + v

@HRA42
Copy link

HRA42 commented Feb 23, 2024

funny enought: WARP_ENABLE_WAYLAND=0 warp-terminal works too :D

@dangenendt
Copy link

dangenendt commented Feb 23, 2024

@dangenendt

This way i also got it working. Thats pretty Easy.

  • Install .deb package in wsl
  • Open up windows host start menu
  • type in "warp"
  • start
    😆

But as some other already mentioned, there are issues with window resizing and login-auth-token pasting stuff... I worked around it and now i can play around 😍 Thanks!

I also just tried this, but whenever I launch the app, it just crashes immediately...

Hmm... my wsl is probably differently configured. Do you have installed all x11 dependencies?
In addition to that, on my host i have a running vcxserver. To get vcxserver working you need to set an env var "DISPLAY" in your terminal-config (eg. ~/.zshrc)
# set DISPLAY variable to the IP automatically assigned to WSL2
export DISPLAY=$(awk '/^nameserver/ {print $2; exit;}' </etc/resolv.conf):0.0

@Welding-Torch
Copy link

Welding-Torch commented Feb 23, 2024

It works! And that too with no setup 🎉
All I ran was sudo dpkg -i warp-terminal_<latest_version>_amd64.deb and boom! It's installed.

@Welding-Torch
Copy link

unable to copy and paste

@ljtruong Uh, copy and paste works. I didn't change any settings, it just works out of the box. Maybe try again?

@khushnoodasif
Copy link

khushnoodasif commented Feb 23, 2024

  1. Still having issues with copy and paste.
  2. I am not able to open Warp via the shortcut in Windows start menu.
@echo off
wsl -d Ubuntu WARP_ENABLE_WAYLAND=1 MESA_D3D12_DEFAULT_ADAPTER_NAME=NVIDIA warp-terminal

Create a .bat file and edit via notepad and add the above code snippet and should be able to open warp with one click.

@rgaduput
Copy link

rgaduput commented Apr 5, 2024

WARP_ENABLE_WAYLAND=1 MESA_D3D12_DEFAULT_ADAPTER_NAME=NVIDIA warp-terminal

Though the browser opens for login works its not working when clicked on "Take Me to Warp" nothing happens. Also i do not get an option to use Auth token in Warp only Sign up and Sign in are available.
Any ideas how to make the sign in works or paste the Auth token.

@nunix
Copy link

nunix commented Apr 5, 2024

I can copy and paste within the warp window, but can't copy/paste between warp and native Windows apps (both directions).

Same, pretty annoying. The rest works fine though

I'm able to copy and paste by hot keys and by contenxt menu as well. For copy use Ctrl + C and for pasting you should use Ctrl + Shift + V.

This seems to be a fix with the newest release v0.2024.04.02.08.02.stable_01.
Just updated Warp and now copy/paste works fine.

@nunix
Copy link

nunix commented Apr 5, 2024

@warpdotdev-dx I went through some testing and I do have one tweak for the HIDPI screens. Is there a preferred place to put it, or here is OK?

Please note this is not something you can fix yourself, so it's really more about docs.

Here's a comparison:

Default:
image

HIDPI configuration applied:
image

@noahzweben
Copy link

Hi all! We’ve begun to scope out our Warp on Windows build. We’re looking for some community feedback on what shells to support. Please check out this form (only 5 questions!) here

@golu7679
Copy link

`
09:40:11 [INFO] Failed to forward startup args: unknown dbus error
09:40:11 [INFO] Spawning terminal server process...
09:40:11 [INFO] Running app with windowing system: Wayland
09:40:11 [WARN] Tried to initialize the wayland data control protocol clipboard, but failed. Falling back to the X11 clipboard protocol. The error was: Unknown error while interacting with the clipboard: A required Wayland protocol (zwlr_data_control_manager_v1 version 1) is not supported by the compositor
09:40:11 [INFO] Running terminal server...
09:40:11 [WARN] Unable to fetch system color scheme: InputOutput(
Os {
code: 2,
kind: NotFound,
message: "No such file or directory",
},
)
09:40:11 [ERROR] Failed to acquire default Secret Service collection: unknown error
09:40:11 [INFO] Failed to read User from secure storage NotFound
09:40:11 [INFO] Initializing crash reporting Some("linux_stable_release") with tag "v0.2024.04.16.08.02.stable_00"...
09:40:11 [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.04.16.08.02.stable_00")
09:40:11 [INFO] Performance metrics collector started
09:40:11 [INFO] Start to flush telemetry events to Segment
09:40:11 [INFO] Initializing app services
09:40:11 [ERROR] Failed to initialize org.freedesktop.Application D-Bus service: I/O error: No such file or directory (os error 2): No such file or directory (os error 2)
libEGL warning: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)

09:40:11 [INFO] Connecting to SQLite database
09:40:11 [INFO] Checking for update on channel stable_release. Update id is vb81oFm
09:40:11 [INFO] fetching team tester status
09:40:11 [INFO] Fetching channel versions (without changelogs) from Warp server
09:40:11 [INFO] dispatching global action for root_view:open_from_restored
09:40:11 [INFO] dispatching global action for root_view:open_new
09:40:11 [WARN] error getting team tester status: Failed to get access token for GraphQL request. Falling back to in-memory state.
09:40:11 [WARN] Encountered error while watching for desktop settings change events: I/O error: No such file or directory (os error 2)
09:40:11 [ERROR] XDG Settings Portal did not return response in time: timeout: 100ms, key: color-scheme
libEGL warning: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)

09:40:11 [INFO] Enabled wgpu backends: Backends(VULKAN | GL | METAL | DX12 | DX11 | BROWSER_WEBGPU)
09:40:11 [INFO] Available wgpu adapters (in priority order):
09:40:11 [ERROR] Failed to open window: No usable wgpu adapter was found
09:40:11 [INFO] application will terminate
09:40:11 [INFO] Shutting down SQLite writer thread
09:40:11 [INFO] Shut down SQLite writer in 487.087µs
09:40:11 [INFO] Writing queued events to disk because telemetry is enabled.
09:40:11 [INFO] Successfully wrote telemetry events to disk
09:40:11 [INFO] Tearing down app services...
09:40:11 [INFO] Uninitializing crash reporting...
09:40:12 [INFO] Received channel versions from Warp server: dev: ChannelVersion { version_info: VersionInfo { version: "v0.2024.04.23.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.04.23.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.04.23.08.01.beta_00", update_by: None, soft_cutoff: None }, overrides: [] }; stable: ChannelVersion { version_info: VersionInfo { version: "v0.2024.04.16.08.02.stable_00", update_by: None, soft_cutoff: Some("v0.2024.02.27.08.01.stable_03") }, overrides: [VersionOverride { predicate: TargetOS(Linux), version_info: VersionInfo { version: "v0.2024.04.16.08.02.stable_03", update_by: None, soft_cutoff: None } }] }
`

I am getting this error when I run wrap, how can I resolve this issue?

@vorporeal
Copy link

Hi @golu7679 - did you install Warp using a package manager or are you running the AppImage? Seems like you're lacking graphics drivers. What Linux distribution are you running within WSL?

@Rayhand117
Copy link

if you guys facing this error: libEGL warning: MESA-LOADER: failed to open swrast: /usr/lib64/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib64/dri, suffix _dri) install this package: rpm: sudo dnf install -y mesa-dri-drivers

deb: sudo apt install -y libgl1-mesa-dri

mesa-loader

i manage to run warp on almalinux and kali-linux. Good Luck!

@golu7679

@golu7679
Copy link

if you guys facing this error: libEGL warning: MESA-LOADER: failed to open swrast: /usr/lib64/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib64/dri, suffix _dri) install this package: rpm: sudo dnf install -y mesa-dri-drivers
deb: sudo apt install -y libgl1-mesa-dri
mesa-loader
i manage to run warp on almalinux and kali-linux. Good Luck!

@golu7679

Thank you now its working

@rgaduput
Copy link

rgaduput commented Apr 26, 2024

Hi,
When installed on WSL Ubuntu, I see that even though I have Google chrome installed in WSL and variable set to export BROWSER=google-chrome. warp still opening the Signin in the Desktop browser and not the Ubuntu WSL browser. I think because of that "Take me to wrap" does not work after successful login, so unable to login. Any suggestions on how to login with the WSL browser (Other tools like aws for SSO login is able to open the browser without any issues).

@nmofonseca
Copy link

I am one up for having this in WSL Linux :)

@SubhamSubhasisPatra
Copy link

Works decently on wsl2, but I can't resize or move the window at all besides clicking the fullscreen button, and once I fullscreen the window, I can't change it back to windowed again.

Actully you can resize the window , the resize is not woking on all the side but it woks in the extime edge of the screen ( look at the attacked video ) this way u can resize it and also you can increase the font size so it's workable.

Recording.2024-05-04.010041.mp4

@matifali
Copy link

matifali commented May 6, 2024

Getting the following issue when running on WSL2 with Ubuntu 24.04 and Windows 11.

RUST_BACKTRACE=full warp-terminal
14:03:27 [INFO] Spawning terminal server process...
thread 'main' panicked at /home/runner/work/warp-internal/warp-internal/ui/src/windowing/winit/app.rs:156:14:
should be able to create event loop: Os(OsError { line: 80, file: "/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/platform_impl/linux/wayland/event_loop/mod.rs", error: WaylandError(Connection(NoCompositor)) })
stack backtrace:
   0:     0x564a4b572cbb - <unknown>
   1:     0x564a4ad75d20 - <unknown>
   2:     0x564a4b56e243 - <unknown>
   3:     0x564a4b572a54 - <unknown>
   4:     0x564a4b574fd0 - <unknown>
   5:     0x564a4b574cef - <unknown>
   6:     0x564a4b5754ee - <unknown>
   7:     0x564a4b5753f2 - <unknown>
   8:     0x564a4b5731b6 - <unknown>
   9:     0x564a4b575160 - <unknown>
  10:     0x564a4aa2b265 - <unknown>
  11:     0x564a4aa2b7b3 - <unknown>
  12:     0x564a4c6da704 - <unknown>
  13:     0x564a4c43033f - <unknown>
  14:     0x564a4c42efb3 - <unknown>
  15:     0x564a4b545da3 - <unknown>
  16:     0x564a4b545dbd - <unknown>
  17:     0x564a4b564a05 - <unknown>
  18:     0x564a4b54632c - <unknown>
  19:     0x7f8eedc6c1ca - <unknown>
  20:     0x7f8eedc6c28b - __libc_start_main
  21:     0x564a4ab73c3e - <unknown>
  22:                0x0 - <unknown>
14:03:27 [INFO] Received empty message; assuming the connection has been closed.

@SubhamSubhasisPatra
Copy link

Getting the following issue when running on WSL2 with Ubuntu 24.04 and Windows 11.

RUST_BACKTRACE=full warp-terminal
14:03:27 [INFO] Spawning terminal server process...
thread 'main' panicked at /home/runner/work/warp-internal/warp-internal/ui/src/windowing/winit/app.rs:156:14:
should be able to create event loop: Os(OsError { line: 80, file: "/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/platform_impl/linux/wayland/event_loop/mod.rs", error: WaylandError(Connection(NoCompositor)) })
stack backtrace:
   0:     0x564a4b572cbb - <unknown>
   1:     0x564a4ad75d20 - <unknown>
   2:     0x564a4b56e243 - <unknown>
   3:     0x564a4b572a54 - <unknown>
   4:     0x564a4b574fd0 - <unknown>
   5:     0x564a4b574cef - <unknown>
   6:     0x564a4b5754ee - <unknown>
   7:     0x564a4b5753f2 - <unknown>
   8:     0x564a4b5731b6 - <unknown>
   9:     0x564a4b575160 - <unknown>
  10:     0x564a4aa2b265 - <unknown>
  11:     0x564a4aa2b7b3 - <unknown>
  12:     0x564a4c6da704 - <unknown>
  13:     0x564a4c43033f - <unknown>
  14:     0x564a4c42efb3 - <unknown>
  15:     0x564a4b545da3 - <unknown>
  16:     0x564a4b545dbd - <unknown>
  17:     0x564a4b564a05 - <unknown>
  18:     0x564a4b54632c - <unknown>
  19:     0x7f8eedc6c1ca - <unknown>
  20:     0x7f8eedc6c28b - __libc_start_main
  21:     0x564a4ab73c3e - <unknown>
  22:                0x0 - <unknown>
14:03:27 [INFO] Received empty message; assuming the connection has been closed.

@matifali Try to run this command and run the application , might fix your issue

sudo apt update && sudo apt install -y fontconfig libegl1 libwayland-egl1 libxcursor1 libxkbcommon-x11-0

@vorporeal
Copy link

@matifali if you try installing the packages in the above comment, mind doing so one at a time and letting me know which package fixed the issue (if any)?

@matifali
Copy link

matifali commented May 9, 2024

@SubhamSubhasisPatra @vorporeal Looks like all packages are already installed.

sudo apt update && sudo apt install -y fontconfig libegl1 libwayland-egl1 libxcursor1 libxkbcommon-x11-0
Hit:1 http://security.ubuntu.com/ubuntu noble-security InRelease
Ign:2 https://releases.warp.dev/linux/deb stable InRelease
Hit:3 http://archive.ubuntu.com/ubuntu noble InRelease
Hit:4 http://archive.ubuntu.com/ubuntu noble-updates InRelease
Hit:5 https://releases.warp.dev/linux/deb stable Release
Hit:7 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
8 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
fontconfig is already the newest version (2.15.0-1.1ubuntu2).
libegl1 is already the newest version (1.7.0-1build1).
libegl1 set to manually installed.
libwayland-egl1 is already the newest version (1.22.0-2.1build1).
libxcursor1 is already the newest version (1:1.2.1-1build1).
libxkbcommon-x11-0 is already the newest version (1.6.0-1build1).
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.

warp-terminal
08:24:28 [INFO] Spawning terminal server process...
thread 'main' panicked at /home/runner/work/warp-internal/warp-internal/ui/src/windowing/winit/app.rs:156:14:
should be able to create event loop: Os(OsError { line: 80, file: "/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/platform_impl/linux/wayland/event_loop/mod.rs", error: WaylandError(Connection(NoCompositor)) })
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
08:24:28 [INFO] Received empty message; assuming the connection has been closed.

@vorporeal
Copy link

Hm. Make sure you have wslg installed: https://github.com/microsoft/wslg

It provided the components necessary to run graphical applications within WSL.

@matifali
Copy link

matifali commented May 9, 2024

@vorporeal it is. I can launch other GUI apps like gedit and nautilus just fine.the problem is with only warp-terminal

@vorporeal
Copy link

@matifali what's the value of the WAYLAND_DISPLAY environment variable?

@matifali
Copy link

matifali commented May 9, 2024

@matifali what's the value of the WAYLAND_DISPLAY environment variable?

@vorporeal

echo $WAYLAND_DISPLAY
wayland-0

@vlisovych
Copy link

Hey @matifali,
I'm getting the same error on wsl2, ubuntu 24.04, win 11.
However, warp works with sudo:
sudo warp-terminal

@matifali
Copy link

matifali commented May 9, 2024

@vlisovych Wow. Yes, it's working with sudo; why, though?

@vorporeal
Copy link

vorporeal commented May 9, 2024

@matifali @vlisovych What's the output of running find /run /mnt/wslg -name "wayland-0" 2>/dev/null | xargs ls -la? I'm guessing that there's some sort of permission issue with the Wayland socket file, which is preventing Warp from accessing it unless you run Warp as root.

A couple issues on the WSL side that might be relevant:

@matifali
Copy link

matifali commented May 9, 2024

@vorporeal

find /run /mnt/wslg -name "wayland-0" 2>/dev/null | xargs ls -la
srwxrwxrwx 1 atif atif 0 May  9 21:02 /mnt/wslg/runtime-dir/wayland-0

@Stelminator
Copy link

@matifali @vorporeal
I think this might be with the permissions on /mnt/wslg/runtime-dir/, I got different results on my 23.10 install vs. 24.04. 23.10 had my user/group as owner, and 24.04 had ubuntu/lxd, which might be hiding it from my user on 24.04, even if the socket itself has the right permissions.

ls -lad /mnt/wslg/runtime-dir/

@vorporeal
Copy link

@Stelminator yeah that seems plausible. Is your user a member of the lxd group? If not, try adding that group membership and see if that fixes the issue. (Note: you might need to shut down wsl and start it again for the group membership change to take effect)

@vorporeal
Copy link

Yeah I think this is the relevant issue on the WSL side: microsoft/WSL#11542

@matifali
Copy link

matifali commented May 9, 2024

For me this gives,

ls -lad /mnt/wslg/runtime-dir/
drwx------ 4 atif atif 120 May  9 21:02 /mnt/wslg/runtime-dir/

Looks like permissions are correct.

@jo-pillar
Copy link

Hi, When installed on WSL Ubuntu, I see that even though I have Google chrome installed in WSL and variable set to export BROWSER=google-chrome. warp still opening the Signin in the Desktop browser and not the Ubuntu WSL browser. I think because of that "Take me to wrap" does not work after successful login, so unable to login. Any suggestions on how to login with the WSL browser (Other tools like aws for SSO login is able to open the browser without any issues).

I met the same problem in #4910 and another guy also met the same problem on comment under #4903

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature requests Feature Requests
Projects
None yet
Development

No branches or pull requests