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

Issue 603815 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Jun 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Clip region in HTML5 canvas not working as expected

Reported by cmw...@labci.com, Apr 15 2016

Issue description

Chrome Version       : 50.0.2661.75
Other browsers tested:
    Firefox: OK
         IE: OK

Please refer to the attached picture.

The top canvas shows a red region and a blue region and their intersection is thus shown as purple.

In the bottom canvas, the red region is changed to a clip region. The result should show only the purple intersection.

The testing HTML is attached for reference
 
chrome_clip.png
89.9 KB View Download
test.html
5.7 KB View Download

Comment 1 by f...@opera.com, Apr 15 2016

Components: Blink>Canvas

Comment 2 by junov@chromium.org, Apr 18 2016

What is your OS and GPU model?

There is a known issue with clipping on Windows systems with AMD GPUs.
See  issue 597107 

Comment 3 by cmw...@labci.com, Apr 19 2016

I am using a ThinkPad Edge core i5 notebook, Intel display, and Win7

I've also tried another desktop running Win8, Intel display, and has the same problem.

I didn't have this problem before and see it after a recent chrome upgrade.

Thanks

Comment 4 by junov@chromium.org, Apr 19 2016

We just landed a fix that resolves clipping on all devices where Chrome is using DirectX9, which may include your system.

Please download an install the Chrome Canary: https://www.google.com/chrome/browser/canary.html

You can install Canary alongside a regular installation of Chrome (no need to uninstall anything).

This is our nightly build, which includes the recent fix.  Let us know if it solves your issue.

Comment 5 by cmw...@labci.com, Apr 20 2016

Sorry, doesn't seem to fix the problem

Comment 6 by cmw...@labci.com, Apr 20 2016

Just tested it in my Android Chrome (v47), it's OK
Cc: rnimmagadda@chromium.org
Labels: Needs-Feedback
Verified this issue on Windows 7 for Google Chrome Canary Version - 52.0.2713.0 and attached is the output.

@cmwong: Could you please have a look at the attached attachment and let us know if this is the correct behavior.

Else, please provide us the screen-recording for better understanding.

Thank you.
603815.png
7.9 KB View Download

Comment 8 by junov@chromium.org, Apr 20 2016

I would expect things to be OK in Chrome 47. The clipping bug we are aware of appeared in Chrome 49, and became more widespread in Chrome 50 (current stable release). It is fixed in Chrome 52 (Canary)

Please confirm that in Comment #5 you are referring to 52.0.2712.0 or later.
Navigate to chrome://version to get the full version number.
@cmwong: Could you please conform as per the comment #8

Comment 10 by cmw...@labci.com, Apr 21 2016

@rnimmagadda: Yours is the correct behavior.

I have further tested mine, but still not successful. (All are using the internal Intel Graphics Display)

v52.0.2713.0
------------
Dev machine 1:  Win7, failed (please see attachment)
Test machine 2: Win8, failed
Test machine 3: Win7, failed

v50
---
Dev machine 1:  Win7, failed
Test machine 2: Win8, failed
Test machine 3: Win7, failed

v49
---
My colleagues are still using this versions. Some of them show the correct result, others not.

Since you can get it work, I suspect it may be a driver problem. Let me try to upgrade the driver firstand try again.

Thanks a lot

Comment 11 by cmw...@labci.com, Apr 21 2016

Attachment
test.png
149 KB View Download
@cmwong: Could you also please perform the steps mentioned beneath and let us know your observations.

1. Uninstall Google Chrome.
2. Remove the Google Chrome Folder from -> C://Program Files
3. Install Google Chrome Canary Latest Version - 52.0.2713.0
4. Do not Login to Chrome with your credentials.
5. Re-test the same on a clean profile [chrome://settings -> Add Person]

Thank you. 
52.0.2713.0.png
38.7 KB View Download

Comment 13 by cmw...@labci.com, Apr 21 2016

@rnimmagadda: uninstall all chromes, remove chrome folders in C:\Program Files (x86) and C:\Users\...\AppData, reinstall Chrome v52, no login. Same result.

Thanks
Cc: junov@chromium.org
@junov: Could you please look into this issue.
Project Member

Comment 15 by sheriffbot@chromium.org, Apr 21 2016

Labels: -Needs-Feedback Needs-Review
Owner: rnimmagadda@chromium.org
Thank you for providing more feedback. Adding requester "rnimmagadda@chromium.org" for another review and adding "Needs-Review" label for tracking.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: -Needs-Review Needs-Feedback
Owner: ----
Components: Internals>GPU>ANGLE
Owner: geoffl...@chromium.org
Status: Assigned (was: Unconfirmed)
Geoff, I think this is a dupe of some GPU clipping issues you were looking at.

Comment 18 by cmw...@labci.com, Jun 15 2016

Just found out that the issue is gone in Version 51.0.2704.84m. Thanks.

Comment 19 by junov@chromium.org, Jun 15 2016

Status: Fixed (was: Assigned)

Sign in to add a comment