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

Crash (panic) on resume from sleep #191

Open
xxxserxxx opened this issue Jul 22, 2021 · 1 comment
Open

Crash (panic) on resume from sleep #191

xxxserxxx opened this issue Jul 22, 2021 · 1 comment
Assignees
Labels
area:devices Related to sources of data area:widget About a specific widget bug Something isn't working os:linux state:confirmed Reproduced

Comments

@xxxserxxx
Copy link
Owner

gotop version: v4.1.2
OS/Arch: 5.12.15-arch1-1
Terminal emulator: st

10:44:21 batterygauge.go:49: error setting up batteries: [{ChargeRate:read /sys/class/power_supply/BAT0/current_now: no such device}]
panic: runtime error: slice bounds out of range [:-1]

goroutine 82 [running]:
github.com/nsf/termbox-go.Init.func1()
        /home/ser/go/pkg/mod/github.com/nsf/[email protected]/api.go:106 +0x36a
created by github.com/nsf/termbox-go.Init
        /home/ser/go/pkg/mod/github.com/nsf/[email protected]/api.go:95 +0x730

I believe this is related to the remote code; it happens after waking up a laptop that's collecting metrics from a remote server -- it might be replicable more easily by turning the network off while gotop is running while remoting.

@xxxserxxx xxxserxxx added bug Something isn't working area:widget About a specific widget os:linux area:devices Related to sources of data state:confirmed Reproduced labels Jul 22, 2021
@xxxserxxx xxxserxxx self-assigned this Jul 22, 2021
@ivan-volnov
Copy link

In my case #220 I get the error on start. The app does not work at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:devices Related to sources of data area:widget About a specific widget bug Something isn't working os:linux state:confirmed Reproduced
Projects
None yet
Development

No branches or pull requests

2 participants