#874·btop

[BUG] Instant crash on 8-GPU system if window too narrow

Author: SembianceCreated Jun 8, 2024Updated Sep 16, 2026
Labelsbuggpu

Describe the bug

btop briefly shows the screen, then crashes about 1 second later. This only happens if the window is narrow. If I make the window very wide, it works ok.

Crashes with 1.3.2 source compiled x86_64 tar.gz and also crashes with latest git clone on Ubuntu 22.04.4 LTS:

btop version: 1.3.2+516979b
Compiled with: g++ (11.4.0)
Configured with: make STATIC= FORTIFY_SOURCE=true GPU_SUPPORT=true RSMI_STATIC=

Terminal: rxvt-unicode (urxvt) v9.31 connecting to server via ssh with terminus font.

root@HOSTNAME:~/src/wip/btop-1.3.2# btop
ERROR: Exception in runner thread -> Cpu:: -> graphs, clock, meter : basic_string::at: __n (which is 0) >= this->size() (which is 0)
root

Screenshot Here is what the screen looks like before crashing (ip removed): beforeCrash

Here is what it looks like on a wider terminal window where it works ok: wideWindow

gdb trace Sorry for the screenshot, after running/crashing I'm no longer able to 'select' text with my mouse as the terminal is kinda messed up. gdbBacktrace

Let me know if you have any branches or other things you want me to try.