cancel
Showing results for 
Search instead for 
Did you mean: 

Oculus Go: Cannot launch app - 'Failed to sendLaunchIntent'

mirabundus
Protege
Hi all,

I'm having issues launching the app from the alpha channel. I've uploaded the app with all the recommened settings for AndroidManifest but keep getting the following in the logs:

08-31 12:44:50.964: D/[OAR] PanelAppConfigurationUtil(1553): Retrieving panel configuration for com.astonishing - 
08-31 12:44:50.967: W/System.err(1553): java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.isEmpty()' on a null object reference
08-31 12:44:50.967: W/System.err(1553): at com.oculus.vrshell.util.PanelAppConfigurationUtil.buildPanelAppConfiguration(PanelAppConfigurationUtil.java:70)
08-31 12:44:50.968: W/System.err(1553): at com.oculus.vrshell.MainActivity.getPanelAppConfiguration(MainActivity.java:871)
08-31 12:44:50.968: W/PanelUtil_JNI(1553): JVM exception occurred: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.isEmpty()' on a null object reference - com.astonishing
08-31 12:44:50.969: I/[OAR] SystemUXController(1553): Registering pending External App launch for com.astonishing - overwriting existing launch? false.
08-31 12:44:50.975: I/RCTVR(1973): [info]: 'Library', [ 'library update received com.astonishing' ]
08-31 12:44:50.977: I/[OAR] Shell(1553): OvrApp::SendLaunchIntent('com.astonishing' '')
08-31 12:44:50.978: D/[OAR] MainActivity(1553): sendLaunchIntent: 'com.astonishing' command: ''
08-31 12:44:50.980: D/[OAR] MainActivity(1553): sendLaunchIntent: null destination activity
08-31 12:44:50.980: I/[OAR] Shell(1553): Failed to sendLaunchIntent.
The command `adb shell dumpsys package  com.astonishing` shows the following:

Activity Resolver Table:
Non-Data Actions:
android.intent.category.INFO:
291ba0b com.astonishing/.vr.VRActivity filter f9ab196
Action: "android.intent.action.MAIN"
Action: "android.intent.category.INFO"
AutoVerify=false
android.intent.action.MAIN:
291ba0b com.astonishing/.vr.VRActivity filter f9ab196
Action: "android.intent.action.MAIN"
Action: "android.intent.category.INFO"
AutoVerify=false

Service Resolver Table:
Non-Data Actions:
com.google.firebase.INSTANCE_ID_EVENT:
e3dc0e8 com.astonishing/com.sinch.android.rtc.internal.client.fcm.InstanceIDTokenService filter eea68b1
Action: "com.google.firebase.INSTANCE_ID_EVENT"
AutoVerify=false

Key Set Manager:
[com.astonishing]
Signing KeySets: 21

Packages:
Package [com.astonishing] (c820301):
userId=10061
pkg=Package{40bc5a6 com.astonishing}
codePath=/data/app/com.astonishing-1
resourcePath=/data/app/com.astonishing-1
legacyNativeLibraryDir=/data/app/com.astonishing-1/lib
primaryCpuAbi=armeabi-v7a
secondaryCpuAbi=null
versionCode=7 minSdk=23 targetSdk=26
versionName=1.0.6
splits=[base]
apkSigningVersion=1
applicationInfo=ApplicationInfo{39febe7 com.astonishing}
flags=[ HAS_CODE ALLOW_CLEAR_USER_DATA ALLOW_BACKUP LARGE_HEAP ]
privateFlags=[ RESIZEABLE_ACTIVITIES ]
dataDir=/data/user/0/com.astonishing
supportsScreens=[small, medium, large, xlarge, resizeable, anyDensity]
timeStamp=2018-08-31 12:43:56
firstInstallTime=2018-08-31 12:43:59
lastUpdateTime=2018-08-31 12:43:59
signatures=PackageSignatures{a20394 [ba8f532d]}
installPermissionsFixed=true installStatus=1
pkgFlags=[ HAS_CODE ALLOW_CLEAR_USER_DATA ALLOW_BACKUP LARGE_HEAP ]
requested permissions:
android.permission.INTERNET
android.permission.ACCESS_NETWORK_STATE
android.permission.RECORD_AUDIO
android.permission.MODIFY_AUDIO_SETTINGS
android.permission.READ_PHONE_STATE
android.permission.READ_EXTERNAL_STORAGE
com.samsung.android.hmt.permission.READ_SETTINGS
install permissions:
android.permission.MODIFY_AUDIO_SETTINGS: granted=true
android.permission.INTERNET: granted=true
android.permission.ACCESS_NETWORK_STATE: granted=true
User 0: ceDataInode=90114 installed=true hidden=false suspended=false stopped=true notLaunched=true enabled=0
gids=[3003]
runtime permissions:


Dexopt state:
[com.astonishing]
Instruction Set: arm
path: /data/app/com.astonishing-1/base.apk
status: /data/app/com.astonishing-1/oat/arm/base.odex [compilation_filter=interpret-only, status=kOatUpToDate]


Compiler stats:
[com.astonishing]
base.apk - 1778
The error is coming from the following in the ovr sdk (VrActivity):

Intent launchIntent = activity.getPackageManager().getLaunchIntentForPackage(packageName);
if (launchIntent == null) {
Log.d(TAG, "sendLaunchIntent: null destination activity");
return;
}
Raw manifest:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
android:sharedUserLabel="@string/shared_app_label"
android:installLocation="auto"
android:versionCode="7"
android:versionName="1.0.6"
package="com.astonishing"
tools:ignore="GradleOverrides">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher"
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:replace="android:icon,android:theme">

<meta-data
android:name="com.samsung.android.vr.application.mode"
android:value="vr_only" />

<activity
android:name="com.astonishing.vr.VRActivity"
android:excludeFromRecents="true"
android:launchMode="singleTask"
android:screenOrientation="landscape">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.category.INFO" />
</intent-filter>
</activity>
</application>

</manifest>

Anyone had this before? Must admit it has me stumped ....

Thanks!

4 REPLIES 4

mirabundus
Protege
No luck from this side still - I've been loading it via adb to test - it seems I can launch it fine using the adb tools, just not from the oculus launcher - same issue as above. Also, would it be possible to identify the package using the speech API? I can't set the latest build to Go in the console again due to a reference to the speech API and I need to remove it

mirabundus
Protege
Found the speech lib - it was related to GearVRF - so have removed that.

Still no joy though:

09-07 15:09:01.307 1574-1683/? W/System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.isEmpty()' on a null object reference
        at com.oculus.vrshell.util.PanelAppConfigurationUtil.buildPanelAppConfiguration(PanelAppConfigurationUtil.java:70)
        at com.oculus.vrshell.MainActivity.getPanelAppConfiguration(MainActivity.java:871)
09-07 15:09:01.307 1574-1683/? W/PanelUtil_JNI: JVM exception occurred: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.isEmpty()' on a null object reference - com.astonishing
09-07 15:09:01.308 1574-1683/? I/[OAR] SystemUXController: Registering pending External App launch for com.astonishing - overwriting existing launch? false.
09-07 15:09:01.316 1574-1683/? I/[OAR] Shell: OvrApp::SendLaunchIntent('com.astonishing' '')
09-07 15:09:01.318 1574-1683/? I/[OAR] Shell: Failed to sendLaunchIntent.
09-07 15:09:01.325 1968-2110/? I/RCTVR: [info]: 'Library', [ 'library update received com.astonishing' ]


<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:sharedUserLabel="@string/shared_app_label"
android:installLocation="auto"
android:versionCode="10"
android:versionName="1.0.10"
package="com.astonishing"
tools:ignore="GradleOverrides">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher"
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:replace="android:icon,android:theme">

<meta-data
android:name="com.samsung.android.vr.application.mode"
android:value="vr_only" />

<activity
android:name="com.astonishing.vr.VRActivity"
android:excludeFromRecents="true"
android:launchMode="singleTask"
android:exported="true"
android:screenOrientation="landscape">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.category.INFO" />
</intent-filter>
</activity>
</application>

</manifest>

mirabundus
Protege
The version in the store launches AOK from adb, but just flashes when I use the alpha channel release:

adb shell am start -n com.astonishing/.vr.VRActivity
Starting: Intent { cmp=com.astonishing/.vr.VRActivity }


mirabundus
Protege
And it's fixed: I had stupidly not put the android.intent.category.INFO into an action and not a category. It should be:

<intent-filter>
    <action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.INFO" />
</intent-filter>