SDK 5.4.0 fails to recover ZED2i after USB connection failure

Environment

  • ZED SDK: 5.4.0
  • CUDA: 12.8.93

Description

ZED Explorer

A USB connection failure (either an intermittent USB reset/reboot or a physical disconnect) causes the following behavior:

  • ZED Explorer continues displaying the last frame received before the connection failure.
  • The frame counter continues to increase even though no new images are being received.
  • After reconnecting the camera, ZED Explorer does not detect or reconnect to the camera.
  • The camera is visible again in Windows Device Manager after reconnecting.
  • Restarting ZED Explorer immediately restores normal operation, and the camera opens successfully.

Custom C++ Application

The same behavior is observed in our custom C++ application using the ZED SDK for body tracking. The application retrieves body tracking data from the SDK and forwards it to another system.

With previous SDK versions, the application automatically recovered from an intermittent USB connection failure by reopening the camera once the connection was restored.

With SDK 5.4.0, the recovery process no longer completes successfully. After a connection failure, the SDK reports:

Detected Connection Failure. Trying to recover the camera with SNxxxxxxxxx

The application remains in this state indefinitely, and the camera is never recovered, even though the device has reappeared in Windows Device Manager. Restarting the application restores normal operation.

Previous Behavior

With previous SDK versions, both ZED Explorer and our custom C++ application immediately detected when the camera was disconnected. Once the USB connection was restored, the camera was automatically reopened and streaming resumed without requiring the application to be restarted.

Tested Configuration

The issue has been reproduced on three different PCs.

System 1

  • Windows 10
  • Intel Core Ultra 5 235 (3.40 GHz)
  • 8 GB RAM
  • NVIDIA GeForce RTX 5060 (8 GB)
    ZED 2

System 2

  • Windows 11
  • Intel Core Ultra 5 235 (3.40 GHz)
  • 8 GB RAM
  • NVIDIA GeForce RTX 5060 (8 GB)
  • ZED 2i

System 3

  • Windows 10
  • Intel Core i3-12100 (12th Gen)
  • 8 GB RAM
  • NVIDIA GeForce RTX 4060
  • ZED 2i

The behavior is identical on all three systems.

Additional Information

  • ZED Diagnostics does not report any errors before or after reproducing the issue.
  • The SDK does not produce any additional log messages beyond:
    • Detected Connection Failure. Trying to recover the camera with SNxxxxxxxx