ecomfe / zrender

A lightweight graphic library providing 2d draw for Apache ECharts
https://ecomfe.github.io/zrender-doc/public/
BSD 3-Clause "New" or "Revised" License
6.06k stars 1.56k forks source link

The global variable pathProxyForDraw references _ctx, causing the CanvasRenderingContext2D object to fail to be deallocated, causing a memory leak #1082

Closed wenbei421 closed 5 months ago

wenbei421 commented 5 months ago

image image

plainheart commented 5 months ago

@wenbei421 可以麻烦提供一个复现例子吗?怀疑是你那边在 zrender dispose 之后,未将声明的元素也置为 null 以释放内存。

plainheart commented 5 months ago

未收到您的回应,先关闭 issue 了哈,有问题可以继续评论。

wenbei421 commented 4 months ago

是使用echarts发现的

plainheart commented 4 months ago

创建个 demo 复现一下?