cancel
Showing results for 
Search instead for 
Did you mean: 

Meta Platform SDK crashes when initialized with Unity OpenXR

BingsuBandit
Honored Guest
There's a bug with Unity 2023+ where games crash when initalizing the Meta Platform SDK. To reproduce:
 
1) Use a version of Unity 2023 or higher
2) Use the OpenXR package with the Meta Core SDK v65 AND the Meta Platform SDK v65
3) Configure editor to enable OpenXR with Meta SDK features
4) In code, attempt to initialize the Platform SDK with Core.Initialize()
5) Observe crash with no Unity exception logged. The only exception logged is this:
 
JNI DETECTED ERROR IN APPLICATION: java_class == null
 in call to GetStaticFieldID 
 
This has been reported to Unity several times:
 
Downgrading Meta SDK version does not work.
1 REPLY 1

jacktionman
Honored Guest

Were you able to resolve this?