Feedback: ARPlaneManager spamming a lot of error messages

In my latest app Walk the World I have included error telemetry, and whenever someone uses the app for the first time, I see a lot of these error messages appear:

"Error: XrGetPlanePolygonBuffer in the Magic Leap API failed. Reason: ValidationFailure"
and the stack trace just says "UnityEngine.XR.ARFoundation.ARTrackableManager`5:Update()"

I presume this caused by me using the ARPlaneManager to find horizontal planes ( as I do here for HoloLens. I have seen this twice now: once in a run by myself, but after a few seconds it ended and then I could select a location. But I also saw a user who generated about a full minute of these errors before - apparently - giving up. This is typically something that happens during the first startup. I could see them giving SpatialMap permission - and then the errors occurred.

Any idea what is going on here?

Hi @localjoost,

Thank you for reaching out regarding this issue. I would like to start by asking for a few more details.

  • Unity Editor version
  • ML2 OS Version
  • ML SDK Version
  • Development OS (e.g. Mac, Windows)

Are you using the MLSDK or OpenXR? What is the environment in which you are using the headset?

Best,

El

Hello @etucker ,
What? You don't read my blog daily? :wink:

  • Unity 2022.2.32f1
  • OS 1.7.0
  • Development on Windows.
  • Using OpenXR (of course!)

Also: the app is MRTK3 based.

As to SDKs, I hope this excerpt of the manifest file gives you all you want to know. I started out with a HoloLens app, then added all this to get it working on the ML

"com.atteneder.ktx": "https://github.com/atteneder/KtxUnity.git#v2.1.2",
"com.magicleap.mrtk3": "1.0.0",
"com.magicleap.soundfield": "3.4.4-231122.68.6849fab",
"com.magicleap.unitysdk": "2.2.0",
"com.microsoft.mixedreality.visualprofiler": "https://github.com/microsoft/VisualProfiler-Unity.git#v2.2.0",
"com.unity.asset-store-validation": "0.5.1",
"com.unity.inputsystem": "1.7.0",
"com.unity.mobile.android-logcat": "1.4.2",
"com.unity.performance.profile-analyzer": "1.2.2",
"com.unity.xr.arcore": "5.1.4",
"com.unity.xr.arfoundation": "5.1.4",
"com.unity.xr.hands": "1.4.1",
"com.unity.xr.interaction.toolkit": "2.5.4",
"com.unity.xr.magicleap": "7.0.0",
"com.unity.xr.management": "4.4.0",
"com.unity.xr.openxr": "1.10.0",

I got this by comparing your own fork of the MRKT3 btw with my manifest file. I wrote a neat little tool to do that. Might be useful to know

Does this help?

I have reached out to our team to see what we can find about this error and I will report back as soon as I learn more.

Hi @localjoost,

I wanted to let you know that I have created a feedback ticket for this and I will report back as soon as I learn more.

Best,

El

What is the physical environment that you are working in like?

Are there any black surfaces or low lit areas? Is it mostly flat or are there a lot of objects near surfaces?

This is my home office in which I do most of my test, from about this vantage point. The desk is indeed black but I am using the floor and the bed as test areas

Thank you for providing these details. I have submitted a feedback ticket to our team and they will have a look at this issue.