MLOpenXRConvertXrTimeToTimespecTime in the Magic Leap API failed. Reason: MLResult_UnspecifiedFailure

Give us as much detail as possible regarding the issue you're experiencing.

Unity Editor version: 2022.3.5f1
ML2 OS version: 1.4.0-dev2
MLSDK version: 1.9.0
Host OS: (Windows/MacOS) Windows

Error messages from logs (syntax-highlighting is supported via Markdown):

2023/10/13 14:24:11.588 24908 25374 Error Unity Error: MLOpenXRConvertXrTimeToTimespecTime in the Magic Leap API failed. Reason: MLResult_UnspecifiedFailure
2023/10/13 14:24:11.588 24908 25374 Error Unity UnityEngine.XR.MagicLeap.MLResult:DidNativeCallSucceed(Code, String, Predicate`1, Boolean)
2023/10/13 14:24:11.588 24908 25374 Error Unity UnityEngine.XR.MagicLeap.MLTime:InternalConvertMLTimeToSystemTime(MLTime, Int64&)
2023/10/13 14:24:11.588 24908 25374 Error Unity UnityEngine.XR.MagicLeap.MLTime:ConvertMLTimeToSystemTime(MLTime, Int64&)
2023/10/13 14:24:11.588 24908 25374 Error Unity UnityEngine.XR.MagicLeap.MLCameraVideoSource:Camera_OnRawVideoFrameAvailable_NativeCallbackThread(CameraOutput, ResultExtras, Metadata)
2023/10/13 14:24:11.588 24908 25374 Error Unity UnityEngine.XR.MagicLeap.NativeBindings:OnVideoBufferAvailableCallback(MLCameraOutput&, UInt64, MLCameraResultExtras&, IntPtr)

Hello!

I spotted this error in Android Logcat after implementing our WebRTC project into the MRTK devtemplate project, the camera and audio streaming is working fine. But I was wondering what this error could be.

I did remove the WindowsOpenXR package because it gave another error. (Unity DllNotFoundException: Unable to load DLL 'MicrosoftOpenXRPlugin'. )

Packges:


We recommend removing the OpenXR Plugin from your project because the Magic Leap SDK does not support OpenXR at this time. This means that the package could cause conflicts and prevent your project from compiling correctly, resulting in the MicrosoftOpenXRPlugin not being removed properly.

Thanks for your reply.

Just a heads-up about the MRTKdevTemplate.

"The fastest way to get started with MRTK3 on Magic Leap 2 is to use the Magic Leap MRTK3 Template Project. The Template project is pre-configured for Magic Leap and contains all of the required MRTK3 and Magic Leap packages in addition to some sample scenes. This guide includes step-by-step instructions on how to download the Magic Leap 2 MRTK Template Project."

Quick Start | MagicLeap Developer Documentation

OpenXR and MicrosoftOpenXRPlugin-> is included in this project, I was able to remove both via package manager and build without errors

Project version is 2021.3.21 while ML docs refer to minimum 2022.2.17 -> I was able to update the project to 2022.3.5 without errors.

Thanks for the heads up and happy to hear that you got it working. The package versions might differ between the two projects. Since our SDK does not support Open XR there may be instances where an update to the Open XR package can cause errors when deploying for Magic Leap 2. Do you know if your XR Plugin Management was targeting multiple platforms or just Magic Leap?