Warp icon indicating copy to clipboard operation
Warp copied to clipboard

Warp constantly flickering-blinking

Open jplferreyra-smf opened this issue 1 year ago • 20 comments

Discord username (optional)

No response

Describe the bug

Warp terminal keeps blinking at all times. It seems like it is happening in all context, at least what I tested is as follows:

  • Main and secondary screens
  • Warp and bash prompt
  • Inside any text editor (vim, nvim, nano)

Added a video to show how it looks, let me know if more info is needed.

https://github.com/warpdotdev/Warp/assets/134442471/ec68357c-0ec8-4e21-8b10-cff7f964e688

To reproduce

Just start warp, even at startup and doing nothing the blink happens

Expected behavior

Not blinking :)

Screenshots

No response

Operating system

Linux

Operating system and version

Ubuntu 20.04

Shell Version

Bash 5.0.17

Current Warp version

v0.2024.04.16.08.02.stable_01

Regression

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

Recent working Warp date

No response

Additional context

X11, log attached. The problem was a little less annoying while using the terminal with the logs activated. log.txt

Does this block you from using Warp daily?

Yes, this issue prevents me from using Warp daily.

Is this a Warp specific issue? (i.e. does it happen in Terminal, iTerm, Kitty, etc.)

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

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

None

jplferreyra-smf avatar Apr 23 '24 14:04 jplferreyra-smf

Hi @jplferreyra-smf thanks for reporting and posting your logs. We believe it's an issue with the Mesa 21.2 drivers. We see similar reports in #4533. Can you try a couple of things that might solve the issue?

  1. From a different terminal, start Warp from the CLI with WGPU_BACKEND=gl warp-terminal. This issue might be specific to the vulkan backend and forcing GL might fix it.
  2. Run Warp with experimental Wayland support WARP_ENABLE_WAYLAND=1 warp-terminal.

Apart from that, the more extreme resolution would be to try upgrading your Mesa drivers to the latest version.

acarl005 avatar Apr 23 '24 14:04 acarl005

Hello @acarl005, I can help in anything you need. I already saw the #4533 issue, but the problem here is not exactly the same. My blinking problem happens everytime, not just when selecting text. Already checked and not flashing when selecting text. I have a coworker with the same issue as mine, I will ask to check the same.

At first glance, using WGPU_BACKEND=gl warp-terminal solved the problem. I've used warp for ten mins and no flickering ocurred, before there was no time without the issue. Is there a way to set this flag to any running instance of warp so I can run it as my default terminal without having to execute it from another one everytime?

jplferreyra-smf avatar Apr 23 '24 14:04 jplferreyra-smf

You can export WGPU_BACKEND=gl in your .profile or .zprofile to load the variables so you can just run Warp from your desktop

dannyneira avatar Apr 23 '24 15:04 dannyneira

Hi @jplferreyra-smf, would you mind trying on the newest release of Warp without the WGPU_BACKEND=gl env var? We just pushed a new release that should have fixed these issues. Thanks!

alokedesai avatar Apr 23 '24 23:04 alokedesai

Hello @alokedesai, already updated warp to version v0.2024.04.16.08.02.stable_03. Unfortunately it didn't solved the issue. Let me share the logs with you. log2.txt

Jplferreyra avatar Apr 24 '24 11:04 Jplferreyra

I updated the Mesa graphics drivers on my Ubuntu system, and the error has been resolved.

michaelgarciam1 avatar Apr 24 '24 14:04 michaelgarciam1

Hello everyone, I updated Mesa drivers and everything looks fine.

Jplferreyra avatar Apr 24 '24 17:04 Jplferreyra

Thanks for the updates y'all! On our end, it looks like we need to adjust how we choose our graphics adapter to try and automatically avoid known buggy graphics adapters.

acarl005 avatar Apr 24 '24 17:04 acarl005

Hi @jplferreyra-smf thanks for reporting and posting your logs. We believe it's an issue with the Mesa 21.2 drivers. We see similar reports in #4533. Can you try a couple of things that might solve the issue?

1. From a different terminal, start Warp from the CLI with `WGPU_BACKEND=gl warp-terminal`. This issue might be specific to the vulkan backend and forcing GL might fix it.

2. Run Warp with experimental Wayland support `WARP_ENABLE_WAYLAND=1 warp-terminal`.

Apart from that, the more extreme resolution would be to try upgrading your Mesa drivers to the latest version.

while the first solution worked, the second one didn't

RojJuan avatar May 14 '24 21:05 RojJuan

Update on this.

Up to this point, we've seeing a cluster of similar flickering issues with Intel UHD integrated graphics and the Mesa 21 drivers. We're in the process of determining the variety of affected devices. We've confirmed the Kaby lake chips and we need to see what else is affected.

UPDATE: **Can any users affected please post their Warp logs located at ~/.local/state/warp-terminal/warp.log so that we can see which graphics drivers Warp is using?

acarl005 avatar May 15 '24 08:05 acarl005

Same issue on Skylake HD Graphics 530.

maccumhaill avatar May 15 '24 09:05 maccumhaill

Update on this.

Up to this point, we've seeing a cluster of similar flickering issues with Intel UHD integrated graphics and the Mesa 21 drivers. We're in the process of determining the variety of affected devices. We've confirmed the Kaby lake chips and we need to see what else is affected.

UPDATE: **Can any users affected please post their Warp logs located at ~/.local/state/warp-terminal/warp.log so that we can see which graphics drivers Warp is using? warp.log

RojJuan avatar May 15 '24 21:05 RojJuan

I updated the Mesa graphics drivers on my Ubuntu system, and the error has been resolved.

It seems to me that solved my issue too... I'm running ubuntu 20.04 and was using the Mesa Drivers with issues, I updated to Mesa 24 and reboot.. so far I didn't notice any flickering! :D

igormcsouza avatar May 30 '24 17:05 igormcsouza

This happens for me on windows. It actually isn't just the warp window flickering, but it makes my entire screen flicker.

ThinkSalat avatar Jun 01 '25 04:06 ThinkSalat

@ThinkSalat would you mind recording a video and sending that along with your Warp logs so I can debug further?

alokedesai avatar Jun 02 '25 14:06 alokedesai

hi, I'll try. I'm not sure if it'll show up.

To clarify - it seems like warp is setting the fps on my computer when it's active or something. sometimes when I open warp, my screen flickers and it feels like the fps on my pc drops

ThinkSalat avatar Jun 04 '25 21:06 ThinkSalat

@ThinkSalat Could you attach your WArp logs so I can investigate further?

alokedesai avatar Jun 05 '25 14:06 alokedesai

I also have flickering on Windows but suspect it is different. It looks more like it is interfering with my display's dynamic adjustments for contrast or some such.

I've attached my logs. By the way, the documentation for generating the log archive on Windows should be adjusted as the path changes if OneDrive is set up to backup the Desktop, leading to an error. Should use the following instead:

Compress-Archive -Path "$env:LOCALAPPDATA\warp\Warp\data\logs\warp.log*" -DestinationPath "$([Environment]::GetFolderPath("Desktop"))\warp-logs.zip" -Force

warp-logs.zip

theeternalsw0rd avatar Jun 17 '25 02:06 theeternalsw0rd

Interestingly enough, using screen recorder disabled whatever causes the flickering. I am attaching a recording I took with my phone.

https://github.com/user-attachments/assets/54e5e0cb-2a71-416e-abb6-edebbf04b7e7

theeternalsw0rd avatar Jun 17 '25 02:06 theeternalsw0rd

For me, turned out to be an NVidia setting. Needed to add it to NVidia as a managed application and set Vertical Sync to "Use the 3D Application Setting" as mentioned in another bug regarding flickering.

theeternalsw0rd avatar Jun 17 '25 16:06 theeternalsw0rd

I got the similar problem. I use proxmox-VM Ubuntu 24.04 with Nvidia RTX 4000 Ada (Passthrough) accessed remotely from rustdesk. Only Warp application has the problem while others don't. by the way, where is the 3D settings in the Ubuntu Nvidia settings? https://github.com/user-attachments/assets/bfc6efcb-ec9d-411e-a6bc-8e29a81d4538

bentonglove avatar Aug 06 '25 06:08 bentonglove