Warp icon indicating copy to clipboard operation
Warp copied to clipboard

Taking more than 5 minutes to load with Ubuntu 24.10

Open pedrocleis opened this issue 1 year ago • 49 comments

Dupe Check

Describe the bug

I open the warp-terminal, either from the icon or from the terminal and after more than 5 minutes it opens.

Here is my log trying to open warp-terminal:

23:53:33 [INFO] Spawning terminal server process...
23:53:33 [INFO] Running terminal server...
23:53:33 [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
23:53:33 [INFO] Running app with windowing system: X11
Error: Address already in use (os error 98)
23:53:33 [INFO] Initializing crash reporting Some("linux_stable_release") with tag "v0.2024.10.08.08.02.stable_01"...
23:53:33 [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://sessions.app.warp.dev"), rudderstack_write_key: "2iyG8S1RaV4XTX6SEypetFSEbLK", rudderstack_root_url: "https://warpianwzlfqdq.dataplane.rudderstack.com", releases_base_url: "https://releases.warp.dev", sentry_url: "https://[email protected]/5658526", logfile_name: "warp.log", show_autoupdate_menu_items: true } and version Some("v0.2024.10.08.08.02.stable_01")
23:53:33 [INFO] Performance metrics collector started
23:53:33 [INFO] Dropping empty RudderStack telemetry batch
23:53:33 [INFO] Flushed telemetry events.
23:53:33 [INFO] Initializing app services
23:53:33 [WARN] Detected skylake derivative running on mesa i915. Clears to srgb textures will use manual shader clears.
23:53:33 [WARN] SQLite error 283 (A WAL mode database file was recovered): recovered 4 frames from WAL file /home/pedrocleis/.local/state/warp-terminal/warp.sqlite-wal
23:53:33 [INFO] Connecting to SQLite database
23:53:33 [INFO] fetching team tester status
23:53:33 [INFO] Checking for update on channel stable_release. Update id is 2gZYPps
23:53:33 [INFO] Fetching channel versions (without changelogs) from Warp server
23:53:33 [INFO] dispatching global action for root_view:open_from_restored
23:53:33 [INFO] Start to send telemetry events to RudderStack
23:53:33 [INFO] Computing available system fonts
23:53:33 [WARN] Could not find current AIAgentApiType value in dropdown option list
23:53:33 [INFO] Start to send telemetry events to RudderStack
23:53:33 [INFO] Starting shell /usr/bin/zsh
23:53:33 [INFO] Successfully spawned child zsh process with pid 186807
23:53:33 [INFO] Successfully spawned tty with pid: 186807
23:53:33 [INFO] Fetching channel versions and changelogs from Warp server
23:53:33 [INFO] dispatching typed action: HandleFocusChange
23:53:33 [WARN] Action HandleFocusChange was dispatched, but no view handled it
23:53:33 [INFO] dispatching typed action: HandleFocusChange
23:53:33 [WARN] Action HandleFocusChange was dispatched, but no view handled it
23:53:33 [WARN] Tried to update block filter query without active_filter_editor_block_index set
23:53:33 [INFO] Loaded 67 font families
23:53:33 [INFO] Received InitShell hook
23:53:33 [INFO] Received channel versions from Warp server: dev: ChannelVersion { version_info: VersionInfo { version: "v0.2024.10.10.15.23.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.10.10.15.23.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.10.08.08.02.beta_00", update_by: None, soft_cutoff: None }, overrides: [] }; stable: ChannelVersion { version_info: VersionInfo { version: "v0.2024.10.08.08.02.stable_01", update_by: None, soft_cutoff: Some("v0.2024.08.20.08.02.stable_00") }, overrides: [] }
23:53:33 [INFO] Received channel versions from Warp server: dev: ChannelVersion { version_info: VersionInfo { version: "v0.2024.10.10.15.23.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.10.10.15.23.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.10.08.08.02.beta_00", update_by: None, soft_cutoff: None }, overrides: [] }; stable: ChannelVersion { version_info: VersionInfo { version: "v0.2024.10.08.08.02.stable_01", update_by: None, soft_cutoff: Some("v0.2024.08.20.08.02.stable_00") }, overrides: [] }
23:57:54 [WARN] No alert dialog was set for the native modal
23:57:54 [WARN] Tried to render share modal without a model
23:57:54 [INFO] fetching team tester status
23:57:54 [INFO] fetching teams metadata
23:57:54 [INFO] fetching updated cloud objects, including generic string objects
23:57:54 [INFO] Start to send telemetry events to RudderStack
23:57:54 [INFO] Reconstructing database, but it already exists
23:57:54 [INFO] dispatching typed action: HandleFocusChange
23:57:54 [WARN] Action HandleFocusChange was dispatched, but no view handled it
23:57:54 [INFO] Dropping empty RudderStack telemetry batch
23:57:54 [INFO] Flushed telemetry events.
23:57:54 [INFO] fetching teams metadata
23:57:54 [INFO] fetching updated cloud objects, including generic string objects
23:57:54 [INFO] No update available
23:57:54 [INFO] Checking for update on channel stable_release. Update id is z8bpVPS
23:57:54 [INFO] Fetching channel versions (without changelogs) from Warp server
23:57:54 [INFO] Connecting to SQLite database
23:57:54 [INFO] SQLite Writer is resumed
23:57:54 [WARN] Bootstrapping failed for shell "zsh" on ssh false
23:57:54 [WARN] Showing bootstrap slow toast
23:57:54 [INFO] Start to send telemetry events to RudderStack
23:57:54 [INFO] Received CommandFinished hook
23:57:54 [INFO] Tried to exit the alternate screen, but it was already inactive
23:57:54 [INFO] Block finished with new state DoneWithNoExecution
23:57:54 [INFO] Incrementing stage from WarpInput to ScriptExecution
23:57:54 [WARN] Detected skylake derivative running on mesa i915. Clears to srgb textures will use manual shader clears.
23:57:54 [INFO] Enabled wgpu backends: Backends(VULKAN | GL | METAL | DX12 | BROWSER_WEBGPU)
23:57:54 [INFO] Available wgpu adapters (in priority order):
23:57:54 [INFO] IntegratedGpu: Intel(R) Xe Graphics (TGL GT2)
	Backend: Vulkan
	Driver: Intel open-source Mesa driver (Mesa 24.2.3-1ubuntu1)
	Can present: true
	Supported texture format: Some(Bgra8UnormSrgb)
23:57:54 [INFO] IntegratedGpu: Mesa Intel(R) Xe Graphics (TGL GT2)
	Backend: Gl
	Driver: Unknown (4.6 (Core Profile) Mesa 24.2.3-1ubuntu1)
	Can present: true
	Supported texture format: Some(Rgba8UnormSrgb)
23:57:54 [INFO] DiscreteGpu: NVIDIA GeForce MX450
	Backend: Vulkan
	Driver: NVIDIA (560.35.03)
	Can present: true
	Supported texture format: Some(Bgra8UnormSrgb)
23:57:54 [INFO] Cpu: llvmpipe (LLVM 19.1.0, 256 bits)
	Backend: Vulkan
	Driver: llvmpipe (Mesa 24.2.3-1ubuntu1 (LLVM 19.1.0))
	Can present: true
	Supported texture format: Some(Bgra8UnormSrgb)
23:57:54 [INFO] Verifying adapter "Intel(R) Xe Graphics (TGL GT2)" is valid...
23:57:54 [INFO] Using IntegratedGpu (Intel(R) Xe Graphics (TGL GT2)) for rendering new window.
23:57:54 [INFO] Received Precmd hook
23:57:54 [INFO] dispatching typed action: HandleFocusChange
23:57:54 [WARN] redraw_frame was called 16 times before the frame was drawn
23:57:54 [INFO] Start to send telemetry events to RudderStack
23:57:54 [INFO] dispatching global action for workspace:save_app
23:57:54 [WARN] Expected to have session for session ID SessionId(172861521311872), but doesn't exist
23:57:54 [INFO] window resized
23:57:54 [INFO] dispatching global action for workspace:save_app
23:57:54 [WARN] Expected to have session for session ID SessionId(172861521311872), but doesn't exist
23:57:54 [INFO] active window changed: Some(WindowId(0))
23:57:54 [INFO] dispatching global action for root_view:update_quake_mode_state
23:57:54 [INFO] dispatching global action for workspace:save_app
23:57:54 [WARN] Expected to have session for session ID SessionId(172861521311872), but doesn't exist
23:57:54 [WARN] redraw_frame was called 2 times before the frame was drawn
23:57:54 [INFO] Received Bootstrapped hook
23:57:54 [INFO] Configured typeahead mode as ShellReported
23:57:54 [INFO] Parsed shell version string: Some([Number(5), Number(9)])
23:57:54 [INFO] Shell is bootstrapped with session_id SessionId(172861521311872)
23:57:54 [INFO] Loading history from file /home/pedrocleis/.zsh_history for shell zsh
23:57:54 [WARN] redraw_frame was called 3 times before the frame was drawn
23:57:54 [INFO] Received CommandFinished hook
23:57:54 [INFO] Tried to exit the alternate screen, but it was already inactive
23:57:54 [INFO] Block finished with new state DoneWithNoExecution
23:57:54 [INFO] Incrementing stage from Bootstrapped to PostBootstrapPrecmd
23:57:54 [INFO] dispatching typed action: HandleFocusChange
23:57:54 [INFO] Received Precmd hook
23:57:54 [INFO] Successfully drew 10 frames; killing crash recovery child process
23:57:54 [INFO] Initializing Sentry native
23:57:54 [INFO] Received InputBuffer hook
23:57:54 [WARN] Failed to record time "sample value too large"
23:57:54 [INFO] Received channel versions from Warp server: dev: ChannelVersion { version_info: VersionInfo { version: "v0.2024.10.10.15.23.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.10.10.15.23.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.10.08.08.02.beta_00", update_by: None, soft_cutoff: None }, overrides: [] }; stable: ChannelVersion { version_info: VersionInfo { version: "v0.2024.10.08.08.02.stable_01", update_by: None, soft_cutoff: Some("v0.2024.08.20.08.02.stable_00") }, overrides: [] }
23:57:54 [INFO] No update available
23:57:54 [WARN] redraw_frame was called 2 times before the frame was drawn
23:57:54 [INFO] notifying view observers and updating windows for timer id 0
23:57:55 [WARN] redraw_frame was called 2 times before the frame was drawn
23:57:55 [WARN] redraw_frame was called 3 times before the frame was drawn
23:57:56 [INFO] active window changed: None
23:57:56 [INFO] dispatching global action for root_view:update_quake_mode_state
23:57:56 [INFO] dispatching global action for workspace:save_app
23:58:11 [INFO] active window changed: Some(WindowId(0))
23:58:11 [INFO] dispatching global action for root_view:update_quake_mode_state
23:58:11 [INFO] dispatching global action for workspace:save_app
23:58:11 [INFO] dispatching typed action: Focus
23:58:11 [INFO] dispatching typed action: BlockSelect(ClearAllBlocks)
23:58:11 [INFO] dispatching typed action: CloseContextMenu
23:58:11 [INFO] dispatching typed action: HandleFocusChange
23:58:11 [INFO] notifying view observers and updating windows for timer id 1
23:58:12 [INFO] dispatching typed action: Select(Begin { position: DisplayPointAndClampDirection { point: DisplayPoint(Point { row: 0, column: 0 }), clamp_direction: Down }, add: false })
23:58:12 [INFO] dispatching typed action: ClearParentSelections
23:58:12 [INFO] dispatching typed action: Focus
23:58:12 [INFO] dispatching typed action: HandleFocusChange
23:58:12 [INFO] dispatching typed action: Select(End)
23:58:12 [INFO] notifying view observers and updating windows for timer id 6
23:58:15 [INFO] active window changed: None
23:58:15 [INFO] dispatching global action for root_view:update_quake_mode_state
23:58:15 [INFO] dispatching global action for workspace:save_app

This started after updating Ubuntu to the 24.10 version.

You can see the time difference here:

23:53:33 [INFO] Received channel versions from Warp server: dev: ChannelVersion { version_info: VersionInfo { version: "v0.2024.10.10.15.23.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.10.10.15.23.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.10.08.08.02.beta_00", update_by: None, soft_cutoff: None }, overrides: [] }; stable: ChannelVersion { version_info: VersionInfo { version: "v0.2024.10.08.08.02.stable_01", update_by: None, soft_cutoff: Some("v0.2024.08.20.08.02.stable_00") }, overrides: [] }
23:57:54 [WARN] No alert dialog was set for the native modal

To reproduce

Open warp-terminal in Ubuntu 24.10

Expected behavior

After trying to open it, to open it immediately

Screenshots

image This is the information about the warp-terminal process in the System Monitor app

Operating system

Linux

Operating system and version

Ubuntu 24.10

Shell Version

zsh 5.9 (x86_64-ubuntu-linux-gnu)

Current Warp version

v0.2024.10.08.08.02.stable_01

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?

No

Is this an issue only in Warp?

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

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

None

pedrocleis avatar Oct 11 '24 03:10 pedrocleis

I'm running Ubuntu 24.10 and on top of this issue, I cannot successfully update Warp using apt. The update command executes as expected and the terminal exits and then reopens (with the aforementioned delay) and prompts me to perform the exact same update. I would create a new bug but feel like it could be connected so want to give more context on this issue.

image

caljoshba avatar Oct 11 '24 08:10 caljoshba

I'm running Ubuntu 24.10 and on top of this issue, I cannot successfully update Warp using apt. The update command executes as expected and the terminal exits and then reopens (with the aforementioned delay) and prompts me to perform the exact same update. I would create a new bug but feel like it could be connected so want to give more context on this issue.

image

Which package manager you used? I just updated with apt and it worked, but I still have the same problem I reported initially.

pedrocleis avatar Oct 11 '24 22:10 pedrocleis

It was the same on 24.04LTS - it's been taking longer and longer to open recently. To the point where it's becoming unusable. I upgraded both a new laptop (Lenovo Yogo 9i) and an old Acer Nitro 100-50 to 24.10 and it still takes >5 minutes to open.

Juglugs avatar Oct 12 '24 10:10 Juglugs

@pedrocleis I was using apt

caljoshba avatar Oct 12 '24 11:10 caljoshba

For me doesn't seem to load at all. I just upgraded from Ubuntu 24.04 to Ubuntu 24.10, and warp refuses to start. There's no log when calling warp-terminal

Edit: Surprisingly, it loads after several minutes. There's definitely an issue blocking the launch.

aminya avatar Oct 12 '24 14:10 aminya

i have the same issue after upgrading to ubuntu 24.10. It doesn't even load.

knurreleif avatar Oct 12 '24 14:10 knurreleif

I realized that the terminal loads instantly if I use sudo. The issue seems to be related to the current user.

sudo warp-terminal

aminya avatar Oct 12 '24 14:10 aminya

I realized that the terminal loads instantly if I use sudo. The issue seems to be related to the current user.

sudo warp-terminal

Thanks. Solved it for me

knurreleif avatar Oct 12 '24 14:10 knurreleif

So...you open a terminal to open a terminal??

That's not a solution

Juglugs avatar Oct 12 '24 16:10 Juglugs

Same... in my case it takes more than 5mins... Btw i liked the sudo "solution". let me guess then su back to the user... i tried it. time gained 2min.

Purging the old warp (with all configs) didn't fix the problem.

inselberg avatar Oct 12 '24 19:10 inselberg

It's also crashing - hanging up until the "Force Close | Wait" option appears.

Juglugs avatar Oct 12 '24 20:10 Juglugs

Same issue. In my case taking 21 minutes to launch.

...
22:03:44 [INFO] Received channel versions from Warp server: dev: ChannelVersion { version_info: VersionInfo { version: "v0.2024.10.1
1.18.37.dev_00", update_by: None, soft_cutoff: Some("v0.2023.05.12.08.03.dev_00") }, overrides: [] }; preview: ChannelVersion { vers
ion_info: VersionInfo { version: "v0.2024.10.11.18.37.preview_00", update_by: None, soft_cutoff: None }, overrides: [] }; canary: Ch
annelVersion { 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.10.08.08.02.beta_00", update_by: None, soft_cutoff: Non
e }, overrides: [] }; stable: ChannelVersion { version_info: VersionInfo { version: "v0.2024.10.08.08.02.stable_02", update_by: None
, soft_cutoff: Some("v0.2024.08.20.08.02.stable_00") }, overrides: [] }                                                             
22:03:44 [INFO] Received channel versions from Warp server: dev: ChannelVersion { version_info: VersionInfo { version: "v0.2024.10.1
1.18.37.dev_00", update_by: None, soft_cutoff: Some("v0.2023.05.12.08.03.dev_00") }, overrides: [] }; preview: ChannelVersion { vers
ion_info: VersionInfo { version: "v0.2024.10.11.18.37.preview_00", update_by: None, soft_cutoff: None }, overrides: [] }; canary: Ch
annelVersion { 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.10.08.08.02.beta_00", update_by: None, soft_cutoff: Non
e }, overrides: [] }; stable: ChannelVersion { version_info: VersionInfo { version: "v0.2024.10.08.08.02.stable_02", update_by: None
, soft_cutoff: Some("v0.2024.08.20.08.02.stable_00") }, overrides: [] }                                                             
22:24:30 [WARN] No alert dialog was set for the native modal                                                                        
22:24:30 [WARN] Tried to render share modal without a model                                                                         
22:24:30 [INFO] fetching updated cloud objects, including generic string objects                                                    
22:24:30 [INFO] fetching team tester status                                                                                         
22:24:30 [INFO] Reconstructing database, but it already exists          
...                                                            

As above, using sudo warp-terminal solves the delay problem.

I don't know what it used to do but I'm noticing that the log says it's using X11 not Wayland - is that significant.

sroebuck avatar Oct 12 '24 21:10 sroebuck

Some terminal output:

mark@nitro:~$ warp-terminal 21:18:15 [INFO] Spawning terminal server process... 21:18:15 [INFO] Running terminal server... Error: Address already in use (os error 98) 21:18:16 [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 21:18:16 [INFO] Running app with windowing system: X11 21:18:16 [INFO] Initializing crash reporting Some("linux_stable_release") with tag "v0.2024.10.08.08.02.stable_01"... 21:18:16 [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://sessions.app.warp.dev"), rudderstack_write_key: "2iyG8S1RaV4XTX6SEypetFSEbLK", rudderstack_root_url: "https://warpianwzlfqdq.dataplane.rudderstack.com", releases_base_url: "https://releases.warp.dev", sentry_url: "https://[email protected]/5658526", logfile_name: "warp.log", show_autoupdate_menu_items: true } and version Some("v0.2024.10.08.08.02.stable_01") 21:18:16 [INFO] Performance metrics collector started 21:18:16 [INFO] Dropping empty RudderStack telemetry batch 21:18:16 [INFO] Flushed telemetry events. 21:18:16 [INFO] Initializing app services 21:18:16 [WARN] No config found! 21:18:16 [WARN] EGL says it can present to the window but not natively 21:18:16 [WARN] Max vertex attribute stride unknown. Assuming it is 2048 21:18:16 [WARN] SQLite error 283 (A WAL mode database file was recovered): recovered 449 frames from WAL file /home/mark/.local/state/warp-terminal/warp.sqlite-wal 21:18:16 [INFO] Connecting to SQLite database 21:18:16 [INFO] Attempting to start websocket connection in CloudObjects::Listener 21:18:16 [INFO] fetching team tester status 21:18:16 [INFO] Checking for update on channel stable_release. Update id is RoardNL 21:18:16 [INFO] Fetching channel versions (without changelogs) from Warp server 21:18:16 [INFO] dispatching global action for root_view:open_from_restored 21:18:16 [INFO] Computing available system fonts 21:18:16 [WARN] Could not find current AIAgentApiType value in dropdown option list 21:18:16 [INFO] Start to send telemetry events to RudderStack 21:18:16 [INFO] Block finished with new state DoneWithExecution 21:18:16 [INFO] Block finished with new state DoneWithNoExecution 21:18:16 [INFO] Starting shell /bin/bash 21:18:16 [INFO] Successfully spawned tty with pid: 471733 21:18:16 [INFO] Successfully spawned child bash process with pid 471733 21:18:16 [INFO] Received InitShell hook 21:18:16 [INFO] Starting shell /bin/bash 21:18:16 [INFO] Successfully spawned tty with pid: 471746 21:18:16 [INFO] Successfully spawned child bash process with pid 471746 21:18:16 [INFO] Fetching channel versions and changelogs from Warp server 21:18:16 [INFO] dispatching typed action: HandleFocusChange 21:18:16 [WARN] Action HandleFocusChange was dispatched, but no view handled it 21:18:16 [INFO] dispatching typed action: HandleFocusChange 21:18:16 [WARN] Action HandleFocusChange was dispatched, but no view handled it 21:18:16 [INFO] dispatching typed action: HandleFocusChange 21:18:16 [WARN] Action HandleFocusChange was dispatched, but no view handled it 21:18:16 [INFO] Received InitShell hook 21:18:16 [WARN] Tried to update block filter query without active_filter_editor_block_index set 21:18:16 [WARN] Tried to update block filter query without active_filter_editor_block_index set 21:18:18 [INFO] Loaded 86 font families 21:18:21 [WARN] Failed to make response to firebase to fetch access token: reqwest::Error { kind: Request, url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("securetoken.googleapis.com")), port: None, path: "/v1/token", query: Some("key=AIzaSyBdy3O3S9hrdayLJxJ7mriBR4qgUaUygAs"), fragment: None }, source: TimedOut } 21:18:22 [INFO] Received channel versions from Warp server: dev: ChannelVersion { version_info: VersionInfo { version: "v0.2024.10.11.18.37.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.10.11.18.37.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.10.08.08.02.beta_00", update_by: None, soft_cutoff: None }, overrides: [] }; stable: ChannelVersion { version_info: VersionInfo { version: "v0.2024.10.08.08.02.stable_02", update_by: None, soft_cutoff: Some("v0.2024.08.20.08.02.stable_00") }, overrides: [] } 21:18:23 [INFO] Received channel versions from Warp server: dev: ChannelVersion { version_info: VersionInfo { version: "v0.2024.10.11.18.37.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.10.11.18.37.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.10.08.08.02.beta_00", update_by: None, soft_cutoff: None }, overrides: [] }; stable: ChannelVersion { version_info: VersionInfo { version: "v0.2024.10.08.08.02.stable_02", update_by: None, soft_cutoff: Some("v0.2024.08.20.08.02.stable_00") }, overrides: [] } 21:18:26 [WARN] Failed to send event to RudderStack: error sending request for url (https://warpianwzlfqdq.dataplane.rudderstack.com/v1/batch) 21:24:25 [WARN] No alert dialog was set for the native modal 21:24:25 [WARN] Tried to render share modal without a model 21:24:25 [WARN] Tried to render share modal without a model 21:24:25 [INFO] fetching team tester status 21:24:25 [INFO] fetching updated cloud objects, including generic string objects 21:24:25 [INFO] fetching teams metadata 21:24:25 [INFO] Reconstructing database, but it already exists 21:24:25 [INFO] Connecting to SQLite database 21:24:25 [INFO] SQLite Writer is resumed 21:24:26 [INFO] Start to send telemetry events to RudderStack 21:24:26 [INFO] dispatching typed action: HandleFocusChange 21:24:26 [WARN] Action HandleFocusChange was dispatched, but no view handled it 21:24:26 [INFO] fetching teams metadata 21:24:26 [INFO] Dropping empty RudderStack telemetry batch 21:24:26 [INFO] fetching updated cloud objects, including generic string objects 21:24:26 [INFO] Websocket is ready. Getting latest set of updated objects from CloudObjects::Listener 21:24:26 [INFO] Flushed telemetry events. 21:24:26 [INFO] fetching updated cloud objects, including generic string objects 21:24:26 [WARN] Bootstrapping failed for shell "bash" on ssh false 21:24:26 [WARN] Showing bootstrap slow toast 21:24:26 [INFO] Start to send telemetry events to RudderStack 21:24:26 [WARN] Bootstrapping failed for shell "bash" on ssh false 21:24:26 [WARN] Showing bootstrap slow toast 21:24:26 [INFO] Start to send telemetry events to RudderStack 21:24:26 [INFO] Detected that Warp was installed using Apt { distribution_update_disabled_repository: false } 21:24:26 [WARN] Max vertex attribute stride unknown. Assuming it is 2048 21:24:26 [INFO] Enabled wgpu backends: Backends(VULKAN | GL | METAL | DX12 | BROWSER_WEBGPU) 21:24:26 [INFO] Available wgpu adapters (in priority order): 21:24:26 [INFO] DiscreteGpu: NVIDIA GeForce GTX 1050 Ti Backend: Vulkan Driver: NVIDIA (560.35.03) Can present: true Supported texture format: Some(Bgra8UnormSrgb) 21:24:26 [INFO] Other: NVIDIA GeForce GTX 1050 Ti/PCIe/SSE2 Backend: Gl Driver: Unknown (3.3.0 NVIDIA 560.35.03) Can present: false Supported texture format: None 21:24:26 [INFO] Cpu: llvmpipe (LLVM 19.1.0, 256 bits) Backend: Vulkan Driver: llvmpipe (Mesa 24.2.3-1ubuntu1 (LLVM 19.1.0)) Can present: true Supported texture format: Some(Bgra8UnormSrgb) 21:24:26 [INFO] Verifying adapter "NVIDIA GeForce GTX 1050 Ti" is valid... 21:24:26 [INFO] Using DiscreteGpu (NVIDIA GeForce GTX 1050 Ti) for rendering new window. 21:24:26 [INFO] Received CommandFinished hook 21:24:26 [INFO] Received CommandFinished hook 21:24:26 [INFO] Tried to exit the alternate screen, but it was already inactive 21:24:26 [INFO] Tried to exit the alternate screen, but it was already inactive 21:24:26 [INFO] Block finished with new state DoneWithNoExecution 21:24:26 [INFO] Block finished with new state DoneWithNoExecution 21:24:26 [INFO] Incrementing stage from WarpInput to ScriptExecution 21:24:26 [INFO] Incrementing stage from WarpInput to ScriptExecution 21:24:26 [INFO] Received Precmd hook 21:24:26 [INFO] Received Precmd hook 21:24:26 [INFO] Update ready for channel version VersionInfo { version: "v0.2024.10.08.08.02.stable_02", update_by: None, soft_cutoff: Some("v0.2024.08.20.08.02.stable_00") } 21:24:26 [INFO] Checking for update on channel stable_release. Update id is oCwrj4i 21:24:26 [INFO] Fetching channel versions (without changelogs) from Warp server 21:24:26 [INFO] dispatching typed action: HandleFocusChange 21:24:26 [WARN] redraw_frame was called 32 times before the frame was drawn 21:24:26 [INFO] Start to send telemetry events to RudderStack 21:24:26 [INFO] dispatching global action for workspace:save_app 21:24:26 [WARN] Expected to have session for session ID SessionId(172876429615863), but doesn't exist 21:24:26 [WARN] Expected to have session for session ID SessionId(17287642968060), but doesn't exist 21:24:26 [INFO] window resized 21:24:26 [INFO] dispatching global action for workspace:save_app 21:24:26 [WARN] Expected to have session for session ID SessionId(172876429615863), but doesn't exist 21:24:26 [WARN] Expected to have session for session ID SessionId(17287642968060), but doesn't exist 21:24:26 [INFO] dispatching typed action: HandleFocusChange 21:24:26 [WARN] Action HandleFocusChange was dispatched, but no view handled it 21:24:26 [INFO] dispatching typed action: HandleFocusChange 21:24:26 [INFO] active window changed: Some(WindowId(0)) 21:24:26 [INFO] dispatching global action for root_view:update_quake_mode_state 21:24:26 [INFO] dispatching global action for workspace:save_app 21:24:26 [WARN] Expected to have session for session ID SessionId(172876429615863), but doesn't exist 21:24:26 [WARN] Expected to have session for session ID SessionId(17287642968060), but doesn't exist 21:24:26 [WARN] redraw_frame was called 3 times before the frame was drawn 21:24:26 [WARN] redraw_frame was called 2 times before the frame was drawn 21:24:26 [INFO] Received channel versions from Warp server: dev: ChannelVersion { version_info: VersionInfo { version: "v0.2024.10.11.18.37.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.10.11.18.37.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.10.08.08.02.beta_00", update_by: None, soft_cutoff: None }, overrides: [] }; stable: ChannelVersion { version_info: VersionInfo { version: "v0.2024.10.08.08.02.stable_02", update_by: None, soft_cutoff: Some("v0.2024.08.20.08.02.stable_00") }, overrides: [] }

Juglugs avatar Oct 12 '24 21:10 Juglugs

Ok, found an actual solution. The issue happens because Warp fails to open under Wayland. So you have to force Warp to use Xwayland instead.

pkill warp
WAYLAND_DISPLAY=, warp-terminal

Here's how I did it under Kubuntu. Just unset the WAYLAND_DISPLAY=, environment variable for warp:

This menu can be opened by right-clicking on the application's Icon and selecting Edit Application.

aminya avatar Oct 13 '24 08:10 aminya

I had also hit on the fact that if you open Ubuntu using X11, the problem goes away. Thanks Aminya

Juglugs avatar Oct 13 '24 09:10 Juglugs

I'm trying to set this in Ubuntu, but it seems not to work. I have found the .desktop file in /usr/share/applications and I changed it as follow, to unset the WAYLAND_DISPLAY env variable:

[Desktop Entry]
# The version of the desktop entry spec this conforms to.
Version=1.0

Type=Application

Name=Warp
GenericName=TerminalEmulator

Exec=env WAYLAND_DISPLAY=, warp-terminal %U
StartupWMClass=dev.warp.Warp

Keywords=shell;prompt;command;commandline;cmd;

Icon=dev.warp.Warp

Categories=System;TerminalEmulator;

# Don't run this application within a terminal.
Terminal=false

# Register ourselves as the handler for warp:// URLs.
MimeType=x-scheme-handler/warp;

However, by opening the app from Ubuntu it stills takes forever to start. Could you please help me?

Lendersmark avatar Oct 13 '24 10:10 Lendersmark

Make sure no warp process is running

pkill warp

Then try to launch it again. It works for me under Kubuntu 24.10 with KDE.

Alternatively, you can log in with a X11 session.

aminya avatar Oct 13 '24 13:10 aminya

Ok, found an actual solution. The issue happens because Warp fails to open under Wayland. So you have to force Warp to use Xwayland instead.

That solves the crash issue (still existing since a long long time) not the current starting time problem. My warp startup script (crazy to need one) removes every wayland environment variable and reduces the warnings but still leads to the takes-forever starting behavior.

inselberg avatar Oct 13 '24 17:10 inselberg

Okay, so following the above I tried

WAYLAND_DISPLAY=Z warp-terminal

Where almost anything works as the value WAYLAND_DISPLAY but not nothing! So in the above I've set it to Z but the first time I set it to X11 and then surmised that the value didn't make sense.

This launches immediately.

sroebuck avatar Oct 13 '24 18:10 sroebuck

So this solution of

WAYLAND_DISPLAY=Z warp-terminal

Doesn't work for me. Starting Ubuntu with Xorg didn't resolve the matter either

Another behavior that I found was that when Warp eventually does start up. It seems to be fine. Running the command line as show above, or just warp-terminal works fine..

psmgeelen avatar Oct 14 '24 11:10 psmgeelen

Here is some logging:

This part loads immediately in my terminal

13:30:15 [INFO] Spawning terminal server process...
13:30:15 [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
13:30:15 [INFO] Running terminal server...
13:30:15 [INFO] Running app with windowing system: X11
13:30:15 [INFO] Initializing crash reporting Some("linux_stable_release") with tag "v0.2024.10.08.08.02.stable_02"...
13:30:15 [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://sessions.app.warp.dev"), rudderstack_write_key: "2iyG8S1RaV4XTX6SEypetFSEbLK", rudderstack_root_url: "https://warpianwzlfqdq.dataplane.rudderstack.com", releases_base_url: "https://releases.warp.dev", sentry_url: "https://[email protected]/5658526", logfile_name: "warp.log", show_autoupdate_menu_items: true } and version Some("v0.2024.10.08.08.02.stable_02")
13:30:15 [INFO] Performance metrics collector started
13:30:15 [INFO] Dropping empty RudderStack telemetry batch
13:30:15 [INFO] Flushed telemetry events.
13:30:15 [INFO] Initializing app services
13:30:15 [INFO] Start to send telemetry events to RudderStack
13:30:16 [WARN] No config found!
13:30:16 [WARN] EGL says it can present to the window but not natively
13:30:16 [WARN] Max vertex attribute stride unknown. Assuming it is 2048
13:30:16 [INFO] Connecting to SQLite database
13:30:16 [INFO] fetching team tester status
13:30:16 [INFO] Checking for update on channel stable_release. Update id is lBkuV5g
13:30:16 [INFO] Fetching channel versions (without changelogs) from Warp server
13:30:16 [INFO] dispatching global action for root_view:open_from_restored
13:30:16 [INFO] Start to send telemetry events to RudderStack
13:30:16 [INFO] Computing available system fonts
13:30:16 [WARN] Could not find current AIAgentApiType value in dropdown option list
13:30:16 [INFO] Start to send telemetry events to RudderStack
13:30:16 [INFO] Starting shell /usr/bin/bash
13:30:16 [INFO] Successfully spawned tty with pid: 199253
13:30:16 [INFO] Successfully spawned child bash process with pid 199253
13:30:16 [INFO] Fetching channel versions and changelogs from Warp server
13:30:16 [INFO] dispatching typed action: HandleFocusChange
13:30:16 [WARN] Action HandleFocusChange was dispatched, but no view handled it
13:30:16 [INFO] dispatching typed action: HandleFocusChange
13:30:16 [WARN] Action HandleFocusChange was dispatched, but no view handled it
13:30:16 [WARN] Tried to update block filter query without active_filter_editor_block_index set
13:30:16 [INFO] Received InitShell hook
13:30:16 [INFO] Loaded 57 font families
13:30:16 [INFO] Received channel versions from Warp server: dev: ChannelVersion { version_info: VersionInfo { version: "v0.2024.10.11.18.37.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.10.11.18.37.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.10.08.08.02.beta_00", update_by: None, soft_cutoff: None }, overrides: [] }; stable: ChannelVersion { version_info: VersionInfo { version: "v0.2024.10.08.08.02.stable_02", update_by: None, soft_cutoff: Some("v0.2024.08.20.08.02.stable_00") }, overrides: [] }
13:30:16 [INFO] Successfully flushed events to rudder from disk
13:30:16 [INFO] Received channel versions from Warp server: dev: ChannelVersion { version_info: VersionInfo { version: "v0.2024.10.11.18.37.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.10.11.18.37.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.10.08.08.02.beta_00", update_by: None, soft_cutoff: None }, overrides: [] }; stable: ChannelVersion { version_info: VersionInfo { version: "v0.2024.10.08.08.02.stable_02", update_by: None, soft_cutoff: Some("v0.2024.08.20.08.02.stable_00") }, overrides: [] }

Then there is a brake of several minutes, and this comes:

13:31:52 [WARN] Tried to render share modal without a model
13:31:52 [WARN] No alert dialog was set for the native modal
13:31:52 [INFO] fetching team tester status
13:31:52 [INFO] fetching updated cloud objects, including generic string objects
13:31:52 [INFO] fetching teams metadata
13:31:52 [INFO] Reconstructing database, but it already exists
13:31:52 [INFO] Start to send telemetry events to RudderStack
13:31:52 [INFO] dispatching typed action: HandleFocusChange
13:31:52 [WARN] Action HandleFocusChange was dispatched, but no view handled it
13:31:52 [INFO] Connecting to SQLite database
13:31:52 [INFO] Dropping empty RudderStack telemetry batch
13:31:52 [INFO] Flushed telemetry events.
13:31:52 [INFO] fetching teams metadata
13:31:52 [INFO] fetching updated cloud objects, including generic string objects
13:31:52 [INFO] No update available
13:31:52 [INFO] Checking for update on channel stable_release. Update id is 4036kqb
13:31:52 [INFO] Fetching channel versions (without changelogs) from Warp server
13:31:52 [INFO] SQLite Writer is resumed
13:31:52 [WARN] Bootstrapping failed for shell "bash" on ssh false
13:31:52 [WARN] Showing bootstrap slow toast
13:31:52 [INFO] Start to send telemetry events to RudderStack
13:31:52 [INFO] Received CommandFinished hook
13:31:52 [INFO] Tried to exit the alternate screen, but it was already inactive
13:31:52 [INFO] Block finished with new state DoneWithNoExecution
13:31:52 [INFO] Incrementing stage from WarpInput to ScriptExecution
13:31:52 [INFO] Received Precmd hook
13:31:52 [WARN] Max vertex attribute stride unknown. Assuming it is 2048
13:31:52 [INFO] Enabled wgpu backends: Backends(VULKAN | GL | METAL | DX12 | BROWSER_WEBGPU)
13:31:52 [INFO] Available wgpu adapters (in priority order):
13:31:52 [INFO] IntegratedGpu: AMD Radeon Graphics (RADV RAPHAEL_MENDOCINO)
	Backend: Vulkan
	Driver: radv (Mesa 24.2.3-1ubuntu1)
	Can present: true
	Supported texture format: Some(Bgra8UnormSrgb)
13:31:52 [INFO] DiscreteGpu: NVIDIA GeForce RTX 3090
	Backend: Vulkan
	Driver: NVIDIA (560.35.03)
	Can present: true
	Supported texture format: Some(Bgra8UnormSrgb)
13:31:52 [INFO] Other: NVIDIA GeForce RTX 3090/PCIe/SSE2
	Backend: Gl
	Driver: Unknown (3.3.0 NVIDIA 560.35.03)
	Can present: false
	Supported texture format: None
13:31:52 [INFO] Cpu: llvmpipe (LLVM 19.1.0, 256 bits)
	Backend: Vulkan
	Driver: llvmpipe (Mesa 24.2.3-1ubuntu1 (LLVM 19.1.0))
	Can present: true
	Supported texture format: Some(Bgra8UnormSrgb)
13:31:52 [INFO] Verifying adapter "AMD Radeon Graphics (RADV RAPHAEL_MENDOCINO)" is valid...
13:31:52 [WARN] Unrecognized device error ERROR_INITIALIZATION_FAILED
13:31:52 [WARN] Failed to create swapchain: Validation Error

Caused by:
  In Surface::configure
    Parent device is lost

13:31:52 [INFO] Verifying adapter "NVIDIA GeForce RTX 3090" is valid...
13:31:53 [INFO] Received Bootstrapped hook
13:31:53 [INFO] Configured typeahead mode as ShellReported
13:31:53 [INFO] Received CommandFinished hook
13:31:53 [INFO] Tried to exit the alternate screen, but it was already inactive
13:31:53 [INFO] Block finished with new state DoneWithNoExecution
13:31:53 [INFO] Incrementing stage from Bootstrapped to PostBootstrapPrecmd
13:31:53 [INFO] Received Precmd hook
13:31:53 [INFO] Received channel versions from Warp server: dev: ChannelVersion { version_info: VersionInfo { version: "v0.2024.10.11.18.37.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.10.11.18.37.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.10.08.08.02.beta_00", update_by: None, soft_cutoff: None }, overrides: [] }; stable: ChannelVersion { version_info: VersionInfo { version: "v0.2024.10.08.08.02.stable_02", update_by: None, soft_cutoff: Some("v0.2024.08.20.08.02.stable_00") }, overrides: [] }
13:31:53 [INFO] Using DiscreteGpu (NVIDIA GeForce RTX 3090) for rendering new window.
13:31:53 [INFO] No update available
13:31:53 [INFO] dispatching typed action: HandleFocusChange
13:31:53 [INFO] Parsed shell version string: Some([Number(5), Number(2), Number(32), Number(1), Text("release")])
13:31:53 [INFO] Shell is bootstrapped with session_id SessionId(172890541616500)
13:31:53 [INFO] Loading history from file /home/desktop/.bash_history for shell bash
13:31:53 [INFO] dispatching typed action: HandleFocusChange
13:31:53 [WARN] redraw_frame was called 30 times before the frame was drawn
13:31:53 [INFO] Start to send telemetry events to RudderStack
13:31:53 [INFO] dispatching global action for workspace:save_app
13:31:53 [INFO] window resized
13:31:53 [INFO] dispatching global action for workspace:save_app
13:31:53 [INFO] active window changed: Some(WindowId(0))
13:31:53 [INFO] dispatching global action for root_view:update_quake_mode_state
13:31:53 [INFO] dispatching global action for workspace:save_app
13:31:53 [WARN] redraw_frame was called 2 times before the frame was drawn
13:31:53 [INFO] Received InputBuffer hook
13:31:53 [WARN] Failed to record time "sample value too large"
13:31:53 [INFO] notifying view observers and updating windows for timer id 0
13:31:54 [INFO] active window changed: None
13:31:54 [INFO] dispatching global action for root_view:update_quake_mode_state
13:31:54 [INFO] dispatching global action for workspace:save_app
13:32:22 [INFO] Start to send telemetry events to RudderStack
13:32:22 [INFO] Flushed telemetry events.

What I find curious is:

13:31:52 [WARN] Tried to render share modal without a model
13:31:52 [WARN] No alert dialog was set for the native modal
...
13:31:52 [WARN] Action HandleFocusChange was dispatched, but no view handled it

and

13:31:52 [WARN] Unrecognized device error ERROR_INITIALIZATION_FAILED
13:31:52 [WARN] Failed to create swapchain: Validation Error

Caused by:
  In Surface::configure
    Parent device is lost

With the upgrade of ubuntu I also noticed that my nvidia drivers were upgraded to 560.35.03. Might this be related?

psmgeelen avatar Oct 14 '24 11:10 psmgeelen

Further investigation indicated that 1 Process is probably responsible for it. It's lsof and it is triggered when starting warp-terminal and runs for the total time that warp-terminal is not loading. When it closes down, warp immediately appears.

image

With a nearly maxed out thread image

psmgeelen avatar Oct 14 '24 11:10 psmgeelen

Confirming the lsof process, the full command line being:

lsof -t /run/user/1000/wayland-0

Which returns the process id of gnome-shell.

When I execute the command line separately from a terminal it returns in a fraction of a second.

sroebuck avatar Oct 14 '24 15:10 sroebuck

I confirm what @sroebuck and @psmgeelen found.

The command WAYLAND_DISPLAY=Z warp-terminal worked for me but I have to open a terminal do open Warp, I tried what @Lendersmark suggested but still have the same problem opening the app without the command line.

The other command that was suggested, sudo warp-terminal opened the terminal but it broken the account configuration and I wasn't able to login.

Do we have any feedback from the developers?

pedrocleis avatar Oct 14 '24 21:10 pedrocleis

I'm experiencing a critical issue after upgrading to Ubuntu 24.10. WARP terminal no longer launches, and CPU usage spikes dramatically. The process lsof appears to be involved, specifically targeting the Wayland display server (/run/user/1000/wayland-0). This did not occur on Ubuntu 24.04 where WARP functioned without problems.

naimsulejmani avatar Oct 16 '24 21:10 naimsulejmani

Hey all, thanks for reporting this, and sorry we didn't notice this GitHub issue sooner.

First: is anyone experiencing this issue using something other than Ubuntu 24.10? Want to know if we can have the fix narrowly targeted to just that distro or we need to make a broader change.

Definitely seems like something in 24.10 isn't playing nicely with Warp when using Wayland. We're not executing lsof ourselves, so must either be a library we're using or something being done by an OS component (the reporter of https://github.com/polkit-org/polkit/issues/510 is indicating this is a polkit issue).

While we work on getting a fix into a release, you can configure Warp to use Xwayland by default by adding "ForceX11": "true", to ~/.config/warp-terminal/user_preferences.json.

Let me know if the preferences-based workaround doesn't fix things for you.


Appendix:

In terms of the WAYLAND_DISPLAY=Z workaround - Z is not a valid value for WAYLAND_DISPLAY, so that approach works because we fall back to trying to use Xwayland instead of native Wayland as the display protocol. Changing the value of the setting, as I describe above, will accomplish the same thing but means you can launch Warp normally and it should work without issues.

vorporeal avatar Oct 18 '24 18:10 vorporeal

Hi @vorporeal , thank you for your reply. I checked the file in ~/.config/warp-terminal/user_preferences.json and the "ForceX11": "true", is already there. Is there a possibility that the application is ignoring this configuration?


{
  "prefs": {
    "HasAutoOpenedWelcomeFolder": "true",
    "ExperimentId": "",
    "PreferLowPowerGPU": "false",
    "ChangelogVersions": "{\"v0.2024.10.08.08.02.stable_01\":true,\"v0.2024.10.08.08.02.stable_02\":true,\"v0.2024.10.15.08.02.stable_02\":true,\"v0.2024.10.15.08.02.stable_03\":true}",
    "WelcomeTipsFeaturesUsed": "[{\"Hint\":\"BlockAction\"},{\"Hint\":\"CreateBlock\"},{\"Hint\":\"BlockSelect\"}]",
    "SystemTheme": "true",
    "TelemetryEnabled": "true",
    "AutosuggestionAcceptedCount": "2",
    "ForceX11": "true",
    "NotebookFontSize": "14.0",
    "AgentModeOnboardingBlockShown": "true",
    "ReceivedReferralTheme": "\"Inactive\"",
    "AIRequestLimitInfo": "{\"limit\":100,\"num_requests_used_since_refresh\":8,\"next_refresh_time\":\"2024-11-10T21:43:51.115156Z\",\"is_unlimited\":false}",
    "FontSize": "13.0",
    "AIAssistantRequestLimitInfo": "{\"limit\":100,\"num_requests_used_since_refresh\":23,\"next_refresh_time\":\"2024-10-11T19:36:25.942315Z\",\"is_unlimited\":false}",
    "InputAutodetectionBannerDismissed": "true",
    "CrashReportingEnabled": "true",
    "OpenWindowsAtCustomSize": "false",
    "SameLinePromptBlockState": "\"DoNotShow\""
  }
}

This is the file in question, I removed the ExperimentId for probable privacy concerns.

pedrocleis avatar Oct 18 '24 19:10 pedrocleis

Use following content for the desktop file to open warp in x11

[Desktop Entry] Categories=System;TerminalEmulator; Comment[en_US]= Comment= Exec=env WAYLAND_DISPLAY=, warp-terminal %U GenericName[en_US]=TerminalEmulator GenericName=TerminalEmulator Icon=dev.warp.Warp Keywords=shell;prompt;command;commandline;cmd; MimeType= Name[en_US]=Warp Name=Warp Path= StartupNotify=true StartupWMClass=dev.warp.Warp Terminal=false TerminalOptions= Type=Application Version=1.0 X-KDE-SubstituteUID=false X-KDE-Username=

oktayderman avatar Oct 18 '24 19:10 oktayderman

@pedrocleis Interesting, that's very much not what I would have expected. I'm currently installing Ubuntu 24.10 in a VM so I can attempt to reproduce this myself (and investigate possible fixes); I'll keep you all updated as I dig into this.

vorporeal avatar Oct 18 '24 19:10 vorporeal

When I kill the lsof from the terminal or from system processes, the warp opens immediately!

naimsulejmani avatar Oct 18 '24 20:10 naimsulejmani