[GitHub] [incubator-echarts] szkissyh commented on issue #11615: IOS 一个页面切换地理坐标图时报错:TypeError:null is not an object(evaluating 'this.ctx.dpr=this.dpr')

2019-11-12 Thread GitBox
szkissyh commented on issue #11615: IOS 一个页面切换地理坐标图时报错:TypeError:null is not an 
object(evaluating 'this.ctx.dpr=this.dpr')
URL: 
https://github.com/apache/incubator-echarts/issues/11615#issuecomment-552783800
 
 
   > 从截图来看你竖屏时候的分辨率太高了,对于 canvas 来说内存占用跟分辨率是正比的
   
   是分辨率太高了,调整以后就好了,谢谢


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:
us...@infra.apache.org


With regards,
Apache Git Services

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



[GitHub] [incubator-echarts] szkissyh commented on issue #11615: IOS 一个页面切换地理坐标图时报错:TypeError:null is not an object(evaluating 'this.ctx.dpr=this.dpr')

2019-11-11 Thread GitBox
szkissyh commented on issue #11615: IOS 一个页面切换地理坐标图时报错:TypeError:null is not an 
object(evaluating 'this.ctx.dpr=this.dpr')
URL: 
https://github.com/apache/incubator-echarts/issues/11615#issuecomment-552393085
 
 
   > 一般这种错误是 dispose 后继续使用 chart 实例造成的,@szkissyh 建议再排查一下,同时也可以整理一个可以最小复现的 demo 
发给我们
   
   我发现了问题,并且可以复现,问题的核心是同样一个世界地图模型,在横屏和竖屏模式下占用的内存相差很多。
   横屏模式占用内存较少,**为18M**
   
![image](https://user-images.githubusercontent.com/31839257/68581680-d9ebfc80-04b3-11ea-899c-c0d2fb66be30.png)
   竖屏模式占用内存较多,**为49M**
   
![image](https://user-images.githubusercontent.com/31839257/68581720-f1c38080-04b3-11ea-896e-e9b8159b7d25.png)
   
   而我们操作多为竖屏操作,多次操作后出现total canvas memory use exceeds the maximum 
limit,超出了safari支持的最大canvas内存支持(我的为384MB)


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:
us...@infra.apache.org


With regards,
Apache Git Services

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



[GitHub] [incubator-echarts] szkissyh commented on issue #11615: IOS 一个页面切换地理坐标图时报错:TypeError:null is not an object(evaluating 'this.ctx.dpr=this.dpr')

2019-11-10 Thread GitBox
szkissyh commented on issue #11615: IOS 一个页面切换地理坐标图时报错:TypeError:null is not an 
object(evaluating 'this.ctx.dpr=this.dpr')
URL: 
https://github.com/apache/incubator-echarts/issues/11615#issuecomment-552281777
 
 
   > `dispose` 之后需要 `chart = null` 然后重新 `chart = echarts.init(...)`
   
   修改了 还是报TypeError:null is not an object(evaluating 'this.ctx.dpr=this.dpr')


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:
us...@infra.apache.org


With regards,
Apache Git Services

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