问题描述:GlSurfaceView运行一段时间之后就会停止渲染,main线程还在继续运行,界面没有反应
经调试发现报错log:
E AndroidRuntime:
E AndroidRuntime:
E AndroidRuntime:
E AndroidRuntime:
经搜索之后在swap中添加buffer替换出错情况判断,主要参考一下几个网址(大图等容易引起错误)
http://blog.sina.com.cn/s/blog_572dea1a01010d49.html
http://stackoverflow.com/questions/6039107/android-glsurfaceview-egl-bad-alloc
https://github.com/nicolasgramlich/AndEngine/issues/40