gdu
gdu copied to clipboard
Application crash on WSL in the mounted disks screen
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:
user@localhost:~$ 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/application.go:243 +0x4d
panic({0x859b00, 0xc000131a40})
runtime/panic.go:838 +0x207
github.com/dundee/gdu/v5/tui.(*UI).deviceItemSelected(0xc0000d8c60, 0x4b1edb?, 0x4afe2d?)
github.com/dundee/gdu/v5/tui/tui.go:216 +0x405
github.com/rivo/tview.(*Table).InputHandler.func1(0xc000126440, 0x76badf?)
github.com/rivo/tview/table.go:1573 +0x3b7
github.com/rivo/tview.(*Box).WrapInputHandler.func1(0xc0001fc0f0?, 0x40fd87?)
github.com/rivo/tview/box.go:167 +0x53
github.com/rivo/tview.(*Grid).InputHandler.func1(0xc000126440, 0x75dedf?)
github.com/rivo/tview/grid.go:274 +0x1aa
github.com/rivo/tview.(*Box).WrapInputHandler.func1(0xc0000fe240?, 0x7f2dfd8aa800?)
github.com/rivo/tview/box.go:167 +0x53
github.com/rivo/tview.(*Pages).InputHandler.func1(0x40fd87?, 0x10?)
github.com/rivo/tview/pages.go:311 +0xa8
github.com/rivo/tview.(*Box).WrapInputHandler.func1(0xc00021a030?, 0xc0000bbab8?)
github.com/rivo/tview/box.go:167 +0x53
github.com/rivo/tview.(*Application).Run(0xc000210000)
github.com/rivo/tview/application.go:335 +0x886
github.com/dundee/gdu/v5/tui.(*UI).StartUILoop(0xc0000bbd48?)
github.com/dundee/gdu/v5/tui/tui.go:173 +0x22
github.com/dundee/gdu/v5/cmd/gdu/app.(*App).Run(0xc0000bbd48)
github.com/dundee/gdu/v5/cmd/gdu/app/app.go:145 +0x391
main.runE(0xbe1aa0?, {0xc00006b4a0, 0x0, 0x1})
github.com/dundee/gdu/v5/cmd/gdu/main.go:101 +0x418
github.com/spf13/cobra.(*Command).execute(0xbe1aa0, {0xc000020050, 0x1, 0x1})
github.com/spf13/cobra/command.go:856 +0x67c
github.com/spf13/cobra.(*Command).ExecuteC(0xbe1aa0)
github.com/spf13/cobra/command.go:974 +0x3b4
github.com/spf13/cobra.(*Command).Execute(...)
github.com/spf13/cobra/command.go:902
main.main()
github.com/dundee/gdu/v5/cmd/gdu/main.go:105 +0x25
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.