depthai-unity
depthai-unity copied to clipboard
MSVC Runtime error for the Object Detector scene
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:
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 getPreview
s, 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