bibigone / k4a.net

K4A.Net - Three-in-one .NET library to work with Azure Kinect devices (also known as Kinect for Azure, K4A, Kinect v4). It includes sensor API, recording and playback API, body tracking API. Samples for WPF, .NET Core and Unity are included.
MIT License
164 stars 39 forks source link

Constructor of Tracker throws error on standalone app #31

Closed mkstmyk closed 3 years ago

mkstmyk commented 3 years ago

It works perfectly on Editor, but once I deploy it, it shows the following error at new Tracker(). I've already double-checked where dll is. Thank you for any suggestions in advance.

Version 1.0.x of Body Tracking runtime is expected. stack: at K4AdotNet.BodyTracking.Tracker..ctor (K4AdotNet.Sensor.Calibration& calibration, K4AdotNet.BodyTracking.TrackerConfiguration config) [0x00000] in <00000000000000000000000000000000>:0 at MultiBodyMeshing+<>c__DisplayClass59_0.b__0 () [0x00000] in <00000000000000000000000000000000>:0 at System.Threading.Tasks.Task.InnerInvoke () [0x00000] in <00000000000000000000000000000000>:0 at System.Threading.Tasks.Task.Execute () [0x00000] in <00000000000000000000000000000000>:0 at System.Threading.Tasks.Task.ExecutionContextCallback (System.Object obj) [0x00000] in <00000000000000000000000000000000>:0 at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0 at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0 at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task& currentTaskSlot) [0x00000] in <00000000000000000000000000000000>:0 at System.Threading.Tasks.Task.ExecuteEntry (System.Boolean bPreventDoubleExecution) [0x00000] in <00000000000000000000000000000000>:0 at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00000] in <00000000000000000000000000000000>:0 at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00000] in <00000000000000000000000000000000>:0 at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <00000000000000000000000000000000>:0

mkstmyk commented 3 years ago

Let me share my update. By changing the scripting backend from IL2CPP to MONO, it just worked. But I prefer IL2CPP. I hope someone knows the trick to run it w/ IL2CPP, it seems to be more general question not limited to this repo though. Thanks.

bibigone commented 3 years ago

I am afraid that IL2CPP is not compatible with this library