Hi there,
I don’t know if this fits in here or belongs to rather the hardware or the configuration section but I currently face this issue:
It seems like one of the more recent OS upgrades (somewhere between 7.0 and 7.2 I think) somehow causes my Coral USB device to crash as soon as the first detection in frigate is triggered.
I can rule out frigate and the Coral device being faulty since they both are running fine on another device with the same version.
Also I can rule out the USB port of my NUC which everything runs from directly so no virtualization layer in between. I tested another USB device on the port (ZWave Stick) and it runs perfectly fine. Also tested every other port on the device and the Coral crashes on all of them.
Also before one of the mentioned OS upgrades the device was working flawless.
I got in touch with the Frigate developer but the issue seems not related to frigate. Also I installed several versions, also some which I know worked and it still crashed.
So once a detection is triggered in there sometimes it works once (if I’m lucky) and right then it will crash with an USB error message:
F driver/usb/usb_driver.cc:406] HandleEvent failed. USB transfer error 1 [LibUsbDataInCallback]
Fatal Python error: Aborted
Thread 0x00007f7ed794d700 (most recent call first):
File "/usr/lib/python3.8/threading.py", line 302 in wait
File "/usr/lib/python3.8/multiprocessing/queues.py", line 227 in _feed
File "/usr/lib/python3.8/threading.py", line 870 in run
File "/usr/lib/python3.8/threading.py", line 932 in _bootstrap_inner
File "/usr/lib/python3.8/threading.py", line 890 in _bootstrap
Thread 0x00007f7ee851e740 (most recent call first):
File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 833 in invoke
File "/opt/frigate/frigate/edgetpu.py", line 84 in detect_raw
File "/opt/frigate/frigate/edgetpu.py", line 160 in run_detector
File "/usr/lib/python3.8/multiprocessing/process.py", line 108 in run
File "/usr/lib/python3.8/multiprocessing/process.py", line 315 in _bootstrap
File "/usr/lib/python3.8/multiprocessing/popen_fork.py", line 75 in _launch
File "/usr/lib/python3.8/multiprocessing/popen_fork.py", line 19 in __init__
File "/usr/lib/python3.8/multiprocessing/context.py", line 277 in _Popen
File "/usr/lib/python3.8/multiprocessing/context.py", line 224 in _Popen
File "/usr/lib/python3.8/multiprocessing/process.py", line 121 in start
File "/opt/frigate/frigate/edgetpu.py", line 221 in start_or_restart
File "/opt/frigate/frigate/edgetpu.py", line 190 in __init__
File "/opt/frigate/frigate/app.py", line 197 in start_detectors
File "/opt/frigate/frigate/app.py", line 340 in start
File "/opt/frigate/frigate/__main__.py", line 17 in <module>
File "/usr/lib/python3.8/runpy.py", line 87 in _run_code
File "/usr/lib/python3.8/runpy.py", line 194 in _run_module_as_main
So looking at the first line it looks like something is not right with the USB driver or am I wrong?
Is there anything known or does anyone experience a similar issue?
Did anyone manage to fix this somehow?
I’m searching for a solution for weeks now but don’t get anywhere so I hope somebody in here might have an idea or at least has some similar issue so it might be worth opening a bug report for HA?
Thanks a lot!