Skip to main content
New Participant
June 28, 2024
Solved

On device (Quest3) crash trying to perform Core.Initialize()

Hello
I experience an app crash when trying to execute Oculus.Platform.Core.Initialize(); on device.
App is configured, uploaded to ALPHA release channel and configured, deployed.
The app is working well when launched tethered via Quest Link (with a test account) but fail on device when launched standalone.

The reason reported in logs is a java.lang.ClassNotFoundException while libovrplatformloader is looking up for com.unity3d.player.UnityPlayer.

tried without no success :
- added com.unity3d.player.UnityPlayer to proguard-user.txt

- reduced stripping at min level

- tried a NEW minimalistic project, same results

- tried with Oculus SDK 65 and 66

 Unity version : 2023.2.20f1 

any hints ? 
crashlog :

runtime.cc:669] Pending exception java.lang.ClassNotFoundException: com.unity3d.player.UnityPlayer
CRASH pid: 15771, tid: 15792, name: UnityMain >>> com.noor.ApiTest <<<
#07 pc 000000000008e3b0 /data/app/~~H44prAjbDWvKby6Otkq6oQ==/com.noor.ApiTest-y01jQaTuXAP3N5Drye4C8w==/lib/arm64/libovrplatformloader.so (setupUnityShim+108) (BuildId: fb2ab492b7ca96ec244155ab17122707ecd0e48b)

 

    This topic has been closed for replies.
    jtriveri
    jtriveriAnswer
    Honored Contributor
    July 1, 2024

    I had this issue and could not find a fix on Unity 2023. The only solution I found was to use Unity 2022 : (

    2 replies

    jtriveri
    jtriveriAnswer
    Honored Contributor
    July 1, 2024

    I had this issue and could not find a fix on Unity 2023. The only solution I found was to use Unity 2022 : (

    gurubookAuthor
    New Participant
    July 3, 2024

    Tank you, switching to Unity 2022 resolved the issue.