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

Issue 836788 link

Starred by 5 users

Issue metadata

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



Sign in to add a comment

Simple webgl square example flickers in some environments

Reported by sergey....@gmail.com, Apr 25 2018

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0

Steps to reproduce the problem:
1. Launch chrome on Windows 10 x64 with Nvidia GPU
2. Run example at https://sergeyext.github.io/sergeyext/flicker_vbo.html

What is the expected behavior?
Static red-green-yellow square should be displayed.

What went wrong?
The square flickers with unstable frequency.

Did this work before? N/A 

Chrome version: 66.0.3359.117  Channel: stable
OS Version: 10.0.16299
Flash Version: disabled

The bug was observed only in Chrome under Windows 10 x64 with the following GPUs:

GeForce GTX 650 Ti, driver version 390.77
GeForce GTX 950M, driver version 376.54
GeForce GTX 950M, driver version 397.31

Couldn't reproduce the bug in the following environments:
 - Chrome, Windows 10 x64, Intel GPU
 - Firefox, Windows 10 x64, Nvidia GPU
 - Chrome and Firefox, Linux x64, Nvidia GPU

Adding more uniform and in/out variables to shaders may change bug's appearance or completely solve it.

Example: replacing

texCoord = v;

with

texCoord = v * 1.00001;

in vertex shader solves the problem.

Flicker frequency increases when mouse is hovered over tabs bar.

Associated SO question: https://stackoverflow.com/questions/49974467/webgl-flickering-in-chrome-on-windows-x64-with-nvidia-gpu
 
flicker.gif
573 KB View Download
Components: -Blink Blink>WebGL

Comment 2 by woxxom@gmail.com, Apr 25 2018

Observed since at least Chrome 43 r321781 (it required "--enable-unsafe-es3-apis").
Canary too.
Windows 7.
Labels: GPU-NVidia
Owner: oetu...@nvidia.com
Status: Assigned (was: Unconfirmed)
Seems like an NVIDIA-specific shader issue.

Comment 4 by kbr@chromium.org, Apr 26 2018

Can't reproduce on the following Windows 10, NVIDIA GPU configuration. Tested both Stable and Canary, and both validating and pass-through command decoder ( --use-cmd-decoder=validating and --use-cmd-decoder=passthrough ) on Canary.


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
Surface Synchronization: Enabled
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_accelerated_vpx_decode
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
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
Zero-copy DXGI video hangs or displays incorrect colors on AMD drivers: 623029
Applied Workarounds: disable_dxgi_zero_copy_video
VPx decoding isn't supported well before Windows 10 creators update.: 616318, 667532
Applied Workarounds: disable_accelerated_vpx_decode
Don't expose disjoint_timer_query extensions to WebGL: 808744
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	2018-04-26T22:39:48.900Z
Chrome version	Chrome/66.0.3359.139
Operating system	Windows NT 10.0.14393
Software rendering list URL	https://chromium.googlesource.com/chromium/src/+/a020eddf0d85fe84d4a6787b304f50aafb670969/gpu/config/software_rendering_list.json
Driver bug list URL	https://chromium.googlesource.com/chromium/src/+/a020eddf0d85fe84d4a6787b304f50aafb670969/gpu/config/gpu_driver_bug_list.json
ANGLE commit id	22c768fbda54
2D graphics backend	Skia/66 773868fdade5f9f0e7697e6d09c9bd80aaa9b402-
Command Line	"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --flag-switches-begin --flag-switches-end --isolate-origins=https://chromium.org/,https://corp.googleapis.com/,https://storage.googleapis.com,https://ajax.googleapis.com,https://fonts.googleapis.com,https://googleplex.com/,https://googlesource.com/,https://youtube.com/,https://google.com/,https://googleacquisitionmigration.com/,https://googleusercontent.com/,https://googleprod.com/,https://nest.com/,https://myworkday.com/,https://chromiumapp.org/,https://lucidchart.com/,https://service-now.com/,https://concursolutions.com/,https://salesforce.com/,https://gcorppartners.com/,https://morganstanley.com/,https://schwab.com/,https://qualtrics.com/,https://ultipro.com/,https://google.secure2-enroll.com/,https://googlegroups.com/,https://google.secure.force.com/,https://ebenefitsnow.com/,https://firebase.com/,https://elo.plusrelocation.com/,https://anthem.com/,https://g.viapeople.net/,https://gdjap.com/,https://asana.com/,https://perquisite.net/,https://postini.com/,https://perkhub.com/,https://gstave.us/,https://geolearning.com/,https://lecorpio.com/,https://inverify.net/,https://preceda.com.au/,https://secureacceptance.cybersource.com/,https://solium.com/,https://fgvms.com/,https://ridecell.com/,https://tds.ie/,https://sprinklr.com/,https://smartsheet.com/,https://fieldglass.net/,https://dochub.com/
Driver Information
Initialization time	191
In-process GPU	false
Passthrough Command Decoder	false
Direct Composition	true
Supports overlays	false
Sandboxed	true
GPU0	VENDOR = 0x1002, DEVICE= 0x683d *ACTIVE*
Optimus	false
Optimus	false
AMD switchable	false
Desktop compositing	Aero Glass
Diagonal Monitor Size of \\.\DISPLAY1	29.7"
Driver vendor	Advanced Micro Devices, Inc.
Driver version	22.19.662.4
Driver date	7-20-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 (AMD Radeon R7 200 Series Direct3D11 vs_5_0 ps_5_0)
GL_VERSION	OpenGL ES 2.0 (ANGLE 2.1.0.22c768fbda54)
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_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_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_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_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
Disabled WebGL Extensions	EXT_disjoint_timer_query EXT_disjoint_timer_query_webgl2
Window system binding vendor	Google Inc. (adapter LUID: 000000000001b0c7)
Window system binding version	1.4 (ANGLE 2.1.0.22c768fbda54)
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 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
RGBX_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 2560x1600, workarea=0,0 2560x1560, scale=1, external
Color space information	{primaries:BT709, transfer:IEC61966_2_1, 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
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	12
dwHeight	1600
dwRefreshRate	60
dwWHQLLevel	0
dwWidth	2560
iAdapter	0
lDriverSize	1962120
lMiniVddSize	0
szAGPStatusEnglish	Enabled
szAGPStatusLocalized	Enabled
szChipType	AMD Radeon Graphics Processor (0x683D)
szD3DStatusEnglish	Enabled
szD3DStatusLocalized	Enabled
szDACType	Internal DAC(400MHz)
szDDIVersionEnglish	12
szDDIVersionLocalized	12
szDDStatusEnglish	Enabled
szDDStatusLocalized	Enabled
szDXVAHDEnglish	Not Supported
szDXVAModes	ModeMPEG2_A ModeMPEG2_C ModeVC1_C ModeWMV9_C
szDescription	AMD Radeon R7 200 Series
szDeviceId	0x683D
szDeviceIdentifier	{D7B71EE2-2B7D-11CF-EC77-1500BCC2DB35}
szDeviceName	\\.\DISPLAY1
szDisplayMemoryEnglish	66497 MB
szDisplayMemoryLocalized	66497 MB
szDisplayModeEnglish	2560 x 1600 (32 bit) (60Hz)
szDisplayModeLocalized	2560 x 1600 (32 bit) (60Hz)
szDriverAssemblyVersion	22.19.662.4
szDriverAttributes	Final Retail
szDriverDateEnglish	7/19/2017 5:00:00 PM
szDriverDateLocalized	7/19/2017 17:00:00
szDriverLanguageEnglish	English
szDriverLanguageLocalized	English
szDriverModelEnglish	WDDM 2.1
szDriverModelLocalized	WDDM 2.1
szDriverName	C:\WINDOWS\System32\DriverStore\FileRepository\c0316467.inf_amd64_3d8fbd78102e53d7\aticfx64.dll,C:\WINDOWS\System32\DriverStore\FileRepository\c0316467.inf_amd64_3d8fbd78102e53d7\aticfx64.dll,C:\WINDOWS\System32\DriverStore\FileRepository\c0316467.inf_amd64_3d8fbd78102e53d7\aticfx64.dll,C:\WINDOWS\System32\DriverStore\FileRepository\c0316467.inf_amd64_3d8fbd78102e53d7\amdxc64.dll
szDriverNodeStrongName	oem20.inf:cb0ae414ac142df8:ati2mtag_R575ADS:22.19.662.4:pci\ven_1002&dev_683d&subsys_22831458
szDriverSignDate	Unknown
szDriverVersion	22.19.0662.0004
szKeyDeviceID	Enum\PCI\VEN_1002&DEV_683D&SUBSYS_22831458&REV_00
szKeyDeviceKey	\Registry\Machine\System\CurrentControlSet\Control\Video\{581FFD63-AC7C-458C-9935-C66D38B7BEEB}\0000
szManufacturer	Advanced Micro Devices, Inc.
szMiniVdd	unknown
szMiniVddDateEnglish	Unknown
szMiniVddDateLocalized	unknown
szMonitorMaxRes	Unknown
szMonitorName	Generic PnP Monitor
szNotesEnglish	No problems found.
szNotesLocalized	No problems found.
szOverlayEnglish	Not Supported
szRankOfInstalledDriver	00D10001
szRegHelpText	Unknown
szRevision	Unknown
szRevisionId	0x0000
szSubSysId	0x22831458
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	0x1002
Log Messages
GpuProcessHostUIShim: The GPU process exited normally. Everything is okay.

Comment 5 by woxxom@gmail.com, Apr 27 2018

kbr@, your gpu log is for AMD not nVidia :)

Comment 6 by oetu...@nvidia.com, Apr 27 2018

I could reproduce this on GeForce GTX 970 and also GeForce GTX 1080 on Windows 10 64-bit, at least on driver versions 391.01 and 397.31.

Both latest Canary (68.0.3409.2) and stable Chrome are affected. Does not reproduce on Firefox.

Seems to be specific to NVIDIA DirectX driver or how Chrome interacts with it.

Comment 7 by kbr@chromium.org, Apr 27 2018

Cc: geoffl...@chromium.org
Components: Internals>GPU>ANGLE
Ah, I forgot I switched my Windows workstation to an AMD GPU some time ago. Sorry for the confusion.

Olli, will you be able to help diagnose this?

Comment 8 by oetu...@nvidia.com, Apr 30 2018

I'll work on this. One problem I'm having right now is that I'm unable to run Chrome in single-process mode on my workstation. I'll need to solve that to be able to use some graphics debugging tools.
Single process mode is usually broken. Is it not enough to use --disable-gpu-sandbox and --gpu-startup-dialog? Another one that could be useful is --gpu-launcher.

In the past I have had some success with RenderDoc using only --disable-gpu-sandbox, as it has an option to trace subprocesses that seems to work.

Comment 10 by kbr@chromium.org, May 1 2018

Cc: kbr@chromium.org
another sample small sample

http://jsfiddle.net/greggman/bmc7qjzy/

I can repo the bug in Firefox, Windows 10, NVidia 1060
Can not repo on same machine, Firefox, Windows 10, Intel 630

So I don't think it's is a Chrome bug. It's possible it's an ANGLE bug but since it's working on Intel that certainly makes it seem like an NVidia bug.

Note that I tried making a simple OpenGL sample in C++ and no problem. That's to be expected since both Firefox and Chrome are using ANGLE via DX11 for their WebGL2 support
Thanks for the fiddle Gregg. I can reproduce this in a standalone ANGLE environment in NVIDIA.

Link to CL here:

https://chromium-review.googlesource.com/c/angle/angle/+/1165303

The issue seems to only affect D3D11. In order to reproduce build ANGLE with that CL applied and run angle_end2end_tests --gtest_filter=GLSLTest_ES3.Flat/ES3_D3D11 and move the mouse around while the sample is running. The issue may not reproduce when not moving the mouse. It also seems to disappear when adding ReadPixels commands so isn't so easy to test automatically.

Maybe this will help you send a repro case Olli.

Comment 13 Deleted

can not confirm the observation made by gregg

here is just an other test: https://jsfiddle.net/nabr/xknb0sqw/

For me it feels like their a difference how Chrome initialize the Draw Buffer
Cc: kkinnu...@nvidia.com
Owner: ----
Status: Available (was: Assigned)
Olli's leaving NVIDIA, so adding Kimmo as CC: on this bug which is apparently NVIDIA- and Windows-specific.

I have a similar issue, again windows 10 x64 with latest nvidia drivers. I cant provide a code sample for now but here is a screen capture side by side with firefox. Flickering may stop or increase when moving the mouse, especially over the browser tabs. This issue occurs when I try to use flat shading. Looks like it changes which vertex is considered last. Hope this helps, I may provide code later if requested.
flicker.gif
415 KB View Download
Can we try to figure out whether this is a bug in ANGLE or NVIDIA's D3D driver, and if the latter, get a small repro in NVIDIA's hands for diagnosis?

Is there any way to reproduce this in a WebGL conformance test, even if it's a stressful test and does a lot of repeated rendering?

I'll try to repro and post jmadill's ANGLE GL test forward. Likely it would need a plain D3D repro..

Comment 19 by kkinnu...@nvidia.com, Yesterday (47 hours ago)

This is NV internal bug number 2426125

Sign in to add a comment