amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

Error: Cannot read property 'forEach' of null

Open dparikh opened this issue 8 years ago • 9 comments

stack trace:

Error: Cannot read property 'forEach' of null at forEach (https://raw.githubusercontent.com/ampproject/amphtml/1527203409437/extensions/amp-animation/0.1/web-animations.js:162) at pause (https://raw.githubusercontent.com/ampproject/amphtml/1527203409437/extensions/amp-animation/0.1/amp-animation.js:487) at pause_ (https://raw.githubusercontent.com/ampproject/amphtml/1527203409437/extensions/amp-animation/0.1/amp-animation.js:352) at (https://raw.githubusercontent.com/ampproject/amphtml/1527203409437/extensions/amp-animation/0.1/amp-animation.js:137) at (https://raw.githubusercontent.com/ampproject/amphtml/1527203409437/src/observable.js:79) at fire (https://raw.githubusercontent.com/ampproject/amphtml/1527203409437/src/friendly-iframe-embed.js:475) at setVisible_ (https://raw.githubusercontent.com/ampproject/amphtml/1527203409437/src/friendly-iframe-embed.js:100) at matchMedia (https://raw.githubusercontent.com/ampproject/amphtml/1527203409437/src/custom-element.js:630) at ownerDocument (https://raw.githubusercontent.com/ampproject/amphtml/1527203409437/src/custom-element.js:628) at element (https://raw.githubusercontent.com/ampproject/amphtml/1527203409437/src/base-element.js:954) at (https://raw.githubusercontent.com/ampproject/amphtml/1527203409437/src/service/resources-impl.js:550) at (https://raw.githubusercontent.com/ampproject/amphtml/1527203409437/src/service/resources-impl.js:1195) at (https://raw.githubusercontent.com/ampproject/amphtml/1527203409437/src/service/history-impl.js:225) at onVisibilityChanged (https://raw.githubusercontent.com/ampproject/amphtml/1527203409437/src/service/resources-impl.js:251)

Sample referrer:

Referrer https://noticias-uol-com-br.cdn.ampproject.org/v/s/noticias.uol.com.br/saude/ultimas-noticias/bbc/2015/02/11/confira-quantas-horas-voce-precisa-dormir-de-acordo-com-sua-idade.amp.htm?amp_js_v=0.1&usqp=mq331AQECAEoAQ%3D%3D User agent Mozilla/5.0 (Linux; Android 4.2.2; GT-I9082L Build/JDQ39) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.114 Mobile Safari/537.36 Service default-cdn-1p-canary Version 031527203409437

dparikh avatar Jun 01 '18 23:06 dparikh

This stack trace does not make sense. There is a dev().assert() right above the forEach so we should never get this error. @erwinmombay is dev().assert() being removed from compiled files now?

aghassemi avatar Jun 01 '18 23:06 aghassemi

Ref: https://pantheon.corp.google.com/errors?service=default-cdn-1p-canary&time=PT6H&filter=%27forEach%2720of&order=COUNT_DESC&resolution=OPEN&resolution=ACKNOWLEDGED&project=amp-error-reporting

dparikh avatar Jun 01 '18 23:06 dparikh

Also happening in the current release, not specific to this canary but still recent.

aghassemi avatar Jun 02 '18 00:06 aghassemi

This is a high priority issue but it hasn't been updated in awhile. @aghassemi Do you have any updates?

erwinmombay avatar Aug 21 '18 02:08 erwinmombay

This is a high priority issue but it hasn't been updated in awhile. @aghassemi Do you have any updates?

ampprojectbot avatar Sep 11 '18 07:09 ampprojectbot

This is a high priority issue but it hasn't been updated in awhile. @aghassemi Do you have any updates?

ampprojectbot avatar Oct 16 '18 09:10 ampprojectbot

This is a high priority issue but it hasn't been updated in awhile. @aghassemi Do you have any updates?

ampprojectbot avatar Nov 08 '18 03:11 ampprojectbot

This is a high priority issue but it hasn't been updated in awhile. @aghassemi Do you have any updates?

ampprojectbot avatar Nov 28 '18 05:11 ampprojectbot

This is a high priority issue but it hasn't been updated in awhile. @aghassemi Do you have any updates?

ampprojectbot avatar Jan 09 '19 10:01 ampprojectbot