aristocratos / btop

A monitor of resources
Apache License 2.0
19.21k stars 606 forks source link

[BUG] ERROR: Exception in runner thread -> Cpu:: -> graphs, clock, meter : unordered_map::at #899

Open qrp73 opened 1 month ago

qrp73 commented 1 month ago

Just compiled and installed the latest code from github on my old desktop PC:

git clone https://github.com/aristocratos/btop.git
cd btop
make
sudo make install

But when I start, it crashes after 1-2 seconds. The error depends on terminal window size:

$ stty size
25 158

$ btop
ERROR: Exception in runner thread -> Cpu:: -> graphs, clock, meter : unordered_map::at

$ stty size
54 158

$ btop
ERROR: Exception in runner thread -> Cpu:: -> graphs, clock, meter : vector::_M_range_check: __n (which is 0) >= this->size() (which is 0)

I suspect this happens may be due to present GPU with OpenCL on that machine, because on raspberry pi the same btop version works ok.

Here is similar issue which is marked as fixed and closed: https://github.com/aristocratos/btop/issues/162

Info

System: Linux Arch running on i5 760 with GTX460.

$ btop --version
btop version: 1.3.2+e4f69cd
Compiled with: g++ (14.1.1)
Configured with: make STATIC= FORTIFY_SOURCE=true GPU_SUPPORT=true RSMI_STATIC=

$ uname -a
Linux arch 6.9.3-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 31 May 2024 15:14:45 +0000 x86_64 GNU/Linux

Terminal: lxterminal (raspberry pi os) Font: Monospace Regular 10

log

cat ~/.config/btop/btop.log:

2024/07/30 (19:32:26) | ===> btop++ v.1.3.2
2024/07/30 (19:32:26) | WARNING: NVML: Failed to get maximum GPU power draw, defaulting to 225W: Not Supported
2024/07/30 (19:32:26) | WARNING: NVML: Failed to get maximum GPU temperature, defaulting to 110°C: Not Supported
2024/07/30 (19:32:26) | WARNING: NVML: Failed to get GPU utilization: Not Supported
2024/07/30 (19:32:26) | WARNING: NVML: Failed to get GPU clock speed: Not Supported
2024/07/30 (19:32:26) | WARNING: NVML: Failed to get VRAM clock speed: Not Supported
2024/07/30 (19:32:26) | WARNING: NVML: Failed to get PCIe TX throughput: Not Supported
2024/07/30 (19:32:26) | WARNING: NVML: Failed to get GPU power usage: Not Supported
2024/07/30 (19:32:26) | WARNING: NVML: Failed to get PCIe RX throughput: Not Supported
2024/07/30 (19:32:28) | ERROR: Exception in runner thread -> Cpu:: -> graphs, clock, meter : unordered_map::at

2024/07/30 (19:32:41) | ===> btop++ v.1.3.2
2024/07/30 (19:32:41) | WARNING: NVML: Failed to get maximum GPU power draw, defaulting to 225W: Not Supported
2024/07/30 (19:32:41) | WARNING: NVML: Failed to get maximum GPU temperature, defaulting to 110°C: Not Supported
2024/07/30 (19:32:41) | WARNING: NVML: Failed to get GPU utilization: Not Supported
2024/07/30 (19:32:41) | WARNING: NVML: Failed to get GPU clock speed: Not Supported
2024/07/30 (19:32:41) | WARNING: NVML: Failed to get VRAM clock speed: Not Supported
2024/07/30 (19:32:41) | WARNING: NVML: Failed to get PCIe TX throughput: Not Supported
2024/07/30 (19:32:41) | WARNING: NVML: Failed to get GPU power usage: Not Supported
2024/07/30 (19:32:41) | WARNING: NVML: Failed to get PCIe RX throughput: Not Supported
2024/07/30 (19:32:43) | ERROR: Exception in runner thread -> Cpu:: -> graphs, clock, meter : vector::_M_range_check: __n (which is 0) >= this->size() (which is 0)

When I set show_gpu_info = "Off" in ~/.config/btop/btop.conf, btop works with no error, but it don't shows gpu info...

fedes1to commented 1 month ago

same issue here

Gotoro commented 1 week ago

Same issue,

2024/09/02 (12:17:10) | ===> btop++ v.1.3.2
2024/09/02 (12:17:10) | DEBUG: Running in DEBUG mode!
2024/09/02 (12:17:10) | INFO: Logger set to DEBUG
2024/09/02 (12:17:10) | DEBUG: Setting LC_ALL=en_US.UTF-8
2024/09/02 (12:17:10) | INFO: Running on /dev/pts/4
2024/09/02 (12:17:10) | WARNING: NVML: Failed to get maximum GPU power draw, defaulting to 225W: Not Supported
2024/09/02 (12:17:10) | WARNING: NVML: Failed to get maximum GPU temperature, defaulting to 110°C: Not Supported
2024/09/02 (12:17:10) | WARNING: NVML: Failed to get GPU utilization: Not Supported
2024/09/02 (12:17:10) | WARNING: NVML: Failed to get GPU clock speed: Not Supported
2024/09/02 (12:17:10) | WARNING: NVML: Failed to get VRAM clock speed: Not Supported
2024/09/02 (12:17:10) | WARNING: NVML: Failed to get GPU power usage: Not Supported
2024/09/02 (12:17:10) | WARNING: NVML: Failed to get PCIe TX throughput: Not Supported
2024/09/02 (12:17:10) | WARNING: NVML: Failed to get PCIe RX throughput: Not Supported
2024/09/02 (12:17:10) | INFO: Failed to load librocm_smi64.so, AMD GPUs will not be detected: librocm_smi64.so.6: cannot open shared object file: No such file or directory
2024/09/02 (12:17:10) | DEBUG: Shared::init() : Initialized.
2024/09/02 (12:17:12) | ERROR: Exception in runner thread -> Cpu:: -> graphs, clock, meter : unordered_map::at
2024/09/02 (12:17:12) | INFO: Quitting! Runtime: 00:00:02

Nvidia GT 730

Gotoro commented 1 week ago

When I set show_gpu_info = "Off" in ~/.config/btop/btop.conf, btop works with no error, but it don't shows gpu info...

I'd mark this as solution, as btop at least works now