runtime error under Debian running in Windows 11 WSL2
Author: rubensaCreated Apr 23, 2026Updated Apr 23, 2026
Running ctop I get the following error:
ctop - 11:58:34 CEST 0 containers
NAME CID CPU MEM NET RX/TX IO R/W PIDS UPTIMEpanic: r untime error: index out of range [0] with length 0
goroutine 27 [running]:
github.com/bcicen/ctop/connector.(*Docker).refreshAll(0xc000120140)
/home/bradley/repos/bcicen/ctop/connector/docker.go:230 +0x376
github.com/bcicen/ctop/connector.NewDocker()
/home/bradley/repos/bcicen/ctop/connector/docker.go:71 +0x485
github.com/bcicen/ctop/connector.(*ConnectorSuper).loop(0xc00020e400)
/home/bradley/repos/bcicen/ctop/connector/main.go:69 +0x57
created by github.com/bcicen/ctop/connector.NewConnectorSuper
/home/bradley/repos/bcicen/ctop/connector/main.go:43 +0xdaSource: bcicen/ctop