Skip to content
New issue

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

内存溢出问题 #2280

Open
foxii-cn opened this issue Feb 1, 2024 · 2 comments
Open

内存溢出问题 #2280

foxii-cn opened this issue Feb 1, 2024 · 2 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@foxii-cn
Copy link

foxii-cn commented Feb 1, 2024

问题描述

使用new L7.Scenenew GaodeMap创建地图实例,调用scene.destroy()后,打开chrome开发者工具内存一栏,点击垃圾回收后,拍摄堆快照,搜索layerscene可以看到大量对象并未被释放
image
image

重现链接

https://codesandbox.io/p/sandbox/hungry-sid-yj4ylr?file=%2Fpackage.json

重现步骤

进入页面等加载完就可以垃圾回收拍摄堆快照了,拍之前记得要选中*.csb.app那个

预期行为

layer等对象应该被释放,scene在持有它的引用销毁后也应该被释放

平台

  • 操作系统: [Windows.]
  • 网页浏览器: [Google Chrome]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

Copy link
Contributor

github-actions bot commented Feb 1, 2024

hi @foxii-cn, welcome!

@github-actions github-actions bot added the good first issue Good for newcomers label Feb 1, 2024
@lzxue
Copy link
Contributor

lzxue commented Feb 1, 2024

感谢反馈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants