Unity crashes every time I try to import a package that contains the oculus spatial audio bundle, such as Oculus Integration and the XR toolkit. It crashes during the import and then every I try to load Unity. I have tried several different Unity version and they all do the same thing. Is this a know issue? Is there a fix?
Ok, I just published Oculus XR Plugin 1.7.0-preview.2 that should have a fix for this. The current fix was to just remove the Oculus Mac spatializer libraries from the package. If you need them and aren’t on a M1 Mac, you can grab them from the Oculus integration asset for now until we resolve the issue with the spatializer library with Oculus.
Note that it may take a bit for 1.7.0-preview.2 to make it out to all the package servers.
If you currently have a project that isn’t loading because of this issue, you can manually remove/update the Oculus XR Plugin in Packages/manifest.json. If you have the Oculus integration, you might need to remove the AudioPluginOculusSpatializer.bundle from your Oculus assets folder.
Please let me know if this resolves the issue, I believe it should for now.
This issue seems to have returned using Oculus Integration SDK v40 and Unity 2021.3.3f1 on an M1 mac running Big Sur 11.6.4. Workaround seems to be to delete the ‘Spatializer’ and ‘Spatializer.meta’ assets from the project folder.
Edit:
While this workaround allows to project to open without crashing, it does not allow a build without errors. Makes this method unusable.
Is there any chance that this issue has been resolved or is there is any workaround to avoid this ?
I have this on my Unity 2020 , 2021 , 2023 versions