ampproject / error-reporting

Contains production error tracking issues.
Apache License 2.0
2 stars 5 forks source link

🚨 Error: Illegal invocation #43

Open ampprojectbot opened 3 years ago

ampprojectbot commented 3 years ago

Details

Error report: link First seen: Mar 31, 2020 Frequency: ~ 5,715/day

Stacktrace

Error: Illegal invocation
    at createEvent (src/dom.js:977:35)
    at dispatchCustomEvent (src/custom-element.js:731:10)
    at applySize (src/service/resource.js:397:24)
    at changeSize (src/service/resources-impl.js:1058:27)
    at mutateWork_ (src/service/resources-impl.js:1838:10)
    at callback (src/finite-state-machine.js:72:6)
    at setState (src/service/resources-impl.js:783:33)
    at doPass (src/service/resources-impl.js:691:34)
    at callback (src/service/vsync-impl.js:470:16)

Notes

@dvoytenko modified src/dom.js:975-978 in #31058 (Nov 11, 2020) @rsimha modified src/custom-element.js:731-734 in #21212 (May 16, 2019) @choumx modified src/service/resource.js:397-397 in #27215 (Mar 17, 2020) @jridgewell modified src/service/resources-impl.js:1837-1839 in #1637 (Mar 18, 2016) @jridgewell modified src/finite-state-machine.js:63-78 in #1637 (Mar 18, 2016) @dvoytenko modified src/service/resources-impl.js:783-783 in #24566 (Sep 20, 2019) @jridgewell modified src/service/resources-impl.js:691-691 in #9789 (Jun 8, 2017) @jridgewell modified src/service/vsync-impl.js:470-471 in #20836 (Feb 14, 2019)

Seen in:

Possible assignees: @jridgewell

/cc @ampproject/release-on-duty

Enriqe commented 3 years ago

/cc @dvoytenko

dvoytenko commented 3 years ago

/cc @jridgewell This seems dangerous. But based on the refactoring in https://github.com/ampproject/amphtml/pull/31058 I don't see that codepath changing at all. Any clues?

jridgewell commented 3 years ago

Reading the reports, it looks like this is coming from a Facebook webview on iOS.

jridgewell commented 3 years ago

Likely, a bad webview setup

dvoytenko commented 3 years ago

Thanks!

samouri commented 3 years ago

Why wouldn't this have been previously occurring?

jridgewell commented 3 years ago

Facebook could have updated their webview code. Webviews are special in that they can inject any JS they want to glue together the webpage and the app's native code. The error is coming from that glue, though I don't know why because I can't debug it.