depthai-unity icon indicating copy to clipboard operation
depthai-unity copied to clipboard

MSVC Runtime error for the Object Detector scene

Open AndreiMoraru123 opened this issue 4 months ago • 0 comments

Hi @gespona. The Object Detector unity pipeline seems to crash after a few seconds into the feed, at least on Windows. Here is how it looks:

image

Besides on main, the crash also seems to also take place with the bumped DepthAI from this PR's branch: https://github.com/luxonis/depthai-unity/pull/64

The C++ code compiles and the C# code config also seems in order. The pipeline is a bit different from the others as it uses the YOLO API instead of a basic Neural Net and also uses depth.

There are also possibly a few checks missing like a few getPreviews, but none of them should matter at runtime with the default config. E.g. here, before calling toARGB: https://github.com/luxonis/depthai-unity/blob/main/src/predefined/ObjectDetector.cpp#L337

I did not try to run this with any debug or sanitize flags, but I'll keep looking into it. I also tried to compile this without using depth info, and it still seems to crash.

Do you think you could have a look?

I'm using: Unity Editor 2021.3.44f1 Visual Studio 2022 (just as the generator for CMake, which is 3.30.4) an OAK-D Lite device

AndreiMoraru123 avatar Oct 16 '24 16:10 AndreiMoraru123