Skip to content

Crash on startup debian trixie; x11; Error: Error { raw_code: Some(2), raw_os_message: Some("BadValue (integer parameter out of range for operation)"), kind: BadAttribute } #8566

Open
@knirch

Description

@knirch

Don't know what is relevant or not, but was running an older 0.14 build, decided to compile master.

Ran into Error: Error { raw_code: Some(2), raw_os_message: Some("BadValue (integer parameter out of range for operation)"), kind: BadAttribute }, found the closed issues which suggested LIBGL_ALWAYS_SOFTWARE="1"

With LIBGL_ALWAYS_SOFTWARE="1" it starts just fine. Realized the old tickets were for 0.13 and similar, tested building v0.15.1, it works fine without LIBGL_ALWAYS_SOFTWARE="1"

Did a bisect on master

(knirch) ✔ 15:08 ~/source/alacritty [master|BISECTING|…4] $ git bisect good v0.15.1
Bisecting: a merge base must be tested
[f0e5ec4d05b6a7719aac526eb332c33176d099a4] Fix changelog entries being in past release
(knirch) ✔ 15:08 ~/source/alacritty [:f0e5ec4d|BISECTING|…4] $ rm target/release/alacargo build --release ; ./target/release/alacritty
alacritty*
alacritty.d
(knirch) ✔ 15:08 ~/source/alacritty [:f0e5ec4d|BISECTING|…4] $ rm -f target/release/alacritty; cargo build --release ; ./target/release/alacritty -e true; echo $?
  Downloaded glutin_egl_sys v0.7.0
  Downloaded glutin v0.32.1
  Downloaded glutin_glx_sys v0.6.0
  Downloaded winit v0.30.8
  Downloaded 4 crates (678.1 KB) in 0.94s
   Compiling glutin_glx_sys v0.6.0
   Compiling glutin_egl_sys v0.7.0
   Compiling winit v0.30.8
   Compiling glutin v0.32.1
   Compiling alacritty v0.15.0-dev (/home/knirch/source/alacritty/alacritty)
   Compiling alacritty_terminal v0.24.2-dev (/home/knirch/source/alacritty/alacritty_terminal)
    Finished `release` profile [optimized + debuginfo] target(s) in 31.29s
0
(knirch) ✔ 15:10 ~/source/alacritty [:f0e5ec4d|BISECTING|…4] $ git bisect good
Bisecting: 10 revisions left to test after this (roughly 4 steps)
[5b189bca684c046a43be7f1c168c3bc37109fc5b] Add backslash to invalid characters for URL regex
(knirch) ✔ 15:10 ~/source/alacritty [:5b189bca|BISECTING|…4] $ rm -f target/release/alacritty; cargo build --release ; ./target/release/alacritty -e true; echo $?
  Downloaded vte v0.14.1
  Downloaded 1 crate (57.4 KB) in 0.15s
   Compiling memchr v2.7.4
   Compiling alacritty v0.16.0-dev (/home/knirch/source/alacritty/alacritty)
   Compiling aho-corasick v1.1.3
   Compiling vte v0.14.1
   Compiling serde_json v1.0.133
   Compiling regex-automata v0.4.9
   Compiling alacritty_terminal v0.25.0-dev (/home/knirch/source/alacritty/alacritty_terminal)
    Finished `release` profile [optimized + debuginfo] target(s) in 31.09s
Error: Error { raw_code: Some(2), raw_os_message: Some("BadValue (integer parameter out of range for operation)"), kind: BadAttribute }
1
(knirch) ✔ 15:11 ~/source/alacritty [:5b189bca|BISECTING|…4] $ git bisect bad
Bisecting: 5 revisions left to test after this (roughly 3 steps)
[cd884c984bbd6a7c65965681083da61e091ff7e5] Try to recover from GPU resets
(knirch) ✔ 15:11 ~/source/alacritty [:cd884c98|BISECTING|…4] $ rm -f target/release/alacritty; cargo build --release ; ./target/release/alacritty -e true; echo $?
  Downloaded vte_generate_state_changes v0.2.0
  Downloaded vte v0.14.0
  Downloaded 2 crates (64.8 KB) in 0.97s
   Compiling vte_generate_state_changes v0.2.0
   Compiling alacritty v0.16.0-dev (/home/knirch/source/alacritty/alacritty)
   Compiling vte v0.14.0
   Compiling alacritty_terminal v0.25.0-dev (/home/knirch/source/alacritty/alacritty_terminal)
    Finished `release` profile [optimized + debuginfo] target(s) in 28.64s
Error: Error { raw_code: Some(2), raw_os_message: Some("BadValue (integer parameter out of range for operation)"), kind: BadAttribute }
1
(knirch) ✔ 15:11 ~/source/alacritty [:cd884c98|BISECTING|…4] $ git bisect bad
Bisecting: 2 revisions left to test after this (roughly 1 step)
[8833551b0da3fdace94e1e6c07c6f57f45d9065e] Fix crash during live output search
(knirch) ✔ 15:11 ~/source/alacritty [:8833551b|BISECTING|…4] $ rm -f target/release/alacritty; cargo build --release ; ./target/release/alacritty -e true; echo $?
   Compiling alacritty v0.16.0-dev (/home/knirch/source/alacritty/alacritty)
   Compiling alacritty_terminal v0.24.3-dev (/home/knirch/source/alacritty/alacritty_terminal)
    Finished `release` profile [optimized + debuginfo] target(s) in 26.67s
0
(knirch) ✔ 15:12 ~/source/alacritty [:8833551b|BISECTING|…4] $ git bisect good
Bisecting: 0 revisions left to test after this (roughly 1 step)
[28910e3adc9d48edc4f43008d987eecd869ded31] Fix cut off wide characters in preedit string
(knirch) ✔ 15:12 ~/source/alacritty [:28910e3a|BISECTING|…4] $ rm -f target/release/alacritty; cargo build --release ; ./target/release/alacritty -vvv -e true; echo $?
   Compiling alacritty_terminal v0.25.0-dev (/home/knirch/source/alacritty/alacritty_terminal)
   Compiling alacritty v0.16.0-dev (/home/knirch/source/alacritty/alacritty)
    Finished `release` profile [optimized + debuginfo] target(s) in 26.46s
Created log file at "/tmp/Alacritty-53363.log"
[0.000004222s] [INFO ] [alacritty] Welcome to Alacritty
[0.000042972s] [INFO ] [alacritty] Version 0.16.0-dev (28910e3a)
[0.000051006s] [INFO ] [alacritty] Running on X11
[0.000438178s] [INFO ] [alacritty] Configuration files loaded from:
                                     "/home/knirch/.config/alacritty/alacritty.toml"
                                     "/home/knirch/.config/alacritty/font.toml"
                                     "/home/knirch/.config/alacritty/keybindings.toml"
                                     "/home/knirch/source/alacritty-theme/themes/gruvbox_material_hard_dark.toml"
                                     "/home/knirch/.config/alacritty/gruvbox_hard_dark.toml"
                                     "/home/knirch/source/alacritty-theme/themes/alabaster_dark.toml"
[0.013705695s] [INFO ] [alacritty] Using GLX 1.4
[5.307657644s] [DEBUG] [alacritty] Picked GL Config:
                                     buffer_type: Some(Rgb { r_size: 8, g_size: 8, b_size: 8 })
                                     alpha_size: 8
                                     num_samples: 0
                                     hardware_accelerated: true
                                     supports_transparency: Some(true)
                                     config_api: Api(OPENGL | GLES1 | GLES2)
                                     srgb_capable: false
[5.308744119s] [INFO ] [alacritty] Window scale factor: 1.1458333333333333
[5.312947863s] [DEBUG] [alacritty] Loading "FiraCode Nerd Font Mono Med" font
[5.321157961s] [TRACE] [crossfont] Number of fonts is 27
[5.321210807s] [TRACE] [crossfont] Got font path="/usr/share/fonts/truetype/firacode-nerdfont/FiraCodeNerdFontMono-Medium.ttf", index=0
[5.321266215s] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Medium, load_flags: LoadFlag(TARGET_LIGHT), render_mode: "Normal", lcd_filter: 1 }
[5.322416867s] [TRACE] [crossfont] Number of fonts is 24
[5.322449944s] [TRACE] [crossfont] Got font path="/usr/share/fonts/truetype/firacode-nerdfont/FiraCodeNerdFontMono-Medium.ttf", index=0
[5.322460169s] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Medium, load_flags: LoadFlag(TARGET_LIGHT), render_mode: "Normal", lcd_filter: 1 }
[5.323626370s] [TRACE] [crossfont] Number of fonts is 25
[5.323666840s] [TRACE] [crossfont] Got font path="/usr/share/fonts/truetype/firacode-nerdfont/FiraCodeNerdFontMono-Medium.ttf", index=0
[5.323676865s] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Medium, load_flags: LoadFlag(NO_BITMAP | TARGET_LIGHT), render_mode: "Normal", lcd_filter: 1 }
[5.324837613s] [TRACE] [crossfont] Number of fonts is 25
[5.324869699s] [TRACE] [crossfont] Got font path="/usr/share/fonts/truetype/firacode-nerdfont/FiraCodeNerdFontMono-Medium.ttf", index=0
[5.324877352s] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Medium, load_flags: LoadFlag(NO_BITMAP | TARGET_LIGHT), render_mode: "Normal", lcd_filter: 1 }
[5.326349561s] [INFO ] [alacritty] Running on SVGA3D; build: RELEASE;  LLVM;
[5.326363127s] [INFO ] [alacritty] OpenGL version 4.1 (Core Profile) Mesa 25.0.4-1, shader_version 4.10
[5.326369210s] [INFO ] [alacritty] Using OpenGL 3.3 renderer
[5.339874805s] [DEBUG] [alacritty] Enabled debug logging for OpenGL
[5.339909803s] [DEBUG] [alacritty] Filling glyph cache with common glyphs
[5.342595315s] [INFO ] [alacritty] Cell size: 12 x 26
[5.342616445s] [INFO ] [alacritty] Padding: 0 x 0
[5.342645850s] [INFO ] [alacritty] Width: 800, Height: 600
[5.386245540s] [TRACE] [alacritty] Deriving dim colors from normal colors
[5.386294745s] [INFO ] [alacritty] PTY dimensions: 23 x 66
[5.390309871s] [INFO ] [alacritty] Initialisation complete
[5.421245445s] [INFO ] [alacritty] Goodbye
Deleted log file at "/tmp/Alacritty-53363.log"
0
(knirch) ✔ 15:13 ~/source/alacritty [:28910e3a|BISECTING|…4] $ git bisect good
cd884c984bbd6a7c65965681083da61e091ff7e5 is the first bad commit
commit cd884c984bbd6a7c65965681083da61e091ff7e5
Author: Kirill Chibisov <contact@kchibisov.com>
Date:   Sat Jan 11 08:47:32 2025 +0300

    Try to recover from GPU resets

    Use context robustness to get notified about GPU resets
    and try to recover from them by rebuilding the rendering
    pipeline.

 CHANGELOG.md                       |  1 +
 alacritty/build.rs                 |  1 +
 alacritty/src/display/mod.rs       | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++-----
 alacritty/src/renderer/mod.rs      | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++----------
 alacritty/src/renderer/platform.rs | 22 ++++++++++++++--------
 5 files changed, 123 insertions(+), 23 deletions(-)
(knirch) ✔ 15:13 ~/source/alacritty [:28910e3a|BISECTING|…4] $

I am running a dumb setup, so I'm not expecting this to be considered worth being fixed or looked at in more detail, but if you do, please let me know if you need anything from my end.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions