silviudr
Looks like something is wrong with either the cable or the ports. The

silviudr Mar 30 08:08:20 : usb 1-5: new high-speed USB device number 41 using xhci_hcd

should be "super-speed USB device" for f63b (booted).

Can you recheck?

Thanks,
Jaka

Thank you for your answer Jaka.

I tried another cable and another USB port. Seems to be working better but I still experience crashes.

I am trying an application I implemented using mediapipe and while the application used to run the camera crashes with the following error message:

terminate called after throwing an instance of 'dai::XLinkWriteError'

what(): Couldn't write data to stream: '__stream_asset_storage' (X_LINK_ERROR)

Stack trace (most recent call last) in thread 30433:

terminate called recursively

Aborted (core dumped)

    silviudr
    Then it's still the same issue. What about the bandwidth test?

    Thanks,
    Jaka

    Bandwidth test reports:
    [14442C10C1C5CAD200] [1.5] [1743677893.381] [host] [warning] Device crashed, but no crash dump could be extracted.

    Traceback (most recent call last):

    File "/home/silviu/projects/depthai-python/bandwith_test.py", line 65, in <module>

    with dai.Device(pipeline, maxUsbSpeed=dai.UsbSpeed.SUPER_PLUS) as device:
    
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    RuntimeError: Device already closed or disconnected: Input/output error

      I wanted to attach diagnostic results but the page raises an error when I try to attach a zip file to the message.

      Metadata says:

      {

      "BootloaderVersion": null,

      "ConnectedIMU": "BNO086",

      "imuFirmwareVersion": "3.2.13"

      }

      factory_ calibs says:

      "No or invalid EEPROM configuration flashed, error: EEPROM_INVALID_DATA"

      silviudr
      Set Usbspeed inside bandwidth test to SUPER. It looks like you have a slow connection.

      Thanks,
      Jaka

      Thank you for your reply.

      I tried to set the USB speed to SUPER buit I got the same result.

      Is there any way I could flush the camera firmware?

      [14442C10C1C5CAD200] [1.5] [1743933965.403] [host] [warning] Device crashed, but no crash dump could be extracted.

      Traceback (most recent call last):

      File "/home/silviu/projects/depthai-python/bandwith_test.py", line 65, in <module>

      with dai.Device(pipeline, maxUsbSpeed=dai.UsbSpeed.SUPER) as device:
      
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      RuntimeError: Device already closed or disconnected: Input/output error

      An interesting discovery. The camera is running as expected when is connected to a raspberry pi 4. I would exclude a slow USB port on my machine. My laptop is a gaming laptop purchased in January.

      I am running Ubuntu 24.04 LTS, kernel version 6.11.0-21-generic

        silviudr
        Did you run the installation script - sudo wget -qO- https://docs.luxonis.com/install_dependencies.sh | bash
        This should get all the usb libraries in order. It's still looks to be a problem with USB on your Laptop side. If it works on RPI, then I guess it's either the port or the drivers. Could be a power issue though less likely, but worth checking if the port can supply 10+W.
        You say the laptop is purchased in january - did you use a USB dongle/HUB - many laptops nowadays don't have standard USB-A ports anymore.

        Thanks,
        Jaka