luxonis / depthai-unity

DepthAI Unity Library, Unity projects and examples (OAK For Unity)
MIT License
200 stars 34 forks source link

Got error when builded the project in window - This application has requested the runtime to terminate it in an unusaual way #58

Closed jieguann closed 9 months ago

jieguann commented 9 months ago

Hello, we have the oak-d lite and we are trying to use the body pose (from the example scene). In the Unity editor, it runs properly, but when we make a build, it crashes and who the error as below.

image

Unity version - 2021.2.7f1 OAK-D Lite, and we also tried on OAK-D Wide Window 11

We are also aware that also happen to other examples that require AI models like face detection or face emotion.

Any idea on how to fix this?

gespona commented 9 months ago

Hi @jieguann

This is known issue:

Export Unity binary

Notice when you export binary, Unity is not doing copy of models (URP/Assets/Plugin/OAKForUnity/Models)

If you export example or scene using neural model like face detector, face emotion or body pose, you need to copy models folder content to URP_Data/Plugins/OAKForUnity/Models

jieguann commented 9 months ago

@gespona Thanks for your reply; it works for us now.