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

Issue 713702 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 713632
Owner:
Last visit > 30 days ago
Closed: Apr 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug-Regression



Sign in to add a comment

Chrome displays a javascript-generated bitmap darker when its size is > 256 pixels

Reported by remi.cou...@gmail.com, Apr 20 2017

Issue description

Chrome Version       : 57.0.2987.132 (Official Build) (32-bit)
URLs (if applicable) : https://jsfiddle.net/x8hujef8/
Other browsers tested:
  Add OK or FAIL, along with the version, after other browsers where you
have tested this issue:
     Safari: OK
    Firefox: OK
         IE: not tested

What steps will reproduce the problem?
(1) Open https://jsfiddle.net/x8hujef8/
(2)
(3)

What is the expected result?

Display two gray squares of the same color


What happens instead?

The second square is darker

Please provide any additional information below. Attach a screenshot if
possible.

The bug is not visible on that version:
53.0.2785.143 (Developer Build) Built on Ubuntu , running on Ubuntu 14.04 (64-bit)
 
Screenshot_20170420-155444.png
128 KB View Download
Forgot to mention this is in Android.

I tried 58.0.3029.81 (Official Build) (64-bit) in Ubuntu, and the bug is not there.

I tried 59.0.3068.4 (Official Build) dev (32-bit) in Android, and the bug is there.

So it looks like the bug is Android-specific.

Comment 2 by mmenke@chromium.org, Apr 20 2017

Components: Blink>Canvas
Labels: Needs-triage-Mobile Needs-Bisect Needs-Triage-M59

Comment 4 by junov@chromium.org, Apr 20 2017

Labels: -Type-Bug OS-Android Type-Bug-Regression
Owner: zakerinasab@chromium.org
Status: Assigned (was: Unconfirmed)

Comment 5 by junov@chromium.org, Apr 20 2017

Cc: msarett@chromium.org
Components: Internals>Skia
Looks like the GPU-accelerated version of putImageData is doing a bad gamma conversion or something like that.

A bisect would be very helpful.
I tested Chrome 57.0.2987.132 (official) and Canary 60.0.3076.0 on Nexus 6P and Nexus 9. It was not reproducible on Nexus 6P, but it was reproducible on both Chrome and Canary on Nexus 9. I'll do a bisect.
I am using a OnePlus 3 phone, and it may be that the recent upgrade to Android 7.1.1 caused the bug to appear. One month ago, my web site worked correctly on my phone.
The Android version of the Nexus 6P phone is 7.1.2. Please check if you can upgrade to 7.1.2 and if it resolves the issue.
OnePlus does not ship upgrades extremely frequently, so I guess it will take at least a couple months before I get a new Android version.

Also, many of my customers are going to see the buggy behaviour. I wonder if you can suggest a workaround that would make the putImageData work.
Mergedinto: 713632
Status: Duplicate (was: Assigned)
I think junov@'s theory is correct. I've identified a likely error in the GPU implementation of putImageData. My theory is that putting sRGB encoded data to a non-sRGB surface will linearize the data, making it darker. I'll verify and fix on the Skia side.

Sign in to add a comment