Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
qrp73 opened this issue Jul 30, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@qrp73
Copy link

qrp73 commented Jul 30, 2024

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: #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...

@qrp73 qrp73 added the bug Something isn't working label Jul 30, 2024
@fedes1to
Copy link

fedes1to commented Aug 7, 2024

same issue here

@Gotoro
Copy link

Gotoro commented Sep 2, 2024

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
Copy link

Gotoro commented Sep 2, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants