Process ABORT on hiding CPU panel and selecting proc
Author: TheSovietPancakesCreated Jul 9, 2026Updated Sep 26, 2026
Labelsbug
Read the README.md and search for similar issues before posting a bug report!
Describe the bug
The process aborts upon an assertion in a graph draw call's bound check. Check the GDB section below.
To Reproduce
On Linux platforms, on the current latest push (9527231dfbcbe697f8eb80849e267377194e6ca8), hide the CPU panel with 1, then hit the down arrow key (or J on vim keys) to select the topmost process.
I attempted this on my laptop as well, and the results were the same. Hardware, if relevant: Ryzen 9900x CPU on PC Ryzen 7730u on Laptop
Screenshots
Info (please complete the following information):
- btop++ version:
btop --versionLatest git push (9527231dfbcbe697f8eb80849e267377194e6ca8) - Binary: Self-compiled, dynamically-linked, with GPU support on.
- I enabled the "-O0" flag for debug testing, but the issue exists without it too.
- Architecture: x64
- Platform: Linux
- (Linux) Kernel: 7.1.2-arch3-1
- Terminal used: Blackbox (AUR)
- Font used: Iosevka
Additional context Debug logs show nothing.
Assertion message: "Assertion 'bool(__value <= __bound)' failed." GDB Backtrace:
(gdb) thread apply all bt
Thread 5 (Thread 0x7ffff55fc6c0 (LWP 140273) "btop"):
#0 0x00007ffff789981c in ?? () from /usr/lib/libc.so.6
#1 0x00007ffff783e150 in raise () from /usr/lib/libc.so.6
#2 0x00007ffff782567d in abort () from /usr/lib/libc.so.6
#3 0x00007ffff7c9d5bd in std::__glibcxx_assert_fail(char const*, int, char const*, char const*) () from /usr/lib/libstdc++.so.6
#4 0x000055555562002a in std::ranges::iota_view<int, int>::iota_view (this=0x7ffff55f9a38, __value=0, __bound=-4) at /usr/include/c++/16/ranges:798
#5 0x000055555561d992 in std::ranges::views::_Iota::operator()<int, int> (this=0x55555573ec02 <std::ranges::views::iota>, __e=@0x7ffff55f9a8c: 0, __f=@0x7ffff55f9a90: -4) at /usr/include/c++/16/ranges:912
#6 0x00005555555e5354 in Draw::Graph::Graph (this=0x7ffff55f9ca0, width=-103, height=-2, color_gradient="cpu", data=std::deque with 2 elements = {...}, symbol="default", invert=false, no_zero=true, max_value=0, offset=0) at src/btop_draw.cpp:513
#7 0x00005555555e627b in operator() (__closure=0x7ffff55fa350, graphs=std::vector of length 1, capacity 1 = {...}, graph_height=-2, graph_width=@0x5555557c2e44: -103, graph_field="total", invert=false) at src/btop_draw.cpp:689
#8 0x00005555555e8c65 in Cpu::draw[abi:cxx11](Cpu::cpu_info const&, std::vector<Gpu::gpu_info, std::allocator<Gpu::gpu_info> > const&, bool, bool) (cpu=..., gpus=std::vector of length 2, capacity 2 = {...}, force_redraw=true, data_same=true) at src/btop_draw.cpp:695
#9 0x000055555556fd49 in Runner::_runner () at src/btop.cpp:553
#10 0x00007ffff7897739 in ?? () from /usr/lib/libc.so.6
#11 0x00007ffff791bedc in ?? () from /usr/lib/libc.so.6
Thread 1 (Thread 0x7ffff7f63780 (LWP 140267) "btop"):
#0 0x00007ffff789fff2 in ?? () from /usr/lib/libc.so.6
#1 0x00007ffff789403c in ?? () from /usr/lib/libc.so.6
#2 0x00007ffff7894084 in ?? () from /usr/lib/libc.so.6
#3 0x00007ffff7918c01 in pselect () from /usr/lib/libc.so.6
#4 0x000055555563c374 in Input::poll (timeout=964) at src/btop_input.cpp:109
#5 0x00005555555756f8 in btop_main (args=std::span of length 0) at src/btop.cpp:1172
#6 0x00005555556cc5f3 in main (argc=1, argv=0x7fffffffe548) at src/main.cpp:11Source: aristocratos/btop