Unity Editor Crashes at DepthSensor.Create() with Astra+

Hello Nuitrack team,

I am currently using the Nuitrack SDK with an Astra+ sensor in Unity.

I am writing this because I am experiencing intermittent crashes in Unity.

Previously, I was using Nuitrack Runtime v0.38.4. At that time, the sensor occasionally failed to connect during initialization. After seeing the “Stability Improved for all supported platforms” note in v0.38.5, I updated the Nuitrack Runtime to version 0.38.5.

After the update, some parts seemed more stable, but I started experiencing intermittent crashes when the initial sensor connection failed. I suspect that the crash may occur when DepthSensor.Create() fails during sensor initialization. After downgrading back to Nuitrack Runtime v0.38.4, the crashes no longer occurred.

I would like to ask whether the NuitrackSDK.unitypackage released for v0.38.4 is fully compatible with Nuitrack Runtime v0.38.5.

I have also attached the collected crash logs and environment information for reference.

Environment:

  • OS: Windows 11

  • Unity Version: 2022.3.10f1

  • Sensor: Astra+

Thank you.

Hello @soul

Sorry for late reply.

Yes, this package version should be fully compatible with 0.38.5.

Thank you for the logs, but unfortunately I can’t download them “This content does not exist”. Could you please reupload them?

Sensor instability is most often caused by USB cables or USB ports. Additionally, please try checking them.

Hello @Stepan.Reuk

As requested, I am uploading the logs again.

Since updating to version 0.38.5, I have noticed that crashes occur not only when enabling the sensor, but also when a compilation is triggered after making code changes while using Nuitrack.

I did not experience these issues with version 0.38.4; the crashes started occurring after updating to 0.38.5.

This time, the attached logs are related to those crashes.

Could you please take a look and let me know what you find?

Thank you.