amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

[IE10] High volume exception "Error: Unspecified error."

Open adelinamart opened this issue 8 years ago • 18 comments

Error: Unspecified error. at (https://raw.githubusercontent.com/ampproject/amphtml/1528841168349/src/service/fixed-layer.js:197) at getOffsetFromParent (https://raw.githubusercontent.com/ampproject/amphtml/1528841168349/src/service/layers-impl.js:798) at (https://raw.githubusercontent.com/ampproject/amphtml/1528841168349/extensions/amp-ad/0.1/amp-ad-3p-impl.js:308) at measureIframeLayoutBox_ (https://raw.githubusercontent.com/ampproject/amphtml/1528841168349/extensions/amp-ad/0.1/amp-ad-3p-impl.js:276) at (https://raw.githubusercontent.com/ampproject/amphtml/1528841168349/src/service/resource.js:676) at layoutCallback (https://raw.githubusercontent.com/ampproject/amphtml/1528841168349/src/base-element.js:465)

User agent Mozilla/5.0 (compatible; MSIE 10.0; Windows Phone 8.0; Trident/6.0; IEMobile/10.0; ARM; Touch; NOKIA; Lumia 625) Service default-cdn-1p Version 011528841168349

adelinamart avatar Jun 15 '18 16:06 adelinamart

@aghassemi I assigned it to you because I think is connect to the last change you approved at https://github.com/ampproject/amphtml/pull/15850 Please reroute to a different person if that's not the case.

adelinamart avatar Jun 15 '18 16:06 adelinamart

/to @jridgewell

aghassemi avatar Jun 15 '18 18:06 aghassemi

Getting lots of occurrences on this. @choumx can someone look into this asap. Thanks.

adelinamart avatar Jun 15 '18 20:06 adelinamart

go/ampe/CO-C2PyknvTyJg

dreamofabear avatar Jun 15 '18 21:06 dreamofabear

The deobfuscated stack trace is fubar'ed.

~Deobfuscated~ DO NOT USE:

Error: Unspecified error.
at (https://raw.githubusercontent.com/ampproject/amphtml/1528841168349/src/service/fixed-layer.js:197)
at getOffsetFromParent (https://raw.githubusercontent.com/ampproject/amphtml/1528841168349/src/service/layers-impl.js:798)
at (https://raw.githubusercontent.com/ampproject/amphtml/1528841168349/extensions/amp-ad/0.1/amp-ad-3p-impl.js:308)
at measureIframeLayoutBox_ (https://raw.githubusercontent.com/ampproject/amphtml/1528841168349/extensions/amp-ad/0.1/amp-ad-3p-impl.js:276)
at (https://raw.githubusercontent.com/ampproject/amphtml/1528841168349/src/service/resource.js:676)
at layoutCallback (https://raw.githubusercontent.com/ampproject/amphtml/1528841168349/src/base-element.js:465)

Minified:

Error: Unspecified error.
   at getLayoutRect (https://cdn.ampproject.org/rtv/011528841168349/v0.js:401:33)
   at getLayoutRect (https://cdn.ampproject.org/rtv/011528841168349/v0.js:426:102)
   at rc (https://cdn.ampproject.org/rtv/011528841168349/v0/amp-ad-0.1.js:96:36)
   at onLayoutMeasure (https://cdn.ampproject.org/rtv/011528841168349/v0/amp-ad-0.1.js:95:146)
   at updateLayoutBox (https://cdn.ampproject.org/rtv/011528841168349/v0.js:227:421)
   at measure (https://cdn.ampproject.org/rtv/011528841168349/v0.js:207:400)
   at gk (https://cdn.ampproject.org/rtv/011528841168349/v0.js:346:495)
   at h (https://cdn.ampproject.org/rtv/011528841168349/v0.js:357:304)
   at setState (https://cdn.ampproject.org/rtv/011528841168349/v0.js:320:494)
   at doPass (https://cdn.ampproject.org/rtv/011528841168349/v0.js:341:29

dreamofabear avatar Jun 15 '18 21:06 dreamofabear

Looks like it's an IE 10 bug that throws up on this getBoundingClientRect():

https://github.com/ampproject/amphtml/blob/b1495f0f7cc7e124d8fde2f584346142dd15223e/src/service/viewport/viewport-binding-natural.js#L209-L210

dreamofabear avatar Jun 15 '18 21:06 dreamofabear

This is how Internet Explorer (not just IE 10) handles the issue of trying to call getBoundingClientRect on an element that has not been added do your document yet. Chrome and FF just return 0, but IE throws.

https://github.com/dart-lang/sdk/issues/19065#issuecomment-108436331 https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/106812/

@lannka I think this throws if this.xOriginIframeHandler_.iframe is not attached to the DOM:

https://github.com/ampproject/amphtml/blob/b1495f0f7cc7e124d8fde2f584346142dd15223e/extensions/amp-ad/0.1/amp-ad-3p-impl.js#L308-L309

Naive fix is to check isConnected first.

dreamofabear avatar Jun 15 '18 21:06 dreamofabear

Appears to have started with RTV 1528841168349 but after some brief searching I'm not sure which PR could've caused this.

/to @lannka For fixing the ads code. /cc @keithwrightbos @zhouyx

dreamofabear avatar Jun 15 '18 22:06 dreamofabear

I tried loading one of the repro URLs on IE10 and I see a lot of console errors (not just this one) and don't see any ads. Ads appear to load on IE11.

Do we officially support doubleclick ads on IE10?

dreamofabear avatar Jun 15 '18 22:06 dreamofabear

FWIW not sure this is P0 considering it appears to only affect IE10.

dreamofabear avatar Jun 15 '18 22:06 dreamofabear

We do not, only IE11 or later: https://support.google.com/dfp_premium/answer/188087?hl=en

On Fri, Jun 15, 2018, 6:11 PM William Chou [email protected] wrote:

I tried loading one of the repro URLs on IE10 and I see a lot of console errors (not just this one) and don't see any ads. Ads appear to load on IE11.

Do we officially support doubleclick ads on IE10?

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/ampproject/amphtml/issues/16069#issuecomment-397754980, or mute the thread https://github.com/notifications/unsubscribe-auth/ABr0L5RO5IB4AAFNTcbY06q3dXkfeZMwks5t9DEKgaJpZM4Upzqe .

keithwrightbos avatar Jun 15 '18 22:06 keithwrightbos

Downgrade this issue since we do not officially support IE10.

@lannka I think this throws if this.xOriginIframeHandler_.iframe is not attached to the DOM:

If that's the case we should have this.xOriginIframeHandler_.iframe defined only after the iframe has been added to the document.

However I don't know why the error stack all mentioned the getOffsetFromParent function. Can we reproduce this?

zhouyx avatar Jun 15 '18 23:06 zhouyx

thanks folks. i'm trying to reproduce on SauceLabs

lannka avatar Jun 15 '18 23:06 lannka

BTW, I don't know that AMP still support IE10 :-o Also, surprised that IE10 bug can cause such a spike

lannka avatar Jun 15 '18 23:06 lannka

Saw many other errors in IE10, but not the one here:

screen shot 2018-06-15 at 5 03 34 pm

lannka avatar Jun 16 '18 00:06 lannka

@zhouyx The unminified stack is incorrect, you should ignore it.

dreamofabear avatar Jun 18 '18 16:06 dreamofabear

@jridgewell Do we have a sense of how many deobfuscated traces are unreliable?

dreamofabear avatar Jun 18 '18 16:06 dreamofabear

Not seeing them anymore.

lannka avatar Jul 16 '18 17:07 lannka