Unity hangs when stopping the app

I’m running 8 ZEDX cameras (using 4 zed boxes), with object detection,
when I stop the application, Unity freezes for ~5 min.
any help would be appreciated.

Steps to Reproduce

  1. open scene with 8x zed rigs (mono)
  2. hit play,
  3. after cameras start detecting, stop app

Hi,

At the first use of a AI model, the SDK will download and optimize it, which can take some time.

Can you try to optimize the models manually following this guide ? https://support.stereolabs.com/hc/en-us/articles/9747407795223-How-can-I-optimize-the-ZED-SDK-AI-models-manually-

Best,

Stereolabs Support

Hi Benjamin,

The models actually were optimized manually.
This occurs not during runtime, but when closing the app.
It might have something to do with threads not joining correctly.

However, I will give it a go.

Ok I get it.

You are using multiple cameras, so I suppose you are using our live link sample (GitHub - stereolabs/zed-unity-livelink: ZED Livelink plugin for Unity), is that right?

Actually no, We are using multiple ZED rig prefabs for each camera,
No skeleton tracking

Hi Benjamin,
I have tried the above, did not make a difference unfortunately

Hi Tamar,

Sorry for the delay.

We are still investigating your issue. I’ll come back to you when I have some news to share.

Thank you for you feedback.

Stereolabs Support

Hi BenJamin,

Great to hear from you, looking forward to any updates on the issue

Thanks,
Tamar