App Sim/Unity - Stuck at "App Sim Ready"


I am currently setting up Unity for my Magic Leap 2 by following the instructions in the developer guide, and have reached Guides>Unity>GettingStarted>Building a Simple App. I am trying to have a sample scene (with just the Magic Leap Main Camera prefab and a cube) show up on the headset through App Sim.

My issue is that when the App Sim is connected (as a Hybrid) and the Unity scene is played, the rotation of the Main Camera prefab and the Device View inside the Magic Leap Hub App Sim both work, but nothing displays on the Magic Leap 2 besides a message that says:

App Sim Ready
Play a scene in Unity or use ZILauncher to run an application on host.

When played, the Unity editor looks like:

The small "Main Camera" window that overlays the Scene View moves with the headset, but the display in the Game View does not move.

Starting an App Sim as just "Device" instead of "Hybrid" causes the rotation to not work, filling the terminal with:

(Not an issue if I can get Hybrid working)

Building to the device as an APK allows me to run it and see the cube, but the App Sim does not.

Unity Editor version: 2022.2.0b7.2913
ML2 OS version: B3E.220818.12-R.085 (Secure Devices Only)
ML App Sim (ZI) version:
MLSDK version: 0.53.3
Unity Version: 2022.2.0b7.2913
Host OS: Windows 11 (fresh reinstall)

Error messages from logs:
The only warning I get is:

[MagicLeapXr-ImageTracking]: Could not start the image tracking subsystem because permissions were denied.
UnityEngine.XR.Management.XRGeneralSettings:AttemptInitializeXRSDKOnLoad () (at Library/PackageCache/

Maybe is there a permission that needs to be added to a manifest?

My installed packages are:

Updating XR Plugin Management from 4.2.0 to 4.2.1 and updating Magic Leap XR Plugin from 7.0.0-exp.3 to 7.0.0-exp.4 both did not affect the issue.

Has anyone encountered this before or know what's going on?
Thank you for your time!

1 Like

Thank you for your first forum post!
Can you provide the logs from App Sim when this error occurs? You can get the logs by going to App Sim > Save Diagnostics Logs in the upper left menu of the App Sim window.


Hi Kat! Thank you for the response, here's the logs: (241.1 KB)

I noticed unity/Editor-prev.log contains a lot of the following errors
Error on graphics thread: 1
[XR] [ML] Error in ZI API
[XR] [XR::Display] Failed to create graphics client
Invalid worldAABB. Object is too large or too far away from the origin.
Input quaternion was not normalized

Here's everything I did to try and solve this Vulkan error in logs > zi > logfile.txt (no success unfortunately) since it seems the most relevant:

045524.014 <ml_hub.exe:3692~69f4> E [VulkanRenderDevice.cpp:111] Missing required extensions
045524.016 <ml_hub.exe:3692~69f0> E [VulkanRenderDevice.cpp:281] Failed to call vkEnumerateInstanceExtensionProperties fffffffd
  • reinstalled NVidia drivers
  • reinstalled the Vulkan SDK (manually ran as administrator)
  • downloaded NVidia's Vulkan ICD
  • set VulkanConfigurator to defaults
1 Like

Hi Kat,

Bumping this since it's been a few days, any chance for anyone to take a look yet?
Thank you for your time!


1 Like

Hi @owl,
Working on troubleshooting this now. Just to confirm, did you follow all the steps listed in the Using App Simulator with Unity guide and enabled Magic Leap Zero Iteration in the Standalone XR Plugin Management provider window?

1 Like

Hi Kat,

Thank you! Yes, just double-checked everything. The App Simulator and Unity seem to be connected, since the camera inside Unity is rotating with the headset, it's just not drawing anything to the lens. :confused:

Is there maybe something that needs to be added to the manifest for the [MagicLeapXr-ImageTracking]: Could not start the image tracking subsystem because permissions were denied. UnityEngine.XR.Management.XRGeneralSettings:AttemptInitializeXRSDKOnLoad () (at Library/PackageCache/ error in Unity? I tried enabling all of the manifest boxes.


1 Like

Hi @owl,

It looks like you are trying to run image tracking on the device via App Sim, which is not supported in Device mode as referenced in our App Sim Key API matrix. Can you try running an alternative example scene that doesn't contain any image tracking references in it?


Note, hybrid mode only displays the graphics inside the App Simulator's Device View and not inside the actual headset.


Can you try using the XR Rig prefab instead of the ML Camera? It is located under Packages/Magic Leap SDK / Runtime / Tools/ Prefabs