Open butterisgod opened 5 months ago
Could you please isolate this further to a single call (either by step debugging, or commenting/uncommenting/printing to figure out where it's failing). This code is generic and intended for any platform, but may need some porting to any particular platform. It is tested on Linux and Windows. Since this is a source code forum, the request should come down to a source code change request / PR. Have you researched the error message? I just did and it seems that it could be running out of memory or running past a data buffer. Have you tried limiting to only minimal libraries (like BT only) to see if that makes a difference?
@butterisgod Any updates on this? Please see previous comment.
Description: I am encountering a "Stack canary watchpoint triggered (BTC_TASK)" error when using the opendroneid-core-c library in my ESP32 project. The error occurs while attempting to decode and print Open Drone ID data from a received Bluetooth advertisement packet.
Steps to Reproduce:
Set up an ESP32 project with the Arduino IDE. Include the opendroneid-core-c library in the project. Implement the MyAdvertisedDeviceCallbacks class with the onResult callback function. In the onResult function, check if the received advertisement packet is a valid drone beacon. If it is a valid drone beacon, decode the Open Drone ID data using the decodeOpenDroneID function from the library. Attempt to print the decoded Open Drone ID data using the printBasicID_data and printLocation_data functions. Expected Behavior: The code should successfully decode the Open Drone ID data from the received Bluetooth advertisement packet and print the relevant information without triggering any errors or exceptions.
Actual Behavior: When running the code, a "Stack canary watchpoint triggered (BTC_TASK)" error occurs, causing a panic in the BTC_TASK. The error seems to happen while printing the Open Drone ID data, specifically after printing the UAType.
Error Message
Guru Meditation Error: Core 0 panic'ed (Unhandled debug exception).
Environment: ESP32-S3-Dev Arduino 2.3.2 opendroneid-core-c library
Code used to produce this error