cancel
Showing results for 
Search instead for 
Did you mean: 

Unity Oculus Go app - Grey Screen before splash screen [Solved]

RafaelBarbosa
Level 3
Hey,

So I'm porting a game from Cardboard to Oculus Go and GearVR. At first, the game just stopped working, seems like I had to change a like on the Manifest file. Great, but now it just doesn't launch. It get's stuck on a dark grey screen without ever loading even the splash screen. I'm using unity 2018.3.1f1



I had to change this line:
        <activity android:name="com.unity3d.player.UnityPlayerActivity"
This is my Manifest File
<?xml version="1.0" encoding="utf-8"?>

<manifest xmlns:android="http://schemas.android.com/apk/res/android">
    <application android:icon="@drawable/app_icon"
                 android:label="@string/app_name">
        <activity android:name="com.unity3d.player.UnityPlayerActivity"
                  android:label="@string/app_name"
                  android:screenOrientation="landscape"
                  android:launchMode="singleTask"
                  android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|fontScale">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
                <category android:name="com.google.intent.category.CARDBOARD" />
            </intent-filter>
            <meta-data android:name="unityplayer.UnityActivity" android:value="true" />
        </activity>
        <meta-data android:name="IMMERSIVE_MODE" android:value="true" />
    </application>
    <!-- Set target sdk version to Lollipop to prevent issues with Marshmallow's runtime permissions. -->
    <uses-sdk android:minSdkVersion="16" android:targetSdkVersion="22" />
    <uses-feature android:glEsVersion="0x00020000" />
    <uses-feature android:name="android.hardware.sensor.accelerometer" android:required="true"/>
    <uses-feature android:name="android.hardware.sensor.gyroscope" android:required="true"/>
    <uses-permission android:name="android.permission.NFC"/>
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.INTERNET" />
</manifest>

This is the log:

02-23 16:54:04.078: I/ActivityManager(983): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10010000 pkg=com.mindfitnesslab.mindfitness cmp=com.mindfitnesslab.mindfitness/com.unity3d.player.UnityPlayerActivity (has extras)} from uid 10021 on display 0
02-23 16:54:04.624: I/ActivityManager(983): Start proc 2300:com.mindfitnesslab.mindfitness/u0a81 for activity com.mindfitnesslab.mindfitness/com.unity3d.player.UnityPlayerActivity
02-23 17:44:32.545: I/ActivityManager(983): Force finishing activity ActivityRecord{91a233c u0 com.mindfitnesslab.mindfitness/com.unity3d.player.UnityPlayerActivity t215}
02-23 17:45:03.910: I/ActivityManager(983): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.INFO] flg=0x10010000 pkg=com.mindfitnesslab.mindfitness cmp=com.mindfitnesslab.mindfitness/com.unity3d.player.UnityPlayerActivity (has extras)} from uid 10021 on display 0
02-23 17:45:04.453: I/ActivityManager(983): Start proc 3258:com.mindfitnesslab.mindfitness/u0a81 for activity com.mindfitnesslab.mindfitness/com.unity3d.player.UnityPlayerActivity
02-23 17:53:02.768: I/ActivityManager(983): Force finishing activity ActivityRecord{96c94a0 u0 com.mindfitnesslab.mindfitness/com.unity3d.player.UnityPlayerActivity t217}
02-23 17:54:14.968: I/ActivityManager(983): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.INFO] flg=0x10010000 pkg=com.mindfitnesslab.mindfitness cmp=com.mindfitnesslab.mindfitness/com.unity3d.player.UnityPlayerActivity (has extras)} from uid 10021 on display 0
02-23 17:54:15.507: I/ActivityManager(983): Start proc 3547:com.mindfitnesslab.mindfitness/u0a81 for activity com.mindfitnesslab.mindfitness/com.unity3d.player.UnityPlayerActivity
02-23 17:55:49.881: I/ActivityManager(983): Force finishing activity ActivityRecord{d3889a4 u0 com.mindfitnesslab.mindfitness/com.unity3d.player.UnityPlayerActivity t219}
02-23 17:55:56.677: I/ActivityManager(983): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.INFO] flg=0x10010000 pkg=com.mindfitnesslab.mindfitness cmp=com.mindfitnesslab.mindfitness/com.unity3d.player.UnityPlayerActivity (has extras)} from uid 10021 on display 0
02-23 17:55:57.211: I/ActivityManager(983): Start proc 3719:com.mindfitnesslab.mindfitness/u0a81 for activity com.mindfitnesslab.mindfitness/com.unity3d.player.UnityPlayerActivity
02-23 18:05:28.529: I/ActivityManager(983): Force finishing activity ActivityRecord{e38f1d5 u0 com.mindfitnesslab.mindfitness/com.unity3d.player.UnityPlayerActivity t220}
02-23 18:05:29.742: I/ActivityManager(983): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.mindfitnesslab.mindfitness/com.unity3d.player.UnityPlayerActivity} from uid 2000 on display 0
02-23 18:05:57.681: I/ActivityManager(983): Start proc 3995:com.mindfitnesslab.mindfitness/u0a81 for activity com.mindfitnesslab.mindfitness/com.unity3d.player.UnityPlayerActivity
02-23 18:17:08.580: I/ActivityManager(983): Force finishing activity ActivityRecord{2a81cb1 u0 com.mindfitnesslab.mindfitness/com.unity3d.player.UnityPlayerActivity t222}
02-23 18:17:09.696: D/NonVrActivityIntentWrapper(983): Is Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.mindfitnesslab.mindfitness/com.unity3d.player.UnityPlayerActivity }, a valid launch intent: true
02-23 18:17:09.697: I/ActivityManager(983): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.mindfitnesslab.mindfitness/com.unity3d.player.UnityPlayerActivity} from uid 2000 on display 0
02-23 18:18:07.086: I/ActivityManager(983): Start proc 4325:com.mindfitnesslab.mindfitness/u0a81 for activity com.mindfitnesslab.mindfitness/com.unity3d.player.UnityPlayerActivity
02-23 18:18:07.267: I/ActivityManager(983): Displayed com.mindfitnesslab.mindfitness/com.unity3d.player.UnityPlayerActivity: +191ms
02-23 18:18:08.135: W/Unity(4325): This message has been deprecated and will be removed in a later version of Unity.
02-23 18:18:08.202: W/Unity(4325): This message has been deprecated and will be removed in a later version of Unity.
02-23 18:18:08.311: W/Unity(4325): This message has been deprecated and will be removed in a later version of Unity.
02-23 18:18:08.560: I/OVRPlugin(4325): CompositorVRAPI::PreInitialize: use default UnityPlayer activity
02-23 18:18:08.704: A/art(4325): art/runtime/java_vm_ext.cc:470] from boolean com.unity3d.player.UnityPlayer.nativeRender()
02-23 18:18:08.704: A/art(4325): art/runtime/java_vm_ext.cc:470] "UnityMain" prio=5 tid=11 Runnable
02-23 18:18:08.705: A/art(4325): art/runtime/java_vm_ext.cc:470] native: #20 pc 000038e1 /data/app/com.mindfitnesslab.mindfitness-1/oat/arm/base.odex (Java_com_unity3d_player_UnityPlayer_nativeRender__+76)
02-23 18:18:08.705: A/art(4325): art/runtime/java_vm_ext.cc:470] at com.unity3d.player.UnityPlayer.nativeRender(Native method)
02-23 18:18:08.705: A/art(4325): art/runtime/java_vm_ext.cc:470] at com.unity3d.player.UnityPlayer.c(unavailable:-1)
02-23 18:18:08.705: A/art(4325): art/runtime/java_vm_ext.cc:470] at com.unity3d.player.UnityPlayer$e$2.queueIdle(unavailable:-1)
02-23 18:18:08.705: A/art(4325): art/runtime/java_vm_ext.cc:470] at com.unity3d.player.UnityPlayer$e.run(unavailable:-1)
02-23 18:18:08.804: A/art(4325): art/runtime/runtime.cc:422] "UnityMain" prio=5 tid=11 Native
02-23 18:18:08.805: A/art(4325): art/runtime/runtime.cc:422] at com.unity3d.player.UnityPlayer.nativeRender(Native method)
02-23 18:18:08.805: A/art(4325): art/runtime/runtime.cc:422] at com.unity3d.player.UnityPlayer.c(unavailable:-1)
02-23 18:18:08.805: A/art(4325): art/runtime/runtime.cc:422] at com.unity3d.player.UnityPlayer$e$2.queueIdle(unavailable:-1)
02-23 18:18:08.805: A/art(4325): art/runtime/runtime.cc:422] at com.unity3d.player.UnityPlayer$e.run(unavailable:-1)
02-23 18:18:08.805: A/art(4325): art/runtime/runtime.cc:422] "UnityMain" prio=5 tid=11 Runnable
02-23 18:18:08.805: A/art(4325): art/runtime/runtime.cc:422] native: #26 pc 000038e1 /data/app/com.mindfitnesslab.mindfitness-1/oat/arm/base.odex (Java_com_unity3d_player_UnityPlayer_nativeRender__+76)
02-23 18:18:08.805: A/art(4325): art/runtime/runtime.cc:422] at com.unity3d.player.UnityPlayer.nativeRender(Native method)
02-23 18:18:08.805: A/art(4325): art/runtime/runtime.cc:422] at com.unity3d.player.UnityPlayer.c(unavailable:-1)
02-23 18:18:08.805: A/art(4325): art/runtime/runtime.cc:422] at com.unity3d.player.UnityPlayer$e$2.queueIdle(unavailable:-1)
02-23 18:18:08.805: A/art(4325): art/runtime/runtime.cc:422] at com.unity3d.player.UnityPlayer$e.run(unavailable:-1)
02-23 18:18:08.915: E/CRASH(4325): pid: 4325, tid: 4340, name: UnityMain >>> com.mindfitnesslab.mindfitness <<<
02-23 18:18:08.922: E/MessageQueue(4325): pid: 4325, tid: 4340, name: UnityMain >>> com.mindfitnesslab.mindfitness <<<


1 REPLY 1

RafaelBarbosa
Level 3
Ow wow, I'm not exactly sure what fixed it for me. I'm fairly certain it was the Minify.

I disabled Minify which turns out was enabled, I also Disabled MultiThreaded Rendering, so I'm not quite sure what fixed it.