schollz / find3-cli-scanner

The command-line scanner that supports Bluetooth and WiFi
https://www.internalpositioning.com/doc/tracking_your_computer.md
148 stars 55 forks source link

Bug: Program Crash #44

Open giuseppemr opened 4 years ago

giuseppemr commented 4 years ago

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

giuseppemr commented 4 years ago

Upgraded program to 3.3.4 version and the crash still happens

schollz commented 4 years ago

Is that the full stack trace?

giuseppemr commented 4 years ago

Yes. Nothing more

ryalberti commented 7 months ago

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

giuseppemr commented 7 months ago

Hello, I don't know. I haven't been using that in years sorry.


Da: ryalberti @.> Inviato: martedì 27 febbraio 2024 08:03 A: schollz/find3-cli-scanner @.> Cc: giuseppemr @.>; Author @.> Oggetto: Re: [schollz/find3-cli-scanner] Bug: Program Crash (#44)

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

— Reply to this email directly, view it on GitHubhttps://github.com/schollz/find3-cli-scanner/issues/44#issuecomment-1965907291, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMBM7MKDHWR3TKG6YQU3KBLYVWAMRAVCNFSM4KYQCYE2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJWGU4TANZSHEYQ. You are receiving this because you authored the thread.Message ID: @.***>