Index out of range error in ncdu navigation keys, *after* deleting an entry and right arrow key right after that

What is the problem you are having with rclone?

v1.53.3-DEV
in ncdu ;

  1. delete a file, confirm
  2. esc on the notification message
  3. press the right arrow key
    = panic and crash

I did a cursory search and this came up

but I think this is a separate issue, maybe related to above. Sorry couldn't test on latest, I use on a raspberry pi and apt install - just reporting in case anyone have the time to confirm on latest

Run the command 'rclone version' and share the full output of the command.

rclone v1.53.3-DEV

  • os/arch: linux/arm64
  • go version: go1.15.9

Which cloud storage system are you using? (eg Google Drive)

crypt on local

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone ncdu remotename:

followed by delete 'd'

The rclone config contents with secrets removed.

A log from the command with the -vv flag

2022/07/04 19:49:52 DEBUG : rclone: Version "v1.53.3-DEV" starting with parameters ["rclone" "ncdu" "criz:" "-vv" "--log
-file=bugreport.txt"]


2022/07/04 19:50:01 DEBUG : Using config file from "/home/user/.config/rclone/rclone.conf"
2022/07/04 19:50:01 DEBUG : Creating backend with remote "crp:"
2022/07/04 19:50:01 DEBUG : Creating backend with remote "/mnt/d/dir#2"
2022/07/04 19:51:15 INFO  : e/home/file.txt: Deleted
2022/07/04 19:52:12 INFO  : e/home/file2.lnk: Deleted
panic: runtime error: index out of range [2] with length 2

goroutine 1 [running]:
github.com/rclone/rclone/cmd/ncdu.(*UI).enter(0x40003e02d0)
        github.com/rclone/rclone/cmd/ncdu/ncdu.go:573 +0xcc
github.com/rclone/rclone/cmd/ncdu.(*UI).Show(0x40003e02d0, 0x0, 0x0)
        github.com/rclone/rclone/cmd/ncdu/ncdu.go:734 +0x904
github.com/rclone/rclone/cmd/ncdu.glob..func1.1(0x27a4b00, 0x7ffc3e27be)
        github.com/rclone/rclone/cmd/ncdu/ncdu.go:60 +0x3c
github.com/rclone/rclone/cmd.Run(0x7ffc3e0000, 0x2729020, 0x4002591d30)
        github.com/rclone/rclone/cmd/cmd.go:246 +0xa4
github.com/rclone/rclone/cmd/ncdu.glob..func1(0x2729020, 0x4000400180, 0x1, 0x3)
        github.com/rclone/rclone/cmd/ncdu/ncdu.go:59 +0xb0
github.com/spf13/cobra.(*Command).execute(0x2729020, 0x4000400150, 0x3, 0x3, 0x2729020, 0x4000400150)
        github.com/spf13/cobra/command.go:856 +0x1c4
github.com/spf13/cobra.(*Command).ExecuteC(0x2720e20, 0x0, 0x4000058768, 0xb1c4ec)
        github.com/spf13/cobra/command.go:960 +0x268
github.com/spf13/cobra.(*Command).Execute(...)
        github.com/spf13/cobra/command.go:897
github.com/rclone/rclone/cmd.Main()
        github.com/rclone/rclone/cmd/cmd.go:520 +0x98
main.main()
        github.com/rclone/rclone/rclone.go:14 +0x20

hello and welcome to the forum,

that version of rclone is years old and built as a custom development version.
the only way to install the official latest stable rclone is script-download-and-install

Oh i didn't realize "many years" old lol. sorry. I should probably upgrade asap in that case. Any idea why it is included in the "default" apt configuration/download in raspbian ?

it is common for software repositories to be out of date.

i am not familiar with raspbian, as i always use ubuntu on my pi devices.

1 Like

thanks for responding!
just upgraded, let me test and get back

could not reproduce on latest

thanks for your help @asdffdsa

sure,
and to keep rclone updated,
rclone selfupdate

1 Like

Thanks!
off-topic but I have a question if you got a minute : I 've seen advice against using rclone on local <- >local syncs (and robocopy etc. being suggested as alternatives) . What are reasons for this? throughput? Isn't rclone better with checksum verification (not the case for robocopy) I don't really want to install and learn another tool (freefoldersync?) if rclone can be a OK solution.

tl;dr - i do not want to trust a single program for all my backup needs.

well, checksum is better than no checksum.

on windows, have used 'second copy' for over 10 years on many dozens of machines.
and for about five years using 'fastcopy'

'freefoldersync' is excellent as well.

1 Like

makes sense. Thanks!
Maybe i am being too lazy since rclone offers so much in a bundle -checks, encryption..

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.