Closed
Description
Describe the bug
When entering :popeye
, nothing happens and the screen stays in the area where it was. And it is not collecting data, because I can continue navigating through k9s.
To Reproduce
Steps to reproduce the behavior:
- From any view, enter
:popeye
- Nothing happens, you stay where you were before.
Expected behavior
Popeye collects data, the UI stays unresponsive for a while and eventually the Popeye results are displayed.
Versions (please complete the following information):
- OS: Gentoo latest
- K9s: 0.32.0 and 0.32.1
- K8s: 1.27.9
Debug Log
9:55AM INF 🐶 K9s starting up...
9:55AM DBG Active Context "my-context"
9:55AM INF ✅ Kubernetes connectivity
9:55AM DBG No custom skin found. Using stock skin
9:55AM DBG Factory START with ns `"my-namespace"
9:55AM DBG Fetching latest k9s rev...
9:55AM DBG K9s latest rev: "v0.32.1"
9:55AM DBG No custom skin found. Using stock skin
9:55AM DBG No DAO registry entry for "popeye". Using generics!
9:55AM ERR Something bad happened! "version is required on all types: /, Kind=WatchEvent *v1.WatchEvent"
9:55AM DBG Dumping Pages 0xc000ca38b0
9:55AM DBG 0 -- Popeye-0xc0024d4200 -- &view.Browser{Table:(*view.Table)(0xc00270ce80), namespaces:map[int]string(nil), meta:v1.APIResource{Name:"popeye", SingularName:"popeye", Namespaced:true, Group:"", Version:"", Kind:"Popeye", Verbs:v1.Verbs{}, ShortNames:[]string(nil), Categories:[]string{"k9s"}, StorageVersionHash:""}, accessor:(*dao.Generic)(0xc002729980), contextFn:(view.ContextFunc)(nil), cancelFn:(context.CancelFunc)(0x1881a00), mx:sync.RWMutex{w:sync.Mutex{state:0, sema:0x0}, writerSem:0x0, readerSem:0x0, readerCount:atomic.Int32{_:atomic.noCopy{}, v:0}, readerWait:atomic.Int32{_:atomic.noCopy{}, v:0}}, updating:false}
9:55AM DBG History [pod]
9:55AM ERR goroutine 1 [running]:
runtime/debug.Stack()
runtime/debug/stack.go:24 +0x5e
github.com/derailed/k9s/internal/view.(*Command).exec.func1()
github.com/derailed/k9s/internal/view/command.go:304 +0x137
panic({0x44cbf80?, 0xc0026e5180?})
runtime/panic.go:770 +0x132
k8s.io/apimachinery/pkg/runtime.(*Scheme).AddKnownTypeWithName(0xc0009f2af0, {{0x0, 0x0}, {0x0, 0x0}, {0x4c52243, 0xa}}, {0x5884dc8, 0xc00270d340})
k8s.io/apimachinery@v0.29.2/pkg/runtime/scheme.go:160 +0x9e5
k8s.io/apimachinery/pkg/apis/meta/v1.AddToGroupVersion(0xc0009f2af0, {{0x0?, 0x0?}, {0x0?, 0x0?}})
k8s.io/apimachinery@v0.29.2/pkg/apis/meta/v1/register.go:67 +0xf8
github.com/derailed/k9s/internal/dao.(*Table).codec(0xc002729a00)
github.com/derailed/k9s/internal/dao/table.go:107 +0x119
github.com/derailed/k9s/internal/dao.(*Table).List(0xc002729a00, {0x58a24a0, 0xc00271fe30}, {0xc000efaa60, 0xe})
github.com/derailed/k9s/internal/dao/table.go:55 +0xe5
github.com/derailed/k9s/internal/model.(*Table).list(0xc000227d40, {0x58a24a0, 0xc00271fe00}, {0x58a3070, 0xc002729a00})
github.com/derailed/k9s/internal/model/table.go:237 +0x1f5
github.com/derailed/k9s/internal/model.(*Table).reconcile(0xc000227d40, {0x58a24d8, 0xc000877950})
github.com/derailed/k9s/internal/model/table.go:248 +0x239
github.com/derailed/k9s/internal/model.(*Table).refresh(0x58a24d8?, {0x58a24d8?, 0xc000877950?})
github.com/derailed/k9s/internal/model/table.go:213 +0x87
github.com/derailed/k9s/internal/model.(*Table).Watch(0xc000227d40, {0x58a24d8, 0xc000877950})
github.com/derailed/k9s/internal/model/table.go:103 +0x26
github.com/derailed/k9s/internal/view.(*Browser).Start(0xc0024d4200)
github.com/derailed/k9s/internal/view/browser.go:161 +0x1b7
github.com/derailed/k9s/internal/view.(*PageStack).StackPushed(0xc000ca38d0, {0x7fe19e5cb088, 0xc0024d4200})
github.com/derailed/k9s/internal/view/page_stack.go:39 +0x2d
github.com/derailed/k9s/internal/model.(*Stack).notify(0xc00081eb40, 0x1, {0x7fe19e5cb088, 0xc0024d4200})
github.com/derailed/k9s/internal/model/stack.go:179 +0xd4
github.com/derailed/k9s/internal/model.(*Stack).Push(0xc00081eb40, {0x7fe19e5cb088, 0xc0024d4200})
github.com/derailed/k9s/internal/model/stack.go:102 +0x107
github.com/derailed/k9s/internal/view.(*App).inject(0xc000cd8000, {0x7fe19e5cb088, 0xc0024d4200}, 0x1)
github.com/derailed/k9s/internal/view/app.go:724 +0x166
github.com/derailed/k9s/internal/view.(*Command).exec(0xc001492030, 0xc0025b7760, {{0x4c40386, 0x6}, {0x0, 0x0}, {0x0, 0x0}, {0x4c40386, 0x6}, ...}, ...)
github.com/derailed/k9s/internal/view/command.go:322 +0x22e
github.com/derailed/k9s/internal/view.(*Command).run(0xc001492030, 0xc0025b7760, {0x0, 0x0}, 0x1)
github.com/derailed/k9s/internal/view/command.go:196 +0x5db
github.com/derailed/k9s/internal/view.(*App).gotoResource(0xc000cd8000, {0xc00271bdb0, 0x6}, {0x0, 0x0}, 0x1)
github.com/derailed/k9s/internal/view/app.go:709 +0xd9
github.com/derailed/k9s/internal/view.(*App).gotoCmd(0xc000cd8000, 0xc000368a80)
github.com/derailed/k9s/internal/view/app.go:647 +0x86
github.com/derailed/k9s/internal/view.(*App).keyboard(0xc000cd8000, 0xc000368a80)
github.com/derailed/k9s/internal/view/app.go:239 +0xf7
github.com/derailed/tview.(*Application).Run(0xc000cda000)
github.com/derailed/tview@v0.8.3/application.go:318 +0x3d8
github.com/derailed/k9s/internal/view.(*App).Run(0xc000cd8000)
github.com/derailed/k9s/internal/view/app.go:551 +0x8f
github.com/derailed/k9s/cmd.run(0xc000ba6f00?, {0x4c3b96f?, 0x4?, 0x4c3b87b?})
github.com/derailed/k9s/cmd/root.go:115 +0x3a5
github.com/spf13/cobra.(*Command).execute(0x76a1ae0, {0xc000192430, 0x2, 0x2})
github.com/spf13/cobra@v1.8.0/command.go:983 +0xaca
github.com/spf13/cobra.(*Command).ExecuteC(0x76a1ae0)
github.com/spf13/cobra@v1.8.0/command.go:1115 +0x3ff
github.com/spf13/cobra.(*Command).Execute(...)
github.com/spf13/cobra@v1.8.0/command.go:1039
github.com/derailed/k9s/cmd.Execute()
github.com/derailed/k9s/cmd/root.go:70 +0x1a
main.main()
github.com/derailed/k9s/main.go:32 +0xf