warp icon indicating copy to clipboard operation
warp copied to clipboard

User session terminated when starting Warp

Open whoshallsucceed opened this issue 1 year ago • 9 comments

Pre-submit Checks

Describe the bug

I am running i3+pop_os and today I started having an issue with Warp.

When I start Warp, I get logged out of my user session and have to log back in. And it triggers every time.

warp-logs.tar.gz

To reproduce

Start Warp

Expected behavior

No response

Screenshots, videos, and logs

No response

Operating system (OS)

Linux

Operating system and version

Pop!_OS 22.04 LTS

Shell Version

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

Current Warp version

No response

Regression

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

Recent working Warp date

June 29th, maybe even 30th

Additional context

No response

Does this block you from using Warp daily?

Yes, this issue prevents me from using Warp daily.

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

whoshallsucceed avatar Jul 01 '25 16:07 whoshallsucceed

Hello! This is quite surprising to me, so I'm going to try to pull on the the only two threads I have right now:

  1. Your logs end with 2025-07-01T16:33:16Z [ERROR] Worker thread errored with: Unknown error while interacting with the clipboard: The X11 server closed the connection. I couldn't find any part of this error message that came from within Warp's source code itself, but I did find another user running into a similar clipboard issue. Can you help identify whether this is clipboard related? Does the app crash when you're trying to use the clipboard? Can you check the crash logs and see if this is always the last log line?
  2. Another engineer suggested Initial guess (from having seen a high memory usage process kill my window manager once) is an OOM issue that the system oom killer isn't handling ideally?. Are you able to monitor Warp during the startup-to-crash lifespan to see if it's growing in memory usage or anything else atypical before the crash?

heysweet avatar Jul 01 '25 16:07 heysweet

How much RAM do you have available? And how much RAM do you have free before starting Warp? The only other thing. We're also noticing that Warp is starting to perform codebase context indexing for four repos, and perhaps at least one of them is quite large enough to cause an OOM issue. You may want to consider temporarily moving your git repos to some other location on your machine and opening Warp then to see if you still have the crash issue -- this could help identify that OOMing could be caused by this codebase context indexing.

heysweet avatar Jul 01 '25 17:07 heysweet

Thanks for the prompt reply!

Hello! This is quite surprising to me, so I'm going to try to pull on the the only two threads I have right now:

  1. Your logs end with 2025-07-01T16:33:16Z [ERROR] Worker thread errored with: Unknown error while interacting with the clipboard: The X11 server closed the connection. I couldn't find any part of this error message that came from within Warp's source code itself, but I did find another user running into a similar clipboard issue. Can you help identify whether this is clipboard related? Does the app crash when you're trying to use the clipboard? Can you check the crash logs and see if this is always the last log line?
  2. Another engineer suggested Initial guess (from having seen a high memory usage process kill my window manager once) is an OOM issue that the system oom killer isn't handling ideally?. Are you able to monitor Warp during the startup-to-crash lifespan to see if it's growing in memory usage or anything else atypical before the crash?

I don't have time to do anything. I don't even see Warp. I instantly get logged out as soon (or close enough) as I start Warp. Sometimes I see Warp for like a second.

So I can't do any monitoring, I can't run the command you have in your instructions that allows to gather more detailed logs or something.

How much RAM do you have available? And how much RAM do you have free before starting Warp?

I have 62G RAM. Currently using 12G.
I have 20G SWAP.

The only other thing. We're also noticing that Warp is starting to perform codebase context indexing for four repos, and perhaps at least one of them is quite large enough to cause an OOM issue. You may want to consider temporarily moving your git repos to some other location on your machine and opening Warp then to see if you still have the crash issue -- this could help identify that OOMing could be caused by this codebase context indexing.

I can try that but considering the resources at my disposal, that seems unlikely. Especially since it's been at least a week Warp handles these 4 projects.

whoshallsucceed avatar Jul 01 '25 17:07 whoshallsucceed

The only other thing. We're also noticing that Warp is starting to perform codebase context indexing for four repos, and perhaps at least one of them is quite large enough to cause an OOM issue. You may want to consider temporarily moving your git repos to some other location on your machine and opening Warp then to see if you still have the crash issue -- this could help identify that OOMing could be caused by this codebase context indexing.

I moved all 4 projects, started Warp and same thing happened.

I will attach the logs: warp-logs.tar.gz

I just noticed the logs show that it crashes fast. Less than 1s. However I don't see any errors.

whoshallsucceed avatar Jul 01 '25 17:07 whoshallsucceed

Hey @AdrienGiboire, Andrew's "Another engineer" here - can you try deleting Warp's sqlite file and see if that fixes the issue?

On Linux, you'd want to run rm "${XDG_STATE_HOME:-$HOME/.local/state}/warp-terminal/warp.sqlite*"

This will delete session restoration data and things cached from the server, but not delete any of your user preferences. I'm hoping something that's being loaded from there is causing your issues.

vorporeal avatar Jul 01 '25 18:07 vorporeal

I did it but no luck.

Logs are different. Here they are:

warp-logs.tar.gz

whoshallsucceed avatar Jul 01 '25 19:07 whoshallsucceed

I removed warp, downloaded a fresh package, installed it, removed ~/.local warp content and it keeps crashing just the same.

If we can't figure this out, I'll have to ask for a refund and cancel my sub.

whoshallsucceed avatar Jul 03 '25 09:07 whoshallsucceed

New piece of information. I tried running Warp in PopOS default desktop environment and it works. It just fails when I'm using i3wm.

Any idea?

whoshallsucceed avatar Jul 18 '25 13:07 whoshallsucceed

I also encountered this problem. My environment is Ubuntu 24.04. When I first downloaded and ran Warp, the screen went black as soon as I opened Warp. After logging out of the current user, the system went directly back to the login page.

eric-xdp avatar Nov 10 '25 10:11 eric-xdp