调用GLSurfaceview ,在固定位置出错;

lovzm 2014-06-05 05:01:47
在java层实现GLSurfaceview ,在c++层实现surface 的render和游戏逻辑:
简单例子:
while(loop){
drawe();//实现绘图并拷贝到要画到surface的buf;
c++ 通过jni call-java-createGLsurfaceview.onDrawFrame();//
java通过jni call- c++-implements-GLESRender();
}
跑了大概6s;60FPS. 一直会出现如下bug;
在游戏逻辑层定位不出问题;故认为java层glsurfaceview问题大;
在某些游戏手机,可以正常跑;就这台lenovo的总在固定画面死机。
GLESsurface是否对硬件有要求,或者什么其他情况?请赐教。
06-05 15:43:49.873: I/DEBUG(15664): handle_request(15)
06-05 15:43:49.873: I/DEBUG(15664): check process 15411 name:dedibox.libxxxx
06-05 15:43:49.873: I/DEBUG(15664): BOOM: pid=15411 uid=10064 gid=10064 tid=15413
06-05 15:43:49.874: I/DEBUG(15664): [OnPurpose Redunant in preset_info] pid: 15411, tid: 15413, name: GC >>> fr.mydedibox.libxxxx <<<
06-05 15:43:49.978: I/DEBUG(15664): *** *** *** *** *** *** *** *** *** *** *** *** ***
06-05 15:43:49.979: I/DEBUG(15664): Build fingerprint: 'Lenovo/A670t/A670t:4.2.1/JOP40D/A670t_S016_130912:user/release-keys'
06-05 15:43:49.979: I/DEBUG(15664): pid: 15411, tid: 15413, name: GC >>> fr.mydedibox.libxxxx <<<
06-05 15:43:49.979: I/DEBUG(15664): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadbaad
06-05 15:43:50.380: I/DEBUG(15664): r0 00000000 r1 00000027 r2 deadbfff r3 00000000
06-05 15:43:50.380: I/DEBUG(15664): r4 00000000 r5 5a50adfc r6 0000002f r7 5a50ae40
06-05 15:43:50.380: I/DEBUG(15664): r8 00000004 r9 00100000 sl 4012c21c fp 00000000
06-05 15:43:50.380: I/DEBUG(15664): ip 00000001 sp 5a50adf8 lr 40144d60 pc 4013e628 cpsr 60000010
06-05 15:43:50.383: I/DEBUG(15664): backtrace:
06-05 15:43:50.383: I/DEBUG(15664): #00 pc 00024628 /system/lib/libc.so
06-05 15:43:50.383: I/DEBUG(15664): #01 pc 0001b5d0 /system/lib/libc.so (dlmalloc_inspect_all+424)
06-05 15:43:50.384: I/DEBUG(15664): #02 pc 000779b5 /system/lib/libdvm.so
06-05 15:43:50.384: I/DEBUG(15664): #03 pc 00077a37 /system/lib/libdvm.so
06-05 15:43:50.384: I/DEBUG(15664): #04 pc 00054d8b /system/lib/libdvm.so
06-05 15:43:50.384: I/DEBUG(15664): #05 pc 0000e058 /system/lib/libc.so (__thread_entry+72)
06-05 15:43:50.384: I/DEBUG(15664): stack:
06-05 15:43:50.384: I/DEBUG(15664): 5a50adb8 00000000
06-05 15:43:50.384: I/DEBUG(15664): 5a50adbc 00000000
06-05 15:43:50.384: I/DEBUG(15664): 5a50adc0 5c8d1a60
06-05 15:43:50.384: I/DEBUG(15664): 5a50adc4 571d2d48 /dev/ashmem/dalvik-LinearAlloc (deleted)
06-05 15:43:50.384: I/DEBUG(15664): 5a50adc8 5a50ae34 [stack:15413]
06-05 15:43:50.384: I/DEBUG(15664): 5a50adcc 5a50ae34 [stack:15413]
06-05 15:43:50.384: I/DEBUG(15664): 5a50add0 401811cc /system/lib/libc.so
06-05 15:43:50.384: I/DEBUG(15664): 5a50add4 ffffffff
06-05 15:43:50.384: I/DEBUG(15664): 5a50add8 00000000
06-05 15:43:50.384: I/DEBUG(15664): 5a50addc 40144d60 /system/lib/libc.so (_fwalk+64)
06-05 15:43:50.384: I/DEBUG(15664): 5a50ade0 40113000
06-05 15:43:50.384: I/DEBUG(15664): 5a50ade4 5a50adfc [stack:15413]
06-05 15:43:50.384: I/DEBUG(15664): 5a50ade8 0000002f
06-05 15:43:50.384: I/DEBUG(15664): 5a50adec 5a50ae40 [stack:15413]
06-05 15:43:50.384: I/DEBUG(15664): 5a50adf0 df0027ad
06-05 15:43:50.384: I/DEBUG(15664): 5a50adf4 00000000
06-05 15:43:50.384: I/DEBUG(15664): #00 5a50adf8 00000000
06-05 15:43:50.385: I/DEBUG(15664): 5a50adfc fffffbdf
06-05 15:43:50.385: I/DEBUG(15664): 5a50ae00 401777d0 /system/lib/libc.so
06-05 15:43:50.385: I/DEBUG(15664): 5a50ae04 20190b7f
06-05 15:43:50.385: I/DEBUG(15664): 5a50ae08 5e924408
06-05 15:43:50.385: I/DEBUG(15664): 5a50ae0c 40183bf8
06-05 15:43:50.385: I/DEBUG(15664): 5a50ae10 0000002f
06-05 15:43:50.385: I/DEBUG(15664): 5a50ae14 5e924408
06-05 15:43:50.385: I/DEBUG(15664): 5a50ae18 40183bf8
06-05 15:43:50.385: I/DEBUG(15664): 5a50ae1c 401355d4 /system/lib/libc.so (dlmalloc_inspect_all+428)
06-05 15:43:50.385: I/DEBUG(15664): #01 5a50ae20 0000193b
06-05 15:43:50.385: I/DEBUG(15664): 5a50ae24 5e924408
06-05 15:43:50.385: I/DEBUG(15664): 5a50ae28 0000002f
06-05 15:43:50.385: I/DEBUG(15664): 5a50ae2c 4012c21c /system/lib/libc.so
06-05 15:43:50.385: I/DEBUG(15664): 5a50ae30 00000004
06-05 15:43:50.385: I/DEBUG(15664): 5a50ae34 00000008
06-05 15:43:50.385: I/DEBUG(15664): 5a50ae38 40183bf8
06-05 15:43:50.385: I/DEBUG(15664): 5a50ae3c 5a50ae40 [stack:15413]
06-05 15:43:50.385: I/DEBUG(15664): 5a50ae40 40183bf8
06-05 15:43:50.385: I/DEBUG(15664): 5a50ae44 00025000
06-05 15:43:50.385: I/DEBUG(15664): 5a50ae48 00001000
06-05 15:43:50.385: I/DEBUG(15664): 5a50ae4c 00000000
06-05 15:43:50.385: I/DEBUG(15664): 5a50ae50 00100000
06-05 15:43:50.386: I/DEBUG(15664): 5a50ae54 5c867060
06-05 15:43:50.386: I/DEBUG(15664): 5a50ae58 0000002f
06-05 15:43:50.386: I/DEBUG(15664): 5a50ae5c 4012c21c /system/lib/libc.so
06-05 15:43:50.386: I/DEBUG(15664): ........ ........
06-05 15:43:50.386: I/DEBUG(15664): #02 5a50ae88 0006c000
06-05 15:43:50.386: I/DEBUG(15664): 5a50ae8c 00015000
06-05 15:43:50.386: I/DEBUG(15664): 5a50ae90 40c97154
06-05 15:43:50.386: I/DEBUG(15664): 5a50ae94 40c97154
06-05 15:43:50.386: I/DEBUG(15664): 5a50ae98 40c97154
06-05 15:43:50.386: I/DEBUG(15664): 5a50ae9c 00000000
06-05 15:43:50.386: I/DEBUG(15664): 5a50aea0 00000001
06-05 15:43:50.386: I/DEBUG(15664): 5a50aea4 40c57a3b /system/lib/libdvm.so
06-05 15:43:50.387: I/DEBUG(15664): memory near r5:
06-05 15:43:50.387: I/DEBUG(15664): 5a50addc 40144d60 40113000 5a50adfc 0000002f `M.@.0.@..PZ/...
06-05 15:43:50.387: I/DEBUG(15664): 5a50adec 5a50ae40 df0027ad 00000000 00000000 @.PZ.'..........
06-05 15:43:50.387: I/DEBUG(15664): 5a50adfc fffffbdf 401777d0 20190b7f 5e924408 .....w.@... .D.^
06-05 15:43:50.387: I/DEBUG(15664): 5a50ae0c 40183bf8 0000002f 5e924408 40183bf8 .;.@/....D.^.;.@
06-05 15:43:50.387: I/DEBUG(15664): 5a50ae1c 401355d4 0000193b 5e924408 0000002f .U.@;....D.^/...
06-05 15:43:50.387: I/DEBUG(15664): memory near r7:
06-05 15:43:50.387: I/DEBUG(15664): 5a50ae20 0000193b 5e924408 0000002f 4012c21c ;....D.^/......@
06-05 15:43:50.387: I/DEBUG(15664): 5a50ae30 00000004 00000008 40183bf8 5a50ae40 .........;.@@.PZ
06-05 15:43:50.387: I/DEBUG(15664): 5a50ae40 40183bf8 00025000 00001000 00000000 .;.@.P..........
06-05 15:43:50.388: I/DEBUG(15664): 5a50ae50 00100000 5c867060 0000002f 4012c21c ....`p.\/......@
06-05 15:43:50.388: I/DEBUG(15664): 5a50ae60 40183bf8 00000000 41c6be20 40c57a91 .;.@.... ..A.z.@
06-05 15:43:50.388: I/DEBUG(15664): memory near r9:
06-05 15:43:50.388: I/DEBUG(15664): 000fffe0 ffffffff ffffffff ffffffff ffffffff ................
06-05 15:43:50.388: I/DEBUG(15664): 000ffff0 ffffffff ffffffff ffffffff ffffffff ................
06-05 15:43:50.388: I/DEBUG(15664): 00100000 ffffffff ffffffff ffffffff ffffffff ................
06-05 15:43:50.388: I/DEBUG(15664): 00100010 ffffffff ffffffff ffffffff ffffffff ................
06-05 15:43:50.388: I/DEBUG(15664): 00100020 ffffffff ffffffff ffffffff ffffffff ................
06-05 15:43:50.388: I/DEBUG(15664): memory near sl:
06-05 15:43:50.388: I/DEBUG(15664): 4012c1fc e3540000 1afffff5 e594600c e3160008 ..T......`......
06-05 15:43:50.388: I/DEBUG(15664): 4012c20c 0a000011 e3a06000 e1a00005 ebfff346 .....`......F...
06-05 15:43:50.388: I/DEBUG(15664): 4012c21c e0900006 1a00000a e595301c e595200c .........0... ..
06-05 15:43:50.388: I/DEBUG(15664): 4012c22c e1520003 83e03000 8585301c e8bd81f0 ..R..0...0......
06-05 15:43:50.388: I/DEBUG(15664): 4012c23c ebffff96 e3740041 83a00000 9affffd6 ....A.t.........
06-05 15:43:50.388: I/DEBUG(15664): memory near sp:
06-05 15:43:50.388: I/DEBUG(15664): 5a50add8 00000000 40144d60 40113000 5a50adfc ....`M.@.0.@..PZ
06-05 15:43:50.388: I/DEBUG(15664): 5a50ade8 0000002f 5a50ae40 df0027ad 00000000 /...@.PZ.'......
06-05 15:43:50.388: I/DEBUG(15664): 5a50adf8 00000000 fffffbdf 401777d0 20190b7f .........w.@...
06-05 15:43:50.388: I/DEBUG(15664): 5a50ae08 5e924408 40183bf8 0000002f 5e924408 .D.^.;.@/....D.^
06-05 15:43:50.388: I/DEBUG(15664): 5a50ae18 40183bf8 401355d4 0000193b 5e924408 .;.@.U.@;....D.^
06-05 15:43:50.389: I/DEBUG(15664): code around pc:
06-05 15:43:50.389: I/DEBUG(15664): 4013e608 1afffffb e594c014 e35c0000 0a000018 ..........\.....
06-05 15:43:50.389: I/DEBUG(15664): 4013e618 e30b2fff e3a01027 e34d2ead e3a04000 ./..'.....M..@..
06-05 15:43:50.389: I/DEBUG(15664): 4013e628 e5421552 ebffefb6 e3a01006 ebfff46e R.B.........n...
06-05 15:43:50.389: I/DEBUG(15664): 4013e638 e28d1008 e3a03201 e1a02001 e3a00006 .....2... ......
06-05 15:43:50.389: I/DEBUG(15664): 4013e648 e58d3010 e58d4008 e58d400c ebfff23a .0...@...@..:...
06-05 15:43:50.389: I/DEBUG(15664): code around lr:
06-05 15:43:50.389: I/DEBUG(15664): 40144d40 4a000009 e1d430fc e1a00004 e2455001 ...J.0.......PE.
06-05 15:43:50.389: I/DEBUG(15664): 40144d50 e2844054 e3530000 da000001 e12fff37 T@....S.....7./.
06-05 15:43:50.389: I/DEBUG(15664): 40144d60 e1866000 e3750001 1afffff5 e5988000 .`....u.........
06-05 15:43:50.389: I/DEBUG(15664): 40144d70 e3580000 1affffee e1a00006 e8bd81f0 ..X.............
06-05 15:43:50.389: I/DEBUG(15664): 40144d80 0003c260 e92d45f0 e0070291 e59f40a8 `....E-......@..
06-05 15:43:50.389: I/DEBUG(15664): memory map around fault addr deadbaad:
06-05 15:43:50.389: I/DEBUG(15664): bea77000-bea98000 [stack]
06-05 15:43:50.389: I/DEBUG(15664): (no map for address)
06-05 15:43:50.389: I/DEBUG(15664): ffff0000-ffff1000 [vectors]
...全文
110 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
liqi 2014-08-19
  • 打赏
  • 举报
回复
你好请问 这个问题你找到原因了吗

80,351

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧