edgetpu: bulk out for header failed. Abort. Unknown: USB transfer error 1 [LibUsbDataOutCallback]
Description
Error message when trying to use Coral USB. (works fine when using CPU instead of TPU in config) Frigate running on docker container. In case it makes a difference, I have previously tried to run the M.2 Accelerator via a PCIe Adapter but my motherboard is PCIe 2.0, not 3.0. I had installed the relevant drivers as per the Coral Instructions
Click to expand!
Issue Type
Bug, Support
Operating System
Ubuntu
Coral Device
USB Accelerator
Other Devices
No response
Programming Language
Python 3.8
Relevant Log Output
[2021-10-19 21:42:33] frigate.app INFO : Starting Frigate (0.9.1-800f33e),
[2021-10-19 21:42:33] frigate.app WARNING : Camera back has rtmp enabled, but rtmp is not assigned to an input.,
[2021-10-19 21:42:33] frigate.app WARNING : Camera front has rtmp enabled, but rtmp is not assigned to an input.,
[2021-10-19 21:42:33] frigate.app WARNING : Camera side has rtmp enabled, but rtmp is not assigned to an input.,
Starting migrations,
[2021-10-19 21:42:33] peewee_migrate INFO : Starting migrations,
There is nothing to migrate,
[2021-10-19 21:42:33] peewee_migrate INFO : There is nothing to migrate,
[2021-10-19 21:42:33] frigate.mqtt INFO : MQTT connected,
[2021-10-19 21:42:33] detector.coral INFO : Starting detection process: 225,
[2021-10-19 21:42:33] frigate.app INFO : Output process started: 227,
[2021-10-19 21:42:33] ws4py INFO : Using epoll,
[2021-10-19 21:42:33] frigate.edgetpu INFO : Attempting to load TPU as usb,
[2021-10-19 21:42:33] frigate.app INFO : Camera processor started for back: 232,
[2021-10-19 21:42:36] frigate.edgetpu INFO : TPU found,
[2021-10-19 21:42:33] frigate.app INFO : Camera processor started for front: 235,
[2021-10-19 21:42:33] frigate.app INFO : Camera processor started for garage: 237,
[2021-10-19 21:42:33] frigate.app INFO : Camera processor started for side: 238,
[2021-10-19 21:42:33] frigate.app INFO : Capture process started for back: 241,
[2021-10-19 21:42:33] frigate.app INFO : Capture process started for front: 242,
[2021-10-19 21:42:33] frigate.app INFO : Capture process started for garage: 248,
[2021-10-19 21:42:33] frigate.app INFO : Capture process started for side: 252,
[2021-10-19 21:42:33] ws4py INFO : Using epoll,
F driver/usb/usb_driver.cc:802] [0-0] bulk out for header failed. Abort. Unknown: USB transfer error 1 [LibUsbDataOutCallback],
Fatal Python error: Aborted,
,
Thread 0x00007f2afb21b700 (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 0x00007f2b03418740 (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 104 in detect_raw,
File "/opt/frigate/frigate/edgetpu.py", line 180 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 241 in start_or_restart,
File "/opt/frigate/frigate/edgetpu.py", line 210 in __init__,
File "/opt/frigate/frigate/app.py", line 209 in start_detectors,
File "/opt/frigate/frigate/app.py", line 337 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
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 26 (11 by maintainers)
Please refer to this script: https://github.com/google-coral/libedgetpu/blob/master/driver/usb/usb_driver.cc#L802
Thanks