Open chipweinberger opened 7 months ago
The USB device causing the crash is an Akai LPK25: https://www.akaipro.com/lpk25-mk2
also : See original issue: https://github.com/espressif/esp-idf/issues/9707
@chipweinberger I'm really sorry about the extraordinary time this issue is reported. We had troubles reproducing it.
Now, we have a test that can reproduce it and we are looking for the root cause. Thank you for your patience, we'll let you know as soon as we identify the problem
thanks. please let me know when the cause is found & fixed
I'd like to add the fix to my product asap
any updates?
bump
Hi @chipweinberger, Thanks for bumping, it is always good to know that someone is waiting for the solution.
Currently, we are in the final steps of refactoring (to support external hubs) usb host library, so we will be back with the new code asap.
@Dazza0 any thoughts?
is this related? https://github.com/espressif/esp-idf/commit/ef698857d1d5bc4c5808cdb9959837d3c17296cf
Hi,
I am encountering this same issue with a BG95 module connected via USB, IDF v5.3.0, right as the device is about to disconnect this abort is triggered, I am seeing this at a roughly 1 in 30 usb disconnects.
Is there any known workaround to this while we wait for an official fix?
thank you!
Hi @paulblid ,
Could you share the backtrace log? There were several changes made in v5,3, so it is better to have a freash backtrace log to check that the problem is the same.
Thanks.
Answers checklist.
IDF version.
v5.1.2
Espressif SoC revision.
esp32s3
Operating System used.
macOS
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
None
Development Kit.
devkit-c
Power Supply used.
USB
What is the expected behavior?
no crash
What is the actual behavior?
crashes ~10% of the time when unplugging a USB device, at
abort(); //Should never occur
This is because the hub is in state
HUB_DRIVER_STATE_ROOT_RECOVERY
Steps to reproduce.
Debug Logs.
More Information.
See original issue: https://github.com/espressif/esp-idf/issues/9707