amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

AMP page content couldn't get rendered occasionally when using iOS device models in Chrome DevTools

Open eric30 opened this issue 9 years ago • 24 comments

What's the issue?

Sometimes when I was using Chrome DevTools + spoofing iOS UA (e.g. iPhone 5/6) and performed a query on Google Search, publishers' AMP pages would be blank:

amp-issue-screenshot1

As you can see, only the title bar of AMP viewer appeared. I've also checked the Network panel, and all the resources seem to be downloaded successfully.

How do we reproduce the issue?

  1. Open Chrome's Incognito mode (this is not mandatory, but the chance for this issue to be reproduced seems to be higher if it's in Incognito mode)
  2. Change the device type to "iPhone 6"
  3. Visit www.google.co.in
  4. Search "India News"
  5. Click a news article which is NOT placed in any of the carousels in Google Search.

It's not always reproducible. Also, sometimes when you force refreshing the page, the content would be correctly displayed again.

What browsers are affected?

Chrome + spoofing iOS device models (iPhone 6 / iPhone5)

Which AMP version is affected?

1504119607313

eric30 avatar Sep 11 '17 02:09 eric30

@eric30 Do you know if this happens on real devices as well or just when spoofing with DevTools?

aghassemi avatar Sep 11 '17 15:09 aghassemi

/cc @jridgewell @dvoytenko

aghassemi avatar Sep 11 '17 15:09 aghassemi

I have no idea what's going on here. Maybe a gpu bug? Thankfully, I can't reproduce it on an actual iOS device.

jridgewell avatar Sep 11 '17 20:09 jridgewell

Sorry for the late reply. I was unable to reproduce on actual iOS devices either. It's just I've got some feedback from developers that this does impact the development process.

eric30 avatar Sep 25 '17 04:09 eric30

Promoting to P0, we've had a second report. Reproducible at https://www.google.com/amp/s/picdx.com/isabellemathersx in iOS Simulator and using Chrome's simulator.

jridgewell avatar Sep 25 '17 18:09 jridgewell

/cc @dvoytenko This has something to do with the iOS viewer.

jridgewell avatar Sep 25 '17 18:09 jridgewell

Turns out #11411 is not a duplicate, just looked similar.

jridgewell avatar Sep 25 '17 19:09 jridgewell

I'm able to reproduce this reliably by doing:

  • Clear all data from https://m-timesofindia-com.cdn.ampproject.org/c/m.timesofindia.com/amp_india
    • Dev tools > Application > Clear Storage > Clear Site Data
  • Set your mobile emulation to an iOS browser
  • Go to https://www.google.co.in
  • Search for "India News"
  • Click Times of India result below carousel

jridgewell avatar Sep 25 '17 19:09 jridgewell

I get a feedback from developers who also get this issue. In iOS Google App (real iPhone, not in Chrome DevTools), search "feebee 拍賣 冰霸杯" and tap the feebee AMP page, we will see AMP page is blank. Here is screenshot: 3

101keith avatar Sep 26 '17 09:09 101keith

@101keith or @eric30 are either of you able to reproduce on an actual iOS device (using iOS Safari 8, 9, 10, or 11)? Or is this only happening when emulating Safari on desktop Chrome?

Edit: I see @101keith is getting this is Google Search App.

jridgewell avatar Sep 26 '17 18:09 jridgewell

@101keith: Your bug is an unrelated issue in iGSA. I've created a tracking issue at https://github.com/ampproject/amphtml/issues/11445, please leave further comments there.

jridgewell avatar Sep 26 '17 18:09 jridgewell

@ericfs - Can you take a look at this. Looks like the viewer has some issues painting the iframe.

Only happens if you follow the steps above.

Does not happen when you enter the url like this directly like this.

https://www.google.com/amp/m.timesofindia.com/india/drug-mafia-is-after-me-honeypreet-singh-in-anticipatory-bail-plea/amp_articleshow/60838284.cms

camelburrito avatar Sep 26 '17 20:09 camelburrito

@stephen-deg for iOS

ericfs avatar Sep 26 '17 20:09 ericfs

@ericfs: It's not an iGSA issue, it's Chrome emulating iOS on desktop. Ignore @101keith's comment, it's a separate issue.

jridgewell avatar Sep 26 '17 20:09 jridgewell

Tracked internally: b/64733151

I can't repro even following Justin's instructions so not sure if this is viewer or runtime issue.

ericfs avatar Sep 26 '17 21:09 ericfs

Tried again with Mac Chrome and was able to repro

ericfs avatar Sep 26 '17 22:09 ericfs

@jridgewell, @ericfs, could anyone confirm whether this is reproducible on an actual device (i.e. is this really P0 or not). Planning to look into it today if really P0. Thanks.

aghassemi avatar Sep 27 '17 17:09 aghassemi

I have no evidence that this has happened on an actual device.

ericfs avatar Sep 28 '17 16:09 ericfs

I was also unable to produce on a device.

jridgewell avatar Sep 29 '17 21:09 jridgewell

I was unable to reproduce on a real device either (specified here)

eric30 avatar Sep 30 '17 08:09 eric30