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

CPU usage NaN or +Inf on Raspberry pi zero w on Arch linux #156

Closed
dfalis opened this issue Jan 19, 2021 · 4 comments
Closed

CPU usage NaN or +Inf on Raspberry pi zero w on Arch linux #156

dfalis opened this issue Jan 19, 2021 · 4 comments
Labels
area:widget About a specific widget bug Something isn't working os:linux state:duplicate This issue or pull request already exists
Milestone

Comments

@dfalis
Copy link

dfalis commented Jan 19, 2021

gotop version:

gotop v4.0.0 (20200607T220720)

OS/Arch:

5.4.83-3-ARCH GNU/Linux

Terminal emulator:

Windows terminal (ssh)

Any relevant hardware info:

Raspberry pi zero w (ARMv6)

tmux version:

none

Also please copy or attach ~/.local/state/gotop/errors.log if it exists and contains logs:
error.log is empty

I am using arch on Raspberry pi zero w and tried to install gotop with yay -S gotop-bin and yay -S gotop-git, but both were showing CPU usage on every process NaN or +Inf. Screenshot is from gotop-bin package. htop works normally.

image

@xxxserxxx xxxserxxx added area:widget About a specific widget bug Something isn't working os:linux labels Jan 25, 2021
@xxxserxxx xxxserxxx added this to the v4.1.1 milestone Jan 25, 2021
@xxxserxxx
Copy link
Owner

This looks like a dupe of #135, which would have been fixed after v4.0.1. @dfalis, could you check with the current v4.1.0 release?

@xxxserxxx xxxserxxx modified the milestones: v4.1.1, v4.1.0 Jan 26, 2021
@xxxserxxx xxxserxxx added the state:duplicate This issue or pull request already exists label Jan 26, 2021
@dfalis
Copy link
Author

dfalis commented Jan 26, 2021

gotop version:

gotop v4.1.0 (20210125T182433)

I still have the same issue.

image

Edit:

output of error.log

...
19:46:20 proc_linux.go:22: line is '       428 systemd                                              1.1   3.1 /usr/lib/systemd/systemd --user', pid is '428', cpu is '1.1', mem is '3.1'
19:46:20 proc_linux.go:22: line is '       429 (sd-pam)                                             0.0   1.4 (sd-pam)', pid is '429', cpu is '0.0', mem is '1.4'
19:46:20 proc_linux.go:22: line is '       441 zsh                                                 12.4   2.7 -zsh', pid is '441', cpu is '12.4', mem is '2.7'
19:46:20 proc_linux.go:22: line is '       447 zsh                                                  0.1   1.5 -zsh', pid is '447', cpu is '0.1', mem is '1.5'
19:46:20 proc_linux.go:22: line is '       461 zsh                                                  0.0   1.7 -zsh', pid is '461', cpu is '0.0', mem is '1.7'
19:46:20 proc_linux.go:22: line is '       462 zsh                                                  0.0   1.6 -zsh', pid is '462', cpu is '0.0', mem is '1.6'
19:46:20 proc_linux.go:22: line is '       464 gitstatusd-linu                                      0.0   0.5 /home/pipo/.cache/gitstatus/gitstatusd-linux-armv6l -G v1.3.1 -s -1 -u -1 -d -1 -c -1 -m -1 -v FATAL -t 2', pid is '464', cpu is '0.0', mem is '0.5'
19:46:20 proc_linux.go:22: line is '       535 gotop                                               50.6   4.8 gotop -c monokai', pid is '535', cpu is '50.6', mem is '4.8'
19:46:20 proc_linux.go:22: line is '       617 sleep                                                0.0   0.2 sleep 5', pid is '617', cpu is '0.0', mem is '0.2'
19:46:20 proc_linux.go:22: line is '       620 ps                                                  14.0   0.5 ps -axo pid:10,comm:50,pcpu:5,pmem:5,args', pid is '620', cpu is '14.0', mem is '0.5'
...

@bbjubjub2494
Copy link

I encountered the same problem on Raspberry Pi 4, but upgrading to 4.1.1 fixed it.

gotop version:

gotop v4.1.1 (Hadean)

OS/Arch:

4.19.118 GNU/Linux
NixOS 20.09 aarch64

Terminal emulator:

Sakura

Any relevant hardware info:

Raspberry Pi 4 8GB

tmux version:

Does not apply

No error.log

@dfalis
Copy link
Author

dfalis commented May 25, 2021

Updated to version gotop v4.1.1 (20210203T222546) and now it works, closing issue.

@dfalis dfalis closed this as completed May 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:widget About a specific widget bug Something isn't working os:linux state:duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants