alacritty: Crash at large window size in X
OS: Arch Linux running in latest VirtualBox Alacritty Version: 0.4.1
I’m running alacritty without 3D acceleration because the VirtualBox driver doesn’t support OpenGL 3.3:
LIBGL_ALWAYS_SOFTWARE=1 alacritty
The only output I have is this:
X connection to :0.0 broken (explicit kill or server shutdown)
This only happens at a very high resolution (which I added myself):
xrandr --newmode 3840x2160 712.75 3840 4160 4576 5312 2160 2163 2168 2237 -hsync +vsync
xrandr --addmode Virtual1 3840x2160
xrandr --output Virtual1 --mode 3840x2160 # this one breaks it
xrandr --output Virtual1 --mode 2560x1600 # this one works
Note also that kitty
works normally when I run it the exact same way, in any of the resolutions.
Similar issues:
- https://github.com/alacritty/alacritty/issues/3007 (same error)
- https://github.com/alacritty/alacritty/issues/3214 (also a problem with high resolutions)
Output using -vvv
[2020-03-22 14:05] [INFO] Welcome to Alacritty
[2020-03-22 14:05] [INFO] Configuration loaded from "/home/jibiapina/.config/alacritty/alacritty_linux.yml"
[2020-03-22 14:05] [DEBUG] Estimated DPR: 1
[2020-03-22 14:05] [DEBUG] Estimated Cell Size: 16 x 34
[2020-03-22 14:05] [DEBUG] Estimated Dimensions: None
[2020-03-22 14:05] [INFO] Device pixel ratio: 1
[2020-03-22 14:05] [INFO] Initializing glyph cache...
[2020-03-22 14:05] [INFO] ... finished initializing glyph cache in 0.010238553s
[2020-03-22 14:05] [INFO] Cell Size: 16 x 34
[2020-03-22 14:05] [INFO] Padding: 0 x 0
[2020-03-22 14:05] [INFO] Width: 800, Height: 600
[2020-03-22 14:05] [INFO] PTY Dimensions: Line(17) x Column(50)
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/color.rs:35] Scaling RGB by 0.66 from Rgb { r: 131, g: 148, b: 150 } to Rgb { r: 86, g: 97, b: 99 }
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/color.rs:204] Deriving dim colors from normal colors
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/color.rs:35] Scaling RGB by 0.66 from Rgb { r: 7, g: 54, b: 66 } to Rgb { r: 4, g: 35, b: 43 }
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/color.rs:35] Scaling RGB by 0.66 from Rgb { r: 220, g: 50, b: 47 } to Rgb { r: 145, g: 33, b: 31 }
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/color.rs:35] Scaling RGB by 0.66 from Rgb { r: 133, g: 153, b: 0 } to Rgb { r: 87, g: 100, b: 0 }
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/color.rs:35] Scaling RGB by 0.66 from Rgb { r: 181, g: 137, b: 0 } to Rgb { r: 119, g: 90, b: 0 }
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/color.rs:35] Scaling RGB by 0.66 from Rgb { r: 38, g: 139, b: 210 } to Rgb { r: 25, g: 91, b: 138 }
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/color.rs:35] Scaling RGB by 0.66 from Rgb { r: 211, g: 54, b: 130 } to Rgb { r: 139, g: 35, b: 85 }
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/color.rs:35] Scaling RGB by 0.66 from Rgb { r: 42, g: 161, b: 152 } to Rgb { r: 27, g: 106, b: 100 }
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/color.rs:35] Scaling RGB by 0.66 from Rgb { r: 238, g: 232, b: 213 } to Rgb { r: 157, g: 153, b: 140 }
[2020-03-22 14:05] [INFO] Initialisation complete
[2020-03-22 14:05] [DEBUG] New num_cols is 239 and num_lines is 63
[2020-03-22 14:05] [INFO] Width: 3838, Height: 2158
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/mod.rs:1483] Carriage return
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/mod.rs:1491] Linefeed
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/mod.rs:1483] Carriage return
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/mod.rs:1491] Linefeed
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/mod.rs:1483] Carriage return
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/mod.rs:1491] Linefeed
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/mod.rs:1483] Carriage return
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/mod.rs:1491] Linefeed
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/mod.rs:1483] Carriage return
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/mod.rs:1491] Linefeed
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/mod.rs:1483] Carriage return
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/mod.rs:1491] Linefeed
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/mod.rs:1846] Setting attribute: Bold
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/mod.rs:1846] Setting attribute: Reverse
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/mod.rs:1846] Setting attribute: CancelReverse
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/mod.rs:1846] Setting attribute: Bold
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/mod.rs:1846] Setting attribute: Reset
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/mod.rs:1483] Carriage return
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/mod.rs:1483] Carriage return
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/mod.rs:1483] Carriage return
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/mod.rs:1846] Setting attribute: Reset
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/mod.rs:1846] Setting attribute: CancelReverse
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/mod.rs:1846] Setting attribute: CancelUnderline
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/mod.rs:1753] Clearing screen: Below
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/mod.rs:1483] Carriage return
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/mod.rs:1491] Linefeed
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/mod.rs:1846] Setting attribute: Bold
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/mod.rs:1846] Setting attribute: Foreground(Named(Cyan))
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/mod.rs:1846] Setting attribute: Reset
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/mod.rs:1483] Carriage return
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/mod.rs:1491] Linefeed
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/mod.rs:1846] Setting attribute: Bold
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/mod.rs:1846] Setting attribute: Foreground(Named(Green))
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/mod.rs:1846] Setting attribute: Reset
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/mod.rs:1666] Clearing line: Right
[2020-03-22 14:05] [TRACE] [alacritty_terminal/src/term/mod.rs:1877] Setting mode: BracketedPaste
About this issue
- Original URL
- State: open
- Created 4 years ago
- Comments: 42 (12 by maintainers)
Commits related to this issue
- Upgrade to 20.03 Upgraded through 19.09 first. sudo nix-channel --add https://nixos.org/channels/nixos-19.09 nix-channel --add https://nixos.org/channels/nixos-19.09 nixos sudo nixos-reb... — committed to malloc47/config by malloc47 4 years ago
- Switch from alacritty -> kitty Hopefully temporary until https://github.com/alacritty/alacritty/issues/3500 is fixed — committed to malloc47/config by malloc47 4 years ago
swrast_dri transfers images inline via xcb_put_image. By default, modern X servers allow a maximum message size of 16MB which is not enough to transfer large images. Start the X server with
-maxbigreqsize 127
to increase the limit to 512MB. This is the maximum possible and is enough to support 10000x10000 window sizes.If you use startx, use
startx -- -maxbigreqsize 127
. Otherwise consult the manual of your display manager.Of course this will use a very large amount of memory.
same setup here. You have to edit /etc/sddm.conf and change from
to
Worked for me.
I went ahead and tried upgrading my kernel from 4.14 to 5.15 and that seemed to fix the resizing issue for me. inxi shows an updated render now.
Does it show anything in
--print-events -vvv
, it should show at least something in them?Note, I’m not interested in using any virtual box(only qemu is allowed), sorry.