Hi! I'm having trouble running the samples for this library. I can only assume it's something weird with my setup, yet this issue occurs both on my linux PC and my raspberry pi.
When I run sample.js on my PC, I get this ugly crash:
To be totally honest, I've no idea what's happening here. Any pointers would be welcome.
Curiously, on my PC, this only occurs after the first time I plug in the ANT+ dongle. If I unplug and replug it, the script works as expected. However, I get a very similar crash on my raspberry pi, and replugging the dongle does not seem to make a difference here. This is the exact crash I get on the Pi:
I have tried various node versions (14, 17) and multiple ant+ dongles. The same issue is also present on my laptop which is similarly set up to my desktop. I feel crazy that I'm having this issue on 3 computers yet I'm struggling to find any evidence of similar problems! Any pointers big or small would be hugely appreciated. Let me know if I can provide more info too!
Silly me, turned out to be a permissions problem. Ran totally fine with sudo. Longer-term I'm using this solution so that it runs from the pi user. Hope this helps someone in the future!
Hi! I'm having trouble running the samples for this library. I can only assume it's something weird with my setup, yet this issue occurs both on my linux PC and my raspberry pi.
When I run
sample.js
on my PC, I get this ugly crash:To be totally honest, I've no idea what's happening here. Any pointers would be welcome.
Curiously, on my PC, this only occurs after the first time I plug in the ANT+ dongle. If I unplug and replug it, the script works as expected. However, I get a very similar crash on my raspberry pi, and replugging the dongle does not seem to make a difference here. This is the exact crash I get on the Pi:
Looks like it's the same issue.
I have tried various node versions (14, 17) and multiple ant+ dongles. The same issue is also present on my laptop which is similarly set up to my desktop. I feel crazy that I'm having this issue on 3 computers yet I'm struggling to find any evidence of similar problems! Any pointers big or small would be hugely appreciated. Let me know if I can provide more info too!