esp_hid_host demo: printing in callback causes stackoverflow or freeze (IDFGH-6369) #8028
Labels
Awaiting Response
awaiting a response from the author
Resolution: Done
Issue is done internally
Status: Done
Issue is done internally
esp-idf/examples/bluetooth/esp_hid_host/main/esp_hid_host_main.c
Line 49 in 2ee9140
When connecting a mouse and moving it around very fast for a few seconds causes a stack overflow or a freeze.
Message when a stack overflow is detected:
Increasing the stack size of "esp_bt_hidh_events" task from 2048 to 4096 prevents a stack overflow when using a BT keyboard, but a BT mouse generates more events and still triggers a stack overflow or freeze.
A simple workaround I used is to check the system time and to only print after 200 milliseconds have passed since the last printing in this callback.
The text was updated successfully, but these errors were encountered: