New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 787217 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug-Regression



Sign in to add a comment

HWA enabled causes video to freeze when opening tabs in another window

Reported by solidsta...@gmail.com, Nov 21 2017

Issue description

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

Example URL:
Any YouTube video will cause this

Steps to reproduce the problem:
1. Make sure HWA is enabled (if it's off, no stuttering will occur).

2. Open up video (in this case make it a YouTube video).

3. Drag the video tab and make it its own window. I use a 21:9 monitor so this a workflow that is very common for me.

4. In the other non-video window, it's as easy as just running the mouse cursor over your bookmarks. That alone will cause the video to stutter and even eventually freeze. Same goes for opening tabs.

What is the expected behavior?
The video should not sutter and should not freeze. This isn't an issue with HWA in either Firefox or Edge.

What went wrong?
I've uploaded a video to YouTube so you can see the issue first hand. I start off with just a single window with the video playing. Running the cursor over the bookmarks or opening tabs in the background does not cause any stuttering or freezing. The issue only begins once I open the video in a second, separate window.

https://www.youtube.com/watch?v=uSFUiATITXA

Did this work before? Yes I honestly don't know, but I've had HWA enabled in Chrome for years.

Is it a problem with Flash or HTML5? HTML5

Does this work in other browsers? Yes

Chrome version: 62.0.3202.94  Channel: stable
OS Version: 10.0
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_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
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
Limited enabling of Chromium GL_INTEL_framebuffer_CMAA: 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	11/20/2017, 7:32:01 PM
Chrome version	Chrome/62.0.3202.94
Operating system	Windows NT 10.0.16299
Software rendering list version	0
Driver bug list version	10.30
ANGLE commit id	842c43ae67ba
2D graphics backend	Skia/62 e74b41c6c84638d5a9ee6d254a715bcd9e17c603-
Command Line	"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --flag-switches-begin --enable-zero-copy --ignore-gpu-blacklist --flag-switches-end
Driver Information
Initialization time	171
In-process GPU	false
Passthrough Command Decoder	false
Supports overlays	false
Sandboxed	false
GPU0	VENDOR = 0x10de, DEVICE= 0x1b81 *ACTIVE*
GPU1	VENDOR = 0x10de, DEVICE= 0x1b81
Optimus	false
Optimus	false
AMD switchable	false
Desktop compositing	Aero Glass
Diagonal Monitor Size of \\.\DISPLAY1	34.0"
Driver vendor	NVIDIA
Driver version	23.21.13.8831
Driver date	11-14-2017
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 GeForce GTX 1070 Direct3D11 vs_5_0 ps_5_0)
GL_VERSION	OpenGL ES 3.0 (ANGLE 2.1.0.842c43ae67ba)
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_robust_resource_initialization 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: 000000000000a32c)
Window system binding version	1.4 (ANGLE 2.1.0.842c43ae67ba)
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
Direct rendering	Yes
Reset notification strategy	0x8252
GPU process crash count	0
Compositor Information
Tile Update Mode	Zero-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
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	12
dwHeight	1440
dwRefreshRate	60
dwWHQLLevel	0
dwWidth	3440
iAdapter	0
lDriverSize	927976
lMiniVddSize	0
szAGPStatusEnglish	Enabled
szAGPStatusLocalized	Enabled
szChipType	GeForce GTX 1070
szD3DStatusEnglish	Enabled
szD3DStatusLocalized	Enabled
szDACType	Integrated RAMDAC
szDDIVersionEnglish	12
szDDIVersionLocalized	12
szDDStatusEnglish	Enabled
szDDStatusLocalized	Enabled
szDXVAHDEnglish	Supported
szDXVAModes	
szDescription	NVIDIA GeForce GTX 1070
szDeviceId	0x1B81
szDeviceIdentifier	{D7B71E3E-58C1-11CF-8D79-7B421BC2DA35}
szDeviceName	\\.\DISPLAY1
szDisplayMemoryEnglish	24357 MB
szDisplayMemoryLocalized	24357 MB
szDisplayModeEnglish	3440 x 1440 (32 bit) (60Hz)
szDisplayModeLocalized	3440 x 1440 (32 bit) (60Hz)
szDriverAssemblyVersion	23.21.13.8831
szDriverAttributes	Final Retail
szDriverDateEnglish	11/13/2017 7:00:00 PM
szDriverDateLocalized	11/13/2017 19:00:00
szDriverLanguageEnglish	English
szDriverLanguageLocalized	English
szDriverModelEnglish	WDDM 2.3
szDriverModelLocalized	WDDM 2.3
szDriverName	C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_c791f781cd94491f\nvldumdx.dll,C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_c791f781cd94491f\nvldumdx.dll,C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_c791f781cd94491f\nvldumdx.dll,C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_c791f781cd94491f\nvldumdx.dll
szDriverNodeStrongName	oem14.inf:0f066de361866ac3:Section136:23.21.13.8831:pci\ven_10de&dev_1b81
szDriverSignDate	Unknown
szDriverVersion	23.21.0013.8831
szKeyDeviceID	Enum\PCI\VEN_10DE&DEV_1B81&SUBSYS_62763842&REV_A1
szKeyDeviceKey	\Registry\Machine\System\CurrentControlSet\Control\Video\{40538F0D-C9A8-11E7-A171-74D02B7BDF5A}\0000
szManufacturer	NVIDIA
szMiniVdd	unknown
szMiniVddDateEnglish	Unknown
szMiniVddDateLocalized	unknown
szMonitorMaxRes	Unknown
szMonitorName	Dell U3415W(DisplayPort)
szNotesEnglish	No problems found.
szNotesLocalized	No problems found.
szOverlayEnglish	Supported
szRankOfInstalledDriver	00D12001
szRegHelpText	Unknown
szRevision	Unknown
szRevisionId	0x00A1
szSubSysId	0x62763842
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	unknown
szVendorId	0x10DE
Log Messages
GpuProcessHostUIShim: The GPU process exited normally. Everything is okay.

The key here has to do with HWA being enabled. If I disable HWA there is no stuttering and no freezing, regardless of the number of tabs being opened, the number of opened windows or mousing over the bookmarks.
 
Hmm, this shouldn't have anything to do with hardware acceleration. It seems like YouTube isn't getting enough buffered data. Can you right click on the YouTube video and show the "stats for nerds" section while this occurs? Does that show buffering dropping to zero?
The buffer health is fine, but you can see where the network drops to zero for that very extended period of time is when I begin moving my cursor over the bookmarks.
buffer health.PNG
55.8 KB View Download
Components: Internals>Network
Hmm, very strange. Not sure why hardware acceleration enabled vs not would have any impact on network...
To try and narrow things down, I went under chrome:flags and disabled using specifically HWA for video decode, while leaving "hardware acceleration" under Settings enabled for everything else.

It solved the problem. It's apparently not just HWA in general, it's specifically to do with the hardware decode feature. Why that only seems to stutter and freeze when using multiple windows, I couldn't say.

For the record, I'm running the latest nVidia drivers and have tried doing clean installations multiple times to no avail at solving this problem.
Ah that might be issue 775898 if you're on fall creators edition.
I had this issue before the Fall Creator's Update (I kept hoping a driver update would fix it) and if you watch the video, you'll see I never put the video in fullscreen.
Good to know you had this before. Regardless of fullscreen, it's possibly still the same/related issue, so you might try some of the workarounds mentioned on the bug (enable win 8 compatibility and/or --disable-direct-composition)
OK so enabling Win 8 compatibility mode didn't help, nor did --disable-direct-composition. However enabling both did prevent the video from freezing on me, but it is still dropping frames like no tomorrow when I hover the mouse over the bookmarks and/or open up new tabs in the background so long as I have at least two windows open.

However it doesn't seem to cause the video to violent sutter and eventually freeze entirely. The frame drop is still very bad though, easily over 100 frames in around ~3 seconds and it'll just keep going on so long as I keep my cursor moving over the bookmarks. Thousands of frame drops in under a minute was pretty easy to get to.
Dale, the video in #0 shows a spinner when the video pauses. Might be related to decoding and not composition.

--dsiable-direct-composition flag is only for canary but Windows 8 compatibility mode does the same for stable.


A trace I captured for issue 787626 shows long sections of GPUScheduler blocking the GPU main thread which will stall out the hardware decoders. I think something is stalling out the GPU thread which leads to the dropped frames and loading spinner.

solidstate89@ can you capture a chrome://tracing with just the stuttering youtube tab open for a few seconds? Please select rendering and then enable audio, media categories as well. sunnyps@ any other categories you'd like to see?
Cc: sunn...@chromium.org
Components: -Internals>Network Internals>GPU>Scheduling
Choose Javascript and Rendering categories maybe?
Cc: sc00335...@techmahindra.com
Labels: Triaged-ET Needs-Triage-M62 Needs-Feedback
As per comment#10 adding Needs-Feedback label

Thanks!
I did a trace with the settings (javascript and rendering with audio and media checked) as requested.
trace_trace_of_freezing_yt_video_with_hwa.json.gz
24.3 MB Download
Project Member

Comment 15 by sheriffbot@chromium.org, Nov 24 2017

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "sc00335628@techmahindra.com" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Owner: dalecur...@chromium.org
Status: Assigned (was: Unconfirmed)
Can you have a look at the trace? Thanks!

Drive by thought was that hovering bookmarks/opening tabs means browser UI thread is doing painting, thought it doesn't sound like that's involved. But the GPU scheduler may be prioritizing that work and starving video.
Hmm, can't open the trace, it's unfortunately so big it keeps crashing my tab :O

solidstate89@ can you record a shorter trace? Only a few seconds around the glitch occurring is necessary. I'm guessing you left that one running for a fair bit?
It wasn't that long. Maybe a minute tops. I'll record a shorter one tomorrow though.
OK this trace is much shorter. Ended the recording just after the YT video began freezing.
trace_yt_video_with_hoving_bookmark_freeze_trace.json.gz
3.5 MB Download
Cc: liber...@chromium.org dalecur...@chromium.org
Owner: danakj@chromium.org
Hmm, there are large gaps on the GpuThread that seem to correspond with the command buffer being paused. Whenever that happens the DXVA video decoder can't work.

=>danakj@ is that what you suspected was happening? Why did we start pausing the command buffer during these times? It looks pretty janky.
Cc: danakj@chromium.org vmi...@chromium.org
Owner: sunn...@chromium.org
I don't think command buffer decoder ever "pauses". It just chooses which stream/context to execute commands from next until there's no work to do AFAIK.

What I thought was that the ui compositor may be giving work to the gpu process which runs starving the media work.

Looking at the trace, CrGpuMain is constantly running tasks from what I see.

However it is sitting in HandlePostSubBufferCHROMIUM for 16.223 ms at a time, which means we told DisplayScheduler to draw when we shouldn't have?

It does look like non-media work is just dominating, it's spending 16ms in CommandBufferService:PutChanged for the compositor worker (raster for the ui compositor?) then 16ms in swap buffers. As long as that keeps this up, it never schedules any media work.
Hmm, the trace has a section for "command buffer paused" - what is that then?
Maybe that's showing which channel is being scheduled? I dunno.
So I don't know when this was fixed or what fixed it, but I'm no longer suffering this problem apparently. I just tested it out. Not sure if it was a driver update or a Chrome fix but I can finally turn HWA back on.

Sign in to add a comment