User session terminated when starting Warp
Pre-submit Checks
- [x] I have searched Warp bugs and there are no duplicates
- [x] I have searched Warp known issues page and my issue is not there
- [x] I have included the logs (optional, but helps expedite the bug fix). Log gathering intructions
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.
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
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:
- 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? - 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?
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.
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:
- 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?- 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.
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.
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.
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.
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?
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.