App Runs fine after "Build and Run" but freezes when installed from APK
As the title says, I have an application I've built for Samsung GearVR that runs perfectly fine when I do a "Build and Run" from the Unity Editor, but freezes up and refuses to work if I "Build" to an APK, transfer that APK to the device, and install from the APK.
I know that the app loads because it has an initial scene that basically just runs a short script to determine which of the other scenes to load (basically a "loading" screen). I see the print statements in the logcat from this scene, and I see it running trying to load the next scene, but it just hangs up there.
As far as error messages go, I really don't even know. As far as I can tell, there are no errors that are directly tied to the application. Here's the console log just as the app launches, the print statements from one of my scripts, and the following log. There's nothing else printed in the console for about 30 seconds after this message.
08-30 19:13:51.953 3665 5860 I ActivityManager: START u0 {act=android.intent.action.MAIN typ=null flg=0x10200000 cmp=ComponentInfo{com.xxxxxx.xxxxxx/com.unity3d.player.UnityPlayerActivity}} from uid 10106 on display 0
08-30 19:13:51.958 3665 5860 D ActivityManager: ActivityRecord() Constructor : multiScreenAttrs=MultiScreenAttrs{mDisplayId=0, mBaseDisplayId=0, mBaseActivity=false}
08-30 19:13:51.958 3665 5860 W ActivityManager: GearVR not ready: not allowed to start VR Activity. activity=ComponentInfo{com.xxxxxx.xxxxxx/com.unity3d.player.UnityPlayerActivity} intent=Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.xxxxxx.xxxxxx/com.unity3d.player.UnityPlayerActivity launchParam=MultiScreenLaunchParams { mDisplayId=0 mFlags=0 } (has extras) } isVrActivity=true
08-30 19:13:52.096 3665 5837 I ActivityManager: START u0 {act=null typ=null flg=0x10000000 cmp=ComponentInfo{com.samsung.android.hmt.vrsvc/com.samsung.android.hmt.vrsvc.WaitActivity}} from uid 1000 on display 0
08-30 19:13:52.098 3665 5837 D ActivityManager: ActivityRecord() Constructor : multiScreenAttrs=MultiScreenAttrs{mDisplayId=0, mBaseDisplayId=0, mBaseActivity=false}
08-30 19:13:52.098 3665 5837 D ActivityManager: computeStackFocus: stackId=1
08-30 19:13:52.098 3665 5837 D ActivityManager: computeStackFocus: New stack r=ActivityRecord{307b28ad0 u0 com.samsung.android.hmt.vrsvc/.WaitActivity t-1} stackId=1
08-30 19:13:52.100 3665 5837 D ActivityManager: moveToFront() : reason=startedActivity setFocusedActivity isAttached=true TaskRecord{6b66d56d0 #156 A=com.samsung.android.hmt.vrsvc.wait U=0 StackId=1 sz=1}
08-30 19:13:52.100 3665 5837 D ActivityManager: setFocusStackUnchecked: reason=startedActivity setFocusedActivity focusCandidate=ActivityStack{c061cf9d0 stackId=1, 2 tasks} caller=com.android.server.am.ActivityStack.moveToFront:875 com.android.server.am.ActivityStackSupervisor.moveActivityStackToFront:2006
08-30 19:13:52.102 3665 5837 D ActivityManager: resumeTopActivityInnerLocked() : #1 prevTask=TaskRecord{6b66d56d0 #156 A=com.samsung.android.hmt.vrsvc.wait U=0 StackId=1 sz=1} next=ActivityRecord{307b28ad0 u0 com.samsung.android.hmt.vrsvc/.WaitActivity t156} mFocusedStack=ActivityStack{c061cf9d0 stackId=1, 2 tasks}
08-30 19:13:52.106 3665 5669 D ActivityManager: clearAppIconInfo()
08-30 19:13:52.107 3665 5669 D ActivityManager: resumeTopActivityInnerLocked() : #1 prevTask=TaskRecord{636bbc7d0 #63 A=com.sec.android.app.launcher U=0 StackId=0 sz=1} next=ActivityRecord{307b28ad0 u0 com.samsung.android.hmt.vrsvc/.WaitActivity t156} mFocusedStack=ActivityStack{c061cf9d0 stackId=1, 2 tasks}
08-30 19:13:52.107 3665 5669 D ActivityManager: applyOptionsLocked(), pendingOptions : null
08-30 19:13:52.187 3665 3689 D ActivityManager: post active user change for 0 fullscreen true isHomeActivity() false
08-30 19:13:52.315 3665 3711 I ActivityManager: Displayed com.samsung.android.hmt.vrsvc/.WaitActivity: +208ms
08-30 19:13:57.518 3665 4890 D PackageManager: setEnabledSetting : userId = 0 packageName = com.samsung.android.hmt.vrsvc cmp = com.samsung.android.hmt.vrsvc.service.NotificationListener newState = 1 callingPackage = 1000
08-30 19:13:57.616 3665 3689 D PackageManager: setEnabledSetting : userId = 0 packageName = com.samsung.android.hmt.vrsvc cmp = com.samsung.android.hmt.vrsvc.receiver.DeviceEventReceiver newState = 1 callingPackage = 1000
08-30 19:13:57.682 3665 4304 D PackageManager: setEnabledSetting : userId = 0 packageName = com.samsung.android.app.galaxyfinder cmp = null newState = 2 callingPackage = com.samsung.android.hmt.vrsvc
08-30 19:13:57.797 3665 5860 D PackageManager: setEnabledSetting : userId = 0 packageName = com.samsung.android.hmt.vrsvc cmp = com.samsung.android.hmt.vrsvc.receiver.BootReceiver newState = 1 callingPackage = 1000
08-30 19:13:58.364 3665 3897 D PackageManager: setEnabledSetting : userId = 0 packageName = com.samsung.android.app.taskedge cmp = com.samsung.android.app.taskedge.InstallShortcutReceiver newState = 2 callingPackage = 10082
08-30 19:13:58.404 3665 5629 I ActivityManager: START u0 {act=null typ=null flg=0x10010000 cmp=ComponentInfo{com.samsung.android.hmt.vrsvc/com.samsung.android.hmt.vrsvc.MonoActivity}} from uid 1000 on display 0
08-30 19:13:58.406 3665 5629 D ActivityManager: ActivityRecord() Constructor : multiScreenAttrs=MultiScreenAttrs{mDisplayId=0, mBaseDisplayId=0, mBaseActivity=false}
08-30 19:13:58.411 3665 5629 D ActivityManager: moveToFront() : reason=startedActivity setFocusedActivity isAttached=true TaskRecord{a53fd52d0 #157 A=com.samsung.android.hmt.vrsvc.mono U=0 StackId=1 sz=1}
08-30 19:13:58.415 3665 5629 D ActivityManager: resumeTopActivityInnerLocked() : #1 prevTask=TaskRecord{a53fd52d0 #157 A=com.samsung.android.hmt.vrsvc.mono U=0 StackId=1 sz=1} next=ActivityRecord{9b2fac6d0 u0 com.samsung.android.hmt.vrsvc/.MonoActivity t157} mFocusedStack=ActivityStack{c061cf9d0 stackId=1, 3 tasks}
08-30 19:13:58.434 3665 4315 D ActivityManager: setAppIconInfo(), x : 0, y : 0, width : 0, height : 0, isHomeItem : false
08-30 19:13:58.452 3665 4315 D ActivityManager: resumeTopActivityInnerLocked() : #1 prevTask=TaskRecord{6b66d56d0 #156 A=com.samsung.android.hmt.vrsvc.wait U=0 StackId=1 sz=1} next=ActivityRecord{9b2fac6d0 u0 com.samsung.android.hmt.vrsvc/.MonoActivity t157} mFocusedStack=ActivityStack{c061cf9d0 stackId=1, 3 tasks}
08-30 19:13:58.455 3665 4315 D ActivityManager: applyOptionsLocked(), pendingOptions : null
08-30 19:13:58.482 3665 4315 I ActivityManager: Config changes=480 {0 1.0 themeSeq = 0 showBtnBg = 0 310mcc120mnc [en_US] ldltr sw360dp w640dp h336dp 640dpi nrml long land finger -keyb/v/h -nav/h mkbd/h s.46}
08-30 19:13:58.696 3665 5468 D ActivityManager: post active user change for 0 fullscreen true isHomeActivity() false
08-30 19:13:58.911 3665 3711 I ActivityManager: Displayed com.samsung.android.hmt.vrsvc/.MonoActivity: +456ms
08-30 19:13:58.985 3665 5669 I ActivityManager: START u0 {act=android.intent.action.MAIN typ=null flg=0x10200000 cmp=ComponentInfo{com.xxxxxx.xxxxxx/com.unity3d.player.UnityPlayerActivity}} from uid 1000 on display 0
08-30 19:13:58.988 3665 5669 D ActivityManager: ActivityRecord() Constructor : multiScreenAttrs=MultiScreenAttrs{mDisplayId=0, mBaseDisplayId=0, mBaseActivity=false}
08-30 19:13:58.993 3665 5669 D ActivityManager: moveToFront() : reason=startedActivity setFocusedActivity isAttached=true TaskRecord{3062329d0 #158 A=com.xxxxxx.xxxxxx U=0 StackId=1 sz=1}
08-30 19:13:58.995 3665 5669 D ActivityManager: resumeTopActivityInnerLocked() : #1 prevTask=TaskRecord{3062329d0 #158 A=com.xxxxxx.xxxxxx U=0 StackId=1 sz=1} next=ActivityRecord{c63a12dd0 u0 com.xxxxxx.xxxxxx/com.unity3d.player.UnityPlayerActivity t158} mFocusedStack=ActivityStack{c061cf9d0 stackId=1, 3 tasks}
08-30 19:13:59.025 3665 5686 D ActivityManager: resumeTopActivityInnerLocked() : #1 prevTask=TaskRecord{a53fd52d0 #157 A=com.samsung.android.hmt.vrsvc.mono U=0 StackId=1 sz=1} next=ActivityRecord{c63a12dd0 u0 com.xxxxxx.xxxxxx/com.unity3d.player.UnityPlayerActivity t158} mFocusedStack=ActivityStack{c061cf9d0 stackId=1, 3 tasks}
08-30 19:13:59.025 3665 5686 D ActivityManager: applyOptionsLocked(), pendingOptions : null
08-30 19:13:59.039 3665 5686 I ActivityManager: Start proc 25001:com.xxxxxx.xxxxxx/u0a237 for activity com.xxxxxx.xxxxxx/com.unity3d.player.UnityPlayerActivity
08-30 19:13:59.081 3665 5629 I ActivityManager: DSS on for com.xxxxxx.xxxxxx and scale is 1.0
08-30 19:13:59.179 3665 4890 D ActivityManager: post active user change for 0 fullscreen true isHomeActivity() false
08-30 19:13:59.286 3665 3711 I ActivityManager: Displayed com.xxxxxx.xxxxxx/com.unity3d.player.UnityPlayerActivity: +261ms
08-30 19:13:59.290 25001 25019 I Unity : SystemInfo CPU = ARMv7 VFPv3 NEON, Cores = 8, Memory = 2676mb
08-30 19:13:59.290 25001 25019 I Unity : SystemInfo ARM big.LITTLE configuration: 4 big (mask: 240), 4 little (mask: 15)
08-30 19:13:59.291 25001 25019 I Unity : ApplicationInfo com.xxxxxx.xxxxxx version 2.2 build f0339a19-ce2c-4d73-8f40-5f1d5441ff55
08-30 19:13:59.347 25001 25019 E Unity : Unable to find AudioPluginOculusSpatializer
08-30 19:13:59.348 25001 25019 E Unity : Unable to find libAudioPluginOculusSpatializer
08-30 19:13:59.385 25001 25019 D Unity : GL_EXT_debug_marker GL_ARM_rgba8 GL_ARM_mali_shader_binary GL_OES_depth24 GL_OES_depth_texture GL_OES_depth_texture_cube_map GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_EXT_read_format_bgra GL_OES_compressed_paletted_texture GL_OES_compressed_ETC1_RGB8_texture GL_OES_standard_derivatives GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_EGL_image_external_essl3 GL_OES_EGL_sync GL_OES_texture_npot GL_OES_vertex_half_float GL_OES_required_internalformat GL_OES_vertex_array_object GL_OES_mapbuffer GL_EXT_texture_format_BGRA8888 GL_EXT_texture_rg GL_EXT_texture_type_2_10_10_10_REV GL_OES_fbo_render_mipmap GL_OES_element_index_uint GL_EXT_shadow_samplers GL_OES_texture_compression_astc GL_KHR_texture_compression_astc_ldr GL_KHR_texture_compression_astc_hdr GL_KHR_texture_compression_astc_sliced_3d GL_KHR_debug GL_EXT_occlusion_query_boolean GL_EXT_disjoint_timer_query GL_EXT_blend_minmax GL_EXT_discard_framebuffer GL_OES_get_program_binary GL_OES_texture_3D GL_EXT_texture_storage GL_EXT_multisampled_render_
08-30 19:13:59.385 25001 25019 D Unity : to_texture GL_OES_surfaceless_context GL_OES_texture_stencil8 GL_EXT_shader_pixel_local_storage GL_ARM_shader_framebuffer_fetch GL_ARM_shader_framebuffer_fetch_depth_stencil GL_ARM_mali_program_binary GL_EXT_sRGB GL_EXT_sRGB_write_control GL_EXT_texture_sRGB_decode GL_EXT_texture_sRGB_R8 GL_EXT_texture_sRGB_RG8 GL_KHR_blend_equation_advanced GL_KHR_blend_equation_advanced_coherent GL_OES_texture_storage_multisample_2d_array GL_OES_shader_image_atomic GL_EXT_robustness GL_EXT_draw_buffers_indexed GL_OES_draw_buffers_indexed GL_EXT_texture_border_clamp GL_OES_texture_border_clamp GL_EXT_texture_cube_map_array GL_OES_texture_cube_map_array GL_OES_sample_variables GL_OES_sample_shading GL_OES_shader_multisample_interpolation GL_EXT_shader_io_blocks GL_OES_shader_io_blocks GL_EXT_tessellation_shader GL_OES_tessellation_shader GL_EXT_primitive_bounding_box GL_OES_primitive_bounding_box GL_EXT_geometry_shader GL_OES_geometry_shader GL_ANDROID_extension_pack_es31a GL_EXT_gpu_shader5 GL_OES_gpu_shader5 GL_EXT_texture
08-30 19:13:59.385 25001 25019 D Unity : _buffer GL_OES_texture_buffer GL_EXT_copy_image GL_OES_copy_image GL_EXT_color_buffer_half_float GL_EXT_color_buffer_float GL_EXT_YUV_target GL_OVR_multiview GL_OVR_multiview2 GL_OVR_multiview_multisampled_render_to_texture GL_KHR_robustness GL_KHR_robust_buffer_access_behavior GL_EXT_draw_elements_base_vertex GL_OES_draw_elements_base_vertex GL_EXT_protected_textures
08-30 19:14:00.029 3665 3689 I ActivityManager: Start proc 25077:com.samsung.android.app.vr.input.service/u0a212 for service com.samsung.android.app.vr.input.service/.SamsungVRInputService
08-30 19:14:00.057 3665 5688 I ActivityManager: DSS on for com.samsung.android.app.vr.input.service and scale is 1.0
08-30 19:14:04.924 25001 25019 I Unity : Unity v2017.1.0f3, Oculus Utilities v1.14.0, OVRPlugin v1.14.0, SDK v1.1.5.0.
08-30 19:14:04.924 25001 25019 I Unity :
08-30 19:14:04.924 25001 25019 I Unity : (Filename: ./artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
08-30 19:14:04.924 25001 25019 I Unity :
08-30 19:14:04.963 25001 25019 I Unity : Global controller awake.
08-30 19:14:04.963 25001 25019 I Unity :
08-30 19:14:04.963 25001 25019 I Unity : (Filename: ./artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
08-30 19:14:04.963 25001 25019 I Unity :
08-30 19:14:04.993 25001 25019 I Unity : Starting GlobalController...
08-30 19:14:04.993 25001 25019 I Unity :
08-30 19:14:04.993 25001 25019 I Unity : (Filename: ./artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
08-30 19:14:04.993 25001 25019 I Unity :
08-30 19:14:05.084 25001 25019 I Unity : hasExtra = False
08-30 19:14:05.084 25001 25019 I Unity :
08-30 19:14:05.084 25001 25019 I Unity : (Filename: ./artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
08-30 19:14:05.084 25001 25019 I Unity :
08-30 19:14:05.084 25001 25019 I Unity : App launched with no extra arguments. Read arguments...
08-30 19:14:05.084 25001 25019 I Unity :
08-30 19:14:05.084 25001 25019 I Unity : (Filename: ./artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
08-30 19:14:05.084 25001 25019 I Unity :
08-30 19:14:05.088 25001 25019 I Unity : nextSceneNum = 0
08-30 19:14:05.088 25001 25019 I Unity :
08-30 19:14:05.088 25001 25019 I Unity : (Filename: ./artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
08-30 19:14:05.088 25001 25019 I Unity :
08-30 19:14:05.090 25001 25019 I Unity : SceneName = scene1Name
08-30 19:14:05.090 25001 25019 I Unity :
08-30 19:14:05.090 25001 25019 I Unity : (Filename: ./artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
08-30 19:14:05.090 25001 25019 I Unity :
08-30 19:14:07.819 3665 3665 W PackageManager: STAHP USING HIDDEN APIS KTHX
08-30 19:14:07.854 3665 5302 D PackageManager: setEnabledSetting : userId = 0 packageName = com.google.android.apps.plus cmp = com.google.android.apps.plus.phone.PhotosLegacyLauncherActivity newState = 1 callingPackage = 10194
08-30 19:14:07.872 3665 24983 D PackageManager: setEnabledSetting : userId = 0 packageName = com.google.android.apps.plus cmp = com.google.android.libraries.social.cropper.standaloneactivity.StandaloneCropActivityAlias newState = 1 callingPackage = 10194
08-30 19:14:07.889 3665 3665 W PackageManager: STAHP USING HIDDEN APIS KTHX
08-30 19:14:07.980 3665 3665 W PackageManager: STAHP USING HIDDEN APIS KTHX
08-30 19:14:19.171 3665 24984 I ActivityManager: KPU : put [com.wssnps] : 4033 K
08-30 19:14:19.171 3665 24984 I ActivityManager: Killing 23029:com.wssnps/1000 (adj 906): DHA:empty #31
08-30 19:14:19.192 3665 4304 D ActivityManager: cleanUpApplicationRecord -- 23029
Your answer
Follow this Question
Related Questions
Camera FOV is adjustable in editor but not in Android Phone build (Google VR 1.6 and Unity 5.6.1f1) 1 Answer
Help with google vr for android api 0 Answers
[Android VR app build error] CommandInvokationFailure: Gradle build failed. 0 Answers
No GearVR in My app, But it always start GearVR when I start my app! 0 Answers