#1017·btop

ERROR: Exception in runner thread -> Cpu:: -> deque::_M_range_check: __n (which is 3)>= this->size() (which is 2)

Author: jialiangZCreated Jan 17, 2025Updated Sep 16, 2026
Labelsbug

Read the README.md and search for similar issues before posting a bug report!

Any bug that can be solved by just reading the prerequisites section of the README will likely be ignored.

Describe the bug

I used a snap install at first, then I remove it. I followed the readme process to install btop, using the make default configuration, and after that running btop reported errors.

To Reproduce

Running btop keeps giving me errors

Screenshots

Image

Info (please complete the following information):

  • btop++ version: 1.4.0+5535f50
    • If using snap: snap info btop do have some info
  • Binary: [self compiled]
  • Architecture: [x86_64]
  • Platform: [Linux]
  • (Linux) Kernel: 6.8.0-48-generic
  • (OSX/FreeBSD) Os release version:
  • Terminal used:
  • Font used:

Additional context

Contents of ~/.config/btop/btop.log 2025/01/17 (09:40:39) | ===> btop++ v.1.4.0 2025/01/17 (09:40:39) | ERROR: Exception in runner thread -> Cpu:: -> deque::_M_range_check: __n (which is 3)>= this->size() (which is 2)

Note: The snap uses: ~/snap/btop/current/.config/btop

(try running btop with --debug flag if btop.log is empty)

GDB Backtrace

If btop++ is crashing at start the following steps could be helpful:

(Extra helpful if compiled with make OPTFLAGS="-O0 -g")

  1. run (linux): gdb btop (macos): lldb btop

  2. r to run, wait for crash and press enter if prompted, CTRL+L to clear screen if needed.

  3. (gdb): thread apply all bt (lldb): bt all to get backtrace for all threads

  4. Copy and paste the backtrace here: