Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.

panic: runtime error: slice bounds out of range [:6477] with capacity 4096 #33

Open
kprimice opened this issue Jan 8, 2020 · 0 comments

Comments

@kprimice
Copy link
Contributor

kprimice commented Jan 8, 2020

After running for a few hours I got this error:

panic: runtime error: slice bounds out of range [:6477] with capacity 4096

goroutine 237 [running]:
bufio.(*Reader).Read(0xc000205aa0, 0xc0002be000, 0x22, 0x2000, 0x0, 0x0, 0x0)
        /usr/local/go/src/bufio/bufio.go:237 +0x3f0
io.(*LimitedReader).Read(0xc0005c0400, 0xc0002be000, 0x2000, 0x2000, 0x7, 0x40c48b, 0xc000012000)
        /usr/local/go/src/io/io.go:448 +0x63
io/ioutil.devNull.ReadFrom(0x0, 0xb581e0, 0xc0005c0400, 0x9fcec0, 0x1, 0x7f9866c8c2e0)
        /usr/local/go/src/io/ioutil/ioutil.go:147 +0x92
io.copyBuffer(0xb58da0, 0xf87c00, 0xb581e0, 0xc0005c0400, 0x0, 0x0, 0x0, 0x568262, 0x9a5d40, 0x0)
        /usr/local/go/src/io/io.go:388 +0x2ed
io.Copy(...)
        /usr/local/go/src/io/io.go:364
io.CopyN(0xb58da0, 0xf87c00, 0xb563a0, 0xc000205aa0, 0x22, 0x0, 0xc00062fe48, 0x55743a)
        /usr/local/go/src/io/io.go:340 +0x9a
github.com/gorilla/websocket.(*Conn).advanceFrame(0xc00020e6e0, 0x0, 0x0, 0x80)
        /go/pkg/mod/github.com/gorilla/websocket@v1.4.1/conn.go:791 +0xe28
github.com/gorilla/websocket.(*Conn).NextReader(0xc00020e6e0, 0xc000350900, 0xc0002f2480, 0x0, 0xc00062ff70, 0x40fe68)
        /go/pkg/mod/github.com/gorilla/websocket@v1.4.1/conn.go:980 +0xa0
github.com/gorilla/websocket.(*Conn).ReadJSON(0xc00020e6e0, 0xa29ee0, 0xc0002f2680, 0x0, 0x0)
        /go/pkg/mod/github.com/gorilla/websocket@v1.4.1/json.go:50 +0x2f
github.com/adampointer/go-deribit/v3.(*connManager).readJSON(...)
        /go/pkg/mod/github.com/adampointer/go-deribit/v3@v3.1.1/rpc_core.go:123
github.com/adampointer/go-deribit/v3.(*RPCCore).read(0xc000562110)
        /go/pkg/mod/github.com/adampointer/go-deribit/v3@v3.1.1/rpc_core.go:190 +0x96
created by github.com/adampointer/go-deribit/v3.(*Exchange).Reconnect
        /go/pkg/mod/github.com/adampointer/go-deribit/v3@v3.1.1/exchange.go:105 +0xed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant