I have a OAK-D camera that recently has started to exhibit random crashes when I try to use it.
For example I am trying to run the rgb_preview example from the depthai-python repo.
Sometimes it works but sometimes it will crash the camera.
My OS is Ubuntu 24.04, kernel version 6.11.0-21-generic.
The output I get when the camera crashes is
[14442C10C1C5CAD200] [1.5] [1743336657.451] [host] [warning] Device crashed, but no crash dump could be extracted.
Traceback (most recent call last):
File "examples/ColorCamera/rgb_preview.py", line 30, in <module>
with dai.Device(pipeline) as device:
^^^^^^^^^^^^^^^^^^^^
RuntimeError: Device already closed or disconnected: Input/output error
Checking the logs I can see the camera diosconnects and reconnects to the USB multiple times:
Mar 30 08:08:01 : usb 1-5: USB disconnect, device number 37
Mar 30 08:08:03 : usb 1-5: new high-speed USB device number 38 using xhci_hcd
Mar 30 08:08:03 : usb 1-5: New USB device found, idVendor=03e7, idProduct=2485, bcdDevice= 0.01
Mar 30 08:08:03 : usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Mar 30 08:08:03 : usb 1-5: Product: Movidius MyriadX
Mar 30 08:08:03 : usb 1-5: Manufacturer: Movidius Ltd.
Mar 30 08:08:03 : usb 1-5: SerialNumber: 03e72485
Mar 30 08:08:03 mtp-probe[24408]: checking bus 1, device 38: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-5"
Mar 30 08:08:03 mtp-probe[24408]: bus: 1, device: 38 was not an MTP device
Mar 30 08:08:03 mtp-probe[24410]: checking bus 1, device 38: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-5"
Mar 30 08:08:03 mtp-probe[24410]: bus: 1, device: 38 was not an MTP device
Mar 30 08:08:08 : usb 1-5: USB disconnect, device number 38
Mar 30 08:08:09 : usb 1-5: new high-speed USB device number 39 using xhci_hcd
Mar 30 08:08:09 : usb 1-5: New USB device found, idVendor=03e7, idProduct=f63b, bcdDevice= 1.00
Mar 30 08:08:09 : usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Mar 30 08:08:09 : usb 1-5: Product: Luxonis Device
Mar 30 08:08:09 : usb 1-5: Manufacturer: Intel Corporation
Mar 30 08:08:09 : usb 1-5: SerialNumber: 14442C10C1C5CAD200
Mar 30 08:08:09 mtp-probe[24462]: checking bus 1, device 39: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-5"
Mar 30 08:08:09 mtp-probe[24462]: bus: 1, device: 39 was not an MTP device
Mar 30 08:08:09 mtp-probe[24466]: checking bus 1, device 39: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-5"
Mar 30 08:08:09 mtp-probe[24466]: bus: 1, device: 39 was not an MTP device
Mar 30 08:08:17 : usb 1-5: USB disconnect, device number 39
Mar 30 08:08:18 : usb 1-5: new high-speed USB device number 40 using xhci_hcd
Mar 30 08:08:18 : usb 1-5: New USB device found, idVendor=03e7, idProduct=2485, bcdDevice= 0.01
Mar 30 08:08:18 : usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Mar 30 08:08:18 : usb 1-5: Product: Movidius MyriadX
Mar 30 08:08:18 : usb 1-5: Manufacturer: Movidius Ltd.
Mar 30 08:08:18 : usb 1-5: SerialNumber: 03e72485
Mar 30 08:08:18 mtp-probe[24484]: checking bus 1, device 40: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-5"
Mar 30 08:08:18 mtp-probe[24484]: bus: 1, device: 40 was not an MTP device
Mar 30 08:08:18 mtp-probe[24485]: checking bus 1, device 40: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-5"
Mar 30 08:08:18 mtp-probe[24485]: bus: 1, device: 40 was not an MTP device
Mar 30 08:08:20 : usb 1-5: USB disconnect, device number 40
Mar 30 08:08:20 : usb 1-5: new high-speed USB device number 41 using xhci_hcd
Mar 30 08:08:21 : usb 1-5: New USB device found, idVendor=03e7, idProduct=f63b, bcdDevice= 1.00
Mar 30 08:08:21 : usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Mar 30 08:08:21 : usb 1-5: Product: Luxonis Device
Mar 30 08:08:21 : usb 1-5: Manufacturer: Intel Corporation
Mar 30 08:08:21 : usb 1-5: SerialNumber: 14442C10C1C5CAD200
Mar 30 08:08:21 mtp-probe[24496]: checking bus 1, device 41: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-5"
Mar 30 08:08:21 mtp-probe[24496]: bus: 1, device: 41 was not an MTP device
Mar 30 08:08:21 mtp-probe[24500]: checking bus 1, device 41: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-5"
Mar 30 08:08:21 mtp-probe[24500]: bus: 1, device: 41 was not an MTP device
Mar 30 08:08:29 : usb 1-5: USB disconnect, device number 41
Mar 30 08:08:29 : usb 1-5: new high-speed USB device number 42 using xhci_hcd
Mar 30 08:08:29 : usb 1-5: New USB device found, idVendor=03e7, idProduct=2485, bcdDevice= 0.01
Mar 30 08:08:29 : usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Mar 30 08:08:29 : usb 1-5: Product: Movidius MyriadX
Mar 30 08:08:29 : usb 1-5: Manufacturer: Movidius Ltd.
Mar 30 08:08:29 : usb 1-5: SerialNumber: 03e72485
Mar 30 08:08:29 mtp-probe[24517]: checking bus 1, device 42: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-5"
Mar 30 08:08:29 mtp-probe[24517]: bus: 1, device: 42 was not an MTP device
Mar 30 08:08:29 mtp-probe[24518]: checking bus 1, device 42: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-5"
Mar 30 08:08:29 mtp-probe[24518]: bus: 1, device: 42 was not an MTP device