Rclone v1.39-171-g1383df4fβ has crashed

rclone has collapsed unexpectedly today i had the new beta version (rclone v1.39-171-g1383df4fβ) running for about 3 days now.

i have now jumped back to the stable version v1.39 again

I didn’t want to withhold the error message from you anyway

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x38 pc=0x9f0f27]

goroutine 211918 [running]:
github.com/ncw/rclone/backend/local.(*localOpenFile).Read(0xc420b0c060, 0xc42bbda000, 0x8000, 0x8000, 0x0, 0xc420b96bc8, 0x6e899b)
/home/travis/gopath/src/github.com/ncw/rclone/backend/local/local.go:661 +0x47
github.com/ncw/rclone/fs/accounting.(*Account).read(0xc433453e00, 0x7f2076f94e38, 0xc420b0c060, 0xc42bbda000, 0x8000, 0x8000, 0x0, 0xc4204e2400, 0x46dcbc)
/home/travis/gopath/src/github.com/ncw/rclone/fs/accounting/accounting.go:141 +0x107
github.com/ncw/rclone/fs/accounting.(*Account).Read(0xc433453e00, 0xc42bbda000, 0x8000, 0x8000, 0x0, 0x0, 0x0)
/home/travis/gopath/src/github.com/ncw/rclone/fs/accounting/accounting.go:159 +0xa9
net/http.transferBodyReader.Read(0xc420557180, 0xc42bbda000, 0x8000, 0x8000, 0x8000, 0x8000, 0xdf3080)
/home/travis/.gimme/versions/go1.10.linux.amd64/src/net/http/transfer.go:60 +0x56
io.copyBuffer(0x7f2076f9e2a0, 0xc420411a90, 0x101b880, 0xc420557180, 0xc42bbda000, 0x8000, 0x8000, 0xdeb720, 0xc42c544100, 0x7f2076f9e2a0)
/home/travis/.gimme/versions/go1.10.linux.amd64/src/io/io.go:400 +0x164
io.Copy(0x7f2076f9e2a0, 0xc420411a90, 0x101b880, 0xc420557180, 0xc420411a90, 0xf2a208, 0x2)
/home/travis/.gimme/versions/go1.10.linux.amd64/src/io/io.go:362 +0x5a
net/http.(*transferWriter).WriteBody(0xc420557180, 0x1018c20, 0xc4202cdfc0, 0x2, 0x2)
/home/travis/.gimme/versions/go1.10.linux.amd64/src/net/http/transfer.go:330 +0x168
net/http.(*Request).write(0xc4326f9d00, 0x1018c20, 0xc4202cdfc0, 0x0, 0xc4328da5a0, 0x0, 0x0, 0x0)
/home/travis/.gimme/versions/go1.10.linux.amd64/src/net/http/request.go:622 +0x6b2
net/http.(*persistConn).writeLoop(0xc4201c5440)
/home/travis/.gimme/versions/go1.10.linux.amd64/src/net/http/transport.go:1825 +0x1ea
created by net/http.(*Transport).dialConn
/home/travis/.gimme/versions/go1.10.linux.amd64/src/net/http/transport.go:1238 +0x97f

Thanks for reporting!

That was introduced in version 4c1ffc7f54919d40a566ec5531e236ca72bcc010

What it looks like is that the file that rclone was transferring disappeared mid transfer.

Rclone should not have crashed though!

I’ve fixed this problem here

https://beta.rclone.org/v1.39-195-g7d4da1c6/ (uploaded in 15-30 mins)