You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2021/03/26 10:09:23 UTC

[GitHub] [echarts] wzbmax3210 opened a new issue #14538: K线图调用dispose()后内存在长时间内还是没有释放

wzbmax3210 opened a new issue #14538:
URL: https://github.com/apache/echarts/issues/14538


   ### Version
   5.0.2
   
   ### Steps to reproduce
   vue   element
   用的是官网这个[实例](https://echarts.apache.org/examples/zh/editor.html?c=candlestick-large)
   在mounted做了大概如下处理
   ```javascript
   let productDetailCurrentPnl = this.$echarts.init(document.getElementById('currentPnl'))
   
   productDetailCurrentPnl.setOption(currentOptions)
   this.$once('hook:beforeDestroy', function() {
     console.log(productDetailCurrentPnl.isDisposed())
     productDetailCurrentPnl.dispose()
     console.log(productDetailCurrentPnl.isDisposed())
     productDetailCurrentPnl = null
     currentOptions = null
   })
   ```
   在切换页签后触发了这个钩子有打印信息但是内存没有下降
   
   ### What is expected?
   内存下降
   
   ### What is actually happening?
   内存不变
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] echarts-bot[bot] commented on issue #14538: K线图调用dispose()后内存在长时间内还是没有释放

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #14538:
URL: https://github.com/apache/echarts/issues/14538#issuecomment-808092292






-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] echarts-bot[bot] commented on issue #14538: K线图调用dispose()后内存在长时间内还是没有释放

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #14538:
URL: https://github.com/apache/echarts/issues/14538#issuecomment-808097334


   @wzbmax3210 Please provide a demo for the issue either with https://codepen.io/Ovilia/pen/dyYWXWM , https://www.makeapie.com/editor.html or https://codesandbox.io/s/mystifying-bash-2uthz.


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org