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

[Bug Report] el-tree memory leak problem #14858

Closed
superchangme opened this issue Mar 27, 2019 · 7 comments
Closed

[Bug Report] el-tree memory leak problem #14858

superchangme opened this issue Mar 27, 2019 · 7 comments
Assignees
Labels
Milestone

Comments

@superchangme
Copy link

Element UI version

2.6.3

OS/Browsers version

win7 / ie11

Vue version

2.6.10

Reproduction Link

https://jsfiddle.net/superchangme/z9rswmtp

Steps to reproduce

1.使用ie11浏览器打开链接,同时打开任务管理观察iexplore.exe内存变化
2.点击页面中的添加树按钮一次,观察内存增长30MB左右
3.点击多次添加树按钮,观察内存持续增长
4.点击删除树按钮,观察内存并未减少
5.关闭页面,不退出ie浏览器内存依然没有减少。

What is Expected?

希望el-tree销毁时,内存会减少

What is actually happening?

怀疑ie下el-tree存在内存泄漏,请解决

@element-bot element-bot changed the title [Bug Report] el-tree内存泄漏问题 [Bug Report] el-tree memory leak problem Mar 27, 2019
@element-bot
Copy link
Member

Translation of this issue:

Element UI version

2.6.3

OS/Browsers version

Win7 / ie11

Vue version

2.6.10

Reproduction Link

https://jsfiddle.net/superchangme/z9rswmtp

Steps to reproduce

  1. Open links with ie11 browser and open task management to observe iexplore.exe memory changes

  2. Click the Add Tree button on the page once to observe the memory growth of about 30MB.

  3. Click the Add Tree button many times to observe the continuous growth of memory.

  4. Click on the Delete Tree button to see that memory does not decrease.

  5. Close the page, do not quit IE browser memory is still not reduced.

What is Expected?

Hopefully, memory will decrease when el-tree is destroyed

What is actually happening?

If you suspect that there is a memory leak in el-tree under ie, please resolve it

@superchangme
Copy link
Author

请回复,急!~~~

@iamkun iamkun added this to the 2.8.0 milestone Apr 9, 2019
@luckyCao luckyCao modified the milestones: 2.8.0, 2.9.0 Apr 23, 2019
@luckyCao luckyCao modified the milestones: 2.9.0, 3.0 May 27, 2019
@cfangxx
Copy link

cfangxx commented Nov 13, 2019

急呀 怎么办

@superchangme
Copy link
Author

在elTree 代码里发现了多处this.$on监听事件方法,却没有看到相应的$off代码,怀疑和事件未解绑有关。

@superchangme
Copy link
Author

this.$watch(`node.data.${childrenKey}`, () => {
    this.node.updateChildren();
  });

这段在tree-node实例里的watch也没有手动销毁

@superchangme
Copy link
Author

尝试把watch和监听去掉后,也没有明显改善。

@stale
Copy link

stale bot commented Nov 29, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Nov 29, 2020
@stale stale bot closed this as completed Dec 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants