New issue
Advanced search Search tips

Issue 795059 link

Starred by 4 users

Issue metadata

Status: WontFix
Owner:
Closed: Dec 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug-Regression

Blocking:
issue 771995



Sign in to add a comment

Video is corrupted after switching back to Chrome and seeking

Reported by matthew....@gmail.com, Dec 14 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36

Example URL:
http://reference.dashif.org/dash.js/v2.6.4/samples/dash-if-reference-player/index.html

Steps to reproduce the problem:
1. Load the page at http://reference.dashif.org/dash.js/v2.6.4/samples/dash-if-reference-player/index.html
2. In the text box, paste the link https://raw.githubusercontent.com/matthew-mahony/DashTesting/master/liveStreamVideoCorruption/liveStream.mpd and click load
3. The video will automatically start playing.  Pause after a couple seconds.
4. Switch focus away from chrome
5. After a few seconds/minutes, switch back to chrome
6. Seek to another time in the video

What is the expected behavior?
The video should load another image.

What went wrong?
The video is corrupted.  It becomes all green like the matrix (see attached screenshot)

Did this work before? Yes 62.0.3202.94

Is it a problem with Flash or HTML5? HTML5

Does this work in other browsers? N/A

Chrome version: 63.0.3239.84  Channel: stable
OS Version: 8.1
Flash Version: 

Contents of chrome://gpu: 
Note: To properly save this page, select the "Webpage, Complete" option in the Save File dialog.
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: Hardware accelerated
Video Decode: Hardware accelerated
Video Encode: Hardware accelerated
WebGL: Hardware accelerated
WebGL2: Hardware accelerated
Driver Bug Workarounds
clear_uniforms_before_first_program_use
decode_encode_srgb_for_generatemipmap
disable_accelerated_vpx_decode
disable_delayed_copy_nv12
disable_direct_composition
disable_discard_framebuffer
disable_dxgi_zero_copy_video
disable_framebuffer_cmaa
disable_larger_than_screen_overlays
exit_on_context_lost
force_cube_complete
msaa_is_slow
scalarize_vec_and_mat_constructor_args
texsubimage_faster_than_teximage
Problems Detected
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
On Intel GPUs MSAA performance is not acceptable for GPU rasterization: 527565
Applied Workarounds: msaa_is_slow
Framebuffer discarding can hurt performance on non-tilers: 570897
Applied Workarounds: disable_discard_framebuffer
Direct composition flashes black initially on Win <10: 588588
Applied Workarounds: disable_direct_composition
Zero copy DXGI video hangs on shutdown on Win < 8.1: 621190
Applied Workarounds: disable_dxgi_zero_copy_video
Use GL_INTEL_framebuffer_CMAA on ChromeOS: 535198
Applied Workarounds: disable_framebuffer_cmaa
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
VPx decoding isn't supported well before Windows 10 creators update.: 616318, 667532
Applied Workarounds: disable_accelerated_vpx_decode
Accelerated VPx decoding is hanging on some videos.: 654111
Applied Workarounds: disable_accelerated_vpx_decode
Overlay sizes bigger than screen aren't accelerated on some Intel drivers: 720059
Applied Workarounds: disable_larger_than_screen_overlays
Delayed copy NV12 crashes on Intel on Windows <= 8.1.: 727216
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	12/14/2017, 2:54:38 PM
Chrome version	Chrome/63.0.3239.84
Operating system	Windows NT 6.3.9600
Software rendering list version	13.13
Driver bug list version	10.34
ANGLE commit id	9095f2b44801
2D graphics backend	Skia/63 dbae7001c9805fb0a4b18fd0cbc889941cb39db4-
Command Line	"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --flag-switches-begin --flag-switches-end
Driver Information
Initialization time	109
In-process GPU	false
Passthrough Command Decoder	false
Supports overlays	false
Sandboxed	false
GPU0	VENDOR = 0x8086, DEVICE= 0x0416 *ACTIVE*
GPU1	VENDOR = 0x10de, DEVICE= 0x11b8
Optimus	false
Optimus	false
AMD switchable	false
Desktop compositing	Aero Glass
Diagonal Monitor Size of \\.\DISPLAY1	17.2"
Driver vendor	Intel Corporation
Driver version	10.18.14.4264
Driver date	8-4-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 (Intel(R) HD Graphics 4600 Direct3D11 vs_5_0 ps_5_0)
GL_VERSION	OpenGL ES 3.0 (ANGLE 2.1.0.9095f2b44801)
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: 000000000000996d)
Window system binding version	1.4 (ANGLE 2.1.0.9095f2b44801)
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	Software only
RGBA_8888	Software only
BGRX_8888	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 1920x1080, workarea=0,0 1920x1040, scale=1, external
Color space information	{primaries:BT709, transfer:IEC61966_2_1, matrix:RGB, range:FULL, icc_profile_id:0}
Bits per color component	8
Bits per pixel	24
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	1080
dwRefreshRate	60
dwWHQLLevel	0
dwWidth	1920
iAdapter	0
lDriverSize	25076864
lMiniVddSize	0
szAGPStatusEnglish	Enabled
szAGPStatusLocalized	Enabled
szChipType	Intel(R) HD Graphics Family
szD3DStatusEnglish	Enabled
szD3DStatusLocalized	Enabled
szDACType	Internal
szDDIVersionEnglish	11.1
szDDIVersionLocalized	11.1
szDDStatusEnglish	Enabled
szDDStatusLocalized	Enabled
szDXVAHDEnglish	Supported
szDXVAModes	ModeMPEG2_A ModeMPEG2_C ModeWMV9_C ModeVC1_C
szDescription	Intel(R) HD Graphics 4600
szDeviceId	0x0416
szDeviceIdentifier	{D7B78E66-4756-11CF-F152-5802BCC2DB35}
szDeviceName	\\.\DISPLAY1
szDisplayMemoryEnglish	1920 MB
szDisplayMemoryLocalized	1920 MB
szDisplayModeEnglish	1920 x 1080 (32 bit) (60Hz)
szDisplayModeLocalized	1920 x 1080 (32 bit) (60Hz)
szDriverAssemblyVersion	10.18.14.4264
szDriverAttributes	Final Retail
szDriverDateEnglish	8/9/2015 04:52:04
szDriverDateLocalized	8/9/2015 4:52:04 AM
szDriverLanguageEnglish	English
szDriverLanguageLocalized	English
szDriverModelEnglish	WDDM 1.3
szDriverModelLocalized	WDDM 1.3
szDriverName	igdumdim64.dll,igd10iumd64.dll,igd10iumd64.dll,igdumdim32,igd10iumd32,igd10iumd32
szDriverNodeStrongName	oem69.inf:5f63e534dd929195:iHSWM_w81:10.18.14.4264:pci\ven_8086&dev_0416
szDriverSignDate	
szDriverVersion	10.18.0014.4264
szKeyDeviceID	Enum\PCI\VEN_8086&DEV_0416&SUBSYS_2255103C&REV_06
szKeyDeviceKey	\Registry\Machine\System\CurrentControlSet\Control\Video\{EA184BB0-C8C1-424E-9DD8-E7FD831264E2}\0000
szManufacturer	Intel Corporation
szMiniVdd	n/a
szMiniVddDateEnglish	n/a
szMiniVddDateLocalized	n/a
szMonitorMaxRes	
szMonitorName	Generic PnP Monitor
szNotesEnglish	No problems found.
szNotesLocalized	No problems found.
szOverlayEnglish	Supported
szRankOfInstalledDriver	00DA2001
szRegHelpText	
szRevision	
szRevisionId	0x0006
szSubSysId	0x2255103C
szTestResultD3D7English	Not run
szTestResultD3D7Localized	Not run
szTestResultD3D8English	Not run
szTestResultD3D8Localized	Not run
szTestResultD3D9English	Not run
szTestResultD3D9Localized	Not run
szTestResultDDEnglish	Not run
szTestResultDDLocalized	Not run
szVdd	n/a
szVendorId	0x8086
Log Messages
GpuProcessHostUIShim: The GPU process exited normally. Everything is okay.

Not 100% reproducible, but occurs often.  This video was captured from my webcam as a live stream. I haven't been able to reproduce with non-live streamed videos. The live stream is processed with ffmpeg -> nginx RTMP server, and another ffmpeg instance reads the stream from the nginx server and saves the DASH'ed files.
 
videoCorrupted.png
191 KB View Download
Is this 4:4:4 h264 content?
Blocking: 771995
Labels: M-64 ReleaseBlock-Stable
Owner: sande...@chromium.org
Status: Assigned (was: Unconfirmed)
Yes, it is, but doesn't seem to corrupt on Mac canary or stable.

00:00:00 00	origin_url	http://reference.dashif.org/
00:00:00 00	frame_url	http://reference.dashif.org/dash.js/v2.6.4/samples/dash-if-reference-player/index.html
00:00:00 00	frame_title	Dash JavaScript Player
00:00:00 00	url	blob:http://reference.dashif.org/9da0c9f2-1c2d-457d-82dd-991577018f01
00:00:00 00	info	ChunkDemuxer: buffering by DTS
00:00:00 02	pipeline_state	kStarting
00:00:00 42	found_video_stream	true
00:00:00 42	video_codec_name	h264
00:00:00 50	found_audio_stream	true
00:00:00 50	audio_codec_name	aac
00:00:00 55	audio_dds	false
00:00:00 55	audio_decoder	FFmpegAudioDecoder
00:00:00 55	info	Selected FFmpegAudioDecoder for audio decoding, config: codec: aac bytes_per_channel: 2 channel_layout: 3 channels: 2 samples_per_second: 44100 sample_format: 2 bytes_per_frame: 4 seek_preroll: 0ms codec_delay: 0 has extra data? false encrypted? false discard decoder delay? false
00:00:00 56	debug	Video rendering in low delay mode.
00:00:00 56	video_dds	false
00:00:00 56	video_decoder	FFmpegVideoDecoder
00:00:00 56	info	Selected FFmpegVideoDecoder for video decoding, config: codec: h264 format: 2 profile: h264 high 4:4:4 predictive coded size: [854,480] visible rect: [0,0,854,480] natural size: [854,480] has extra data? false encrypted? false rotation: 0°

We've got another bug here issue 794215 for similar on M63+. Maybe something specific to SIMD for some processors, but not others. Will send this off to ffmpeg folk.

Comment 3 by je...@friendev.com, Dec 14 2017

@dalecur, fyi, it is 4:4:4 lossless encoding. Not pretty common.
Dan confirmed this happens with ffplay, so seems a bug in ffmpeg. I believe he's trying to bisect now and we'll see if there's an easy revert or if we'll need to have Michael take a look.

Comment 5 by je...@friendev.com, Dec 14 2017

Just did some more tests. Although chunks starts with keyframe, analyzing some of the chunks with ffmpeg I see issues while decoding some macroblocks. Independently of that,  it is weird I could only reproduce the issue when resuming playback and only when I switch from chrome to another app and then to chrome again after a few seconds.

Same issue is reproducible in other players, like shaka-player.
#4: Actually, I was not able to reproduce this with ffplay. Only the CNS issue is reproducible. The two bugs seem related though, in that they are similar-looking corruption of 4:4:4 H.264 content.

The issue in this bug is triggered by suspend/resume. It does reproduce for src= playback.
Ah yes, sorry I wasn't clear. I think these are likely the same issue, but you're correct that only the video in issue 794215 triggers this always.
Mergedinto: 794215
Status: Duplicate (was: Assigned)
Confirmed to have the same resolution as issue 794215, merging.
Status: Available (was: Duplicate)
Swapping direction due to restricted view.
Issue 794215 has been merged into this issue.
Status: WontFix (was: Available)
This issue is resolved by reverting FFmpeg commit 840b41b2a643fc8f0617c0370125a19c02c6b586. It seems that old libx264 versions produced corrupt files, and this patch fixed FFmpeg and added a fallback path. However, the fallback detection does not work without an SEI NALU, and this file does not have one.

For files with no SEI, we can basically choose to always assume broken x264 encoding, or assume correct H.264 encoding. It's not immediately clear what the correct long-term solution is. For now, the decision is to assume correct encoding.

Re-encoding affected files with a libx264 newer than 2014 is the best fix.
Additional context links with discussion from ffmpeg developers:
https://github.com/mpv-player/mpv/issues/4559
https://github.com/mpv-player/mpv/issues/4807
I didn't realize the encoding was uncommon, I let ffmpeg choose the default.  After adding the arguments "-pix_fmt yuv420p" to the ffmpeg streaming process, the video codec is avc1.64001f, and I can't reproduce this issue.
Issue 798778 has been merged into this issue.

Comment 15 Deleted

Comment 16 by joogle@google.com, Jan 10 2018

using a format of yuv420p and a Constant Rate Factor of 18 for encoding has worked for me. Though this is still an issue with chrome because I did not need these encoding options in previous builds.

Sign in to add a comment