apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.47k stars 19.62k forks source link

使用 ECharts 导致APP 所有WebView 页面 卡死 #6261

Closed sunO2 closed 4 years ago

sunO2 commented 7 years ago

One-line summary [问题简述]

页面 重复开启关闭 当Echats 正在加载的时候 关闭页面 调用 webView.destroy(); 之后再进入页面 会导致 整个APP 中的 WebView 卡死 页面无法加载出来

Version & Environment [版本及环境]

Expected behaviour [期望结果]

ECharts option [ECharts配置项]

option = {

}

Other comments [其他信息]

100pah commented 7 years ago

不知『正在加载』是指加载数据,还是加载代码还是什么?

sunO2 commented 7 years ago

数据正在加载过程

FxLsoft commented 7 years ago

同样的问题,在oppo r9m上出现卡死现象。只要进入echart页面,导致所有ajax请求卡住

FxLsoft commented 7 years ago

image echart3.7版本添加动画完了关闭动画。

FxLsoft commented 7 years ago

这是由于echart进行动画时,完成后未关闭动画,坑爹啊

FxLsoft commented 7 years ago
try{
                if(navigator.userAgent.toLowerCase().indexOf('oppo') > -1){
                    window.requestAnimationFrame = function (callback) {
                        window.setTimeout(callback, 1000 / 30);
                    };
                }
            }catch (e){

            }

最后用这个方法解决的

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.