Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Program Crash #44

Open
giuseppemr opened this issue Feb 20, 2020 · 5 comments
Open

Bug: Program Crash #44

giuseppemr opened this issue Feb 20, 2020 · 5 comments

Comments

@giuseppemr
Copy link

Expected Behavior

I want the script to run forever but it crashes with the following error

Actual Behavior

panic: runtime error: slice bounds out of range

goroutine 2561 [running]:
panic(0x4b35a0, 0x10f22030)
/usr/local/go/src/runtime/panic.go:500 +0x33c
github.com/schollz/gatt.(*Advertisement).unmarshall(0x111e8820, 0x111e4eea, 0xb, 0x16, 0x0, 0x0)
/home/pi/mygo/src/github.com/schollz/gatt/adv.go:98 +0xbc0
github.com/schollz/gatt.(*device).Init.func3(0x111ea750)
/home/pi/mygo/src/github.com/schollz/gatt/device_linux.go:97 +0x74
github.com/schollz/gatt/linux.(*HCI).handleAdvertisement(0x11062280, 0x111b3bf3, 0x23, 0x23)
/home/pi/mygo/src/github.com/schollz/gatt/linux/hci.go:262 +0x370
created by github.com/schollz/gatt/linux.(*HCI).handleLEMeta
/home/pi/mygo/src/github.com/schollz/gatt/linux/hci.go:359 +0xc8

Steps to Reproduce the Problem

  1. sudo ./find3-cli-scanner -i wlan1 -device MYDEV-family FAMILY -server http://localhost:8080 -scantime 2 -bluetooth -forever -passive -no-modify
  2. after some scans it crashes

Specifications

  • Version: latest of July 2019
  • Platform: Raspberry 3+
  • Subsystem:
@giuseppemr
Copy link
Author

Upgraded program to 3.3.4 version and the crash still happens

@schollz
Copy link
Owner

schollz commented Feb 20, 2020

Is that the full stack trace?

@giuseppemr
Copy link
Author

Yes. Nothing more

@ryalberti
Copy link

Hi, I'm having the same problem. Was there any update on this?

@giuseppemr
Copy link
Author

giuseppemr commented Feb 29, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants