cjbassi / gotop

A terminal based graphical activity monitor inspired by gtop and vtop
GNU Affero General Public License v3.0
7.36k stars 436 forks source link

crash after arbitrary time due to issue with net data #150

Closed SanFranciscoSunrise closed 5 years ago

SanFranciscoSunrise commented 5 years ago

Required information:

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

Error caught. Exiting program.

Issue with net data.

Diagnostics:
curRecvTotal: 146810441962
curSentTotal: 7069679236
self.prevRecvTotal: 146810240417
self.prevSentTotal: 7080931308
recvRecent: 201545
sentRecent: 18446744073698299544
int(recvRecent): 201545
int(sentRecent): -11252072

panic: 1

goroutine 12 [running]:
github.com/cjbassi/gotop/src/utils.Error(0x595a5b, 0x8, 0xc00039e000, 0xda)
    src/utils/utils.go:63 +0x23f
github.com/cjbassi/gotop/src/widgets.(*Net).update(0xc00000d2a0)
    src/widgets/net.go:62 +0x4f7
github.com/cjbassi/gotop/src/widgets.NewNet.func1(0xc000112820, 0xc00000d2a0)
    src/widgets/net.go:39 +0x5c
created by github.com/cjbassi/gotop/src/widgets.NewNet
    src/widgets/net.go:37 +0x28f
cjbassi commented 5 years ago

This has been fixed in the latest version. Feel free to reopen if it still occurs after updating.