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:

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

Most upvoted comments

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.

startx – -maxbigreqsize 127

@mahkoh How would I configure this setting when I do not start X11 manually? I use systemd, sddm and i3.

same setup here. You have to edit /etc/sddm.conf and change from

# Arguments passed to the X server invocation
ServerArguments=-nolisten tcp

to

# Arguments passed to the X server invocation
ServerArguments=-nolisten tcp -maxbigreqsize 127

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.

▶ inxi -G
Graphics:
  Device-1: Intel HD Graphics 620 driver: i915 v: kernel
    driver: uvcvideo
  Display: x11 server: X.Org 1.21.1.2 driver: loaded: intel resolution:
    1: 2048x1152~60Hz 2: 3440x1440~60Hz
  OpenGL: renderer: Mesa Intel HD Graphics 620 (KBL GT2) v: 4.6 Mesa 21.2.5

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.