aristocratos / btop

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

[BUG] Pressing 6 will crash btop #887

Open WildPenquin opened 5 months ago

WildPenquin commented 5 months ago

Describe the bug

Pressing "6" will crash btop. I know, it's not supposed to do anything, but I pressed it by accident when trying to press "5".

To Reproduce

Press key "6".

Expected behavior

Nothing happens.

Screenshots

Btop will print:

/usr/include/c++/14.1.1/bits/stl_vector.h:1130: constexpr std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = int; _Alloc = std::allocator<int>; reference = int&; size_type = long unsigned int]: Assertion '__n < this->size()' failed.                                                                                                                                                                                        │
Keskeytetty (luotiin core-tiedosto) 

(I could not get the core dump line in English).

Info (please complete the following information):

$ 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=false

This is on Arch Linux -git version (AUR), which I only installed since I noticed this on the non-git version (extra/btop).

It will crash on a plain vc, too.

Additional context

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

2024/06/28 (02:44:10) | ===> btop++ v.1.3.2
2024/06/28 (02:44:10) | DEBUG: Running in DEBUG mode!
2024/06/28 (02:44:10) | INFO: Logger set to DEBUG
2024/06/28 (02:44:10) | DEBUG: Using locale fi_FI.UTF-8
2024/06/28 (02:44:10) | INFO: Running on /dev/pts/16
2024/06/28 (02:44:10) | DEBUG: Failed to initialize NVML, NVIDIA GPUs will not be detected: Driver Not Loaded
2024/06/28 (02:44:10) | WARNING: ROCm SMI: Failed to get maximum GPU temperature, defaulting to 110°C
2024/06/28 (02:44:10) | WARNING: ROCm SMI: Failed to get PCIe throughput
2024/06/28 (02:44:10) | DEBUG: Shared::init() : Initialized.
WildPenquin commented 5 months ago

I should probably add I have only one GPU.

Also, there is no /sys/class/drm/card0, only /sys/class/drm/card1. Perhaps this is some kind of GPU indexing issue....

imwints commented 5 months ago

Duplicate #860