Skip to main content
New Participant
June 1, 2024

Meta Platform SDK crashes when initialized with Unity OpenXR

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.
    This topic has been closed for replies.

    1 reply

    New Participant
    June 18, 2024

    Were you able to resolve this?