gw3 icon indicating copy to clipboard operation
gw3 copied to clipboard

panic: runtime error: slice bounds out of range

Open AlexxIT opened this issue 4 years ago • 0 comments

panic: runtime error: slice bounds out of range [2:1]

goroutine 10 [running]:
main.btchipProcessExtResponse({0x4ae000, 0x2a, 0x104})
    github.com/AlexxIT/gw3/btchip_reader.go:233 +0xb18
main.btchipReader()
    github.com/AlexxIT/gw3/btchip_reader.go:119 +0x7b0
created by main.main
    github.com/AlexxIT/gw3/gw3.go:55 +0x104

And

panic: runtime error: slice bounds out of range [2:1]

goroutine 10 [running]:
main.btchipProcessExtResponse({0x490000, 0x25, 0x104})
    github.com/AlexxIT/gw3/btchip_reader.go:250 +0xb00
main.btchipReader()
    github.com/AlexxIT/gw3/btchip_reader.go:119 +0x7b0
created by main.main
    github.com/AlexxIT/gw3/gw3.go:55 +0x104

And

panic: runtime error: index out of range [1] with length 1

goroutine 10 [running]:
encoding/binary.littleEndian.Uint16(...)
    encoding/binary/binary.go:53
github.com/AlexxIT/gw3/gap.ParseScanResponse({0x498000, 0x19, 0x104})
    github.com/AlexxIT/gw3/gap/gap.go:109 +0x81c
main.btchipProcessExtResponse({0x498000, 0x20, 0x104})
    github.com/AlexxIT/gw3/btchip_reader.go:212 +0x370
main.btchipReader()
    github.com/AlexxIT/gw3/btchip_reader.go:119 +0x7b0
created by main.main
    github.com/AlexxIT/gw3/gw3.go:55 +0x104

And

panic: runtime error: slice bounds out of range [2:1]

goroutine 10 [running]:
main.btchipProcessExtResponse({0x4a4000, 0x29, 0x104})
    github.com/AlexxIT/gw3/btchip_reader.go:256 +0xb00
main.btchipReader()
    github.com/AlexxIT/gw3/btchip_reader.go:125 +0x7f8
created by main.main
    github.com/AlexxIT/gw3/gw3.go:55 +0x104

And

IMAGE 2021-10-02 07:24:33

AlexxIT avatar Oct 02 '21 04:10 AlexxIT