RenderHeads / UnityPlugin-AVProVideo

AVPro Video is a multi-platform Unity plugin for advanced video playback
https://www.renderheads.com/products/avpro-video/
224 stars 27 forks source link

Black screen on single Android device #12

Closed kroltan closed 5 years ago

kroltan commented 5 years ago

Describe the bug I'm testing AVPro integration for one of our mobile AR apps, I'm using the trial version. If QA passes we'll acquire the iOS and Android licenses.

Our QA team was testing the app for a few hours, when all of a sudden no videos displayed anymore on that specific device. They load, audio plays, but the display surface is black (we're using the Display UGUI component). Other Android devices still work, only that specific one consistenly fails, despite reinstallation.

No errors are registered on the console.

Your Setup (please complete the following information):

To Reproduce Steps to reproduce the behavior:

  1. Set up a MediaPlayer and a Display UGUI that loads MP4 videos
  2. Build to Android
  3. Use it for 3 to 4 hours
  4. Observe that any new video plays have their screen black, while the audio plays normally

Logs None!

Screenshots screenshot_20190130-105821_sebrae ambiente virtual

Videos https://player.vimeo.com/external/246530089.hd.mp4?s=09bf3bcde56e5bc8e63445070936a03f3dea3c17&profile_id=174 Happens on other videos with similar parameters.

AndrewRH commented 5 years ago

Hi,

Thanks for reporting this.

A few questions:

1) Which version of AVPro Video are you using? (it will print the version to the console in the editor) 2) Are you streaming your video from URL, or playing it from local storage? 3) In the 3-4 hours that it takes for this to happen, approximately how many times do you reload the video? 4) Are you able to capture and send us the ADB log cat logs from Android? This might hold clues about what is happening.

Thanks,

kroltan commented 5 years ago

Hello! Answers in order:

  1. Version 1.9.12
  2. From an URL, that exact one seen above
  3. A lot, around 100 plays. But do note that the 3~4h was one session, but now all sessions (even from a brand new installation after a full phone reboot) have no image output.
  4. Sure! Here it goes:
    01-30 12:33:12.800 20032 20054 I Unity   : SystemInfo CPU = ARMv7 VFPv3 NEON, Cores = 8, Memory = 3537mb
    01-30 12:33:12.800 20032 20054 I Unity   : SystemInfo ARM big.LITTLE configuration: 4 big (mask: 0xf0), 4 little (mask: 0xf)
    01-30 12:33:12.800 20032 20054 I Unity   : ApplicationInfo br.com.dotgroup.sebrarvra version 0.4.0 build 9362542e-ba51-49c0-9c6f-f34b8934710e
    01-30 12:33:12.800 20032 20054 I Unity   : Built from '2018.2/release' branch, Version '2018.2.14f1 (3262fb3b0716)', Build type 'Release', Scripting Backend 'mono'
    01-30 12:33:12.956 20032 20054 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_for
    mat_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_vert
    ex_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_q
    uery 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_
    01-30 12:33:12.956 20032 20054 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_p
    rogram_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_multisampl
    e_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_primiti
    ve_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
    01-30 12:33:12.956 20032 20054 D Unity   : _buffer GL_OES_texture_buffer GL_EXT_copy_image GL_OES_copy_image GL_EXT_shader_non_constant_global_initializers 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
    GL_EXT_buffer_storage
    01-30 12:33:13.746 20032 20054 I Unity   : Compiled for Android
    01-30 12:33:13.746 20032 20054 I Unity   :
    01-30 12:33:13.746 20032 20054 I Unity   : (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
    01-30 12:33:13.746 20032 20054 I Unity   :
    01-30 12:33:14.060 20032 20054 I Unity   : Initializing Vuforia
    01-30 12:33:14.060 20032 20054 I Unity   :
    01-30 12:33:14.060 20032 20054 I Unity   : (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
    01-30 12:33:14.060 20032 20054 I Unity   :
    01-30 12:33:14.076 20032 20054 I Unity   : Vuforia SDK Version: 7.5.26
    01-30 12:33:14.076 20032 20054 I Unity   :
    01-30 12:33:14.076 20032 20054 I Unity   : (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
    01-30 12:33:14.076 20032 20054 I Unity   :
    01-30 12:33:14.076 20032 20054 I Unity   : Vuforia Unity Extension Version: 7.5.26
    01-30 12:33:14.076 20032 20054 I Unity   :
    01-30 12:33:14.076 20032 20054 I Unity   : (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
    01-30 12:33:14.076 20032 20054 I Unity   :
    01-30 12:33:14.076 20032 20054 I Unity   : Unity Editor Version: 2018.2.14f1
    01-30 12:33:14.076 20032 20054 I Unity   :
    01-30 12:33:14.076 20032 20054 I Unity   : (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
    01-30 12:33:14.076 20032 20054 I Unity   :
    01-30 12:33:36.358 20032 20054 I Unity   : [AVProVideo] Creating player 0
    01-30 12:33:36.358 20032 20054 I Unity   :
    01-30 12:33:36.358 20032 20054 I Unity   : (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
    01-30 12:33:36.358 20032 20054 I Unity   :
    01-30 12:33:36.369 20032 20054 I Unity   : [AVProVideo] Initialising AVPro Video (script v1.9.12 plugin v1.9.10t) on Mali-T880/OpenGL ES 3.2 v1.r22p0-01rel0.f294e54ceb2cb2d81039204fa4b0402e (MT True) on Android
    01-30 12:33:36.369 20032 20054 I Unity   :
    01-30 12:33:36.369 20032 20054 I Unity   : (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
    01-30 12:33:36.369 20032 20054 I Unity   :
    01-30 12:33:36.380 20032 20054 I Unity   : Vuforia initialization successful
    01-30 12:33:36.380 20032 20054 I Unity   :
    01-30 12:33:36.380 20032 20054 I Unity   : (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
    01-30 12:33:36.380 20032 20054 I Unity   :
    01-30 12:33:36.546 20032 20054 I Unity   : Found Trackable named icon_recursos-humanos with id 7
    01-30 12:33:36.546 20032 20054 I Unity   :
    01-30 12:33:36.546 20032 20054 I Unity   : (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
    01-30 12:33:36.546 20032 20054 I Unity   :
    01-30 12:33:36.546 20032 20054 I Unity   : Found Trackable named icon-financas with id 5
    01-30 12:33:36.546 20032 20054 I Unity   :
    01-30 12:33:36.546 20032 20054 I Unity   : (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
    01-30 12:33:36.546 20032 20054 I Unity   :
    01-30 12:33:36.546 20032 20054 I Unity   : Found Trackable named icon-vendas with id 1
    01-30 12:33:36.546 20032 20054 I Unity   :
    01-30 12:33:36.546 20032 20054 I Unity   : (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
    01-30 12:33:36.546 20032 20054 I Unity   :
    01-30 12:33:36.547 20032 20054 I Unity   : Found Trackable named icon-empreendedorismo with id 6
    01-30 12:33:36.547 20032 20054 I Unity   :
    01-30 12:33:36.547 20032 20054 I Unity   : (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
    01-30 12:33:36.547 20032 20054 I Unity   :
    01-30 12:33:36.547 20032 20054 I Unity   : Found Trackable named icon-marketing with id 2
    01-30 12:33:36.547 20032 20054 I Unity   :
    01-30 12:33:36.547 20032 20054 I Unity   : (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
    01-30 12:33:36.547 20032 20054 I Unity   :
    01-30 12:33:36.548 20032 20054 I Unity   : Found Trackable named icon-gestao with id 4
    01-30 12:33:36.548 20032 20054 I Unity   :
    01-30 12:33:36.548 20032 20054 I Unity   : (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
    01-30 12:33:36.548 20032 20054 I Unity   :
    01-30 12:33:36.548 20032 20054 I Unity   : Found Trackable named icon-lideranca with id 3
    01-30 12:33:36.548 20032 20054 I Unity   :
    01-30 12:33:36.548 20032 20054 I Unity   : (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
    01-30 12:33:36.548 20032 20054 I Unity   :
    01-30 12:33:36.556 20032 20054 I Unity   : StartVuforia
    01-30 12:33:36.556 20032 20054 I Unity   :
    01-30 12:33:36.556 20032 20054 I Unity   : (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
    01-30 12:33:36.556 20032 20054 I Unity   :
    01-30 12:33:36.875 20032 20054 I Unity   : Requested Focus mode FOCUS_MODE_CONTINUOUSAUTO successfully.
    01-30 12:33:36.875 20032 20054 I Unity   :
    01-30 12:33:36.875 20032 20054 I Unity   : (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
    01-30 12:33:36.875 20032 20054 I Unity   :
    01-30 12:33:41.166 20032 20054 I Unity   : Trackable icon-vendas found
    01-30 12:33:41.166 20032 20054 I Unity   :
    01-30 12:33:41.166 20032 20054 I Unity   : (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
    01-30 12:33:41.166 20032 20054 I Unity   :
    01-30 12:33:48.519 20032 20054 I Unity   : (x:0.00, y:0.00, width:0.00, height:0.00)
    01-30 12:33:48.519 20032 20054 I Unity   :
    01-30 12:33:48.519 20032 20054 I Unity   : (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
    01-30 12:33:48.519 20032 20054 I Unity   :
    01-30 12:33:50.064 20032 20054 I Unity   : [AVProVideo] Opening https://player.vimeo.com/external/305043952.sd.mp4?s=3eac5448035977652789430fdc4c60f38cd0078a&profile_id=165 (offset 0)
    01-30 12:33:50.064 20032 20054 I Unity   :
    01-30 12:33:50.064 20032 20054 I Unity   : (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
    01-30 12:33:50.064 20032 20054 I Unity   :
    01-30 12:33:51.326 20032 20054 I Unity   : [AVProVideo] Using playback path: MediaPlayer NonOES (960x540@0.00)
    01-30 12:33:51.326 20032 20054 I Unity   :
    01-30 12:33:51.326 20032 20054 I Unity   : (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
    01-30 12:33:51.326 20032 20054 I Unity   :
    01-30 12:33:51.327 20032 20054 I Unity   : [AVProVideo] Texture ID: 20
    01-30 12:33:51.327 20032 20054 I Unity   :
    01-30 12:33:51.327 20032 20054 I Unity   : (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
    01-30 12:33:51.327 20032 20054 I Unity   :
    01-30 12:33:53.967 20032 20054 I Unity   : Trackable icon-vendas lost
    01-30 12:33:53.967 20032 20054 I Unity   :
    01-30 12:33:53.967 20032 20054 I Unity   : (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
    01-30 12:33:53.967 20032 20054 I Unity   :
    01-30 12:33:54.707 20032 20054 I Unity   : StopVuforia
    01-30 12:33:54.707 20032 20054 I Unity   :
    01-30 12:33:54.707 20032 20054 I Unity   : (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
    01-30 12:33:54.707 20032 20054 I Unity   :
AndrewRH commented 5 years ago

Thanks for that.

I also see you're using Vuforia - I wonder if it could be interferring. We've heard of it causing trouble before. Are you able to replicate it without Vuforia?

It's also worth trying to disable multi-threaded rendering in Unity's Android Player Settings to see if that helps.

This log only shows the Unity events - if you could attach the full log with all Android system messages, then we can really see what's going on.

but now all sessions (even from a brand new installation after a full phone reboot) have no image output.

That is STRANGE. I've never heard of that before. There is a component called DebugOverlay - perhaps you could add that to your scene - it should give you a preview of the video playing in the top-left corner and might be useful to see if the video is playing.

Thanks,

kroltan commented 5 years ago

Hello! Disabling Multicore Rendering did the trick, now it works fine again! Thanks for the very agile support and sorry for the delay.

You can find the full logcat on the gist below, since there is a maximum comment size on issues: https://gist.githubusercontent.com/kroltan/bcd5ed06a5b70621944f56ff1bbbd35c/raw/33f050eb6928714d9680f329d9d7a5440adc577b/gistfile1.txt

Ste-RH commented 5 years ago

Not sure if you tried using the ExoPlayer API path to address the issue you were seeing, but just to let you know...we have just released Version 1.9.17, which contains a fix for a 'black texture' issue when using the ExoPlayer API path. Maybe you could grab this version and check to see if the problem you are seeing has been addressed with MT rendering enabled again?

AndrewRH commented 5 years ago

We'll close this issue in a couple of days, as we've proposed a solution (new plugin version) but haven't heard anything back.

Thanks,

kroltan commented 5 years ago

Fair enough, I do not have access to the project in question anymore, cannot confirm if it works, unfortunately.