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.

Additionally, after a crash causes the project to close, When I restart the project and click the “Continue launching Nuitrack” button, the project crashes again.

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.

Unfortunately, I was unable to reproduce the issue on my side.

Could you please check the following:

  1. Does the issue occur when launching Nuitrack.exe via the “Try Nuitrack” button?
  2. Have you tried a different USB cable or USB port?

Any additional details would be appreciated.

Hello @Stepan.Reuk,

Sorry for the delayed response.
It took some time to perform additional testing in an attempt to reproduce the issue.

When testing using the “Try Nuitrack” button, I did not observe any crashes.
I also tested using the rear USB ports on the PC, and I did not observe any crashes there either.

However, when testing with the front USB ports on the PC, the application appears to crash intermittently.

As you mentioned, it seems that crashes may occur when the USB connection becomes unstable.

The crashes occurred when opening a Unity project or when pressing the Play button in the Unity Editor.

I’m glad to hear that the situation seems to be improving.

Just to clarify: when using the rear USB ports, were you able to reproduce any crashes in Unity at all, or did the issue completely disappear?

So far, we haven’t been able to reproduce any crashes when using the rear USB ports.

1 Like