Open cheatsnake opened 1 year ago
What is the version? Mine is 5.21.0-1+b2 and does not give the error
What is the version? Mine is 5.21.0-1+b2 and does not give the error
$ uname -r; lsb_release -a
5.15.90.1-microsoft-standard-WSL2
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.2 LTS
Release: 22.04
Codename: jammy
And now I also no longer have the error. Probably this can only happen at first runs...
OK. What is the version of gdu though?
OK. What is the version of gdu though?
$ gdu -v
Version: 5.13.2-1ubuntu0.22.04.1
Built time: 2023-01-30_18:02:34
Built user: debian
Looks to old, I install it from apt
.
The same problem is happening on my Debian system:
$ cat /etc/issue
Debian GNU/Linux 12 \n \l
$ gdu -v
Version: v5.25.0
Built time: Tue Jun 6 02:51:34 PM CEST 2023
Built user: dundee
$ gdu -d
panic: interface conversion: interface {} is nil, not *device.Device [recovered]
panic: interface conversion: interface {} is nil, not *device.Device
goroutine 1 [running]:
github.com/rivo/tview.(*Application).Run.func1()
github.com/rivo/tview@v0.0.0-20230530133550-8bd761dda819/application.go:251 +0x4d
panic({0x560928665cc0, 0xc00079d050})
runtime/panic.go:884 +0x213
github.com/dundee/gdu/v5/tui.(*UI).deviceItemSelected(0xc000702340, 0x1df?, 0x1df?)
github.com/dundee/gdu/v5/tui/tui.go:241 +0x44d
github.com/rivo/tview.(*Table).InputHandler.func1(0xc0002cc540, 0x56092818069f?)
github.com/rivo/tview@v0.0.0-20230530133550-8bd761dda819/table.go:1604 +0x3c3
github.com/rivo/tview.(*Box).WrapInputHandler.func1(0xc0001b4240?, 0x560927fc8ec7?)
github.com/rivo/tview@v0.0.0-20230530133550-8bd761dda819/box.go:167 +0x53
github.com/rivo/tview.(*Grid).InputHandler.func1(0xc0002cc540, 0x5609281692ff?)
github.com/rivo/tview@v0.0.0-20230530133550-8bd761dda819/grid.go:275 +0x1aa
github.com/rivo/tview.(*Box).WrapInputHandler.func1(0xc000130090?, 0x560928674f00?)
github.com/rivo/tview@v0.0.0-20230530133550-8bd761dda819/box.go:167 +0x53
github.com/rivo/tview.(*Pages).InputHandler.func1(0x560927fc8ec7?, 0x10?)
github.com/rivo/tview@v0.0.0-20230530133550-8bd761dda819/pages.go:311 +0xa7
github.com/rivo/tview.(*Box).WrapInputHandler.func1(0xc000120270?, 0xc0007c1a10?)
github.com/rivo/tview@v0.0.0-20230530133550-8bd761dda819/box.go:167 +0x53
github.com/rivo/tview.(*Application).Run(0xc0002a6000)
github.com/rivo/tview@v0.0.0-20230530133550-8bd761dda819/application.go:344 +0x57d
github.com/dundee/gdu/v5/tui.(*UI).StartUILoop(0xc000790000?)
github.com/dundee/gdu/v5/tui/tui.go:197 +0x22
github.com/dundee/gdu/v5/cmd/gdu/app.(*App).Run(0xc000790000)
github.com/dundee/gdu/v5/cmd/gdu/app/app.go:166 +0x25c
main.runE(0x560928a15aa0?, {0xc000091680, 0x0, 0x1})
github.com/dundee/gdu/v5/cmd/gdu/main.go:195 +0x745
github.com/spf13/cobra.(*Command).execute(0x560928a15aa0, {0xc000022050, 0x1, 0x1})
github.com/spf13/cobra@v1.7.0/command.go:940 +0x862
github.com/spf13/cobra.(*Command).ExecuteC(0x560928a15aa0)
github.com/spf13/cobra@v1.7.0/command.go:1068 +0x3bd
github.com/spf13/cobra.(*Command).Execute(...)
github.com/spf13/cobra@v1.7.0/command.go:992
main.main()
github.com/dundee/gdu/v5/cmd/gdu/main.go:199 +0x25
I installed gdu on Ubuntu 22.04 in WSL and running application with
-d
flag (which stands for mounted disks), then I choose the root directory of my disrto (/mnt/wslg/distro
) and got panic error:More interesting that after repeating this proccess again everything surprusely worked, but after sometime the error occurs again. It looks strange, so maybe this issue will be helpfull.