New issue
Advanced search Search tips

Issue 832024 link

Starred by 1 user

Issue metadata

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



Sign in to add a comment

SVG movement causes artifacts when background is set with background-blend-mode and background color

Reported by salva...@gmail.com, Apr 12 2018

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36

Example URL:
https://codepen.io/anon/pen/MVRVpe

Steps to reproduce the problem:
1. Open the Codepen linked, OR copy and paste this Gist: https://gist.github.com/zedee/e5af3ba433c5c15c74833e17f154a5d6 into an html file and open it.
2. Click anywhere on the screen.
3. Observe if the moving box drops artifacts (leaving a trace of lines) when moving.

What is the expected behavior?
The box should move without leaving any trace nor artifacts

What went wrong?
This bug doesn't happen consistently between Macs.

It happens, though, with all Macs with an embedded Intel Graphics (Intel Graphics HD4000, Intel Iris Plus Graphics 640), and some Macs with dedicated graphics card.

It did not happen with Macs with a Radeon dedicated graphics card.

Does it occur on multiple sites: Yes

Is it a problem with a plugin? No 

Did this work before? No 

Does this work in other browsers? Yes

Chrome version: 65.0.3325.181  Channel: stable
OS Version: OS X 10.13.4
Flash Version: 

Running Chrome/Chromium with the flag --disable-gpu seems to solve the issue, so it has to be something up with the GPU.
 
chrome_osx_svg_bkg_blend_issue_20180412.png
101 KB View Download

Comment 1 by salva...@gmail.com, Apr 12 2018

Made a quick test on Chrome on Android (v65) on my phone (Xiaomi Redmi 4x) and seems to show this issue as well.

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

Caused by GPU rasterization - disabling it in chrome://flags "fixes" the bug.

Bisect info: 405364 (good) - 405381 (bad)
https://chromium.googlesource.com/chromium/src/+log/7c6bf957..96bea8c0?pretty=fuller
Suspecting r405379 = 5ac42f32e7b4142cd578082424a85a26794cf0ab = https://crrev.com/2110083004 by ericrk@chromium.org
"Partial raster for GPU"
Landed in 54.0.2796.0

Since it wasn't enabled by default in Chrome 54, command line switch "--enable-gpu-rasterization" was used.
Components: -Blink Internals>GPU>Rasterization
Labels: Needs-Triage-M65
Labels: Triaged-ET M-67 Target-67 FoundIn-67
Status: Untriaged (was: Unconfirmed)
Able to reproduce the issue on reported chrome version 65.0.3325.181 and on the latest version 67.0.3395.0 using Mac 10.12.6. As the issue is seen from M60(60.0.3112.0) considering it as Non-Regression and marking it as Untriaged.
Note: Issue is not seen on Ubuntu 14.04 and Mac 10.12.6.

Thanks!
Owner: ericrk@chromium.org
Status: Assigned (was: Untriaged)
ericrk can you take a look? It looks like this might be related to https://crrev.com/2110083004.

Comment 7 by ericrk@chromium.org, Apr 16 2018

It looks like the border pixels when partial rastering are not being generated correctly when a background-color blend mode is in use - seems like the edges of the partial raster region end up having *only* the background-color, not the image that is supposed to be blended with that color. Will try to capture an SKP.

Comment 8 by ericrk@chromium.org, Apr 17 2018

Components: Internals>Skia
Owner: hcm@chromium.org
It appears that, in the scenario we're hitting here, Skia is drawing outside of the clip set on the canvas by 1 pixel, and filling these pixels incorrectly.

At the end of raster, but before popping the raster clip from the canvas, I asked Skia to draw a huge solid-color rect. Although this rect is much larger than the clip, it does not cover the border pixels we're seeing, indicating that Skia has somehow filled outside of the clip.

hcm@ can you help triage?

Comment 9 by hcm@chromium.org, May 1 2018

Cc: hcm@chromium.org
Owner: reed@google.com
I think I need to get this to Mike for a look..thanks for the analysis

Comment 10 by reed@google.com, May 1 2018

Cc: fmalita@chromium.org
inval bounds?
Owner: reed@chromium.org

Comment 12 by reed@chromium.org, Jan 16 (6 days ago)

Owner: reed@google.com

Sign in to add a comment