Fatal error while using ARPlaneManager

Recently integrated ARPlaneManager and plane detection into my application. I noticed when running the application multiple times after a few successful runs I get this error and the plane detection stops working. Once it occurs it happened in every restart of the application until i restart the headset.

07/18/24, 04:07:51 PM 10126 24380 24401 com.UnityTechnologies.com.unity.template.urpblank leapcore/frameworks/perception/data_sources/include/pad/xpad_data_source.h(105) GetClosestTimestampedData():
ERR: Data Not Found for timestamp: 23501661653us, now time: 23501762430us

I've included the log for additional information but looks like it could be a memory leak, not sure if its ML or Unity side?

Unity Editor version (if applicable): 2022.3.37f1
ML2 OS version: 1.8.0
MLSDK version: 2.3.0

Error messages from logs (syntax-highlighting is supported via Markdown):
logs-2024-07-18-16-10-15.txt (1.5 MB)

We are looking into this

I'm not sure what would cause the planes to stop working completely, although I was able to reproduce the perception error log that you are getting, my plane detection continued to work.

Do you mind capturing a full bug report and sharing it with us?

ML Hub 3

ML Hub 2

Sure, I will get a capture if it shows again today.

MLHubLogs-2024-08-01-15-14-02-win32.zip (89.1 KB)

Took a while for it to start happening again. See attached

Have you been able to reproduce this using the Magic Leap examples application? Do you know around how many successful runs of the application before detection stops working properly? How large is the space that you are mapping?

We caught a small error in the example script that was posted on our developer portal: Planes Query | MagicLeap Developer Documentation

We have since updated it to use the using MagicLeap.OpenXR.Features.Planes namespace instead of the legacy MLSDK APIs. Please let us know if this issue persists

That is great, thankyou! I will update my code to match.