Forum Discussion

gubendran_vins's avatar
gubendran_vins
Honored Guest
26 days ago

Meta XR Simulator Closes Immediately After Launch

I'm experiencing a critical issue with the Meta XR Simulator that is preventing me from developing and testing my Unity project. When I try to launch the Meta XR Simulator (either by hitting Play in the Unity Editor or by manually going to Meta > Meta XR Simulator > Launch Environment Server), the simulator window briefly appears and then immediately closes, followed by a Unity console error:

InvalidOperationException: Cannot process request because the process (XXXX) has exited. (Where XXXX is a process ID like 9116).

This issue is occurring consistently across different Unity editor versions, which is highly concerning.

My Setup:

  • Unity Editor Versions Tested:
    • Unity 2022.3.22f1 LTS (Long Term Support)
    • Unity 6000.0.48 (Preview/Beta)
  • Meta XR SDK Version: Meta XR All-in-One SDK v77.0
  • OpenXR Plugin Version: [Please specify the exact version you have installed, e.g., 1.14.2]

    Steps I Have Already Taken (and confirmed the issue persists):

    1. Checked Dynamic Resolution Settings:
      • In Edit > Project Settings > XR Plug-in Management > OpenXR tab, I've looked for "Max Dynamic Resolution Scale" and similar settings.
      • Action: Ensured these are set to 1.0 (or similar "no scaling" options).
      • Action: Also checked OVRCameraRig's OVRManager component under Quest Features > General for "Enable Dynamic Resolution" and ensured it's unchecked or scales are 1.0.
      • Result: No change, simulator still crashes.
    2. Aggressive Cache/File Cleanup & Reinstallation:
      • Action: Completely closed Unity.
      • Action: Deleted the Library folder in my project root.
      • Action: Deleted the Temp folder in my project root.
      • Action: Deleted the obj folder in my project root.
      • Action (Windows Specific): Deleted the contents of %AppData%\MetaXR\MetaXrSimulator to clear global simulator cache.
      • Action: Reopened Unity (which re-imported everything).
      • Action: Uninstalled and reinstalled the Meta XR Simulator package via Unity's Package Manager.
      • Result: Simulator still crashes with the same error.
    3. Verified XR Plug-in Management Configuration:
      • In Edit > Project Settings > XR Plug-in Management:
        • Windows, Mac, Linux tab: Confirmed only OpenXR is checked as the Plug-in Provider. "Initialize XR on Startup" is unchecked (as I'm trying manual launch).
        • Android tab: Confirmed only Oculus is checked.
        • OpenXR Project Settings: Confirmed Meta Quest Support feature is enabled and Oculus Touch Controller Profile and Oculus Hand Interaction Profile are added.
        • Action: Ran "Project Validation" and fixed any reported issues.
      • Result: No change.
    4. Meta Project Setup Tool:
      • Action: Used Meta > Tools > Project Setup Tool and applied all recommended fixes for both Standalone and Android.
      • Result: No change.

        Please let me know if more logs or screenshots are needed. I’m willing to test any fixes or alternate configurations to get the simulator running.

         

1 Reply

  • Expacia's avatar
    Expacia
    Honored Guest

    Hi! We ran into the same error in Unity when editing from a laptop with an internal GPU, and the solution is very simple: forcing Meta XR Simulator to the Vulkan API to work. So, go to Edit > Project Settings > Player > Other, and in the Windows/Mac tab, disable Auto Graphics API if it's enabled, and change Direct3D (which is usually the default) to Vulkan.

    Even though Vulkan (or OpenGL) is already the default for Android, when you're in the Editor, Unity uses the desktop settings. This is not necessary when editing from a computer with a dedicated graphics card (at least for us, who use NVIDIA); this solution was for a laptop that only has integrated graphics also for Mac Silicon computers (installing Vulkan manually).

    I hope this helped! Cheers!