Configure Project Settings : XR::Display begin_frame() timeout + MLInputStopControllerFeedback() error

Hi everyone,

I’m currently facing a recurring issue when running a simple app on Magic Leap 2 using Unity 6 (version 6000.0.47f1) and Magic Leap 2 OS version 1.12.0.

I’ve set up everything using the Magic Leap Setup Tool, and all validation steps are green, including Validate Project Settings. I’ve followed the tutorials provided on the developer portal as closely as possible, although I noticed some parts seem slightly outdated.

In Unity, I haven’t enabled any permissions yet (screenshot attached), and several features are enabled by default (also shown in a second screenshot).

When running my app, I keep seeing this repeating warning in the logs logs_unity.txt (182.4 KB):

[XR] [XR::Display] begin_frame() returned: Timeout

as well as:

[XR] MLInputStopControllerFeedback() failed with error MLResult_InvalidParam

I’ve attached a sample of my Unity log (filtered) and would appreciate any help understanding what might be going wrong. Are there specific permissions or features I should be enabling manually? Or could this be related to headpose or controller input issues?

Thanks in advance for any insight or suggestions.

Best,
Thall

Do you mind testing again after enabling all of the permissions. I saw this message:

Error: XrCreateSpatialAnchorsStorage in the Magic Leap API failed. Reason: SpatialAnchorsPermissionDeniedML 

It might be preventing the app from starting correctly. If the app still doesn’t work after selecting all of the permissions, I recommend disabling the Magic Leap 2 features in the OpenXR Feature Groups accept the Magic Leap 2 support and Magic Leap 2 Rendering Extensions features.

Lastly, is this a new project for Unity 6 or is it an existing project that was updated to Unity 6. In Project Settings > Player Settings can you verify that Game Activity is disabled?

Thanks for your help. I was able to resolve the issue and get the app running correctly on the Magic Leap 2.

What worked:

Disabled Game ActivityIn Project Settings > Player > Android > Resolution and Presentation, I unchecked “Use Game Activity”.

Cleaned up the AndroidManifest.xml
I removed the UnityPlayerGameActivity block entirely and kept only the default Unity activity with a standard Android theme:

<activity android:name="com.unity3d.player.UnityPlayerActivity" android:theme="@android:style/Theme.DeviceDefault.NoActionBar">

Activated all required Magic Leap permissions
Using Magic Leap > Manifest Settings, I enabled all relevant permissions (e.g., Spatial Anchors, Hand Tracking, Meshing, etc.).

Kept all Magic Leap 2 features enabled
In XR Plug-in Management > OpenXR > Android, I kept the full Magic Leap 2 feature set active, and everything works fine now.

The crash (XR_ERROR_RUNTIME_FAILURE) no longer occurs and the app launches correctly.

Many thanks again to the Magic Leap team and the community for your support — your guidance was instrumental in resolving this.

Best regards,
Thall

1 Like