Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Got some black stripes when I use nvim #6599

Closed
woshichuanqilz opened this issue Jan 1, 2023 · 12 comments
Closed

Got some black stripes when I use nvim #6599

woshichuanqilz opened this issue Jan 1, 2023 · 12 comments

Comments

@woshichuanqilz
Copy link

image

Got some black strip when I use nvim(colorscheme tokyo-night) in alacritty.
It doesn't always comes out. I don't know what is the reason it comes out.
The reason why I think it is a alacritty issue is that I use konsole sometimes.
But I never see the same issue in konsole.

System

OS: Ubuntu 22
Version: 0.11.0
Linux/BSD: X11, KDE

Logs

Crashes: No Crashes
Font/Terminal size: alacritty -vv

 alacritty -vv                                                Jan-01 14:29
Created log file at "/tmp/Alacritty-1317105.log"
[0.000002086s] [INFO ] [alacritty] Welcome to Alacritty
[0.000169965s] [INFO ] [alacritty] Version 0.11.0
[0.000217550s] [INFO ] [alacritty] Running on X11
[0.000880818s] [INFO ] [alacritty] Configuration files loaded from:
                                     "/home/lizhe/.config/alacritty/alacritty.
yml"
[0.003179909s] [DEBUG] [alacritty] Loading "OriFont2" font
[0.012311737s] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Regu
lar, load_flags: TARGET_LIGHT, render_mode: "Lcd", lcd_filter: 1 }
[0.017168879s] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Regu
lar, load_flags: TARGET_LIGHT, render_mode: "Lcd", lcd_filter: 1 }
[0.020810215s] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Regu
lar, load_flags: NO_BITMAP | TARGET_LIGHT, render_mode: "Lcd", lcd_filter: 1 }
[0.025668379s] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Regu
lar, load_flags: NO_BITMAP | TARGET_LIGHT, render_mode: "Lcd", lcd_filter: 1 }
[0.026998052s] [DEBUG] [alacritty] Estimated scaling factor: 2
[0.027005886s] [DEBUG] [alacritty] Estimated window size: Some(PhysicalSize { 
width: 2080, height: 1350 })
[0.027010071s] [DEBUG] [alacritty] Estimated cell size: 26 x 54
[0.066193849s] [INFO ] [alacritty] Running on Mesa Intel(R) Graphics (ADL-S GT
1)
[0.066215547s] [INFO ] [alacritty] Using OpenGL 3.3 renderer
[0.071360402s] [INFO ] [alacritty] Display scale factor: 2
[0.071379640s] [DEBUG] [alacritty] Filling glyph cache with common glyphs
[0.079429843s] [INFO ] [alacritty] Cell size: 26 x 54
[0.079462406s] [INFO ] [alacritty] Padding: 0 x 0
[0.079465986s] [INFO ] [alacritty] Width: 2080, Height: 1350
[0.089620005s] [INFO ] [alacritty] PTY dimensions: 25 x 80
[0.092282382s] [INFO ] [alacritty] Initialisation complete
[0.097322651s] [DEBUG] [alacritty_terminal] Term::resize dimensions unchanged
[0.100186592s] [INFO ] [alacritty] Padding: 0 x 0
[0.100200474s] [INFO ] [alacritty] Width: 2080, Height: 1350
[4.038781840s] [INFO ] [alacritty] Goodbye
Deleted log file at "/tmp/Alacritty-1317105.log"

Keyboard and bindings: alacritty --print-events
Too long too show it. I think not related to this with my issue here

@chrisduerr
Copy link
Member

Are those black blocks in spots where you should have glyphs, or in spots where there would be empty background usually?

@woshichuanqilz
Copy link
Author

Are those black blocks in spots where you should have glyphs, or in spots where there would be empty background usually?

Always should be blank no any char there.

@woshichuanqilz
Copy link
Author

At start
image

I move my cursor to right and the whole text in the window moved, but the black striped not moved.
image

@chrisduerr
Copy link
Member

Can you reproduce this on Wayland or is it only an X11 issue?

@woshichuanqilz
Copy link
Author

Can you reproduce this on Wayland or is it only an X11 issue?

only on X11. I don't have Wayland for now. Maybe Wayland will solve it I will try it next time I reinstall my os.

@chrisduerr
Copy link
Member

Can you try the latest master and setting renderer to gles2_pure (https://github.com/alacritty/alacritty/blob/master/alacritty.yml#L895)?

@woshichuanqilz
Copy link
Author

Can you try the latest master and setting renderer to gles2_pure (https://github.com/alacritty/alacritty/blob/master/alacritty.yml#L895)?

Ok I already change to

debug:
  # Renderer override.
  #   - glsl3
  #   - gles2
  #   - gles2_pure
  renderer: gles2_pure

I will try sometime and see if it happens

@woshichuanqilz
Copy link
Author

image
Still have it. I found it is not black stripes they are transparency block. I can see the wallpaper through them. But not directly to the wallpaper. Actually I see the background of terminal.

I change the size of the window they disappear. But you can see the style of my terminal and wallpaper by this image.
image

@kchibisov
Copy link
Member

Do you have window.opacity setup in your terminal? From what I can see you do? Might something in your editor is using default background color for some elements and it end up like that.

I'd assume that with alacritty --config-file=/dev/null it won't happen.

@woshichuanqilz
Copy link
Author

woshichuanqilz commented Jan 4, 2023

Do you have window.opacity setup in your terminal? From what I can see you do? Might something in your editor is using default background color for some elements and it end up like that.

I'd assume that with alacritty --config-file=/dev/null it won't happen.

Thank you
Yes I set the opacity. Ok I will let it go. Since this wont effect my work.

Thanks again.

@iujakchu
Copy link

iujakchu commented Aug 17, 2023

I have the same problem here.
This is my config,i don't have any opacity settings:

font:
  size: 18
colors:
  primary:
    background: "#161616"
    foreground: "#ffffff"
  search:
    matches:
      foreground: CellBackground
      background: "#ee5396"
    footer_bar:
      background: "#262626"
      foreground: "#ffffff"
  normal:
    black: "#262626"
    magenta: "#ff7eb6"
    green: "#42be65"
    yellow: "#ffe97b"
    blue: "#33b1ff"
    red: "#ee5396"
    cyan: "#3ddbd9"
    white: "#dde1e6"
  bright:
    black: "#393939"
    magenta: "#ff7eb6"
    green: "#42be65"
    yellow: "#ffe97b"
    blue: "#33b1ff"
    red: "#ee5396"
    cyan: "#3ddbd9"
    white: "#ffffff"

After commenting out all my config,the problem still exists.
alacritty --config-file=/dev/null has no problem btw.

@iujakchu
Copy link

It's weired that the problem has gone after relaunching alacritty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants