vue-pc-chat icon indicating copy to clipboard operation
vue-pc-chat copied to clipboard

发送文件的内存泄漏问题

Open w3cways opened this issue 3 years ago • 2 comments

window 10 64位 用master 分支,启动后,截图(可以截稍微大一点,这样看内存泄漏明显一点) 然后发送图片 然后会进入到proto.min.js中如图所示的判断内 23f78c926be2015eaa38d65d8c7e5ff 在下方打个断点,执行下去的时候,就能看到内存泄漏,无法回收

也尝试过发送成功后 messge.messageContent.file = null 还是一样

PS:执行完new File()后,是主进程内存会增长且不会回收

w3cways avatar Aug 23 '22 12:08 w3cways

补充一点信息:

  1. electron/remote可能没关系。
  2. && message.messageContent.file判断去掉,然后发送大文件更好复现问题

具体内存泄漏原因,还在调查

imndx avatar Aug 24 '22 03:08 imndx

已解决,请拉取 dev-remove-remote分支进行测试

imndx avatar Aug 28 '22 01:08 imndx