Welcome to the Oculus Developer Forums!

Your participation on the forum is subject to the Oculus Code of Conduct.

In general, please be respectful and kind. If you violate the Oculus Code of Conduct, your access to the developer forums may be revoked at the discretion of Oculus staff.

Cannot package for Quest with 4.25.3 (Oculus version)

Joost3dJoost3d Posts: 8
NerveGear
I'm unable to package with the latest version. I went through the new setup for Android studio for 4.25. I read elsewhere someone fixed it by disabling the OculusVR plugin. I get the following errors:

UATHelper: Packaging (Android (ASTC)): Z:\app\src\main\java\com\epicgames\ue4\GameActivity.java:208: error: cannot find symbolUATHelper: Packaging (Android (ASTC)): import android.support.v4.app.NotificationManagerCompat;UATHelper: Packaging (Android (ASTC)):                              ^UATHelper: Packaging (Android (ASTC)):   symbol:   class NotificationManagerCompatUATHelper: Packaging (Android (ASTC)):   location: package android.support.v4.appUATHelper: Packaging (Android (ASTC)): Z:\app\src\main\java\com\epicgames\ue4\GameActivity.java:209: error: package android.support.v4.content does not existUATHelper: Packaging (Android (ASTC)): import android.support.v4.content.FileProvider;UATHelper: Packaging (Android (ASTC)):                                  ^UATHelper: Packaging (Android (ASTC)): Z:\app\src\main\java\com\epicgames\ue4\network\NetworkChangedManager.java:25: error: cannot find symbolUATHelper: Packaging (Android (ASTC)):     private Set<WeakReference<NetworkChangedListener>> networkChangedListeners = new HashSet<>();UATHelper: Packaging (Android (ASTC)):                               ^UATHelper: Packaging (Android (ASTC)):   symbol:   class NetworkChangedListenerUATHelper: Packaging (Android (ASTC)):   location: class NetworkChangedManagerUATHelper: Packaging (Android (ASTC)): Z:\app\src\main\java\com\epicgames\ue4\network\NetworkChangedManager.java:84: error: cannot find symbolUATHelper: Packaging (Android (ASTC)):     public boolean addListener(WeakReference<NetworkChangedListener> listener) {UATHelper: Packaging (Android (ASTC)):                                              ^UATHelper: Packaging (Android (ASTC)):   symbol:   class NetworkChangedListenerUATHelper: Packaging (Android (ASTC)):   location: class NetworkChangedManagerUATHelper: Packaging (Android (ASTC)): Z:\app\src\main\java\com\epicgames\ue4\network\NetworkChangedManager.java:89: error: cannot find symbolUATHelper: Packaging (Android (ASTC)):     public boolean removeListener(WeakReference<NetworkChangedListener> listener) {UATHelper: Packaging (Android (ASTC)):                                                 ^UATHelper: Packaging (Android (ASTC)):   symbol:   class NetworkChangedListenerUATHelper: Packaging (Android (ASTC)):   location: class NetworkChangedManagerUATHelper: Packaging (Android (ASTC)): Z:\app\src\main\java\com\epicgames\ue4\network\NetworkConnectivityClient.java:6: error: package android.support.annotation does not existUATHelper: Packaging (Android (ASTC)): import android.support.annotation.NonNull;UATHelper: Packaging (Android (ASTC)):                                  ^UATHelper: Packaging (Android (ASTC)): Z:\app\src\main\java\com\epicgames\ue4\network\NetworkConnectivityClient.java:15: error: cannot find symbolUATHelper: Packaging (Android (ASTC)):     void initNetworkCallback(@NonNull Context context);


Tagged:

Comments

  • Joost3dJoost3d Posts: 8
    NerveGear
    I made some progressIn my case it was a "websocket" plugin I got from Github. The project has since been deleted. It had a UPL file which copied some files and enabled AndroidX (android.useAndroidX=true & android.enableJetifier=true) I commented out everything in that file and I managed to package successfully. But now the game crashes on launch, not sure if it's related to the plugin.
  • en-austinen-austin Posts: 26 Oculus Start Member
    Can you post a log file from the crash? Some information on how to collect the logs from Quest:

    https://developer.oculus.com/blog/developer-perspective-ue4-logging-and-console-commands-for-mobile-vr/?locale=en_US

  • Joost3dJoost3d Posts: 8
    NerveGear
    edited August 18
    There's no log for the game but here is the crash in the system log. Is that enough information? Only Arm64 crashes, armv7 doesn't.
    
    
    F DEBUG   : Build fingerprint: 'oculus/vr_monterey/monterey:7.1.1/NGI77B/821490.13210.0:user/release-keys'
    F DEBUG   : Revision: '0'
    F DEBUG   : ABI: 'arm64'
    F DEBUG   : pid: 5033, tid: 5033, name: .Pixnami.TronVR  >>> com.Pixnami.TronVR <<<
    F DEBUG   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
    F DEBUG   :     x0   0000000000000302  x1   0000000000000000  x2   0000000000000302  x3   0000007feb3b3fe0
    F DEBUG   :     x4   000000000000000c  x5   000000000000001a  x6   0000000000000047  x7   0000000000000001
    F DEBUG   :     x8   b24e7c54f05369cb  x9   b24e7c54f05369cb  x10  0000007f74dbc85c  x11  0000007f87b0ae02
    F DEBUG   :     x12  000000000000000a  x13  0000007f87b0ae04  x14  b24e7c54f05369cb  x15  000000000000002b
    F DEBUG   :     x16  0000007f93e38438  x17  0000007f93202200  x18  0000000000000030  x19  0000000000000000
    F DEBUG   :     x20  0000007f76b40020  x21  0000007f87b0a800  x22  0000007f87b0a800  x23  0000007f97504b30
    F DEBUG   :     x24  0000007feb3b3fb8  x25  ffffff80ffffffd0  x26  0000007feb3b4480  x27  0000007feb3b3f80
    F DEBUG   :     x28  0000007feb3b3fb8  x29  0000007feb3b4470  x30  0000007f6f71441c
    F DEBUG   :     sp   0000007feb3b3ef0  pc   0000007f6f714438  pstate 0000000080000000
    F DEBUG   : 
    F DEBUG   : backtrace:
    F DEBUG   :     #00 pc 0000000007f5b438  /data/app/com.Pixnami.TronVR-1/lib/arm64/libUE4.so (offset 0x6f04000) (_ZN13FOutputDevice8LogfImplEPKDsz+288)
    F DEBUG   :     #01 pc 0000000007d97db8  /data/app/com.Pixnami.TronVR-1/lib/arm64/libUE4.so (offset 0x6f04000) (_ZN14FMallocBinned225GetAllocationSizeExternalEPvRy+104)
    F DEBUG   :     #02 pc 0000000007e0516c  /data/app/com.Pixnami.TronVR-1/lib/arm64/libUE4.so (offset 0x6f04000) (_ZN18FMallocPoisonProxy4FreeEPv+56)
    F DEBUG   :     #03 pc 0000000007dd0788  /data/app/com.Pixnami.TronVR-1/lib/arm64/libUE4.so (offset 0x6f04000) (_ZN7FMemory4FreeEPv+292)
    F DEBUG   :     #04 pc 00000000000221f0  /data/app/com.Pixnami.TronVR-1/lib/arm64/libovrplatformloader.so
    F DEBUG   :     #05 pc 0000000000022304  /data/app/com.Pixnami.TronVR-1/lib/arm64/libovrplatformloader.so
    F DEBUG   :     #06 pc 0000000000011454  /system/bin/linker64 (__dl__ZN6soinfo10call_arrayEPKcPPFvvEmb+348)
    F DEBUG   :     #07 pc 000000000000f2fc  /system/bin/linker64 (__dl__ZN6soinfo17call_constructorsEv+140)
    F DEBUG   :     #08 pc 000000000000f140  /system/bin/linker64 (__dl__Z9do_dlopenPKciPK17android_dlextinfoPv+2112)
    F DEBUG   :     #09 pc 000000000000b788  /system/bin/linker64 (__dl_android_dlopen_ext+60)
    F DEBUG   :     #10 pc 00000000000046bc  /system/lib64/libnativeloader.so (_ZN7android17OpenNativeLibraryEP7_JNIEnviPKcP8_jobjectP8_jstring+244)
    F DEBUG   :     #11 pc 00000000003275e8  /system/lib64/libart.so (_ZN3art9JavaVMExt17LoadNativeLibraryEP7_JNIEnvRKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEP8_jobjectP8_jstringPS9_+1016)
    F DEBUG   :     #12 pc 0000000000004698  /system/lib64/libopenjdkjvm.so (JVM_NativeLoad+284)
    F DEBUG   :     #13 pc 00000000005de630  /system/framework/arm64/boot.oat (offset 0x54e000) (java.lang.Runtime.nativeLoad+204)
    F DEBUG   :     #14 pc 00000000005de0d0  /system/framework/arm64/boot.oat (offset 0x54e000) (java.lang.Runtime.doLoad+204)
    F DEBUG   :     #15 pc 00000000005dff00  /system/framework/arm64/boot.oat (offset 0x54e000) (java.lang.Runtime.loadLibrary0+748)
    F DEBUG   :     #16 pc 0000000000601c14  /system/framework/arm64/boot.oat (offset 0x54e000) (java.lang.System.loadLibrary+96)
    F DEBUG   :     #17 pc 00000000000d30e8  /system/lib64/libart.so (art_quick_invoke_static_stub+600)
    F DEBUG   :     #18 pc 00000000000dff80  /system/lib64/libart.so (_ZN3art9ArtMethod6InvokeEPNS_6ThreadEPjjPNS_6JValueEPKc+256)
    F DEBUG   :     #19 pc 00000000002bafa4  /system/lib64/libart.so (_ZN3art11interpreter34ArtInterpreterToCompiledCodeBridgeEPNS_6ThreadEPNS_9ArtMethodEPKNS_7DexFile8CodeItemEPNS_11ShadowFrameEPNS_6JValueE+312)
    F DEBUG   :     #20 pc 00000000002b3894  /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+528)
    F DEBUG   :     #21 pc 00000000005b12ac  /system/lib64/libart.so (MterpInvokeStatic+356)
    F DEBUG   :     #22 pc 00000000000c5994  /system/lib64/libart.so (ExecuteMterpImpl+14612)
    
    
  • en-austinen-austin Posts: 26 Oculus Start Member
    This looks like the same crash that is currently preventing my project from moving to UE 4.25. I've verified that I can run in Debug configuration, but Development and Shipping both crash with that same error/callstack.

    I'm debugging in my spare time but don't have much else to share currently.
  • Joost3dJoost3d Posts: 8
    NerveGear
    I'm putting this on hold for now but I'll post here if I do find something.
  • Joost3dJoost3d Posts: 8
    NerveGear
    Turns out this was because the "OnlineSubsystemGooglePlay" plugin needs to be enabled. Worked without any issues before 4.25.
  • motorsepmotorsep Posts: 1,503 Oculus Start Member
    Joost3d said:
    Turns out this was because the "OnlineSubsystemGooglePlay" plugin needs to be enabled. Worked without any issues before 4.25.
    That doesn't make sense.. 
  • Joost3dJoost3d Posts: 8
    NerveGear
    motorsep said:
    That doesn't make sense.. 
    Seems like the root cause is a plugin I made. If I disable it I can disable the Google play plugin without causing crashes. Not sure what the exact cause is, since the plugin doesn't use Google Play in any way. But I guess it might be one of the includes. Maybe AndroidPlatformMisc.h.
Sign In or Register to comment.