cancel
Showing results for 
Search instead for 
Did you mean: 

Meta XR Simulator Crashing Unity

JakeMaier
Explorer

Hi, I got the Meta XR Simulator working a few days ago, but now it crashes Unity every time I enter Play Mode. I have not changed anything significant between the time it was working and not working, so I don't know what could have caused the sudden change. 

General Info: 

- Meta Packages being used: Core SDK, Interaction SDK, Interaction SDK Essentials, MR Utility Kit, Haptics SDK

- OpenXR version 1.11.1-exp.1

- Oculus XR Plugin 4.2.0

- Unity version 2022.3.30f1

- Meta XR Simulator installed through Homebrew because I am on a Mac

Editor Log:

Link to Google Doc

If anyone has any ideas as to what the problem might be, please let me know.

1 ACCEPTED SOLUTION

Accepted Solutions

edog.121542
Honored Guest

Yes, it is the fix task that sets Enable Dynamic Resolution, it seems Max Dynamic Resolution Scales over 1.0 crash the simulator.  If the simulator has crashed you will need to exit the unity editor and restart it, with dynamic resolution adjusted (Under camera rig, OVR Manager....)  If you see this fix task, either ignore it or correct it afterwards :
ignroe fix task.jpg

 


Max Dynamic Resolutions over 1.0 will crash the simulator :

dynamic resolution crash.jpg

 

View solution in original post

6 REPLIES 6

deh.1224
Explorer
Close Unity and clear the Caches.
Under Windows system, it is in this directory.
deh1224_0-1723622077470.png

 

JakeMaier
Explorer

This is not working for me. I am not sure if it is because I am on Mac and you are on Windows, but the simulator still crashes when I delete my Cache folder. I am deleting the contents of the folder in the directory ~/Library/Unity/cache, but it hasn't changed anything. When I try to delete the other Cache folders that are within my project folder (Cache, PackageCache, ShaderCache, StateCache), it causes major project errors, and I have to enter my project in Safe Mode. Would there be any other reasons that this would not work? 

I also encountered simulator crashes after adding XRI. Although I used Git reset to revert to a previous version, the simulator still crashed. Only after deleting the Caches folder did it return to normal.

Therefore, if you are using Git, try using Git reset to revert to a version that you are sure works, then delete the Caches folder, and finally restart the simulator.

 

I am not using Git, I am using Unity Version Control. I gave up on trying to fix the error and just copied all my progress into a new project(which wasn't too bad because my project is mostly building blocks at this point). The Simulator works in the new project, and it has not crashed so far, so I am just going to hope the error doesn't come back.

edog.121542
Honored Guest

Yes, it is the fix task that sets Enable Dynamic Resolution, it seems Max Dynamic Resolution Scales over 1.0 crash the simulator.  If the simulator has crashed you will need to exit the unity editor and restart it, with dynamic resolution adjusted (Under camera rig, OVR Manager....)  If you see this fix task, either ignore it or correct it afterwards :
ignroe fix task.jpg

 


Max Dynamic Resolutions over 1.0 will crash the simulator :

dynamic resolution crash.jpg

 

you're a godsend bro.  I've been tinkering with this for a month.  many thanks!