Hi All,
I am currently using an OAK-4S camera. Occasionally, after connecting to the camera and building the pipeline, I encounter a "MessageQueue was closed" error when attempting to read frames. This issue does not occur consistently but happens intermittently.
I have attached a images containing the pipeline setup code and the frame-processing thread for reference.
Could you please help identify the possible root cause of this issue and suggest a solution?
Logs:
2026-03-17 15:50:55.093 | INFO | camera | Device already connected for Camera_5
2026-03-17 15:50:55.093 | INFO | camera | Pipeline already running for Camera_5
2026-03-17 15:50:55.093 | ERROR | depthai | MJPEG loop error for Camera_5: MessageQueue was closed
Thank you.

