Hello,
I am experiencing a critical issue with Orbbec Femto Mega and Nuitrack SDK in Unity Editor.
Symptom:
-
In Nuitrack Viewer, it works stably when Sensing.TimestampSource is set to "nuitrack".
-
In Unity Editor, it usually fails immediately with the error: “Perhaps the sensor is already being used in other program. Or some unexpected error.”
-
Occasionally, it runs for about 1 minute and then freezes.
-
After a crash, a nuitrack.lock file remains in the project root directory (above Assets), preventing subsequent runs until deleted manually.
Error Log:
NuitrackException (TerminateException): Perhaps the sensor is already being used in other program. Or some unexpected error.
UnityEngine.Debug:LogError (object)
NuitrackSDK.ErrorSolver.NuitrackErrorSolver:CheckError (string,bool,bool)
NuitrackManager:Update ()
Environment:
-
Camera: Orbbec Femto Mega (Firmware v1.2.9)
-
Power: External DC adapter connected
-
Nuitrack SDK: v038.4
-
Unity Version: 6000.3.7f1
-
OS: Windows 11 Pro
-
nuitrack.config: TimestampSource set to "nuitrack".
Observations:
-
The issue persists even in a minimal scene with only NuitrackManager (Depth only).
-
Disabling “Multithreaded Rendering” in Unity didn’t resolve the issue.
-
The existence of nuitrack.lock suggests that the Nuitrack process is not being released correctly or is crashing mid-stream.
Is there any specific configuration for Femto Mega to prevent this “already in use” error in Unity?
Hello @cre_tomida
Try running OrbbecViewer
- Make sure the sensor is connected via USB 3 (on the left near the sensor name)
- enable Color and Depth. there (all time stamp problems should be gone)
- Launch the project in Unity
I would also like to mention that you can use version 0.38.5, which is also compatible with the latest version of the unitypackage.
Thank you for reply !
I would also like to mention that you can use version 0.38.5, which is also compatible with the latest version of the unitypackage.
There is no unitypackage in Release Nuitrack v0.38.5 · 3DiVi/nuitrack-sdk · GitHub
Could you upload unitypackage?
@cre_tomida Unfortunately not, but as I said, Nutrack 0.38.5 is compatible with the latest version of the package
@Stepan.Reuk
Thank you for unitypackage. I tried but nuitrack dont work…
There is another error on the video, activate the license
Have you done everything in the orbbec viewer?
@Stepan.Reuk
Sorry, that is license error.
But I tried again, nuitrack dont work.
(Perhaps the sensor is already being used in other program. Or some unexpected error.)
Nuitrack can work on Unity2022.3.73f1 using same PC. But it dont work on Unity 6000.3.
Thank you for reporting this!
It appears that the issue may be related to changes introduced in Unity 6000.3. We’re currently investigating compatibility and will share an update as soon as we have more information.
In the meantime, if possible, we recommend using a previous stable Unity version.
We’ll keep you posted here.