aristocratos / btop

A monitor of resources
Apache License 2.0
21.32k stars 653 forks source link

[BUG] Exception in runner thread when using displaying GPU (default template) #949

Open Qubitium opened 1 month ago

Qubitium commented 1 month ago

Describe the bug

Run btop in ubuntu 24.04 (default 6.8 kernel) cli with default everything. System is 7950x with 6x nvidia gpu.

To Reproduce

Exception:

ERROR: Exception in runner thread -> Cpu:: -> graphs, clock, meter : basic_string::at: __n (which is 0) >= this->size() (which is 0)

Expected behavior

Not crash

Info (please complete the following information):

Ubuntu: 24.04

btop version: 1.4.0+2e7208d
Compiled with: g++ (13.2.0)
Configured with: make STATIC= FORTIFY_SOURCE=true GPU_SUPPORT=true RSMI_STATIC=

Additional context

Contents of ~/.config/btop/btop.log

2024/10/08 (18:06:22) | ===> btop++ v.1.4.0
2024/10/08 (18:06:22) | ERROR: Exception in runner thread -> Cpu:: -> graphs, clock, meter : basic_string::at: __n (which is 0) >= this->size() (which is 0)

GDB Backtrace

https://github.com/user-attachments/assets/1e25e745-62b1-4dc7-be36-fa2ccfad3602