简体   繁体   English

“ResizeObserver - 超出循环限制” | 从未使用过 API

[英]“ResizeObserver - loop limit exceeded” | API is never used

I am running a hybrid PhoneGap app (for a several years, running Cordova Android 6.1.2, more recently 9.0);我正在运行一个混合 PhoneGap 应用程序(几年来,运行 Cordova Android 6.1.2,最近是 9.0); for years, our #1 javascript error by a significant margin has been多年来,我们的 #1 javascript 错误一直显着

ResizeObserver loop limit exceeded

However , the key distinction for my issue compared to the many other reports found on Google of this error is is that there are 0 instances of ResizeObserver being used anywhere in my code.但是,与在 Google 上发现的有关此错误的许多其他报告相比,我的问题的主要区别在于,在我的代码中的任何位置使用了 0 个 ResizeObserver 实例。 Searching my entire computer, the only instance of ResizeObserver showing up anywhere is a random Steam file.搜索我的整个计算机,唯一出现在任何地方的 ResizeObserver 实例是一个随机的 Steam 文件。 Looking at my app while it's running, setting window.ResizeObserver = undefined doesn't break/do anything and document.resizeObservers (per the W3C documentation) returns nothing.在运行时查看我的应用程序,设置window.ResizeObserver = undefined不会破坏/执行任何操作,并且document.resizeObservers (根据 W3C 文档)不返回任何内容。

I have seen this post, which seems to be the canonical one for this error: ResizeObserver - loop limit exceeded .我看过这篇文章,它似乎是此错误的规范文章: ResizeObserver - loop limit exceeded The answer of "This error means that ResizeObserver was not able to deliver all observations within a single animation frame. It is benign (your site will not break)." “此错误意味着 ResizeObserver 无法在单个动画帧内提供所有观察结果。这是良性的(您的站点不会中断)”的答案。 would be sufficient for me if I was actually using ResizeObserver.如果我真的在使用 ResizeObserver,那对我来说就足够了。 Since I am not using it, I am concerned that this error showing up is indicative of something larger going wrong.由于我没有使用它,我担心出现的这个错误表明出现了更大的错误。

There is no discernible pattern from our users' Chrome version/locale/time zone/Android version/etc/etc, unfortunately.不幸的是,我们用户的 Chrome 版本/语言环境/时区/Android 版本/等/等没有可辨别的模式。

I've researched this API extensively and have found nothing that would indicate to my issue;我对这个 API 进行了广泛的研究,但没有发现任何可以表明我的问题的东西; either why there would be some sort of phantom ResizeObserver running and/or why that error would show up in an app that doesn't use that API.要么为什么会运行某种幻影 ResizeObserver 和/或为什么该错误会出现在不使用该 API 的应用程序中。

Any help here (even just a vague direction to look at) would be very much appreciated.非常感谢这里的任何帮助(即使只是一个模糊的方向)。 Thanks so much!非常感谢!

https://bugs.chromium.org/p/chromium/issues/detail?id=809574https://bugs.chromium.org/p/chromium/issues/detail?id=809574

Even the browser's Shadow DOM may be using this API, and cause this error to fire.甚至浏览器的 Shadow DOM 也可能正在使用此 API,并导致触发此错误。
You can still safely ignore it.您仍然可以放心地忽略它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM