[EME] MediaKeySession.close() may never be resolved
Reported by
bertrand...@orange.com,
Feb 19 2018
|
||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36 Example URL: Steps to reproduce the problem: 1. open shaka Player Demo web page: https://shaka-player-demo.appspot.com 2. Select "custom asset" in the Asset list and enter the following asset informations: - custom manifest: https://demo.unified-streaming.com/video/tears-of-steel/tears-of-steel-dash-widevine.ism/.mpd (manifest/content with widevine protection) - custom license server: https://www.google.com (invalid license server to generate an error in shaka player) 3. Load the asset 4. the ShakaPlayer raise an error (Shaka Error DRM.LICENSE_REQUEST_FAILED) since the licenser url is wrong 5. Reset the player, either by loading a new valid asset, or by entering the following command line in the DevTools console: this.shakaDemo.player_.resetStreaming_() 6. Then the ShakaPlayer reset the streaming session and its associated MediaKeys instance What is the expected behavior? When the player attempts the close the created MediaKeySession, according to https://w3c.github.io/encrypted-media/#dom-mediakeysession-close, the returned promise is resolved when the request has been processed, and the closed attribute promise is resolved when the session is closed. Then MediaKeySession.close() shall return a Promise that will be resolved when done. What went wrong? In this use case, the returned promise is never resolved and stays is 'pending' state. Did this work before? N/A Is it a problem with Flash or HTML5? HTML5 Does this work in other browsers? No Firefox 58.0.1 Chrome version: 64.0.3282.167 Channel: n/a OS Version: 10.0 Flash Version: Contents of chrome://gpu: Graphics Feature Status Canvas: Hardware accelerated CheckerImaging: Disabled Flash: Hardware accelerated Flash Stage3D: Hardware accelerated Flash Stage3D Baseline profile: Hardware accelerated Compositing: Hardware accelerated Multiple Raster Threads: Enabled Native GpuMemoryBuffers: Software only. Hardware acceleration disabled Rasterization: Software only, hardware acceleration unavailable Video Decode: Hardware accelerated WebGL: Hardware accelerated WebGL2: Hardware accelerated Driver Bug Workarounds clear_uniforms_before_first_program_use decode_encode_srgb_for_generatemipmap disable_delayed_copy_nv12 disable_discard_framebuffer disable_dxgi_zero_copy_video disable_framebuffer_cmaa exit_on_context_lost force_cube_complete scalarize_vec_and_mat_constructor_args texsubimage_faster_than_teximage Problems Detected GPU rasterization is blacklisted on NVidia Fermi architecture for now.: 643850 Disabled Features: gpu_rasterization Some drivers are unable to reset the D3D device in the GPU process sandbox Applied Workarounds: exit_on_context_lost TexSubImage is faster for full uploads on ANGLE Applied Workarounds: texsubimage_faster_than_teximage Clear uniforms before first program use on all platforms: 124764, 349137 Applied Workarounds: clear_uniforms_before_first_program_use Always rewrite vec/mat constructors to be consistent: 398694 Applied Workarounds: scalarize_vec_and_mat_constructor_args ANGLE crash on glReadPixels from incomplete cube map texture: 518889 Applied Workarounds: force_cube_complete Framebuffer discarding can hurt performance on non-tilers: 570897 Applied Workarounds: disable_discard_framebuffer Use GL_INTEL_framebuffer_CMAA on ChromeOS: 535198 Applied Workarounds: disable_framebuffer_cmaa Zero-copy NV12 video displays incorrect colors on NVIDIA drivers.: 635319 Applied Workarounds: disable_dxgi_zero_copy_video Disable KHR_blend_equation_advanced until cc shaders are updated: 661715 Applied Workarounds: disable(GL_KHR_blend_equation_advanced), disable(GL_KHR_blend_equation_advanced_coherent) Decode and Encode before generateMipmap for srgb format textures on Windows: 634519 Applied Workarounds: decode_encode_srgb_for_generatemipmap Delayed copy NV12 displays incorrect colors on NVIDIA drivers.: 728670 Applied Workarounds: disable_delayed_copy_nv12 Native GpuMemoryBuffers have been disabled, either via about:flags or command line. Disabled Features: native_gpu_memory_buffers Checker-imaging has been disabled via finch trial or the command line. Disabled Features: checker_imaging Version Information Data exported 19/02/2018 à 15:32:39 Chrome version Chrome/64.0.3282.167 Operating system Windows NT 10.0.16299 Software rendering list URL https://chromium.googlesource.com/chromium/src/+/bf44778c9ce98ecff1128b225a165728044bbdeb/gpu/config/software_rendering_list.json Driver bug list URL https://chromium.googlesource.com/chromium/src/+/bf44778c9ce98ecff1128b225a165728044bbdeb/gpu/config/gpu_driver_bug_list.json ANGLE commit id 2987f0fde973 2D graphics backend Skia/64 713571f9afcf4b673812cd3b52bb5b17c107038b- Command Line "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --no-startup-window /prefetch:5 --flag-switches-begin --enable-quic --flag-switches-end Driver Information Initialization time 609 In-process GPU false Passthrough Command Decoder false Supports overlays false Sandboxed false GPU0 VENDOR = 0x10de, DEVICE= 0x0df8 Optimus false Optimus false AMD switchable false Desktop compositing Aero Glass Diagonal Monitor Size of \\.\DISPLAY1 24.0" Driver vendor NVIDIA Driver version 10.18.13.5382 Driver date 8-7-2015 Pixel shader version 5.0 Vertex shader version 5.0 Max. MSAA samples 8 Machine model name Machine model version GL_VENDOR Google Inc. GL_RENDERER ANGLE (NVIDIA Quadro 600 Direct3D11 vs_5_0 ps_5_0) GL_VERSION OpenGL ES 3.0 (ANGLE 2.1.0.2987f0fde973) GL_EXTENSIONS GL_ANGLE_client_arrays GL_ANGLE_depth_texture GL_ANGLE_framebuffer_blit GL_ANGLE_framebuffer_multisample GL_ANGLE_instanced_arrays GL_ANGLE_lossy_etc_decode GL_ANGLE_multiview GL_ANGLE_pack_reverse_row_order GL_ANGLE_program_cache_control GL_ANGLE_request_extension GL_ANGLE_robust_client_memory GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_ANGLE_texture_usage GL_ANGLE_translated_shader_source GL_CHROMIUM_bind_generates_resource GL_CHROMIUM_bind_uniform_location GL_CHROMIUM_color_buffer_float_rgb GL_CHROMIUM_color_buffer_float_rgba GL_CHROMIUM_copy_compressed_texture GL_CHROMIUM_copy_texture GL_CHROMIUM_sync_query GL_EXT_blend_minmax GL_EXT_color_buffer_float GL_EXT_color_buffer_half_float GL_EXT_debug_marker GL_EXT_discard_framebuffer GL_EXT_disjoint_timer_query GL_EXT_draw_buffers GL_EXT_frag_depth GL_EXT_map_buffer_range GL_EXT_occlusion_query_boolean GL_EXT_read_format_bgra GL_EXT_robustness GL_EXT_sRGB GL_EXT_shader_texture_lod GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_s3tc_srgb GL_EXT_texture_filter_anisotropic GL_EXT_texture_format_BGRA8888 GL_EXT_texture_norm16 GL_EXT_texture_rg GL_EXT_texture_storage GL_EXT_unpack_subimage GL_KHR_debug GL_NV_EGL_stream_consumer_external GL_NV_fence GL_NV_pack_subimage GL_NV_pixel_buffer_object GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_EGL_image_external_essl3 GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth32 GL_OES_element_index_uint GL_OES_get_program_binary GL_OES_mapbuffer GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_surfaceless_context GL_OES_texture_float GL_OES_texture_float_linear GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_vertex_array_object Disabled Extensions GL_KHR_blend_equation_advanced GL_KHR_blend_equation_advanced_coherent Window system binding vendor Google Inc. (adapter LUID: 0000000000008783) Window system binding version 1.4 (ANGLE 2.1.0.2987f0fde973) Window system binding extensions EGL_EXT_create_context_robustness EGL_ANGLE_d3d_share_handle_client_buffer EGL_ANGLE_d3d_texture_client_buffer EGL_ANGLE_surface_d3d_texture_2d_share_handle EGL_ANGLE_query_surface_pointer EGL_ANGLE_window_fixed_size EGL_ANGLE_keyed_mutex EGL_ANGLE_surface_orientation EGL_ANGLE_direct_composition EGL_NV_post_sub_buffer EGL_KHR_create_context EGL_EXT_device_query EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_get_all_proc_addresses EGL_KHR_stream EGL_KHR_stream_consumer_gltexture EGL_NV_stream_consumer_gltexture_yuv EGL_ANGLE_flexible_surface_compatibility EGL_ANGLE_stream_producer_d3d_texture_nv12 EGL_ANGLE_create_context_webgl_compatibility EGL_CHROMIUM_create_context_bind_generates_resource EGL_CHROMIUM_sync_control EGL_EXT_pixel_format_float EGL_KHR_surfaceless_context EGL_ANGLE_display_texture_share_group EGL_ANGLE_create_context_client_arrays EGL_ANGLE_program_cache_control EGL_ANGLE_robust_resource_initialization Direct rendering Yes Reset notification strategy 0x8252 GPU process crash count 0 Compositor Information Tile Update Mode One-copy Partial Raster Enabled GpuMemoryBuffers Status ATC Software only ATCIA Software only DXT1 Software only DXT5 Software only ETC1 Software only R_8 Software only R_16 Software only RG_88 Software only BGR_565 Software only RGBA_4444 Software only RGBX_8888 GPU_READ, SCANOUT RGBA_8888 GPU_READ, SCANOUT BGRX_8888 Software only BGRX_1010102 Software only BGRA_8888 Software only RGBA_F16 Software only YVU_420 Software only YUV_420_BIPLANAR Software only UYVY_422 Software only Display(s) Information Info Display[2528732444] bounds=0,0 1920x1200, workarea=0,0 1920x1160, scale=1, external Color space information {primaries:[[0.6070,0.2158,0.1414,],[0.2915,0.6118,0.0966,],[0.0060,0.0762,0.7427,],], transfer:1.0000*x + 0.0000 if x < 0.0000 else (1.0000*x + 0.0000)**2.2004 + 0.0000, matrix:RGB, range:FULL} Bits per color component 8 Bits per pixel 24 Video Acceleration Information Decode h264 baseline up to 1920x1088 pixels Decode h264 main up to 1920x1088 pixels Decode h264 high up to 1920x1088 pixels Decode vp8 up to 4096x2160 pixels Decode vp9 profile0 up to 4096x2160 pixels Decode vp9 profile1 up to 4096x2160 pixels Decode vp9 profile2 up to 4096x2160 pixels Decode vp9 profile3 up to 4096x2160 pixels Encode h264 baseline up to 3840x2176 pixels and/or 30.000 fps Encode h264 main up to 3840x2176 pixels and/or 30.000 fps Encode h264 high up to 3840x2176 pixels and/or 30.000 fps Diagnostics 0 b3DAccelerationEnabled true b3DAccelerationExists true bAGPEnabled true bAGPExistenceValid true bAGPExists true bCanRenderWindow true bDDAccelerationEnabled true bDriverBeta false bDriverDebug false bDriverSigned false bDriverSignedValid false bNoHardware false dwBpp 32 dwDDIVersion 11 dwHeight 1200 dwRefreshRate 59 dwWHQLLevel 0 dwWidth 1920 iAdapter 0 lDriverSize 16020584 lMiniVddSize 0 szAGPStatusEnglish Enabled szAGPStatusLocalized Activé szChipType Quadro 600 szD3DStatusEnglish Enabled szD3DStatusLocalized Activé szDACType Integrated RAMDAC szDDIVersionEnglish 11.2 szDDIVersionLocalized 11.2 szDDStatusEnglish Enabled szDDStatusLocalized Activé szDXVAHDEnglish Supported szDXVAModes ModeMPEG2_A ModeMPEG2_C ModeVC1_C ModeWMV9_C szDescription NVIDIA Quadro 600 szDeviceId 0x0DF8 szDeviceIdentifier {D7B71E3E-4EB8-11CF-8A66-38281CC2C735} szDeviceName \\.\DISPLAY1 szDisplayMemoryEnglish 5023 MB szDisplayMemoryLocalized 5023 MB szDisplayModeEnglish 1920 x 1200 (32 bit) (59Hz) szDisplayModeLocalized 1920 x 1200 (32 bit) (59Hz) szDriverAssemblyVersion 10.18.13.5382 szDriverAttributes Final Retail szDriverDateEnglish 07/08/2015 01:00:00 szDriverDateLocalized 8/7/2015 01:00:00 szDriverLanguageEnglish English szDriverLanguageLocalized Anglais szDriverModelEnglish WDDM 1.3 szDriverModelLocalized WDDM 1.3 szDriverName nvd3dumx.dll,nvwgf2umx.dll,nvwgf2umx.dll,nvwgf2umx.dll szDriverNodeStrongName oem60.inf:0f066de381938807:Section004:10.18.13.5382:pci\ven_10de&dev_0df8 szDriverSignDate Unknown szDriverVersion 10.18.0013.5382 szKeyDeviceID Enum\PCI\VEN_10DE&DEV_0DF8&SUBSYS_0835103C&REV_A1 szKeyDeviceKey \Registry\Machine\System\CurrentControlSet\Control\Video\{015424D9-118F-11E8-ABDC-80C16EF7DB7F}\0000 szManufacturer NVIDIA szMiniVdd inconnu szMiniVddDateEnglish Unknown szMiniVddDateLocalized inconnu szMonitorMaxRes Unknown szMonitorName Dell 2407WFP-HC (Digital) szNotesEnglish No problems found. szNotesLocalized Aucun problème n’a été détecté. szOverlayEnglish Supported szRankOfInstalledDriver 00D12001 szRegHelpText Unknown szRevision Unknown szRevisionId 0x00A1 szSubSysId 0x0835103C szTestResultD3D7English Not run szTestResultD3D7Localized Non exécuté szTestResultD3D8English Not run szTestResultD3D8Localized Non exécuté szTestResultD3D9English Not run szTestResultD3D9Localized Non exécuté szTestResultDDEnglish Not run szTestResultDDLocalized Non exécuté szVdd inconnu szVendorId 0x10DE Log Messages [9816:8884:0219/145304.763:ERROR:mf_helpers.cc(14)] : Error in dxva_video_decode_accelerator_win.cc on line 1615 [9816:8884:0219/145304.763:ERROR:mf_helpers.cc(14)] : Error in dxva_video_decode_accelerator_win.cc on line 694 [9816:8884:0219/145304.783:ERROR:gpu_video_decode_accelerator.cc(367)] : HW video decode not available for profile vp9 profile0 GpuProcessHostUIShim: The GPU process exited normally. Everything is okay.
,
Feb 19 2018
,
Feb 20 2018
Unable to reproduce the issue on win-10 using chrome reported version #64.0.3282.167 and latest canary #66.0.3350.0. Attached a screen cast for reference. Following are the steps followed to reproduce the issue. ------------ 1. opened shaka Player Demo web page: https://shaka-player-demo.appspot.com 2. Selected "custom asset" in the Asset list and enter the following asset informations: - custom manifest: https://demo.unified-streaming.com/video/tears-of-steel/tears-of-steel-dash-widevine.ism/.mpd (manifest/content with widevine protection) - custom license server: https://www.google.com (invalid license server to generate an error in shaka player) 3. Loaded the asset 4. The ShakaPlayer raise an error (Shaka Error NETWORK.HTTP_ERROR(https://www.google.com)) since the licenser url is wrong 5. Reset the player by entering the following command line in the DevTools console: this.shakaDemo.player_.resetStreaming_() 6. Observed that MediaKeySession.close() returned a Promise that was resolved when done. reporter@ - Could you please check the issue on latest canary #66.0.3350.0 by creating a new profile without any apps and extensions and please let us know if the issue still persist or not. Also please check the screencast and please let us know if any thing missed from our side. Thanks...!!
,
Feb 20 2018
Can you try again without setting the custom license certificate URL? Since the player fails to fetch the server certificate from this provided URL, no MediaKeySession is created and then you can't reproduce the issue. Also please install EMELogger extension to check that the MediaKeySession.close() does not resolve the promise.
,
Feb 20 2018
Thank you for providing more feedback. Adding the requester to the cc list. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Feb 20 2018
,
Mar 1 2018
Any update on this issue?
,
Mar 1 2018
,
Mar 19 2018
Any update? The issue still persists with Chrome Canary 67. Please find the screen cast that illustrates the issue. Do not forget to install EME Logger extension which is required to check the issue. On this screen cast, I added a first step which consists in loading and playing a valid stream (without any error) to demonstrate that the call to MediaKeySession.close() returns correctly a resolved promise. And then you can notice that the promise returned by the MediaKeySession.close() is pending when the MediaKeySession has not been completely updated (license request failed). Also, I have just noticed that the same issue has been previously reported. Its ID is 690583 but I am not allowed to view it.
,
Apr 12 2018
Will try to get this fixed in M68.
,
Aug 7
The problem is that Widevine gets into states where close() is not handled. Issue 690583 is another instance of this. With M70 development done shortly, let's try for M71.
,
Sep 28
,
Sep 28
,
Sep 28
,
Oct 22
Fix has been made to Widevine, but waiting until new version deployed with Chrome to mark this as fixed.
,
Oct 24
I take #15 back. It's not fixed. A similar issue has been fixed in Widevine, but not this one. Working on this case (the EME logger trace in #1 was a great help). |
||||||||||||
►
Sign in to add a comment |
||||||||||||
Comment 1 by bertrand...@orange.com
, Feb 19 201834.4 KB
34.4 KB View Download