问题描述
我学习andEngine,并试图使一个简单的游戏的基础上的一些例子。我的问题是,游戏停在一些随机的时刻,我只能用后退按钮; /我用logcat中,发现问题,这里的日志:
I'm learning andEngine and trying to make a simple game based on some examples. My problem is that the game stops in some random moments and I can only use back button ;/ I used logcat and found problem, here's log:
/释放键
I / DEBUG(2656):PID:4918,TID: 4926 >>> com.homework.mygame<<< I / DEBUG(2656):信号11 (SIGSEGV),code 1(SEGV_MAPERR),故障 地址3f8191d 4个I / DEBUG(2656):R0 00000000 R1 R2 00000000 R3 3f800000 000191d4 I / DEBUG(2656):R4 00140a30 R5 00149978 R6 449d9b18 R7 44dbe008 I / DEBUG(2656):R8 449d9b6c R9 43707d58 10 43707d40 FP 449d9ed8
I/DEBUG ( 2656): pid: 4918, tid: 4926 >>> com.homework.mygame <<< I/DEBUG ( 2656): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 3f8191d 4 I/DEBUG ( 2656): r0 00000000 r1 00000000 r2 3f800000 r3 000191d4 I/DEBUG ( 2656): r4 00140a30 r5 00149978 r6 449d9b18 r7 44dbe008 I/DEBUG ( 2656): r8 449d9b6c r9 43707d58 10 43707d40 fp 449d9ed8
I / DEBUG(2656):IP 00000000 SP 449d9b00 LR 8062eeb8 PC 806189b8 CPSR 600 00010 I / AndEngine(4918): org.anddev.andengine.input.touch.TouchEvent $ TouchEventPool被耗尽时,3项 尚未回收。分配1以上。 I / AndEngine(4918): org.anddev.andengine.util.pool.PoolUpdateHandler $ 1耗尽时, 3项尚未回收。分配1 更多 。 I / AndEngine(4918): org.anddev.andengine.input.touch.TouchEvent $ TouchEventPool被耗尽时,4项 尚未回收。分配1以上。 I / AndEngine(4918): org.anddev.andengine.util.pool.PoolUpdateHandler $ 1耗尽时, 4项尚未回收。分配1 更多 。 I / AndEngine(4918): org.anddev.andengine.input.touch.TouchEvent $ TouchEventPool被耗尽时,5项 尚未回收。分配1以上。 I / AndEngine(4918): org.anddev.andengine.util.pool.PoolUpdateHandler $ 1耗尽时, 5项尚未回收。分配1 更多 。 I / AndEngine(4918): org.anddev.andengine.input.touch.TouchEvent $ TouchEventPool被耗尽,6项 尚未回收。分配1以上。 I / AndEngine(4918): org.anddev.andengine.util.pool.PoolUpdateHandler $ 1耗尽时, 6项尚未回收。分配1 更多 。 I / AndEngine(4918): org.anddev.andengine.input.touch.TouchEvent $ TouchEventPool精疲力竭,项目7 尚未回收。分配1以上。 I / AndEngine(4918): org.anddev.andengine.util.pool.PoolUpdateHandler $ 1耗尽时, 7项尚未回收。分配1 更多 。 I / AndEngine(4918): org.anddev.andengine.input.touch.TouchEvent $ TouchEventPool被耗尽时,8项 尚未回收。分配1以上。 I / AndEngine(4918): org.anddev.andengine.util.pool.PoolUpdateHandler $ 1耗尽时, 8项尚未回收。分配1 更多 。 I / AndEngine(4918): org.anddev.andengine.input.touch.TouchEvent $ TouchEventPool被耗尽,9项 尚未回收。分配1以上。 I / AndEngine(4918): org.anddev.andengine.util.pool.PoolUpdateHandler $ 1耗尽时, 9项尚未回收。分配1 更多 。 D / dalvikvm(929):克洛诺斯 GC_EXTERNAL_ALLOC释放166K,55%免费 2686K / 5895K,external类型905K / 987K, 暂停268ms I / AndEngine(4918): org.anddev.andengine.input.touch.TouchEvent $ TouchEventPool被耗尽,用10项 尚未回收。分配1以上。 I / AndEngine(4918): org.anddev.andengine.util.pool.PoolUpdateHandler $ 1耗尽时, 10项尚未回收。分配1 更多。 I / AndEngine(4918): org.anddev.andengine.input.touch.TouchEvent $ TouchEventPool尽,11项 尚未回收。分配1以上。 I / AndEngine(4918): org.anddev.andengine.util.pool.PoolUpdateHandler $ 1耗尽时, 11项尚未回收。分配1 更多。 I / AndEngine(4918): org.anddev.andengine.input.touch.TouchEvent $ TouchEventPool尽,12项 尚未回收。分配1以上。 I / AndEngine(4918): org.anddev.andengine.util.pool.PoolUpdateHandler $ 1耗尽时, 12项尚未回收。分配1 更多。 I / AndEngine(4918): org.anddev.andengine.input.touch.TouchEvent $ TouchEventPool尽,13项 尚未回收。分配1以上。 I / AndEngine(4918): org.anddev.andengine.util.pool.PoolUpdateHandler $ 1耗尽时, 13项尚未回收。分配1 更多。 I / AndEngine(4918): org.anddev.andengine.input.touch.TouchEvent $ TouchEventPool被耗尽,有14项 尚未回收。分配1以上。 I / AndEngine(4918): org.anddev.andengine.util.pool.PoolUpdateHandler $ 1耗尽时, 14项尚未回收。分配1 更多。 I / AndEngine(4918): org.anddev.andengine.input.touch.TouchEvent $ TouchEventPool尽,15项 尚未回收。分配1以上。 I / AndEngine(4918): org.anddev.andengine.util.pool.PoolUpdateHandler $ 1耗尽时, 15项尚未回收。分配1 更多。 I / AndEngine(4918): org.anddev.andengine.input.touch.TouchEvent $ TouchEventPool被耗尽,有16项 尚未回收。分配1以上。 I / AndEngine(4918): org.anddev.andengine.util.pool.PoolUpdateHandler $ 1耗尽时, 16项尚未回收。分配1 更多。 I / AndEngine(4918): org.anddev.andengine.input.touch.TouchEvent $ TouchEventPool尽,17项 尚未回收。分配1以上。 I / AndEngine(4918): org.anddev.andengine.util.pool.PoolUpdateHandler $ 1耗尽时, 17项尚未回收。分配1 更多。 I / AndEngine(4918): org.anddev.andengine.input.touch.TouchEvent $ TouchEventPool尽,18项 尚未回收。分配1以上。 I / AndEngine(4918): org.anddev.andengine.util.pool.PoolUpdateHandler $ 1耗尽时, 18项尚未回收。分配1 更多。 I / AndEngine(4918): org.anddev.andengine.input.touch.TouchEvent $ TouchEventPool尽,19项 尚未回收。分配1以上。 I / AndEngine(4918): org.anddev.andengine.util.pool.PoolUpdateHandler $ 1耗尽时, 19项尚未回收。分配1 更多。 I / AndEngine(4918): org.anddev.andengine.input.touch.TouchEvent $ TouchEventPool尽,20项 尚未回收。分配1以上。 I / AndEngine(4918): org.anddev.andengine.util.pool.PoolUpdateHandler $ 1耗尽时, 20项尚未回收。分配1 更多。 I / AndEngine(4918): org.anddev.andengine.input.touch.TouchEvent $ TouchEventPool尽,21项 尚未回收。分配1以上。 I / AndEngine(4918): org.anddev.andengine.util.pool.PoolUpdateHandler $ 1耗尽时, 21项尚未回收。分配1 更多。 I / AndEngine(4918): org.anddev.andengine.input.touch.TouchEvent $ TouchEventPool尽,22项 尚未回收。分配1以上。 I / AndEngine(4918): org.anddev.andengine.util.pool.PoolUpdateHandler $ 1耗尽时, 22项尚未回收。分配1 更多。 I / AndEngine(4918): org.anddev.andengine.input.touch.TouchEvent $ TouchEventPool被耗尽,有23项 尚未回收。分配1以上。 I / AndEngine(4918): org.anddev.andengine.util.pool.PoolUpdateHandler $ 1耗尽时, 23项尚未回收。分配1 更多。 I / AndEngine(4918): org.anddev.andengine.input.touch.TouchEvent $ TouchEventPool尽,24项 尚未回收。分配1以上。 I / AndEngine(4918): org.anddev.andengine.util.pool.PoolUpdateHandler $ 1耗尽时, 24项尚未回收。分配1 更多。 I / AndEngine(4918): org.anddev.andengine.input.touch.TouchEvent $ TouchEventPool尽,25项 尚未回收。分配1以上。 I / AndEngine(4918): org.anddev.andengine.util.pool.PoolUpdateHandler $ 1耗尽时, 25项尚未回收。分配1 更多。 I / AndEngine(4918): org.anddev.andengine.input.touch.TouchEvent $ TouchEventPool尽,26项 尚未回收。分配1以上。 I / AndEngine(4918): org.anddev.andengine.util.pool.PoolUpdateHandler $ 1耗尽时, 26项尚未回收。分配1 更多。 I / AndEngine(4918): org.anddev.andengine.input.touch.TouchEvent $ TouchEventPool被耗尽,有27项 尚未回收。分配1以上。 I / AndEngine(4918): org.anddev.andengine.util.pool.PoolUpdateHandler $ 1耗尽时, 27项尚未回收。分配1 更多。 D / dalvikvm(929):克洛诺斯 GC_EXTERNAL_ALLOC释放10K,55%免费 2686K / 5895K,转ernal 905K / 927K, 暂停294ms D / dalvikvm(929):克洛诺斯 GC_EXTERNAL_ALLOC释放5K,55%免费 2686K / 5895K,EXTE RNAL 92万画/ 1016K, 暂停135ms I / DEBUG(2656):
I/DEBUG ( 2656): ip 00000000 sp 449d9b00 lr 8062eeb8 pc 806189b8 cpsr 600 00010 I/AndEngine( 4918): org.anddev.andengine.input.touch.TouchEvent$TouchEventPool was exhausted, with 3 item not yet recycled. Allocated 1 more. I/AndEngine( 4918): org.anddev.andengine.util.pool.PoolUpdateHandler$1 was exhausted, with 3 item not yet recycled. Allocated 1 more . I/AndEngine( 4918): org.anddev.andengine.input.touch.TouchEvent$TouchEventPool was exhausted, with 4 item not yet recycled. Allocated 1 more. I/AndEngine( 4918): org.anddev.andengine.util.pool.PoolUpdateHandler$1 was exhausted, with 4 item not yet recycled. Allocated 1 more . I/AndEngine( 4918): org.anddev.andengine.input.touch.TouchEvent$TouchEventPool was exhausted, with 5 item not yet recycled. Allocated 1 more. I/AndEngine( 4918): org.anddev.andengine.util.pool.PoolUpdateHandler$1 was exhausted, with 5 item not yet recycled. Allocated 1 more . I/AndEngine( 4918): org.anddev.andengine.input.touch.TouchEvent$TouchEventPool was exhausted, with 6 item not yet recycled. Allocated 1 more. I/AndEngine( 4918): org.anddev.andengine.util.pool.PoolUpdateHandler$1 was exhausted, with 6 item not yet recycled. Allocated 1 more . I/AndEngine( 4918): org.anddev.andengine.input.touch.TouchEvent$TouchEventPool was exhausted, with 7 item not yet recycled. Allocated 1 more. I/AndEngine( 4918): org.anddev.andengine.util.pool.PoolUpdateHandler$1 was exhausted, with 7 item not yet recycled. Allocated 1 more . I/AndEngine( 4918): org.anddev.andengine.input.touch.TouchEvent$TouchEventPool was exhausted, with 8 item not yet recycled. Allocated 1 more. I/AndEngine( 4918): org.anddev.andengine.util.pool.PoolUpdateHandler$1 was exhausted, with 8 item not yet recycled. Allocated 1 more . I/AndEngine( 4918): org.anddev.andengine.input.touch.TouchEvent$TouchEventPool was exhausted, with 9 item not yet recycled. Allocated 1 more. I/AndEngine( 4918): org.anddev.andengine.util.pool.PoolUpdateHandler$1 was exhausted, with 9 item not yet recycled. Allocated 1 more . D/dalvikvm( 929): Cronos GC_EXTERNAL_ALLOC freed 166K, 55% free 2686K/5895K, ex ternal 905K/987K, paused 268ms I/AndEngine( 4918): org.anddev.andengine.input.touch.TouchEvent$TouchEventPool was exhausted, with 10 item not yet recycled. Allocated 1 more. I/AndEngine( 4918): org.anddev.andengine.util.pool.PoolUpdateHandler$1 was exhausted, with 10 item not yet recycled. Allocated 1 mor e. I/AndEngine( 4918): org.anddev.andengine.input.touch.TouchEvent$TouchEventPool was exhausted, with 11 item not yet recycled. Allocated 1 more. I/AndEngine( 4918): org.anddev.andengine.util.pool.PoolUpdateHandler$1 was exhausted, with 11 item not yet recycled. Allocated 1 mor e. I/AndEngine( 4918): org.anddev.andengine.input.touch.TouchEvent$TouchEventPool was exhausted, with 12 item not yet recycled. Allocated 1 more. I/AndEngine( 4918): org.anddev.andengine.util.pool.PoolUpdateHandler$1 was exhausted, with 12 item not yet recycled. Allocated 1 mor e. I/AndEngine( 4918): org.anddev.andengine.input.touch.TouchEvent$TouchEventPool was exhausted, with 13 item not yet recycled. Allocated 1 more. I/AndEngine( 4918): org.anddev.andengine.util.pool.PoolUpdateHandler$1 was exhausted, with 13 item not yet recycled. Allocated 1 mor e. I/AndEngine( 4918): org.anddev.andengine.input.touch.TouchEvent$TouchEventPool was exhausted, with 14 item not yet recycled. Allocated 1 more. I/AndEngine( 4918): org.anddev.andengine.util.pool.PoolUpdateHandler$1 was exhausted, with 14 item not yet recycled. Allocated 1 mor e. I/AndEngine( 4918): org.anddev.andengine.input.touch.TouchEvent$TouchEventPool was exhausted, with 15 item not yet recycled. Allocated 1 more. I/AndEngine( 4918): org.anddev.andengine.util.pool.PoolUpdateHandler$1 was exhausted, with 15 item not yet recycled. Allocated 1 mor e. I/AndEngine( 4918): org.anddev.andengine.input.touch.TouchEvent$TouchEventPool was exhausted, with 16 item not yet recycled. Allocated 1 more. I/AndEngine( 4918): org.anddev.andengine.util.pool.PoolUpdateHandler$1 was exhausted, with 16 item not yet recycled. Allocated 1 mor e. I/AndEngine( 4918): org.anddev.andengine.input.touch.TouchEvent$TouchEventPool was exhausted, with 17 item not yet recycled. Allocated 1 more. I/AndEngine( 4918): org.anddev.andengine.util.pool.PoolUpdateHandler$1 was exhausted, with 17 item not yet recycled. Allocated 1 mor e. I/AndEngine( 4918): org.anddev.andengine.input.touch.TouchEvent$TouchEventPool was exhausted, with 18 item not yet recycled. Allocated 1 more. I/AndEngine( 4918): org.anddev.andengine.util.pool.PoolUpdateHandler$1 was exhausted, with 18 item not yet recycled. Allocated 1 mor e. I/AndEngine( 4918): org.anddev.andengine.input.touch.TouchEvent$TouchEventPool was exhausted, with 19 item not yet recycled. Allocated 1 more. I/AndEngine( 4918): org.anddev.andengine.util.pool.PoolUpdateHandler$1 was exhausted, with 19 item not yet recycled. Allocated 1 mor e. I/AndEngine( 4918): org.anddev.andengine.input.touch.TouchEvent$TouchEventPool was exhausted, with 20 item not yet recycled. Allocated 1 more. I/AndEngine( 4918): org.anddev.andengine.util.pool.PoolUpdateHandler$1 was exhausted, with 20 item not yet recycled. Allocated 1 mor e. I/AndEngine( 4918): org.anddev.andengine.input.touch.TouchEvent$TouchEventPool was exhausted, with 21 item not yet recycled. Allocated 1 more. I/AndEngine( 4918): org.anddev.andengine.util.pool.PoolUpdateHandler$1 was exhausted, with 21 item not yet recycled. Allocated 1 mor e. I/AndEngine( 4918): org.anddev.andengine.input.touch.TouchEvent$TouchEventPool was exhausted, with 22 item not yet recycled. Allocated 1 more. I/AndEngine( 4918): org.anddev.andengine.util.pool.PoolUpdateHandler$1 was exhausted, with 22 item not yet recycled. Allocated 1 mor e. I/AndEngine( 4918): org.anddev.andengine.input.touch.TouchEvent$TouchEventPool was exhausted, with 23 item not yet recycled. Allocated 1 more. I/AndEngine( 4918): org.anddev.andengine.util.pool.PoolUpdateHandler$1 was exhausted, with 23 item not yet recycled. Allocated 1 mor e. I/AndEngine( 4918): org.anddev.andengine.input.touch.TouchEvent$TouchEventPool was exhausted, with 24 item not yet recycled. Allocated 1 more. I/AndEngine( 4918): org.anddev.andengine.util.pool.PoolUpdateHandler$1 was exhausted, with 24 item not yet recycled. Allocated 1 mor e. I/AndEngine( 4918): org.anddev.andengine.input.touch.TouchEvent$TouchEventPool was exhausted, with 25 item not yet recycled. Allocated 1 more. I/AndEngine( 4918): org.anddev.andengine.util.pool.PoolUpdateHandler$1 was exhausted, with 25 item not yet recycled. Allocated 1 mor e. I/AndEngine( 4918): org.anddev.andengine.input.touch.TouchEvent$TouchEventPool was exhausted, with 26 item not yet recycled. Allocated 1 more. I/AndEngine( 4918): org.anddev.andengine.util.pool.PoolUpdateHandler$1 was exhausted, with 26 item not yet recycled. Allocated 1 mor e. I/AndEngine( 4918): org.anddev.andengine.input.touch.TouchEvent$TouchEventPool was exhausted, with 27 item not yet recycled. Allocated 1 more. I/AndEngine( 4918): org.anddev.andengine.util.pool.PoolUpdateHandler$1 was exhausted, with 27 item not yet recycled. Allocated 1 mor e. D/dalvikvm( 929): Cronos GC_EXTERNAL_ALLOC freed 10K, 55% free 2686K/5895K, ext ernal 905K/927K, paused 294ms D/dalvikvm( 929): Cronos GC_EXTERNAL_ALLOC freed 5K, 55% free 2686K/5895K, exte rnal 920K/1016K, paused 135ms I/DEBUG ( 2656):
/libandenginephysicsbox2dextension.so (_ZN6b2Body13CreateFixtureEPK12b2FixtureDe F)I / DEBUG(2656):#01件 0000bfbc /data/data/com.homework.mygame/lib /libandenginephysicsbox2dextension.so (Java_com_badlogic_gdx_physics_box2d_Body_ jniCreateFixture__JJFFFZSSS)I / DEBUG
(2656):#02件00011d74 /system/lib/libdvm.so I / DEBUG( 2656):I / DEBUG(2656):code左右 PC:I / DEBUG(2656):80618998 eb00595d e3500000 0a000001 e1a00004 I / DEBUG(2656):806189a8 ebfffd9f e594205c e3a03a19 e2833f75 I / DEBUG( 2656):806189b8 e7921003 e1a00005 e3811001 e7821003 I / DEBUG(2656): 806189c8 e8bd81f0 e594105c e1a00005 e284200c I / DEBUG(2656):806189d8 e2811a19 e2811f76 eb0003ae eaffffe2 I / DEBUG(2656):I / DEBUG(2656): 各地LR code:I / DEBUG(2656): 8062ee98 e51d0004 e12fff1e e1a0c000 e1a00001 I / DEBUG(2656):8062eea8 e1a0100c eaffffff e92d400f ebffffe1 I / DEBUG(2656):8062eeb8 e3500000 43700000 e8bd800f e52de008 I / DEBUG( 2656):8062eec8 ebfffff8 03a00001 13a00000 e49df008 I / DEBUG(2656): 8062eed8 e52de008 ebfffff3 33a00001 23a00000 I / DEBUG(2656):I / DEBUG
(2656):栈:I / DEBUG(2656):
449d9ac0 43707d58 I / DEBUG(2656): 449d9ac4 43707d40 I / DEBUG(2656): 449d9ac8 449d9ed8 I / DEBUG(2656): 449d9acc 80617174 /data/data/com.homework.mygame/lib/li bandenginephysicsbox2dextension.so I / DEBUG(2656):449d9ad0 00149978 I / DEBUG(2656):
449d9ad4 449d9b18 I / DEBUG(2656): 449d9ad8 0000FFFF I / DEBUG(2656): 449d9adc 44dbe008 I / DEBUG(2656): 449d9ae0 00000001 I / DEBUG(2656): 449d9ae4 00000000 I / DEBUG(2656): 449d9ae8 00000000 I / DEBUG(2656): 449d9aec 421cf249 I / DEBUG(2656): 449d9af0 bf800001 I / DEBUG(2656): 449d9af4 8062ef1c /data/data/com.homework.mygame/lib/li bandenginephysicsbox2dextension.so I / DEBUG(2656):449d9af8 df002777 I / DEBUG(2656):
449d9afc e3a070ad I / DEBUG(2656):
/libandenginephysicsbox2dextension.so (_ZN6b2Body13CreateFixtureEPK12b2FixtureDe f) I/DEBUG ( 2656): #01 pc 0000bfbc /data/data/com.homework.mygame/lib /libandenginephysicsbox2dextension.so (Java_com_badlogic_gdx_physics_box2d_Body_ jniCreateFixture__JJFFFZSSS) I/DEBUG
( 2656): #02 pc 00011d74 /system/lib/libdvm.so I/DEBUG ( 2656): I/DEBUG ( 2656): code around pc: I/DEBUG ( 2656): 80618998 eb00595d e3500000 0a000001 e1a00004 I/DEBUG ( 2656): 806189a8 ebfffd9f e594205c e3a03a19 e2833f75 I/DEBUG ( 2656): 806189b8 e7921003 e1a00005 e3811001 e7821003 I/DEBUG ( 2656): 806189c8 e8bd81f0 e594105c e1a00005 e284200c I/DEBUG ( 2656): 806189d8 e2811a19 e2811f76 eb0003ae eaffffe2 I/DEBUG ( 2656): I/DEBUG ( 2656): code around lr: I/DEBUG ( 2656): 8062ee98 e51d0004 e12fff1e e1a0c000 e1a00001 I/DEBUG ( 2656): 8062eea8 e1a0100c eaffffff e92d400f ebffffe1 I/DEBUG ( 2656): 8062eeb8 e3500000 43700000 e8bd800f e52de008 I/DEBUG ( 2656): 8062eec8 ebfffff8 03a00001 13a00000 e49df008 I/DEBUG ( 2656): 8062eed8 e52de008 ebfffff3 33a00001 23a00000 I/DEBUG ( 2656): I/DEBUG
( 2656): stack: I/DEBUG ( 2656):
449d9ac0 43707d58 I/DEBUG ( 2656): 449d9ac4 43707d40 I/DEBUG ( 2656): 449d9ac8 449d9ed8 I/DEBUG ( 2656): 449d9acc 80617174 /data/data/com.homework.mygame/lib/li bandenginephysicsbox2dextension.so I/DEBUG ( 2656): 449d9ad0 00149978 I/DEBUG ( 2656):
449d9ad4 449d9b18 I/DEBUG ( 2656): 449d9ad8 0000ffff I/DEBUG ( 2656): 449d9adc 44dbe008 I/DEBUG ( 2656): 449d9ae0 00000001 I/DEBUG ( 2656): 449d9ae4 00000000 I/DEBUG ( 2656): 449d9ae8 00000000 I/DEBUG ( 2656): 449d9aec 421cf249 I/DEBUG ( 2656): 449d9af0 bf800001 I/DEBUG ( 2656): 449d9af4 8062ef1c /data/data/com.homework.mygame/lib/li bandenginephysicsbox2dextension.so I/DEBUG ( 2656): 449d9af8 df002777 I/DEBUG ( 2656):
449d9afc e3a070ad I/DEBUG ( 2656):
(2656):449d9b08 80632718 I / DEBUG(2656):449d9b0c 43707d84 I / DEBUG(2656):
449d9b10 449d9b6c I / DEBUG(2656): 449d9b14 8060bfc0 /data/data/com.homework.mygame/lib/li bandenginephysicsbox2dextension.so I / DEBUG(2656):#01 449d9b18 80632718 I / DEBUG(2656):
449d9b1c 0016a928 I / DEBUG(2656): 449d9b20 00000000 I / DEBUG(2656): 449d9b24 00000000 I / DEBUG(2656): 449d9b28 00000000 I / DEBUG(2656): 449d9b2c 00000000 I / DEBUG(2656): 449d9b30 00017b00 I / DEBUG(2656): 449d9b34 0000FFFF I / DEBUG(2656): 449d9b38 449d9b90 I / DEBUG(2656): 449d9b3c 00000003 I / DEBUG(2656): 449d9b40 44843052 I / DEBUG(2656): 449d9b44 aca11d78 /system/lib/libdvm.so I / AndEngine( 4918): org.anddev.andengine.input.touch.TouchEvent $ TouchEventPool尽,28项 尚未回收。分配1以上。 I / AndEngine(4918): org.anddev.andengine.util.pool.PoolUpdateHandler $ 1耗尽时, 28项尚未回收。分配1 更多。 I / AndEngine(4918): org.anddev.andengine.input.touch.TouchEvent $ TouchEventPool尽,29项 尚未回收。分配1以上。 D / dalvikvm(602):克洛诺斯 GC_EXTERNAL_ALLOC释放257K,40%免费 6266K / 10311K,电子xternal 1546K / 1581K, 暂停445ms I / AndEngine(4918): org.anddev.andengine.util.pool.PoolUpdateHandler $ 1耗尽时, 29项尚未回收。分配1 更多。 I / AndEngine(4918): org.anddev.andengine.input.touch.TouchEvent $ TouchEventPool尽,30项 尚未回收。分配1以上。 I / AndEngine(4918): org.anddev.andengine.util.pool.PoolUpdateHandler $ 1耗尽时, 30项尚未回收。分配1 更多。 I / AndEngine(4918): org.anddev.andengine.input.touch.TouchEvent $ TouchEventPool尽,31项 尚未回收。分配1以上。 I / AndEngine(4918): org.anddev.andengine.util.pool.PoolUpdateHandler $ 1耗尽时, 31项尚未回收。分配1 更多。 I / AndEngine(4918): org.anddev.andengine.input.touch.TouchEvent $ TouchEventPool被耗尽,有32项 尚未回收。分配1以上。 I / AndEngine(4918): org.anddev.andengine.util.pool.PoolUpdateHandler $ 1耗尽时, 32项尚未回收。分配1 更多。 D / dalvikvm(929):克洛诺斯 GC_EXTERNAL_ALLOC释放11K,55%免费 2685K / 5895K,转ernal 726K / 889K, 暂停139ms D / dalvikvm(929):克洛诺斯 GC_EXTERNAL_ALLOC释放10K,55%免费 2686K / 5895K,转ernal 667K / 749K, 暂停140ms的D / dalvikvm(929):克洛诺斯 GC_EXTERNAL_ALLOC释放5K,55%免费 2685K / 5895K,EXTE RNAL 92万画/ 1016K, 暂停138ms D / dalvikvm(602):克洛诺斯 GC_EXTERNAL_ALLOC释放32K,40%免费 6246K / 10311K,external类型1403K / 1470K, 暂停343ms I / BootReceiver(602): 复制/数据/墓碑/ tombstone_02 到DropBox的(SYSTEM_墓碑) E / InputDispatcher(602):通道 408f3600 com.homework.mygame / com.homework.myg ame.com.homework.mygame(服务器)〜 消费者关闭输入通道或 发生了错误。事件= 0x8中 E / InputDispatcher(602):通道 408f3600 com.homework.mygame / com.homework.myg ame.com.homework.mygame(服务器)〜 渠道是无法恢复的破坏, 将被全部销毁! D /合子(565): 过程4918由信号终止(11) D / dalvikvm(602):克洛诺斯 GC_FOR_MALLOC释放123K,39%免费 6384K / 10311K,EXTER最终958K / 1470K, 暂停141ms I / dalvikvm堆(602): 成长堆(破片的情况下),以9.928MB的 161568字节allocat离子D / dalvikvm( 602):克洛诺斯GC_FOR_MALLOC释放3K, 38%免费6538K / 10503K,外耳炎升 958K / 1470K,暂停147ms I /窗口管理器(602):WIN死亡: 窗口{408f3600 com.homework.mygame / com.homew ork.mygame.com.homework.mygame 暂停= FALSE} D / dalvikvm(602): 克洛诺斯GC_FOR_MALLOC释放2K,38% 免费6537K / 10503K,外耳炎升 847K / 1359K,暂停143ms I / dalvikvm堆(602):增长堆 (FRAG情况下),以9.891MB为80792字节 allocati对D / dalvikvm(602):克洛诺斯 GC_FOR_MALLOC释放&LT; 1K,38%免费 6615K / 10631K,为extern人847K / 1359K, 暂停144ms D / dalvikvm(602):克洛诺斯 GC_FOR_MALLOC释放217K,40%免费 6398K / 10631K,EXTER最终847K / 1359K, 暂停142ms I /窗口管理器(602): WIN死亡:窗口{4090fff8 SurfaceView 暂停= FALSE} D / gralloc(602): 释放GPU缓冲区0 D / gralloc( 602):释放GPU缓冲区307200 I / ActivityManager(602):过程 com.homework.mygame(PID 4918)有 死了。 W / InputManagerService(602): 得到的RemoteException发送 SETACTIVE(假)notif ication为PID 4918 UID 10088 D / dalvikvm(929): 克洛诺斯GC_EXPLICIT释放9K,55%免费 2683K / 5895K,外部4 89K / 889K, 暂停68ms V / com.mobilityflow.animatedweather.services.UpdateService $ ServiceThread( 929):定时报警的onReceive()开始 在时间:2011-05-13 17:07:25.491 W / System.err的(929): 的java.net.UnknownHostException: www.yr.no W / System.err的(929):在 java.net.InetAddress.lookupHostByName(InetAddress.jav 答:506)W / System.err的(929):在 java.net.InetAddress.getAllByNameImpl(InetAddress.jav 答:294)W / System.err的(929):在 java.net.InetAddress.getAllByName(InetAddress.java:25 6)W / System.err的(929):在 org.apache.http.impl.conn.DefaultClientConnectionOper ator.openConnection(DefaultClientConnectionOperator.java:136) W / System.err的(929):在 org.apache.http.impl.conn.AbstractPoolEntry.open(分区:Abst ractPoolEntry.java:164)W / System.err的( 929):在 org.apache.http.impl.conn.AbstractPooledConnAdapter.o 笔(AbstractPooledConnAdapter.java:119) W / System.err的(929):在 org.apache.http.impl.client.DefaultRequestDirector.ex ecute(DefaultRequestDirector.java:348) W / System.err的(929):在 org.apache.http.impl.client.AbstractHttpClient.execut E(AbstractHttpClient.java:555) W / System.err的(929):在 org.apache.http.impl.client.AbstractHttpClient.execut E(AbstractHttpClient.java:487) W / System.err的(929):在 org.apache.http.impl.client.AbstractHttpClient.execut E(AbstractHttpClient.java:465) W / System.err的(929):在 com.mobilityflow.animatedweather.weather_providers.Yr Provider.loadWeatherWeek(YrProvider.java:440) W / System.err的(929):在 com.mobilityflow.animatedweather.weather_providers.Yr Provider.providerLoadWeather(YrProvider.java:135) W / System.err的(929):在 com.mobilityflow.animatedweather.weather_providers.We atherProvider.loadWeatherData(WeatherProvider.java:125) W / System.err的(929):在 com.mobilityflow.animatedweather.WebProvider $ ThreadWe atherLoad.run(WebProvider.java:256)
( 2656): 449d9b08 80632718 I/DEBUG ( 2656): 449d9b0c 43707d84 I/DEBUG ( 2656):
449d9b10 449d9b6c I/DEBUG ( 2656): 449d9b14 8060bfc0 /data/data/com.homework.mygame/lib/li bandenginephysicsbox2dextension.so I/DEBUG ( 2656): #01 449d9b18 80632718 I/DEBUG ( 2656):
449d9b1c 0016a928 I/DEBUG ( 2656): 449d9b20 00000000 I/DEBUG ( 2656): 449d9b24 00000000 I/DEBUG ( 2656): 449d9b28 00000000 I/DEBUG ( 2656): 449d9b2c 00000000 I/DEBUG ( 2656): 449d9b30 00017b00 I/DEBUG ( 2656): 449d9b34 0000ffff I/DEBUG ( 2656): 449d9b38 449d9b90 I/DEBUG ( 2656): 449d9b3c 00000003 I/DEBUG ( 2656): 449d9b40 44843052 I/DEBUG ( 2656): 449d9b44 aca11d78 /system/lib/libdvm.so I/AndEngine( 4918): org.anddev.andengine.input.touch.TouchEvent$TouchEventPool was exhausted, with 28 item not yet recycled. Allocated 1 more. I/AndEngine( 4918): org.anddev.andengine.util.pool.PoolUpdateHandler$1 was exhausted, with 28 item not yet recycled. Allocated 1 mor e. I/AndEngine( 4918): org.anddev.andengine.input.touch.TouchEvent$TouchEventPool was exhausted, with 29 item not yet recycled. Allocated 1 more. D/dalvikvm( 602): Cronos GC_EXTERNAL_ALLOC freed 257K, 40% free 6266K/10311K, e xternal 1546K/1581K, paused 445ms I/AndEngine( 4918): org.anddev.andengine.util.pool.PoolUpdateHandler$1 was exhausted, with 29 item not yet recycled. Allocated 1 mor e. I/AndEngine( 4918): org.anddev.andengine.input.touch.TouchEvent$TouchEventPool was exhausted, with 30 item not yet recycled. Allocated 1 more. I/AndEngine( 4918): org.anddev.andengine.util.pool.PoolUpdateHandler$1 was exhausted, with 30 item not yet recycled. Allocated 1 mor e. I/AndEngine( 4918): org.anddev.andengine.input.touch.TouchEvent$TouchEventPool was exhausted, with 31 item not yet recycled. Allocated 1 more. I/AndEngine( 4918): org.anddev.andengine.util.pool.PoolUpdateHandler$1 was exhausted, with 31 item not yet recycled. Allocated 1 mor e. I/AndEngine( 4918): org.anddev.andengine.input.touch.TouchEvent$TouchEventPool was exhausted, with 32 item not yet recycled. Allocated 1 more. I/AndEngine( 4918): org.anddev.andengine.util.pool.PoolUpdateHandler$1 was exhausted, with 32 item not yet recycled. Allocated 1 mor e. D/dalvikvm( 929): Cronos GC_EXTERNAL_ALLOC freed 11K, 55% free 2685K/5895K, ext ernal 726K/889K, paused 139ms D/dalvikvm( 929): Cronos GC_EXTERNAL_ALLOC freed 10K, 55% free 2686K/5895K, ext ernal 667K/749K, paused 140ms D/dalvikvm( 929): Cronos GC_EXTERNAL_ALLOC freed 5K, 55% free 2685K/5895K, exte rnal 920K/1016K, paused 138ms D/dalvikvm( 602): Cronos GC_EXTERNAL_ALLOC freed 32K, 40% free 6246K/10311K, ex ternal 1403K/1470K, paused 343ms I/BootReceiver( 602): Copying /data/tombstones/tombstone_02 to DropBox (SYSTEM_ TOMBSTONE) E/InputDispatcher( 602): channel '408f3600 com.homework.mygame/com.homework.myg ame.com.homework.mygame (server)' ~ Consumer closed input channel or an error oc curred. events=0x8 E/InputDispatcher( 602): channel '408f3600 com.homework.mygame/com.homework.myg ame.com.homework.mygame (server)' ~ Channel is unrecoverably broken and will be disposed! D/Zygote ( 565): Process 4918 terminated by signal (11) D/dalvikvm( 602): Cronos GC_FOR_MALLOC freed 123K, 39% free 6384K/10311K, exter nal 958K/1470K, paused 141ms I/dalvikvm-heap( 602): Grow heap (frag case) to 9.928MB for 161568-byte allocat ion D/dalvikvm( 602): Cronos GC_FOR_MALLOC freed 3K, 38% free 6538K/10503K, externa l 958K/1470K, paused 147ms I/WindowManager( 602): WIN DEATH: Window{408f3600 com.homework.mygame/com.homew ork.mygame.com.homework.mygame paused=false} D/dalvikvm( 602): Cronos GC_FOR_MALLOC freed 2K, 38% free 6537K/10503K, externa l 847K/1359K, paused 143ms I/dalvikvm-heap( 602): Grow heap (frag case) to 9.891MB for 80792-byte allocati on D/dalvikvm( 602): Cronos GC_FOR_MALLOC freed <1K, 38% free 6615K/10631K, extern al 847K/1359K, paused 144ms D/dalvikvm( 602): Cronos GC_FOR_MALLOC freed 217K, 40% free 6398K/10631K, exter nal 847K/1359K, paused 142ms I/WindowManager( 602): WIN DEATH: Window{4090fff8 SurfaceView paused=false} D/gralloc ( 602): freeing GPU buffer at 0 D/gralloc ( 602): freeing GPU buffer at 307200 I/ActivityManager( 602): Process com.homework.mygame (pid 4918) has died. W/InputManagerService( 602): Got RemoteException sending setActive(false) notif ication to pid 4918 uid 10088 D/dalvikvm( 929): Cronos GC_EXPLICIT freed 9K, 55% free 2683K/5895K, external 4 89K/889K, paused 68ms V/com.mobilityflow.animatedweather.services.UpdateService$ServiceThread( 929): Timed alarm onReceive() started at time: 2011-05-13 17:07:25.491 W/System.err( 929): java.net.UnknownHostException: www.yr.no W/System.err( 929): at java.net.InetAddress.lookupHostByName(InetAddress.jav a:506) W/System.err( 929): at java.net.InetAddress.getAllByNameImpl(InetAddress.jav a:294) W/System.err( 929): at java.net.InetAddress.getAllByName(InetAddress.java:25 6) W/System.err( 929): at org.apache.http.impl.conn.DefaultClientConnectionOper ator.openConnection(DefaultClientConnectionOperator.java:136) W/System.err( 929): at org.apache.http.impl.conn.AbstractPoolEntry.open(Abst ractPoolEntry.java:164) W/System.err( 929): at org.apache.http.impl.conn.AbstractPooledConnAdapter.o pen(AbstractPooledConnAdapter.java:119) W/System.err( 929): at org.apache.http.impl.client.DefaultRequestDirector.ex ecute(DefaultRequestDirector.java:348) W/System.err( 929): at org.apache.http.impl.client.AbstractHttpClient.execut e(AbstractHttpClient.java:555) W/System.err( 929): at org.apache.http.impl.client.AbstractHttpClient.execut e(AbstractHttpClient.java:487) W/System.err( 929): at org.apache.http.impl.client.AbstractHttpClient.execut e(AbstractHttpClient.java:465) W/System.err( 929): at com.mobilityflow.animatedweather.weather_providers.Yr Provider.loadWeatherWeek(YrProvider.java:440) W/System.err( 929): at com.mobilityflow.animatedweather.weather_providers.Yr Provider.providerLoadWeather(YrProvider.java:135) W/System.err( 929): at com.mobilityflow.animatedweather.weather_providers.We atherProvider.loadWeatherData(WeatherProvider.java:125) W/System.err( 929): at com.mobilityflow.animatedweather.WebProvider$ThreadWe atherLoad.run(WebProvider.java:256)
所以,我想这是因为onAreaTouched功能。我用它来控制一个球员,有2个箭头,我们可以触摸它们移动的球员从左至右。我在做正确,否则我应该做的另一种方式吗?这是我的code:
So I guess it's because on onAreaTouched function. I use it to control a player, there are 2 arrows and we can touch them to move player from left to right. Am I doing it correctly or should I do it in another way ? Here's my code:
mRArrow = new Sprite(125, CAMERA_HEIGHT - 55, mRArrowTextureRegion) {
@Override
protected void onManagedUpdate(float pSecondsElapsed) {
super.onManagedUpdate(pSecondsElapsed);
}
@Override
public boolean onAreaTouched(TouchEvent pSceneTouchEvent,
float pTouchAreaLocalX, float pTouchAreaLocalY) {
Body playerBody = mPhysicsWorld.getPhysicsConnectorManager()
.findBodyByShape(mPlayer);
playerBody.setTransform(new Vector2((playerBody.getPosition().x + 0.15f) ,playerBody.getPosition().y), 0);
return true;
}
};
mLArrow = new Sprite(15, CAMERA_HEIGHT - 55, mLArrowTextureRegion) {
@Override
protected void onManagedUpdate(float pSecondsElapsed) {
super.onManagedUpdate(pSecondsElapsed);
}
@Override
public boolean onAreaTouched(TouchEvent pSceneTouchEvent,
float pTouchAreaLocalX, float pTouchAreaLocalY) {
Body playerBody = mPhysicsWorld.getPhysicsConnectorManager()
.findBodyByShape(mPlayer);
playerBody.setTransform(new Vector2((playerBody.getPosition().x - 0.15f) ,playerBody.getPosition().y), 0);
return true;
}
};
在此先感谢
格雷格
推荐答案
不要接触物理学的Body成为的TouchEvent内。 UI线程和UpdateThread同时讨厌的工作!
Do not touch a Physics-"Body" inside of a TouchEvent. UI-Thread and UpdateThread hate working at the same time!
这篇关于Android的AndEngine问题触摸事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!