Dear Magic Leap Team,
unfortunately after migrating from Magic Leap to OpenXR XR Provider we experience a bunch of errors in the android logcat which slows down/freezes the app during start up and we don't exactly know why they occur.
The errors are the following and occur many more times with slightly different microseconds after the automatically requested permissions are granted and the app starts. The full android logcat is attached further below.
2024.09.30 15:16:25.263 9180 9231 Error com.company.example leapcore/frameworks/perception/data_sources/include/pad/xpad_data_source.h(105) GetClosestTimestampedData():
2024.09.30 15:16:25.263 9180 9231 Error com.company.example ERR: Data Not Found for timestamp: 306370788us, now time: 306595672us
2024.09.30 15:16:25.263 9180 9231 Error com.company.example leapcore/frameworks/perception/data_sources/include/pad/xpad_data_source.h(105) GetClosestTimestampedData():
2024.09.30 15:16:25.263 9180 9231 Error com.company.example ERR: Data Not Found for timestamp: 306370788us, now time: 306595782us
2024.09.30 15:16:25.263 9180 9231 Error com.company.example leapcore/frameworks/perception/data_sources/include/pad/xpad_data_source.h(105) GetClosestTimestampedData():
2024.09.30 15:16:25.263 9180 9231 Error com.company.example ERR: Data Not Found for timestamp: 306370788us, now time: 306595946us
We followed this documentation for the migration:
Migrating to OpenXR
https://Configure Existing MRTK 3 Project
Magic Leap MRTK 3 Settings
From the MagicLeap MRTK3 template project we copied over the MRTK XR Rig - MagicLeap - OpenXR to our scenes and every other feature we needed to change for OpenXR apart from the above error seems to be working fine.
Furthermore, the feature groups we use are the following:
First, we thought the errors are related to a wrong setup in our scenes during migration, but after only including the MRTK3 Hand and Controller Interaction Examples scene (from the Magic Leap MRTK3 package) in the build settings the errors still persisted.
We made sure to check the sample projects from MagicLeap for OpenXR and there we did not encounter the errors. But the sample project also does not use the MRTK3 package.
Therefore we would say it could be something related to our project settings in combination with OpenXR and MRTK3.
We also looked into this forum post and enabled the perception snapshots as well as switched from using the non async methods to the async methods without any success of resolving the issue.
Unity Editor version: 2022.3.19f1
ML2 OS version: 1.9
Unity SDK version: 2.3
Host OS: Windows
Magic Leap MRTK3 version: 1.2
Error messages from android logcat (anonymized a bit):
logcat.txt (165.2 KB)
Please let us know if you need any further information like e.g. more project settings.
Thank you for your help and always quick response.
Best regards