客户一直反映三星的手机某个页面有崩溃现象,但是国产的一些,小米之类的却没有,今天拿s4测试了一下,的确是每次打开这个页面都是 “很抱歉,“”已停止运行”,把日志打出来如下:
05-28 18:26:00.438: I/SurfaceTextureClient(12443): [STC::queueBuffer] (this:0x610fa410) fps:0.25, dur:8010.15, max:7133.36, min:876.79
05-28 18:26:00.438: I/SurfaceTextureClient(12443): [STC::queueBuffer] this:0x610fa410, api:1, last queue time elapsed:7133.36
05-28 18:26:00.564: V/Provider/Settings(12443): from settings cache , name = sound_effects_enabled , value = 0
05-28 18:26:00.577: D/AndroidRuntime(12443): Shutting down VM
05-28 18:26:00.577: W/dalvikvm(12443): threadid=1: thread exiting with uncaught exception (group=0x419e29a8)
看了半天也没看出啥问题,百度也百度不到,没办法了,debug吧,单步挨着走,终于找到出错的地方了,如下图
看到这里自然想到是不是menifest文件注册activity的时候有问题,检查了下,果真有问题
问题到这里就解决了,但是我很是疑问,为什么这里有错误,国产的手机没问题,三星的就会有问题呢。。。
有空再来深究这个问题吧