IMPORTANT:

All Oculus Quest developers MUST PASS the concept review prior to gaining publishing access to the Quest Store and additional resources. Submit a concept document for review as early in your Quest application development cycle as possible: https://developer.oculus.com/quest-pitch/

For additional information and context, please see "Submitting Your App to the Oculus Quest Store".
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.

Crash on Unity Scene load of Sample Framework Oculus v1.39

jackblockjackblock Posts: 3
NerveGear
edited July 31 in Oculus Quest Development
Hi, i'm able to build a testing unity project for my quest, and to see the first scene with HMD and controller tracking fine. However, using the SampleFramework's StartScene menu to load the DebugUI scene, it crashes my app back to the quest dashboard while loading. I made other builds of this project where i selected the DebugUI scene to be first to load, and there's no crash. It seems to be something about transitioning between the menu and the demos, not that the demos inherently crash the process..

I made two of my own simple testing scenes, with a timed scene load to swap between them, and there's no crash.

I'm using Unity 2019.1.7, and the latest Oculus package from the asset store (as of july 28th 2019). I followed the setup directions very closely, and never had trouble actually making the build or running the builds up until the demo scene loads.

Here's my adb logcat output approaching the crash. I see some warnings about the avatar loading etc, but those seem unconnected to the crash as the app ran fine until i triggered the debugui scene load:

07-30 18:42:45.633  1130  7377 I ActivityManager: Start proc 22451:tv.company.ovrtest/u0a59 for activity tv.company.ovrtest/com.unity3d.player.UnityPlayerActivity
07-30 18:42:45.892 22451 22465 I Unity   : XR UsableCoreMask: 0xe0
07-30 18:42:45.910  1130  1150 I ActivityManager: Displayed tv.company.ovrtest/com.unity3d.player.UnityPlayerActivity: +306ms
07-30 18:42:45.923 22451 22465 I Unity   : SystemInfo CPU = ARMv7 VFPv3 NEON, Cores = 3, Memory = 3790mb
07-30 18:42:45.923 22451 22465 I Unity   : SystemInfo ARM big.LITTLE configuration: 3 big (mask: 0xe0), 0 little (mask: 0x0)
07-30 18:42:45.924 22451 22465 I Unity   : ApplicationInfo tv.company.ovrtest version 0.1 build f59c3422-4dab-4433-9a96-f4076bc248a9
07-30 18:42:45.924 22451 22465 I Unity   : Built from '2019.1/staging' branch, Version '2019.1.7f1 (f3c4928e5742)', Build type 'Release', Scripting Backend 'mono', CPU 'armeabi-v7a', Stripping 'Disabled'
07-30 18:42:46.033 22451 22465 E Unity   : Unable to find libAudioPluginOculusSpatializer
07-30 18:42:46.055 22451 22465 D Unity   :  GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_EGL_sync GL_OES_vertex_half_float GL_OES_framebuffer_object GL_OES_rgb8_rgba8 GL_OES_compressed_ETC1_RGB8_texture GL_AMD_compressed_ATC_texture GL_KHR_texture_compression_astc_ldr GL_KHR_texture_compression_astc_hdr GL_OES_texture_compression_astc GL_OES_texture_npot GL_EXT_texture_filter_anisotropic GL_EXT_texture_format_BGRA8888 GL_EXT_read_format_bgra GL_OES_texture_3D GL_EXT_color_buffer_float GL_EXT_color_buffer_half_float GL_QCOM_alpha_test GL_OES_depth24 GL_OES_packed_depth_stencil GL_OES_depth_texture GL_OES_depth_texture_cube_map GL_EXT_sRGB GL_OES_texture_float GL_OES_texture_float_linear GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_EXT_texture_type_2_10_10_10_REV GL_EXT_texture_sRGB_decode GL_EXT_texture_format_sRGB_override GL_OES_element_index_uint GL_EXT_copy_image GL_EXT_geometry_shader GL_EXT_tessellation_shader GL_OES_texture_stencil8 GL_EXT_shader_io_blocks GL_OES_shader_image_atomic GL_OES_sample_variables GL_EXT_texture_b
07-30 18:42:46.055 22451 22465 D Unity   : order_clamp GL_EXT_EGL_image_external_wrap_modes GL_EXT_multisampled_render_to_texture GL_EXT_multisampled_render_to_texture2 GL_OES_shader_multisample_interpolation GL_EXT_texture_cube_map_array GL_EXT_draw_buffers_indexed GL_EXT_gpu_shader5 GL_EXT_robustness GL_EXT_texture_buffer GL_EXT_shader_framebuffer_fetch GL_ARM_shader_framebuffer_fetch_depth_stencil GL_OES_texture_storage_multisample_2d_array GL_OES_sample_shading GL_OES_get_program_binary GL_EXT_debug_label GL_KHR_blend_equation_advanced GL_KHR_blend_equation_advanced_coherent GL_QCOM_tiled_rendering GL_ANDROID_extension_pack_es31a GL_EXT_primitive_bounding_box GL_OES_standard_derivatives GL_OES_vertex_array_object GL_EXT_disjoint_timer_query GL_KHR_debug GL_EXT_YUV_target GL_EXT_sRGB_write_control GL_EXT_texture_norm16 GL_EXT_discard_framebuffer GL_OES_surfaceless_context GL_OVR_multiview GL_OVR_multiview2 GL_EXT_texture_sRGB_R8 GL_KHR_no_error GL_EXT_debug_marker GL_OES_EGL_image_external_essl3 GL_OVR_multiview_multisampled_render_to_texture GL_E
07-30 18:42:46.055 22451 22465 D Unity   : XT_buffer_storage GL_EXT_external_buffer GL_EXT_blit_framebuffer_params GL_EXT_clip_cull_distance GL_EXT_protected_textures GL_EXT_shader_non_constant_global_initializers GL_QCOM_texture_foveated GL_QCOM_shader_framebuffer_fetch_noncoherent GL_QCOM_shader_framebuffer_fetch_rate GL_EXT_memory_object GL_EXT_memory_object_fd GL_EXT_EGL_image_array GL_NV_shader_noperspective_interpolation GL_KHR_robust_buffer_access_behavior GL_EXT_EGL_image_storage GL_EXT_blend_func_extended GL_EXT_clip_control GL_OES_texture_view GL_EXT_fragment_invocation_density GL_QCOM_YUV_texture_gather
07-30 18:42:46.484 22451 22465 I OVRPlugin: CompositorVRAPI::PreInitialize: use default UnityPlayer activity
07-30 18:42:46.576 22451 22465 D VrRuntimeClient: VrRuntimeClient: initialize. inContext: [email protected]
07-30 18:42:46.760 22451 22465 D VrRuntimeClient: VrRuntimeClient: initialize. inContext: [email protected]
07-30 18:42:46.852 22451 22490 I VrApi   : APP ACTIVITY CLASS = com.unity3d.player.UnityPlayerActivity
07-30 18:42:46.928 22451 22490 D UnityVolumeReceiver: Registering volume receiver
07-30 18:42:46.933 22451 22490 D UnityVolumeReceiver: startVolumeReceiver: 12
07-30 18:42:46.936 22451 22490 D UnityBatteryReceiver: Registering battery receiver
07-30 18:42:46.940 22451 22490 W Unity   : Oculus Patched Thread Core Affinity on threads: 22465 and 22490
07-30 18:42:46.940 22451 22490 W Unity   :
07-30 18:42:46.940 22451 22490 W Unity   : (Filename: ./Modules/VR/Oculus/VROculus.cpp Line: 980)
07-30 18:42:46.940 22451 22490 W Unity   :
07-30 18:42:46.940 22451 22465 I Unity   : Created eye textures with a "separate" layout.  The "multi-pass" stereo mode will be used.
07-30 18:42:46.940 22451 22465 I Unity   :
07-30 18:42:51.715 22451 22465 I Unity   : Unity v2019.1.7f1, Oculus Utilities v1.39.0, OVRPlugin v1.39.0, SDK v1.1.24.0.
07-30 18:42:51.715 22451 22465 I Unity   :
07-30 18:42:51.715 22451 22465 I Unity   : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 48)
07-30 18:42:51.715 22451 22465 I Unity   :
07-30 18:42:51.721 22451 22465 I Unity   : OVRPlugin.Media not initialized
07-30 18:42:51.721 22451 22465 I Unity   :
07-30 18:42:51.721 22451 22465 I Unity   : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 48)
07-30 18:42:51.721 22451 22465 I Unity   :
07-30 18:42:51.745 22451 22465 I Unity   : Overlay Awake
07-30 18:42:51.745 22451 22465 I Unity   :
07-30 18:42:51.745 22451 22465 I Unity   : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 48)
07-30 18:42:51.745 22451 22465 I Unity   :
07-30 18:42:51.758 22451 22465 I Unity   : Overlay Awake
07-30 18:42:51.758 22451 22465 I Unity   :
07-30 18:42:51.758 22451 22465 I Unity   : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 48)
07-30 18:42:51.758 22451 22465 I Unity   :
07-30 18:42:51.825 22451 22465 W Unity   : Avatar not assigned. Searching hierarchy. Please configure the Avatar before running to improve performance.
07-30 18:42:51.825 22451 22465 W Unity   :
07-30 18:42:51.825 22451 22465 W Unity   : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 48)
07-30 18:42:51.825 22451 22465 W Unity   :
07-30 18:42:51.963 22451 22465 I Unity   : [OVRManager] HMDAcquired event
07-30 18:42:51.963 22451 22465 I Unity   :
07-30 18:42:51.963 22451 22465 I Unity   : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 48)
07-30 18:42:51.963 22451 22465 I Unity   :
07-30 18:42:51.965 22451 22465 I Unity   : [OVRManager] HMDMounted event
07-30 18:42:51.965 22451 22465 I Unity   :
07-30 18:42:51.965 22451 22465 I Unity   : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 48)
07-30 18:42:51.965 22451 22465 I Unity   :
07-30 18:42:51.965 22451 22465 I Unity   : [OVRManager] VrFocusAcquired event
07-30 18:42:51.965 22451 22465 I Unity   :
07-30 18:42:51.965 22451 22465 I Unity   : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 48)
07-30 18:42:51.965 22451 22465 I Unity   :
07-30 18:42:51.973 22451 22465 I Unity   : [OVRManager] TrackingAcquired event
07-30 18:42:51.973 22451 22465 I Unity   :
07-30 18:42:51.973 22451 22465 I Unity   : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 48)
07-30 18:42:51.973 22451 22465 I Unity   :
07-30 18:42:57.265 22451 22465 E CRASH   : pid: 22451, tid: 22465, name: UnityMain  >>> tv.company.ovrtest <<<
07-30 18:42:57.446  1130  1180 W InputDispatcher: channel '88c57a6 tv.company.ovrtest/com.unity3d.player.UnityPlayerActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
07-30 18:42:57.446  1130  1180 E InputDispatcher: channel '88c57a6 tv.company.ovrtest/com.unity3d.player.UnityPlayerActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
07-30 18:42:57.447  1130  1523 I WindowManager: WIN DEATH: Window{88c57a6 u0 tv.company.ovrtest/com.unity3d.player.UnityPlayerActivity}
07-30 18:42:57.447  1130  1523 W InputDispatcher: Attempted to unregister already unregistered input channel '88c57a6 tv.company.ovrtest/com.unity3d.player.UnityPlayerActivity (server)'
07-30 18:42:57.448  1130  1523 W WindowManager: Force-removing child win Window{6715351 u0 SurfaceView - tv.company.ovrtest/com.unity3d.player.UnityPlayerActivity} from container Window{88c57a6 u0 tv.company.ovrtest/com.unity3d.player.UnityPlayerActivity}
07-30 18:42:57.450  1130  1560 W ActivityManager: Force removing ActivityRecord{1ecfdc9 u0 tv.company.ovrtest/com.unity3d.player.UnityPlayerActivity t61}: app died, no saved state


Tagged:

Comments

  • mmchickenshackmmchickenshack Posts: 17
    NerveGear
    edited July 31
    I had a similar issue with my own app, but only after updating to the latest Oculus package version. I would recommend to downgrade to 1.38, then delete and regenerate the AndroidManifest.xml (through the Oculus menu in unity) and then add the following line to the AndroidManifest inside the <manifest> tag: 

    <uses-feature android:name="android.hardware.vr.headtracking" android:version="1" android:required="true" />

    You can find it under Assets/Plugins/Android.

    Hope this works out for you!

  • jackblockjackblock Posts: 3
    NerveGear
    Good to know!

    Although, I can't find anywhere to download the 1.38 version, it seems Unity Asset Store doesn't let you download old versions, and i can't see oculus giving downloads either? The page here https://developer.oculus.com/downloads/package/unity-integration/1.38.0/ just redirects to the asset store.

    Looks like they're getting a lot of poor reviews in the asset store for 1.39 for other issues as well.

  • mmchickenshackmmchickenshack Posts: 17
    NerveGear
    edited July 31
    jackblock said:
    Good to know!

    Although, I can't find anywhere to download the 1.38 version, it seems Unity Asset Store doesn't let you download old versions, and i can't see oculus giving downloads either? The page here https://developer.oculus.com/downloads/package/unity-integration/1.38.0/ just redirects to the asset store.

    Looks like they're getting a lot of poor reviews in the asset store for 1.39 for other issues as well.

    you can get 1.38 here: https://developer.oculus.com/downloads/package/unity-integration-archive/1.38.0/
    yeah, 1.39 version is either very buggy on the quest or the changes haven't been well documented. i'm not updating the plugin anymore for this project, now that i managed to undo the damage it caused after a day-long struggle.
  • dcfreemandcfreeman Posts: 2
    NerveGear
    I am seeing the same behavior in 1.40. I used this same code in earlier versions and scene loading worked fine.
    I was able to do a work around and do everything from a single scene just to get the project out the door, but it sure would be nice to have scene loading working. 
Sign In or Register to comment.