aristocratos / btop

A monitor of resources
Apache License 2.0
20.64k stars 635 forks source link

[BUG] CPU temperature reads as 4,000 #917

Closed RossComputerGuy closed 2 months ago

RossComputerGuy commented 2 months ago

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

btop reports the core temperature to be 4,000 or some impossibly high number of systems with large core counts.

To Reproduce

Run btop on a system with a ridiculous number of cores.

Expected behavior

It shouldn't say the CPU is almost as hot as the sun.

Screenshots

image

Info (please complete the following information):

Additional context

sensors reports SoC Temperature as 55C, there is 64 cores. Multiplying SoC temp by core count gives the temperature when the SoC temperature is the temperature of the entire die.

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

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:

RossComputerGuy commented 2 months ago

Duplicate of #661