qingguoYan opened a new issue, #19219:
URL: https://github.com/apache/echarts/issues/19219

   ### Version
   
   5.4.0
   
   ### Link to Minimal Reproduction
   
   
https://codesandbox.io/s/condescending-dubinsky-wlcpwt?file=/src/routers/echarts/index.js
   
   ### Steps to Reproduce
   
   1. Open the chrome console. (打开控制台)
   2. In the memory option, route to home after manually clicking on garbage 
collection, take a heap snapshot. (在内存选项,路由为home,手动点击垃圾回收后,拍摄堆快照)
   3. Switch to the echarts map route, click on garbage collection, and take a 
snapshot of the heap.(切换到echarts map 路由,点击垃圾回收,拍摄堆快照)
   4. Switch to home routing again, click garbage collection, and take a heap 
snapshot.(再次切换到home 路由,点击垃圾回收,拍摄堆快照)
   5. At this point, the ECHARTS component is destroyed, and echarts dispose, 
but the last snapshot generated on the home route still has data from the 
ECHARTS map, such as the JSON data that saw the China map in the string still 
in memory。 
   (此时echarts组件销毁,并且echarts进行dispose,但是最后一个在home 路由生成的快照仍然存在echarts 
map的数据,比如string中看到china 地图的json数据仍然在内存中)
   6. Incredibly, if multiple switches stay at home and memory steadily rises, 
this is a memory leak bug, and I tried to set the echarts instance to null, but 
still didn't solve it。 
(难以置信的是,如果多次切换路由停留在home后,内存稳定上升,这是一个内存泄露的bug,我尝试将echarts实例设置为null,但是仍然没有解决这个问题)
   
   ### Current Behavior
   
   echart register map,switch route to home, I think echarts should disapper 
from memory,but it is still in memory.
   and if  I switch route some times and stop on the home route finally,Memory 
is growing slowly.
    
   
   ### Expected Behavior
   
   Echarts disappears from memory when I leave the ECHARTS route, and memory 
doesn't keep growing as I switch routes
   
   ### Environment
   
   ```markdown
   - OS:windows10
   - Browser:chrome 117.0.5938.150
   - Framework:react、echarts
   ```
   
   
   ### Any additional comments?
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to