Kubernetes Runner Agent Restarting

Not sure what is happening here. Seeing this panic on the kube-runner agent

panic: runtime error: index out of range
goroutine 1024 [running]:
github.com/drone/runner-go/livelog.(*Writer).Write(0xc000430be0, 0xc004d86000, 0x2fcb719, 0x2fcb719, 0x2fcb719, 0x0, 0x0)
/root/go/pkg/mod/github.com/drone/[email protected]/livelog/livelog.go:79 +0x4b7
github.com/drone/runner-go/livelog.Copy(0x7f6b23533a40, 0xc000430be0, 0x173cea0, 0xc0000a8500, 0x0, 0x0)
/root/go/pkg/mod/github.com/drone/[email protected]/livelog/copy.go:18 +0x100
github.com/drone-runners/drone-runner-kube/engine.(*Kubernetes).tail(0xc000010028, 0x1758820, 0xc0006bc0c0, 0xc000510480, 0xc000914c60, 0x7f6b23533a40, 0xc000430be0, 0x0, 0x0)
/drone/src/engine/engine_impl.go:309 +0x246
github.com/drone-runners/drone-runner-kube/engine.(*Kubernetes).Run(0xc000010028, 0x1758820, 0xc0006bc0c0, 0x1735de0, 0xc000510480, 0x177c340, 0xc000914c60, 0x7f6b23533a40, 0xc000430be0, 0x100, ...)
/drone/src/engine/engine_impl.go:182 +0x131
github.com/drone/runner-go/pipeline/runtime.(*Execer).exec(0xc00050e740, 0x1758760, 0xc000784000, 0xc000285dd0, 0x1735de0, 0xc000510480, 0x177c340, 0xc000912000, 0x0, 0x0)
/root/go/pkg/mod/github.com/drone/[email protected]/pipeline/runtime/execer.go:245 +0x78e
github.com/drone/runner-go/pipeline/runtime.(*Execer).Exec.func2(0x172ea00, 0xc000384018)
/root/go/pkg/mod/github.com/drone/[email protected]/pipeline/runtime/execer.go:82 +0x99
github.com/natessilva/dag.start.func1(0xc0008c4180, 0xc0004d46d0, 0xf, 0xc0004edd10)
/root/go/pkg/mod/github.com/natessilva/[email protected]/runner.go:151 +0x27
created by github.com/natessilva/dag.start
/root/go/pkg/mod/github.com/natessilva/[email protected]/runner.go:148 +0x5d

Any insights would be helpful. Not seeing anything related to node pressure.

Hi there, Can you clarify or share the steps to reproduce this issue! Please check Drone agent restarting in which similar issue was raised and are you trying something similar. Let us know.

Thanks
Harness support