echarts-gl icon indicating copy to clipboard operation
echarts-gl copied to clipboard

Memory leak when enable `grid3D.postEffect`

Open troy351 opened this issue 3 years ago • 2 comments

  • dispose and create echarts instance with the same option on the same dom node many times
  • with grid3D.postEffect.enabled: true image
  • without grid3D.postEffect.enabled: true image

troy351 avatar Mar 09 '23 05:03 troy351

Possible reproduce code

let myChart;

setInterval(() => {
  if (myChart) myChart.dispose();

  myChart = echarts.init(dom, null, {
    renderer: "canvas",
  });

  myChart.setOption(option);
}, 100);
  • without postEffect: everything works
  • with postEffect shows error after a few seconds, which also proves memory leak image

troy351 avatar Mar 09 '23 05:03 troy351

@pissang

troy351 avatar Mar 09 '23 05:03 troy351