stereolabs / zed-unity

ZED SDK Unity plugin
https://www.stereolabs.com/documentation/guides/using-zed-with-unity/introduction.html
MIT License
250 stars 57 forks source link

Camera stream blocking #197

Closed PEPSoares closed 2 years ago

PEPSoares commented 3 years ago

Hi,

I'm trying to use a ZED2 with unity and I'm having some problems. I downloaded the latest zed 2 unity package.

Some demos work, like: Dark room , drone shooter greenscreen etc....

But the ones that I needed don't: Skeleton tracking and Object detection.

When I press play everything seems to work but only for a second or two. I can see the cam stream but then it blocks. Sometimes unity fps counter keeps couting sometimes it doesn't but everytime I press play again to stop playing unity blocks and I have to kill the process.

On the console there is only Starting Object Detection. This may take a moment. Object Detection module started in 6 seconds.

All the samples on the SDK work without any problem. I'm using: Win10 pro 64 Unity 2020.3.6f1 CUDA 11.1.0 ZED sdk 3.5.0 for cuda 11.1

And running on a NVIDIA GeForce RTX 3060 Laptop GPU

At first I got this error:

Unity_EzdzVOEu88

Which stoped showing after I changed TdrDelay to 10s. https://docs.microsoft.com/en-us/windows-hardware/drivers/display/tdr-registry-keys

Bvallon-sl commented 3 years ago

Hi,

I've never encounter this error but, according to this forum post (https://forum.unity.com/threads/constant-crashes-failed-to-present-d3d11-swapchain-due-to-device-removed.987834/), it seems to happen to some people as well.

They are mentioning that deleting the Library folder might solve the issue. Did you try it ?

Best regards, Benjamin Vallon

PEPSoares commented 3 years ago

Thanks for the tip but unfortunately nothing changed.

Kismetzc commented 3 years ago

The same question!

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment otherwise it will be automatically closed in 5 days