Large images have wrong coordinates calculations on Android
Reported by
denilsonsa@gmail.com,
Apr 14 2016
|
|||||||
Issue descriptionExample URL: https://github.com/denilsonsa/simone-giertz-fish-slap Steps to reproduce the problem: 1. Open these URLs: * https://denilsonsa.github.io/simone-giertz-fish-slap/fishslap_view_as_bg.html * https://denilsonsa.github.io/simone-giertz-fish-slap/fishslap_view_as_bg_big.html * https://denilsonsa.github.io/simone-giertz-fish-slap/fishslap_view_as_canvas.html 2. They have JavaScript that detect the device orientation (event.gamma). So, please tilt the device around until you see something. What is the expected behavior? All 3 URLs should work correctly. What went wrong? The first URL uses a 3840×1920 image. It works correctly. The other two URLs use a 7680×3840 image. Such image works correctly on Chrome on Linux, on Firefox on Linux and on Firefox on Android. On Chrome on Android, it seems like the browser internally scales down the image by 50% (to conserve memory, maybe), but doesn't correct all the coordinates. The result is the attached screenshot. Does it occur on multiple sites: N/A Is it a problem with a plugin? No Did this work before? N/A Does this work in other browsers? Yes Chrome version: 49.0.2623.105 Channel: stable OS Version: 6.0 Flash Version: There are some debugging lines commented out in those files. They may help looking at the coordinates.
,
Apr 19 2016
I believe that different devices might have different limitations. On Chrome on my Moto G 2nd gen (stock Android 6.0), the "small" version worked fine, while the "big" version seemed to be scaled down by precisely 50%. On Chrome on my older Nook Tablet running Cyanogenmod (Android 4.4), even the "small" version did not work correctly. The "small" version seemed to be scaled down by some arbitrary amount. I don't remember if I tested the "big" version. (It has been a few days since I last tried it on that tablet, my memory is a bit fuzzy; I can try again if needed.) Bottomline: try reproducing this bug on different devices to understand better the different behaviors.
,
Jun 13 2016
This issue observed on all small screen devices and on tablets in 51.0.2704.81 on following above steps. Tested on following devices. Issue does not exists on: 1) Samsung Galaxy S6 Edge Plus(SM-G928G)/MMB29K 2) Samsung Galaxy Note4(SM-N910C)/KTU84P Issue exists on: 1) Samsung Galaxy Tab3(GT-P5210)/KOT49H (X86) 2) Pixel C/MXC89F 3) Nexus 5/MOB30M 4) Nexus 7/MOB30M Note: please videos taken on above devices and logs taken on Nexus5/MOB30O @ http://go/androidlogs1/6/603388
,
Jun 13 2016
,
Oct 13 2016
,
Oct 26 2017
,
Oct 27 2017
Still some weird stuff happening with these images.
,
Oct 29
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Oct 29
Not happening on Pixel 2 but still an issue on Nexus 5. On the latter the image grid displays for a frame then disappears. Seems like the image is too big for something in the decode or compositing pipeline.
,
Oct 29
This bug still happens on Moto G 2nd gen (about 1GB total RAM) running Android 6.0 and Chrome 70.0.3538.64. Also happens on Firefox Focus 7.0.12 on the same device. This bug does not happen on Firefox 62.0.3 on Moto G 2nd gen. This bug does not happen on a modern OnePlus 3 phone (6GB of RAM). However, I wonder if this can happen on modern devices if the image dimensions are even bigger.
,
Oct 29
> "On the latter the image grid displays for a frame then disappears." It probably reappears if you tilt the device. That page shows a different part of the image based on how you tilt the device; due to this bug, Chrome calculates the coordinates wrong, so the image sometimes disappear. |
|||||||
►
Sign in to add a comment |
|||||||
Comment 1 by rsgav...@chromium.org
, Apr 18 2016Labels: triage-te