warpdotdev / Warp

Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster.
https://warp.dev
Other
21.52k stars 376 forks source link

Warp constantly flickering-blinking #4809

Open jplferreyra-smf opened 7 months ago

jplferreyra-smf commented 7 months ago

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:

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

acarl005 commented 7 months ago

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.

jplferreyra-smf commented 7 months ago

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?

dannyneira commented 7 months ago

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

alokedesai commented 7 months ago

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!

Jplferreyra commented 7 months ago

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

michaelgarciam1 commented 7 months ago

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

Jplferreyra commented 7 months ago

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

acarl005 commented 7 months ago

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.

RojJuan commented 6 months ago

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

acarl005 commented 6 months ago

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?

maccumhaill commented 6 months ago

Same issue on Skylake HD Graphics 530.

RojJuan commented 6 months ago

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

igormcsouza commented 6 months ago

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