We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rrweb
2.0.0-alpha.17
同域iframe移出或刷新后释放掉占用的内存
当页面内加载同域下的iframe后,iframe刷新或者销毁无法释放内存,多次刷新后OOM。 此问题在跨域Iframe中未曾出现。
1.创建一个页面,并启动,如地址为:localhost:8080,然后加载同域下其他网页,如:localhost:8080/a.html。 2.页面开启录屏。 3.频繁刷新iframe 4.内存不断膨胀,用chrome devtools分析后发现,元素全部被MutationBuffer类占用,且iframe销毁后,管理Iframe的多个weakMap中的key(iframe.contentWindow)实际未被系统回收,内存泄漏可能与此有关,希望能尽快解决此问题。 如图:我在频繁刷新或删除增加同域iframe时,里面保留了大量iframe实例,实际我页面只有一个Iframe:
如果我在这里加个 return;则不会出现该问题
No response
The text was updated successfully, but these errors were encountered:
Same Problem and trouble me for a long time.
Sorry, something went wrong.
No branches or pull requests
Preflight Checklist
What package is this bug report for?
rrweb
Version
2.0.0-alpha.17
Expected Behavior
同域iframe移出或刷新后释放掉占用的内存
Actual Behavior
当页面内加载同域下的iframe后,iframe刷新或者销毁无法释放内存,多次刷新后OOM。
此问题在跨域Iframe中未曾出现。
Steps to Reproduce
1.创建一个页面,并启动,如地址为:localhost:8080,然后加载同域下其他网页,如:localhost:8080/a.html。
2.页面开启录屏。
3.频繁刷新iframe
4.内存不断膨胀,用chrome devtools分析后发现,元素全部被MutationBuffer类占用,且iframe销毁后,管理Iframe的多个weakMap中的key(iframe.contentWindow)实际未被系统回收,内存泄漏可能与此有关,希望能尽快解决此问题。
如图:我在频繁刷新或删除增加同域iframe时,里面保留了大量iframe实例,实际我页面只有一个Iframe:
如果我在这里加个 return;则不会出现该问题
Testcase Gist URL
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: