Download

Error installing and crash launching OculusQuest application

After cooking the UE4 VR template for OculusQuest, trying to install it on the device using the Install_*.bat and launch it doesn’t work.
The OculusQuest device is connected via USB and the “adb devices” command shows it.
Currently using binary UE4.24.3.
Attached output messages and images.

[SPOILER]


C:\builds\Android_ASTC>setlocal
C:\builds\Android_ASTC>if NOT "" == "" (call \HostWin64\Android\SetupEnvironmentVars.bat )
C:\builds\Android_ASTC>set ANDROIDHOME=C:\NVPACK\android-sdk-windows
C:\builds\Android_ASTC>if "C:\NVPACK\android-sdk-windows" == "" set ANDROIDHOME=C:\NVPACK\android-sdk-windows
C:\builds\Android_ASTC>set ADB=C:\NVPACK\android-sdk-windows\platform-tools\adb.exe
C:\builds\Android_ASTC>set DEVICE=
C:\builds\Android_ASTC>if not "" == "" set DEVICE=-s
C:\builds\Android_ASTC>for /F "delims=" %A in ('C:\NVPACK\android-sdk-windows\platform-tools\adb.exe shell "echo $EXTERNAL_STORAGE"') do @set STORAGE=%A

Uninstalling existing application. Failures here can almost always be ignored.

C:\builds\Android_ASTC>C:\NVPACK\android-sdk-windows\platform-tools\adb.exe  uninstall com.YourCompany.OculustQuestTest

Exception occurred while dumping:
java.lang.IllegalArgumentException: Unknown package: com.YourCompany.OculustQuestTest
        at com.android.server.pm.Settings.isOrphaned(Settings.java:4134)
        at com.android.server.pm.PackageManagerService.isOrphaned(PackageManagerService.java:18450)
        at com.android.server.pm.PackageManagerService.deletePackage(PackageManagerService.java:15855)
        at com.android.server.pm.PackageInstallerService.uninstall(PackageInstallerService.java:903)
        at com.android.server.pm.PackageManagerShellCommand.runUninstall(PackageManagerShellCommand.java:792)
        at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:118)
        at android.os.ShellCommand.exec(ShellCommand.java:94)
        at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:18710)
        at android.os.Binder.shellCommand(Binder.java:468)
        at android.os.Binder.onTransact(Binder.java:367)
        at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:2399)
        at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:3160)
        at android.os.Binder.execTransact(Binder.java:565)

Installing existing application. Failures here indicate a problem with the device (connection or storage permissions) and are fatal.

C:\builds\Android_ASTC>C:\NVPACK\android-sdk-windows\platform-tools\adb.exe  install OculustQuestTest-armv7-es2.apk
Success

C:\builds\Android_ASTC>C:\NVPACK\android-sdk-windows\platform-tools\adb.exe  shell rm -r /sdcard/UE4Game/OculustQuestTest
rm: /sdcard/UE4Game/OculustQuestTest: No such file or directory

C:\builds\Android_ASTC>C:\NVPACK\android-sdk-windows\platform-tools\adb.exe  shell rm -r /sdcard/UE4Game/UE4CommandLine.txt
rm: /sdcard/UE4Game/UE4CommandLine.txt: No such file or directory

C:\builds\Android_ASTC>C:\NVPACK\android-sdk-windows\platform-tools\adb.exe  shell rm -r /sdcard/obb/com.YourCompany.OculustQuestTest

C:\builds\Android_ASTC>C:\NVPACK\android-sdk-windows\platform-tools\adb.exe  shell rm -r /sdcard/Android/obb/com.YourCompany.OculustQuestTest
rm: /sdcard/Android/obb/com.YourCompany.OculustQuestTest: No such file or directory

C:\builds\Android_ASTC>C:\NVPACK\android-sdk-windows\platform-tools\adb.exe  shell rm -r /sdcard/Download/obb/com.YourCompany.OculustQuestTest
rm: /sdcard/Download/obb/com.YourCompany.OculustQuestTest: No such file or directory

Installing new data. Failures here indicate storage problems (missing SD card or bad permissions) and are fatal.

C:\builds\Android_ASTC>C:\NVPACK\android-sdk-windows\platform-tools\adb.exe  push main.1.com.YourCompany.OculustQuestTest.obb /sdcard/obb/com.YourCompany.OculustQuestTest/main.1.com.YourCompany.OculustQuestTest.obb
main.1.com.YourCompany.OculustQuestTest.obb: 1 file pushed. 29.9 MB/s (104420935 bytes in 3.332s)

C:\builds\Android_ASTC>if "0" NEQ "0" goto Error
C:\builds\Android_ASTC>pause
Press any key to continue . . .

[/SPOILER]

[SPOILER]



[/SPOILER]

Does anyone have any idea why it throws this error?

I attach images of Android settings too:

[SPOILER]





[/SPOILER]

Greetings.

Has this error occurred to anyone?

Hi Helghast, I’ve build and deployed simple games to Quest, but I’m no expert.

In my case, I remember File -> Package -> Android (ASTC) and the .bat file “worked”. I remember running it twice. Once to clear the “Launch -> Quest” version.

The “Failed to stat” error means adb can’t find the file. I didn’t have to used adb directly.

Hey thanks FunAndFriendly.

But when launching it on the device the application crashes.
We are using a StereoPanoramic plugin, and it doesn’t seem to package it. This is the log error:


03-25 19:20:30.241 11033 11053 D UE4     : LogPluginManager: Error: Unable to load plugin 'StereoPanoramicPlayer'. Aborting.
03-25 19:20:30.245 11033 11053 D UE4     : Assertion failed: false [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/Launch/Private/Android/LaunchAndroid.cpp] [Line: 463]
03-25 19:20:30.245 11033 11053 D UE4     : Engine Preinit Failed
03-25 19:20:30.246 11033 11053 D UE4     : Assertion failed: false [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/Launch/Private/Android/LaunchAndroid.cpp] [Line: 463]
03-25 19:20:30.246 11033 11053 D UE4     : Engine Preinit Failed
03-25 19:20:30.246 11033 11053 D UE4     : LogAndroid: Error: === Critical error: ===
03-25 19:20:30.246 11033 11053 D UE4     : LogAndroid: Error:
03-25 19:20:30.246 11033 11053 D UE4     : LogAndroid: Error: Assertion failed: false [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/Launch/Private/Android/LaunchAndroid.cpp] [Line: 463]
03-25 19:20:30.246 11033 11053 D UE4     : LogAndroid: Error: Engine Preinit Failed
03-25 19:20:30.246 11033 11053 D UE4     : LogAndroid: Error: [Callstack] 0x00000000CD65B54C libUE4.so(0x000000000880954C)!void FDebug::CheckVerifyFailed<char16_t [22]>(char const*, char const*, int, char16_t const (&) [22])  ]
03-25 19:20:30.246 11033 11053 D UE4     : LogAndroid: Error: [Callstack] 0x00000000C85CDECC libUE4.so(0x000000000377BECC)!AndroidMain(android_app*)  ]
03-25 19:20:30.246 11033 11053 D UE4     : LogAndroid: Error: [Callstack] 0x00000000C85DF1FC libUE4.so(0x000000000378D1FC)!android_main()  ]
03-25 19:20:30.246 11033 11053 D UE4     : LogAndroid: Error: [Callstack] 0x00000000C86095C8 libUE4.so(0x00000000037B75C8)![Unknown]()  ]
03-25 19:20:30.246 11033 11053 D UE4     : LogAndroid: Error: [Callstack] 0x00000000ED63BD84 libc.so(0x0000000000047D84)![Unknown]()  ]
03-25 19:20:30.246 11033 11053 D UE4     : LogAndroid: Error: [Callstack] 0x00000000ED60E036 libc.so(0x000000000001A036)![Unknown]()  ]
03-25 19:20:30.246 11033 11053 D UE4     : LogAndroid: Error:
03-25 19:20:30.246 11033 11053 D UE4     : LogAndroid: Error:
03-25 19:20:30.246 11033 11053 D UE4     : LogAndroid: Error:
03-25 19:20:30.246 11033 11053 D UE4     : LogAndroid: Error:
03-25 19:20:30.278 11033 11053 D UE4     : LogAndroid: FAndroidMisc::RequestExit(1)
03-25 19:20:30.278 11033 11053 I art     : System.exit called, status: 0

Where is it configured to be packaged?


Greetings.

Helghast, have you tried removing the plugin, and compiling? You can disable it in Edit / Plugins.

Yes. Disabling the plugin runs perfect.
But we need the plugin for our project. When I cook the project, the plugin is not packaged, and app crashed.

We are using a 100% Blueprint type project.
Maybe it has to be code type.

Greetings.

have you tried reaching UNAmedia here:

Yes, I have contacted them.
Adding a CPP class to the project and repackaging it seems to work fine on the OculusQuest device.
At the moment it seems that the difference is that if the project is a Blueprint type, it does not package the plugin or any of its dependencies well.

Greetings.