panic: runtime error: invalid memory address or nil pointer dereference
fhodun opened this issue · comments
Filip Hodun commented
Appears randomly and so far I have not found the cause, from logs we can assume this is linked with ProgressBar external module.
$ go run . broadcast <here been url> "Sat, 17:59" 10s -s
INFO[0000] starting recording
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x69727d]
goroutine 13 [running]:
github.com/cheggaaa/pb/v3.(*ProgressBar).Finish(0x0)
/home/filip/go/pkg/mod/github.com/cheggaaa/pb/v3@v3.0.8/pb.go:386 +0x1d
main.record.func1()
/home/filip/repos/gh-fhodun/radiocorder/broadcast.go:73 +0x72
created by time.goFunc
/usr/lib/go/src/time/sleep.go:180 +0x31
exit status 2