cancel
Showing results for 
Search instead for 
Did you mean: 

Meta XR Simulator Crashes

menigan
Honored Guest

Hello, Im trying to get the Meta XR Simulator(https://developer.oculus.com/documentation/unity/tools-meta-xr-sim/?intern_source=devblog&intern_con...) up and running but it crashes as soon as I try and launch it.  From the Oculus SDK I am trying to launch the Cubes scene with no luck.

Im using Unity version 2022.3.5f1 along with the latest versions of the Oculus XR Plugin and OpenXR Plugins.  Regardless of which Plugin provider I use(Oculus or OpenXR), the tool crashes Unity as soon as it starts. 

 

Is there anything I might have missed setting up in order to get this simulator working?  Any help would be much appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions

mtucker.2112
Honored Guest

For anyone else, we figured out that by installing the SDK and the Simulator using a scope registry instead of downloading them like the tutorials say (e.g. https://developer.oculus.com/documentation/unity/unity-tutorial-hello-vr/) things work.

The trick is that the SDK is found with this scope registry:

Url: https://npm.developer.oculus.com
Scopes: com.meta.xr.sdk

And the simulator is found with this registry:

URL: https://npm.developer.oculus.com
Scopes: com.meta.xr.simulator

Also, when using the latest LTS of Unity (2022.3.7f1) the only versions that don't crash are these ones:

mtucker2112_0-1692380105824.png

 

 

View solution in original post

4 REPLIES 4

mtucker.2112
Honored Guest

We have the same issue, and have tried several different LTS versions of Unity.  All with the latest Meta XR simulator package and the latest Oculus Integration SDK package. 

None of the sample scenes work with the simulator, they all crash Unity and in the Editor.log from C:\Users\[user]\AppData\Local\Temp\Unity\Editor\Crashes we see this:

 

 =================================================================
Native Crash Reporting
=================================================================
Got a UNKNOWN while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================
 
=================================================================
Managed Stacktrace:
=================================================================
=================================================================
Received signal SIGSEGV
Obtained 19 stack frames
0x00007ffd046e2375 (OVRPlugin) ovrp_UnityOpenXR_OnSessionDestroy
0x00007ffd046a48f8 (OVRPlugin) ovrp_Update3
0x00007ffd20a2410a (OculusXRPlugin) XRSDKPreInit
0x00007ffd20a3180e (OculusXRPlugin) SetSpaceWarp
0x00007ff731c69e08 (Unity) XRInputSubsystem::Update
0x00007ff731c59b71 (Unity) XRInputSubsystemManager::Update
0x00007ff73049f3a9 (Unity) CallbackArray::Invoke
0x00007ff731c40556 (Unity) `XREngineCallbacks::XREngineCallbacks'::`2'::EarlyUpdateXRUpdateRegistrator::Forward
0x00007ff730f2fbda (Unity) ExecutePlayerLoop
0x00007ff730f2fd66 (Unity) ExecutePlayerLoop
0x00007ff730f36625 (Unity) PlayerLoop
0x00007ff731ef2cbf (Unity) PlayerLoopController::InternalUpdateScene
0x00007ff731eff89d (Unity) PlayerLoopController::UpdateSceneIfNeededFromMainLoop
0x00007ff731efdba1 (Unity) Application::TickTimer
0x00007ff73237180a (Unity) MainMessageLoop
0x00007ff732376910 (Unity) WinMain
0x00007ff73376133e (Unity) __scrt_common_main_seh
0x00007ffd9bc37614 (KERNEL32) BaseThreadInitThunk
0x00007ffd9db626b1 (ntdll) RtlUserThreadStart
 

mtucker.2112
Honored Guest

For anyone else, we figured out that by installing the SDK and the Simulator using a scope registry instead of downloading them like the tutorials say (e.g. https://developer.oculus.com/documentation/unity/unity-tutorial-hello-vr/) things work.

The trick is that the SDK is found with this scope registry:

Url: https://npm.developer.oculus.com
Scopes: com.meta.xr.sdk

And the simulator is found with this registry:

URL: https://npm.developer.oculus.com
Scopes: com.meta.xr.simulator

Also, when using the latest LTS of Unity (2022.3.7f1) the only versions that don't crash are these ones:

mtucker2112_0-1692380105824.png

 

 

Thanks for posting the answer. I had the exact same issues in Unity 2022.3.7f1 with com.meta.xr.simulator v54.0.1-preview. Downgrading the other com.meta.xr.sdk.utilities package to v54.0.1-preview fixed the crashes for me (i.e. don't use the latest v56.0.0-preview)

vopasij
Honored Guest

Hello everyone,

 

 

I need your help please, I bought a new computeur just to play at flight simulator, the first few weeks everything was fine, then i did not play for 3 weeks and for

 

one week now it is impossible to play, I have spent 2 days going on forums and stuff to find a solution, but without sucess 😞

 

I am with Steam

 

Win 11

 

The game is up to date

 

and my GTX 3080 too.

 

 

When I start the game everything is fine, i have the sound, the pictures and it is loading, then a little bit after half of the loading the game crash and send me back

 

to the desktop : in safe mode or not...

 

 

 

 

Thank you very much for your help