# Random camera image freeze that can occur after a long runtime

**URL:** <https://community.stereolabs.com/t/random-camera-image-freeze-that-can-occur-after-a-long-runtime/2235>\
**Category:** ZED2\
**Tags:** windows, unity\
**Created:** [March 13, 2023, 1:05am UTC](https://community.stereolabs.com/t/random-camera-image-freeze-that-can-occur-after-a-long-runtime/2235 "2023-03-13T01:05:31Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike\_M](https://community.stereolabs.com/user_avatar/community.stereolabs.com/mike_m/32/1077_2.png) [@Mike\_M](https://community.stereolabs.com/u/Mike_M)\
**Post date:** [March 13, 2023, 1:05am UTC](https://community.stereolabs.com/t/random-camera-image-freeze-that-can-occur-after-a-long-runtime/2235/1 "2023-03-13T01:05:31Z")

</div>

Hey,  
I’m having some issues with the camera freezing after some time.  
I’m using Unity and the latest [unitypackage from github](https://github.com/stereolabs/zed-unity/releases/) (v 3.8.0) together with ZED2 camera and SDK 3.8.2.  
In my app I’m detecting people walking at the front of the camera and then processing that data on my end. There could be multiple people present.

It seems like the camera stops reporting new detection frame after some time. It’s quite random and it may work quite long at times. When it happens the detectionFrame in the ZEDManager is not changing anymore even if there are people moving at the front of the camera.

I see that one of the points in the changelog of the 3.8.2 SDK is:

- Fixed random image freeze that can occur after a long runtime.

is it possible that this issue still occurs in some circumstances? In my case there could be multiple people walking at the from of the camera up to 30 people at times.

Would there be any specific Zed\_Manager settings that would make it more stable? Currently I’m using:

- depth mode - ULTRA
- object detection - HUMAN\_BODY\_ACCURATE
- filtering mode - NONE

Do you have any recommendation regarding Zed\_Manager settings when it comes to multiple people in the room and the app running for hours? Would there be any other settings that I may need to change to prevent this?

Also, is there a way to get some logs from the SDK when the camera becomes frozen? Or generally is there either a log file or a setting that allows some more detailed SDK logs?

I’d appreciate any help,  
Mike

---

<div class="post-metadata">

**Author:** ![BenjaminV](https://community.stereolabs.com/user_avatar/community.stereolabs.com/benjaminv/32/3863_2.png) [@BenjaminV](https://community.stereolabs.com/u/BenjaminV)\
**Post date:** [March 13, 2023, 9:34am UTC](https://community.stereolabs.com/t/random-camera-image-freeze-that-can-occur-after-a-long-runtime/2235/2 "2023-03-13T09:34:39Z")

</div>

Hi,

Unfortunately, we are aware of this bug and we did not manage to fix it yet.

However, it appears less often when enabling the “image sync” object detection parameter. Can you try this out? In the mean time, we keep investigating and we will hopefully be able to solve this bug permanently in the near future.

Best regards,  
Benjamin Vallon

Stereolabs Support

---

<div class="post-metadata">

**Author:** ![Mike\_M](https://community.stereolabs.com/user_avatar/community.stereolabs.com/mike_m/32/1077_2.png) [@Mike\_M](https://community.stereolabs.com/u/Mike_M)\
**Post date:** [March 13, 2023, 9:38am UTC](https://community.stereolabs.com/t/random-camera-image-freeze-that-can-occur-after-a-long-runtime/2235/3 "2023-03-13T09:38:03Z")

</div>

hey Benjamin, thanks for a quick response,  
I’ll give it a go and report here.

Do you think stopping object detection by calling StopObjectDetection() on ZED\_manager and starting it again would get the camera to the working state?

Thanks,  
Mike

---

<div class="post-metadata">

**Author:** ![BenjaminV](https://community.stereolabs.com/user_avatar/community.stereolabs.com/benjaminv/32/3863_2.png) [@BenjaminV](https://community.stereolabs.com/u/BenjaminV)\
**Post date:** [March 13, 2023, 10:02am UTC](https://community.stereolabs.com/t/random-camera-image-freeze-that-can-occur-after-a-long-runtime/2235/4 "2023-03-13T10:02:30Z")

</div>

I don’t think it solves the issue. However, you can call the reboot() function which should work.

---

<div class="post-metadata">

**Author:** ![shivaum](https://community.stereolabs.com/user_avatar/community.stereolabs.com/shivaum/32/1540_2.png) [@shivaum](https://community.stereolabs.com/u/shivaum)\
**Post date:** [July 13, 2023, 10:48pm UTC](https://community.stereolabs.com/t/random-camera-image-freeze-that-can-occur-after-a-long-runtime/2235/5 "2023-07-13T22:48:02Z")

</div>

Hi, I am currently running ZED SDK on 3.8.2 and running into this same issue with the camera image freezing over a period of time. Is there any update on this?

---

<div class="post-metadata">

**Author:** ![BlindElephants](https://community.stereolabs.com/user_avatar/community.stereolabs.com/blindelephants/32/1286_2.png) [@BlindElephants](https://community.stereolabs.com/u/BlindElephants)\
**Post date:** [July 17, 2023, 4:08pm UTC](https://community.stereolabs.com/t/random-camera-image-freeze-that-can-occur-after-a-long-runtime/2235/6 "2023-07-17T16:08:46Z")

</div>

@BenjaminV Checking in on this, I believe we have the same issue in a long term installation. Wondering if you have any update on timeline / path to a fix on your side? Or any further advice on how to mitigate this issue currently, including proper error/exception handling?

Thanks

---

<div class="post-metadata">

**Author:** ![RobotMachines](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/r/b9bd4f/32.png) [@RobotMachines](https://community.stereolabs.com/u/RobotMachines)\
**Post date:** [July 19, 2023, 6:00am UTC](https://community.stereolabs.com/t/random-camera-image-freeze-that-can-occur-after-a-long-runtime/2235/7 "2023-07-19T06:00:46Z")

</div>

Is it possible to periodically restart/reset the camera to avoid a lockup over an extended period, or does that not solve the problem? I have not been running the camera for long periods yet, and am curious.

---

<div class="post-metadata">

**Author:** ![tafkams](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/t/4af34b/32.png) [@tafkams](https://community.stereolabs.com/u/tafkams)\
**Post date:** [November 21, 2024, 3:53pm UTC](https://community.stereolabs.com/t/random-camera-image-freeze-that-can-occur-after-a-long-runtime/2235/8 "2024-11-21T15:53:04Z")

</div>

Hi, has this been solved? We want to use the camera in a long-term running installation and this obviously hugely impacts our choice of camera

---

<div class="post-metadata">

**Author:** ![LT23Live](https://community.stereolabs.com/user_avatar/community.stereolabs.com/lt23live/32/5533_2.png) [@LT23Live](https://community.stereolabs.com/u/LT23Live)\
**Post date:** [December 3, 2025, 9:09am UTC](https://community.stereolabs.com/t/random-camera-image-freeze-that-can-occur-after-a-long-runtime/2235/9 "2025-12-03T09:09:35Z")

</div>

This still seems to be a problem. I have an email out to [stereolabs](https://www.stereolabs.com/).
