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

Add event stack size option to esp_hidh_config_t and increase default event stack size in esp_hid_host example (IDFGH-4568) #6385

Closed
wants to merge 2 commits into from

Conversation

LMBernardo
Copy link
Contributor

@LMBernardo LMBernardo commented Jan 11, 2021

The default stack size value of 2048 given to the "esp_bt_hidh_events" and "esp_ble_hidh_events" tasks make them prone to stack overflows on rapid events. The new value of 4096 seems to mitigate this issue for human-speed mouse and keyboard inputs, however may be insufficient for other cases, e.g., HID scanners, emulated HID devices, etc. Adding the event stack size as an option to the existing config struct allows for flexibility.

Resolves #6380

@CLAassistant
Copy link

CLAassistant commented Jan 11, 2021

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions bot changed the title Add event stack size option to esp_hidh_config_t and increase default event stack size in esp_hid_host example Add event stack size option to esp_hidh_config_t and increase default event stack size in esp_hid_host example (IDFGH-4568) Jan 11, 2021
@Alvin1Zhang
Copy link
Collaborator

Thanks for your contribution.

@espressif-bot espressif-bot added the Status: In Progress Work is in progress label May 5, 2021
@Alvin1Zhang
Copy link
Collaborator

Thanks for your contribution, and sorry for late reply, we have put the changes into our internal review queue, and the PR will be updated once the changes are available on GitHub. Thanks.

@espressif-bot espressif-bot added Status: Done Issue is done internally Resolution: Done Issue is done internally and removed Status: In Progress Work is in progress labels May 12, 2021
espressif-bot pushed a commit that referenced this pull request May 17, 2021
espressif-bot pushed a commit that referenced this pull request May 17, 2021
@igrr
Copy link
Member

igrr commented May 17, 2021

Thank you for the PR @LMBernardo, the fixes have been cherry-picked as d1c8c26 and 5266d81.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally
Projects
None yet
Development

Successfully merging this pull request may close these issues.

esp_hid_host example crashes on stack overflow when receiving rapid inputs (IDFGH-4563)
5 participants