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] #162

Closed
WolfFlightTZW opened this issue Nov 19, 2021 · 7 comments
Closed

[BUG] #162

WolfFlightTZW opened this issue Nov 19, 2021 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@WolfFlightTZW
Copy link

Describe the bug

Error message produced after running for a period of time

To Reproduce

run btop in terminal

Expected behavior

ERROR: Exception in runner thread -> Cpu:: -> graphs, clock, meter : basic_string::_M_create

Screenshots

[If applicable, add screenshots to help explain your problem.]

Info (please complete the following information):

  • btop++ version: btop version: 1.1.1
  • Binary: static binary from release
  • (If compiled) Compiler and version:
  • Architecture: [x86_64, aarch64, etc.] uname -m
  • Platform: [Linux, FreeBSD, OsX]
  • (Linux) Kernel: `4.15.0-128-generic
  • (OSX/FreeBSD) Os release version:
  • Terminal used: bash
  • Font used: FONTFACE="Fixed"

Additional context

contents of ~/.config/btop/btop.log

2021/11/17 (19:40:50) | ===> btop++ v.1.1.1
2021/11/17 (19:40:50) | ERROR: Exception in runner thread -> Cpu:: -> graphs, clock, meter : basic_string::_M_create

2021/11/17 (20:30:53) | ===> btop++ v.1.1.1
2021/11/17 (20:30:53) | ERROR: Exception in runner thread -> Cpu:: -> graphs, clock, meter : basic_string::_M_create

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:

@WolfFlightTZW WolfFlightTZW added the bug Something isn't working label Nov 19, 2021
@syrphide
Copy link

I have the same issue with v.1.2.13:

2023/01/20 (13:08:57) | ===> btop++ v.1.2.13
2023/01/20 (13:08:57) | ERROR: Exception in runner thread -> Cpu:: -> graphs, clock, meter : basic_string::_M_create

@holdjun
Copy link

holdjun commented Jan 22, 2024

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

same issue with 1.3.0

@imwints
Copy link
Contributor

imwints commented Jan 22, 2024

Please provide a back trace

@holdjun
Copy link

holdjun commented Jan 22, 2024

2024-01-22 19 09 49 2024-01-22 19 15 17 @imwints When the terminal's window becomes smaller than a certain size, it will crash.

@imwints
Copy link
Contributor

imwints commented Jan 22, 2024

I can't reproduce the issue. Could you disable GPU support and try to narrow it down with GDB?

@holdjun
Copy link

holdjun commented Jan 22, 2024

It is indeed caused by the GPU reality; if the GPU is turned off, it won't crash. I understand that it is caused by the GPU displaying too many gpus
2024-01-22 20 01 03
I suspect the display item is having issues.

@imwints
Copy link
Contributor

imwints commented Jan 22, 2024

OK please open a new bug report since this is unrelated to the original reported bug.

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

5 participants