About Store Forum Documentation Contact



Post Reply 
Android physics problem
Author Message
tiagolapa Offline
Member

Post: #1
Android physics problem
Hello

I'm having a problem with my space shooter game on android device.

Works great when I test on Windows, but on Android always crashes after half a minute or so playing the game.

I think the problem is related with collisions.

I use Bloody Massacre code to check collisions, and also tried with empty PhysCutsCallback, checking only collision=true and not adding any object to memory container.

Android Device Log

Code:
Time(21:26:00), App(dalvikvm): Total arena pages for JIT: 15
Time(21:26:00), App(dalvikvm): Total arena pages for JIT: 16
Time(21:26:00), App(dalvikvm): Total arena pages for JIT: 17
Time(21:26:00), App(dalvikvm): Total arena pages for JIT: 18
Time(21:26:06), App(dalvikvm): GC_FOR_ALLOC freed 334K, 12% free 4974K/5640K, paused 157ms, total 158ms
Time(21:26:20), App(libc): Fatal signal 11 (SIGSEGV) at 0xadff20f2 (code=1), thread 9048 (ca.spaceshooter)
Time(21:26:20), App(DEBUG): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Time(21:26:20), App(DEBUG): Build fingerprint: 'eSTAR/eSTARMID7134/eSTARMID7134:4.2.2/JDQ39/eng.roger.20140320.120437:eng/test-keys'
Time(21:26:20), App(DEBUG): Revision: '0'
Time(21:26:20), App(DEBUG): pid: 9000, tid: 9048, name: ca.spaceshooter  >>> com.mlinformatica.spaceshooter <<<
Time(21:26:20), App(DEBUG): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr adff20f2
Time(21:26:21), App(DEBUG):     r0 5a5df530  r1 5ec946c4  r2 5ec93c80  r3 adff20f3
Time(21:26:21), App(DEBUG):     r4 5eca4870  r5 5ec93c80  r6 5ec94870  r7 00000008
Time(21:26:21), App(DEBUG):     r8 59acfe08  r9 5ec9484c  sl 00000000  fp 00000000
Time(21:26:21), App(DEBUG):     ip 5e6a0c5c  sp 5ec93c10  lr 5e4a08ef  pc adff20f2  cpsr 20000030
Time(21:26:21), App(DEBUG):     d0  befb4a2000000000  d1  3f30e3493ec7496a
Time(21:26:21), App(DEBUG):     d2  bf4b05bfbe991294  d3  40d7fd0bbf07de30
Time(21:26:21), App(DEBUG):     d4  3fd17298bf1bf124  d5  3d5bc4c83f9f6a00
Time(21:26:21), App(DEBUG):     d6  403ed88dc077599b  d7  c0d7fd0bc00dfa6c
Time(21:26:21), App(DEBUG):     d8  00000000bf800000  d9  00000000bd5bc4ea
Time(21:26:21), App(DEBUG):     d10 0000000000000000  d11 0000000000000000
Time(21:26:21), App(DEBUG):     d12 0000000000000000  d13 0000000000000000
Time(21:26:21), App(DEBUG):     d14 0000000000000000  d15 0000000000000000
Time(21:26:21), App(DEBUG):     d16 0000000000000000  d17 0000000000000000
Time(21:26:21), App(DEBUG):     d18 3ec7498c3e9912b6  d19 000000003f5f0bc5
Time(21:26:21), App(DEBUG):     d20 3ec7496abe991294  d21 000000003f5f0bb4
Time(21:26:21), App(DEBUG):     d22 bf1bf124bf4b05bf  d23 0000000000000000
Time(21:26:21), App(DEBUG):     d24 0000000000000000  d25 0000000000000000
Time(21:26:21), App(DEBUG):     d26 431f8c3ac2f4f66d  d27 0000000043b2ab8e
Time(21:26:21), App(DEBUG):     d28 b2fbf3dbb3ad8b7f  d29 00000000b27b4a20
Time(21:26:21), App(DEBUG):     d30 40a0f75e40ed374a  d31 000000003f1bf135
Time(21:26:21), App(DEBUG):     scr 2000009f
Time(21:26:22), App(DEBUG):
Time(21:26:22), App(DEBUG): backtrace:
Time(21:26:22), App(DEBUG):     #00  pc adff20f2  <unknown>
Time(21:26:22), App(DEBUG):     #01  pc 002738ed  /mnt/asec/com.mlinformatica.spaceshooter-1/lib/libProject.so
Time(21:26:22), App(DEBUG):     #02  pc 0038e50c  /mnt/asec/com.mlinformatica.spaceshooter-1/lib/libProject.so (MultiQueryCallback<physx::PxOverlapHit>::invoke(float&, physx::Sq::PrunerPayload const*, unsigned int)+536)
Time(21:26:22), App(DEBUG):     #03  pc 0055deb8  /mnt/asec/com.mlinformatica.spaceshooter-1/lib/libProject.so
Time(21:26:22), App(DEBUG):     #04  pc 005633e8  /mnt/asec/com.mlinformatica.spaceshooter-1/lib/libProject.so (physx::Sq::BucketPrunerCore::overlap(physx::Sq::ShapeData const&, physx::Sq::PrunerCallback&) const+2844)
Time(21:26:22), App(DEBUG):     #05  pc 0055637c  /mnt/asec/com.mlinformatica.spaceshooter-1/lib/libProject.so (physx::Sq::AABBPruner::overlap(physx::Sq::ShapeData const&, physx::Sq::PrunerCallback&) const+228)
Time(21:26:22), App(DEBUG):     #06  pc 0038fdb8  /mnt/asec/com.mlinformatica.spaceshooter-1/lib/libProject.so (bool physx::NpSceneQueries::multiQuery<physx::PxOverlapHit>(physx::MultiQueryInput const&, physx::PxHitCallback<physx::PxOverlapHit>&, physx::PxFlags<physx::PxHitFlag::Enum, unsigned short>, physx::PxQueryCache const*, physx::PxQueryFilterData const&, physx::PxQueryFilterCallback*, physx::BatchQueryFilterData*) const+712)
Time(21:26:22), App(DEBUG):     #07  pc 0038fe6c  /mnt/asec/com.mlinformatica.spaceshooter-1/lib/libProject.so (physx::NpSceneQueries::overlap(physx::PxGeometry const&, physx::PxTransform const&, physx::PxHitCallback<physx::PxOverlapHit>&, physx::PxQueryFilterData const&, physx::PxQueryFilterCallback*) const+144)
Time(21:26:22), App(DEBUG):     #08  pc 00273eb5  /mnt/asec/com.mlinformatica.spaceshooter-1/lib/libProject.so
Time(21:26:22), App(DEBUG):     #09  pc 000f6a6f  /mnt/asec/com.mlinformatica.spaceshooter-1/lib/libProject.so (Asteroid::check_collisions()+26)
Time(21:26:22), App(DEBUG):     #10  pc 000f8b95  /mnt/asec/com.mlinformatica.spaceshooter-1/lib/libProject.so (Asteroid::update()+8)
Time(21:26:22), App(DEBUG):     #11  pc 00108e97  /mnt/asec/com.mlinformatica.spaceshooter-1/lib/libProject.so
Time(21:26:22), App(DEBUG):     #12  pc 00108ef7  /mnt/asec/com.mlinformatica.spaceshooter-1/lib/libProject.so
Time(21:26:22), App(DEBUG):     #13  pc 0010ed31  /mnt/asec/com.mlinformatica.spaceshooter-1/lib/libProject.so
Time(21:26:22), App(DEBUG):     #14  pc 000f4071  /mnt/asec/com.mlinformatica.spaceshooter-1/lib/libProject.so (EE::Game::WorldManager::update(EE::Vec const&)+12)
Time(21:26:22), App(DEBUG):     #15  pc 000f6f5b  /mnt/asec/com.mlinformatica.spaceshooter-1/lib/libProject.so (UpdateGame()+158)
Time(21:26:22), App(DEBUG):     #16  pc 00239d9d  /mnt/asec/com.mlinformatica.spaceshooter-1/lib/libProject.so
Time(21:26:22), App(DEBUG):     #17  pc 0023a379  /mnt/asec/com.mlinformatica.spaceshooter-1/lib/libProject.so
Time(21:26:22), App(DEBUG):     #18  pc 0029c4cd  /mnt/asec/com.mlinformatica.spaceshooter-1/lib/libProject.so
Time(21:26:22), App(DEBUG):     #19  pc 006cf6f7  /mnt/asec/com.mlinformatica.spaceshooter-1/lib/libProject.so
Time(21:26:22), App(DEBUG):     #20  pc 0000e3d8  /system/lib/libc.so (__thread_entry+72)
Time(21:26:22), App(DEBUG):     #21  pc 0000dac4  /system/lib/libc.so (pthread_create+160)
Time(21:26:22), App(DEBUG):
Time(21:26:22), App(DEBUG): stack:
Time(21:26:22), App(DEBUG):          5ec93bd0  bf07de30  
Time(21:26:22), App(DEBUG):          5ec93bd4  bf4b05bf  
Time(21:26:22), App(DEBUG):          5ec93bd8  be991294  
Time(21:26:22), App(DEBUG):          5ec93bdc  3f30e349  
Time(21:26:22), App(DEBUG):          5ec93be0  bf1bf124  
Time(21:26:22), App(DEBUG):          5ec93be4  3ec7496a  
Time(21:26:22), App(DEBUG):          5ec93be8  befb4a20  
Time(21:26:22), App(DEBUG):          5ec93bec  00000000  
Time(21:26:22), App(DEBUG):          5ec93bf0  3f5f0bb4  
Time(21:26:22), App(DEBUG):          5ec93bf4  be0a663e  
Time(21:26:22), App(DEBUG):          5ec93bf8  bd5bc4ea  
Time(21:26:22), App(DEBUG):          5ec93bfc  43cd07ae  /dev/ashmem/dalvik-heap (deleted)
Time(21:26:22), App(DEBUG):          5ec93c00  408cc2de  /system/lib/libcrypto.so
Time(21:26:22), App(DEBUG):          5ec93c04  401cbecb  
Time(21:26:22), App(DEBUG):          5ec93c08  df0027ad  
Time(21:26:22), App(DEBUG):          5ec93c0c  00000000  
Time(21:26:22), App(DEBUG):     #00  5ec93c10  bf800000  
Time(21:26:22), App(DEBUG):          ........  ........
Time(21:26:22), App(DEBUG):     #01  5ec93c10  bf800000  
Time(21:26:22), App(DEBUG):          5ec93c14  00000000  
Time(21:26:22), App(DEBUG):          5ec93c18  bd5bc4ea  
Time(21:26:22), App(DEBUG):          5ec93c1c  00000000  
Time(21:26:22), App(DEBUG):          5ec93c20  5ec944c0  
Time(21:26:22), App(DEBUG):          5ec93c24  00000001  
Time(21:26:22), App(DEBUG):          5ec93c28  5ec944c0  
Time(21:26:22), App(DEBUG):          5ec93c2c  00000001  
Time(21:26:22), App(DEBUG):          5ec93c30  5ec93c80  
Time(21:26:22), App(DEBUG):          5ec93c34  5e5bb510  /mnt/asec/com.mlinformatica.spaceshooter-1/lib/libProject.so (MultiQueryCallback<physx::PxOverlapHit>::invoke(float&, physx::Sq::PrunerPayload const*, unsigned int)+540)
Time(21:26:22), App(DEBUG):     #02  5ec93c38  00000000  
Time(21:26:22), App(DEBUG):          5ec93c3c  00000000  
Time(21:26:22), App(DEBUG):          5ec93c40  00000000  
Time(21:26:22), App(DEBUG):          5ec93c44  00000000  
Time(21:26:22), App(DEBUG):          5ec93c48  00000000  
Time(21:26:22), App(DEBUG):          5ec93c4c  00000000  
Time(21:26:22), App(DEBUG):          5ec93c50  00000000  
Time(21:26:22), App(DEBUG):          5ec93c54  00000000  
Time(21:26:22), App(DEBUG):          5ec93c58  00000000  
Time(21:26:22), App(DEBUG):          5ec93c5c  00000000  
Time(21:26:22), App(DEBUG):          5ec93c60  00000000  
Time(21:26:22), App(DEBUG):          5ec93c64  00000000  
Time(21:26:22), App(DEBUG):          5ec93c68  5ec93c90  
Time(21:26:22), App(DEBUG):          5ec93c6c  00000001  
Time(21:26:22), App(DEBUG):          5ec93c70  5ec94870  
Time(21:26:22), App(DEBUG):          5ec93c74  5ec93ca4  
Time(21:26:22), App(DEBUG):          ........  ........
Time(21:26:22), App(DEBUG):
Time(21:26:22), App(DEBUG): memory near r0:
Time(21:26:22), App(DEBUG):     5a5df510 00000000 00000001 00000000 00000000  
Time(21:26:22), App(DEBUG):     5a5df520 00000000 00000001 00000000 00000000  
Time(21:26:22), App(DEBUG):     5a5df530 614208f0 00010007 00000000 5e9c3b28  
Time(21:26:22), App(DEBUG):     5a5df540 00000000 00000000 00000000 00000000  
Time(21:26:22), App(DEBUG):     5a5df550 00000000 01000000 00000000 00000000  
Time(21:26:22), App(DEBUG):     5a5df560 80000000 00000000 00000000 00000000  
Time(21:26:22), App(DEBUG):     5a5df570 0000001f 00000000 00000000 00000000  
Time(21:26:22), App(DEBUG):     5a5df580 3f000000 3f000000 bf000000 bf000000  
Time(21:26:22), App(DEBUG):     5a5df590 00000000 4089101d 00000000 3ba3d70a  
Time(21:26:22), App(DEBUG):     5a5df5a0 0000f60b 00000002 3f9132ef 40254650  
Time(21:26:22), App(DEBUG):     5a5df5b0 00000000 00000000 00000000 00000000  
Time(21:26:22), App(DEBUG):     5a5df5c0 00000000 00000000 00000000 00000000  
Time(21:26:22), App(DEBUG):     5a5df5d0 00000000 00000000 00000000 00000000  
Time(21:26:22), App(DEBUG):     5a5df5e0 00000000 5ee83101 00000005 0000010a  
Time(21:26:22), App(DEBUG):     5a5df5f0 00000000 00000001 00000000 00000000  
Time(21:26:22), App(DEBUG):     5a5df600 5e9c4a48 00010007 00000000 5e9c4af8  
Time(21:26:22), App(DEBUG):
Time(21:26:22), App(DEBUG): memory near r1:
Time(21:26:22), App(DEBUG):     5ec946a4 401c8228 00000000 0000002f 40b38b00  
Time(21:26:22), App(DEBUG):     5ec946b4 00000000 3f800000 00000000 b33bbd2e  
Time(21:26:22), App(DEBUG):     5ec946c4 ffffffff 00000000 00000000 00000000  
Time(21:26:22), App(DEBUG):     5ec946d4 0000002f be690698 3de5b09f 3f5e1d42  
Time(21:26:22), App(DEBUG):     5ec946e4 bedaef46 00000000 00000000 43ccc834  
Time(21:26:22), App(DEBUG):     5ec946f4 00000000 00000000 00000000 bf800000  
Time(21:26:22), App(DEBUG):     5ec94704 bd0b2d00 3e077e70 3eff2ee0 3e690698  
Time(21:26:22), App(DEBUG):     5ec94714 bde5b09f bf5e1d42 3edaef46 be0a663e  
Time(21:26:22), App(DEBUG):     5ec94724 bd5bc4ea 43cd07ae 00000000 bf800000  
Time(21:26:22), App(DEBUG):     5ec94734 3a03c000 3a03c000 4031f808 00000000  
Time(21:26:22), App(DEBUG):     5ec94744 3f800000 00000000 b33bbd2e ba03d050  
Time(21:26:22), App(DEBUG):     5ec94754 3a03c000 436ad27c 00000000 00000000  
Time(21:26:22), App(DEBUG):     5ec94764 00000000 00000000 5ec9499c 5e9cba68  
Time(21:26:22), App(DEBUG):     5ec94774 58a6b640 58a68e50 5ec947fc 0000002f  
Time(21:26:22), App(DEBUG):     5ec94784 5ec9496c 7f7fffff 5e5bcdbc 401c8228  
Time(21:26:22), App(DEBUG):     5ec94794 00000000 401c8228 58aab800 5ec949f0  
Time(21:26:22), App(DEBUG):
Time(21:26:22), App(DEBUG): memory near r2:
Time(21:26:22), App(DEBUG):     5ec93c60 00000000 00000000 5ec93c90 00000001  
Time(21:26:22), App(DEBUG):     5ec93c70 5ec94870 5ec93ca4 00000000 5e9cba68  
Time(21:26:22), App(DEBUG):     5ec93c80 58f3c910 5a5df530 ffffffff 00000000  
Time(21:26:22), App(DEBUG):     5ec93c90 58f3c910 5a5df530 5a5df550 58f3c940  
Time(21:26:22), App(DEBUG):     5ec93ca0 00000000 be035174 bf320479 be035174  
Time(21:26:22), App(DEBUG):     5ec93cb0 3f32047a c0800000 b3c00000 43cc5c8b  
Time(21:26:22), App(DEBUG):     5ec93cc0 00000000 3f000000 00000000 61428bd0  
Time(21:26:22), App(DEBUG):     5ec93cd0 61428bc8 5ec93cf4 5ec93dc0 59acfe10  
Time(21:26:22), App(DEBUG):     5ec93ce0 5ec93cf0 00000000 5ec93dac 5e78aebc  
Time(21:26:22), App(DEBUG):     5ec93cf0 00000000 00000000 00000000 00000000  
Time(21:26:22), App(DEBUG):     5ec93d00 00000000 00000000 00000000 00000000  
Time(21:26:22), App(DEBUG):     5ec93d10 00000001 00000000 58a6c760 58a6b990  
Time(21:26:22), App(DEBUG):     5ec93d20 58a6bf90 58a6b890 58a6b720 58a6b710  
Time(21:26:22), App(DEBUG):     5ec93d30 00000002 58a6b6d8 5ec93d80 58a6c230  
Time(21:26:22), App(DEBUG):     5ec93d40 58a6bc98 58a6bc94 58a6bc90 58a6ca00  
Time(21:26:22), App(DEBUG):     5ec93d50 58a6b6d0 58a6b8f0 000002a0 58a6bbfc  
Time(21:26:22), App(DEBUG):
Time(21:26:22), App(DEBUG): memory near r3:
Time(21:26:22), App(DEBUG):     adff20d0 ffffffff ffffffff ffffffff ffffffff  
Time(21:26:22), App(DEBUG):     adff20e0 ffffffff ffffffff ffffffff ffffffff  
Time(21:26:22), App(DEBUG):     adff20f0 ffffffff ffffffff ffffffff ffffffff  
Time(21:26:22), App(DEBUG):     adff2100 ffffffff ffffffff ffffffff ffffffff  
Time(21:26:22), App(DEBUG):     adff2110 ffffffff ffffffff ffffffff ffffffff  
Time(21:26:22), App(DEBUG):     adff2120 ffffffff ffffffff ffffffff ffffffff  
Time(21:26:22), App(DEBUG):     adff2130 ffffffff ffffffff ffffffff ffffffff  
Time(21:26:22), App(DEBUG):     adff2140 ffffffff ffffffff ffffffff ffffffff  
Time(21:26:22), App(DEBUG):     adff2150 ffffffff ffffffff ffffffff ffffffff  
Time(21:26:22), App(DEBUG):     adff2160 ffffffff ffffffff ffffffff ffffffff  
Time(21:26:22), App(DEBUG):     adff2170 ffffffff ffffffff ffffffff ffffffff  
Time(21:26:22), App(DEBUG):     adff2180 ffffffff ffffffff ffffffff ffffffff  
Time(21:26:22), App(DEBUG):     adff2190 ffffffff ffffffff ffffffff ffffffff  
Time(21:26:22), App(DEBUG):     adff21a0 ffffffff ffffffff ffffffff ffffffff  
Time(21:26:22), App(DEBUG):     adff21b0 ffffffff ffffffff ffffffff ffffffff  
Time(21:26:22), App(DEBUG):     adff21c0 ffffffff ffffffff ffffffff ffffffff  
Time(21:26:22), App(DEBUG):
Time(21:26:22), App(DEBUG): memory near r4:
Time(21:26:22), App(DEBUG):     5eca4850 58aaaac0 00000001 5eca4918 5e6f6fe4  
Time(21:26:22), App(DEBUG):     5eca4860 bc0a500a bd96c142 bde8b35e bf7da244  
Time(21:26:22), App(DEBUG):     5eca4870 c1efe8de 3df832ba 43f00a3a 5eca4918  
Time(21:26:22), App(DEBUG):     5eca4880 5eca48c0 acab53c2 00000000 42bafd1a  
Time(21:26:22), App(DEBUG):     5eca4890 00000000 00000000 00000000 5eca48c0  
Time(21:26:22), App(DEBUG):     5eca48a0 5e9d7194 5a82f724 58b3d940 00000003  
Time(21:26:22), App(DEBUG):     5eca48b0 00000001 00000001 5e9d7688 5e323a73  
Time(21:26:22), App(DEBUG):     5eca48c0 5e9c01a0 bde8b300 00000000 00000004  
Time(21:26:22), App(DEBUG):     5eca48d0 00000000 00000000 5e320991 5e320993  
Time(21:26:22), App(DEBUG):     5eca48e0 5a82f724 5e9d7194 00000119 58b3d940  
Time(21:26:22), App(DEBUG):     5eca48f0 00000003 5e325b99 3fc00000 00000000  
Time(21:26:22), App(DEBUG):     5eca4900 00000000 00000000 3fc00000 c1f00000  
Time(21:26:22), App(DEBUG):     5eca4910 00000000 43efc9f0 3f769d9b 3e67d292  
Time(21:26:22), App(DEBUG):     5eca4920 be1365a7 be6546f7 3f795a7c 3d0908c6  
Time(21:26:22), App(DEBUG):     5eca4930 3e175373 00000000 3f7d3070 c1f00000  
Time(21:26:22), App(DEBUG):     5eca4940 00000000 43efc9f0 3f7915a7 3e472a4b  
Time(21:26:22), App(DEBUG):
Time(21:26:22), App(DEBUG): memory near r5:
Time(21:26:22), App(DEBUG):     5ec93c60 00000000 00000000 5ec93c90 00000001  
Time(21:26:22), App(DEBUG):     5ec93c70 5ec94870 5ec93ca4 00000000 5e9cba68  
Time(21:26:22), App(DEBUG):     5ec93c80 58f3c910 5a5df530 ffffffff 00000000  
Time(21:26:22), App(DEBUG):     5ec93c90 58f3c910 5a5df530 5a5df550 58f3c940  
Time(21:26:22), App(DEBUG):     5ec93ca0 00000000 be035174 bf320479 be035174  
Time(21:26:22), App(DEBUG):     5ec93cb0 3f32047a c0800000 b3c00000 43cc5c8b  
Time(21:26:22), App(DEBUG):     5ec93cc0 00000000 3f000000 00000000 61428bd0  
Time(21:26:22), App(DEBUG):     5ec93cd0 61428bc8 5ec93cf4 5ec93dc0 59acfe10  
Time(21:26:22), App(DEBUG):     5ec93ce0 5ec93cf0 00000000 5ec93dac 5e78aebc  
Time(21:26:22), App(DEBUG):     5ec93cf0 00000000 00000000 00000000 00000000  
Time(21:26:22), App(DEBUG):     5ec93d00 00000000 00000000 00000000 00000000  
Time(21:26:22), App(DEBUG):     5ec93d10 00000001 00000000 58a6c760 58a6b990  
Time(21:26:22), App(DEBUG):     5ec93d20 58a6bf90 58a6b890 58a6b720 58a6b710  
Time(21:26:22), App(DEBUG):     5ec93d30 00000002 58a6b6d8 5ec93d80 58a6c230  
Time(21:26:22), App(DEBUG):     5ec93d40 58a6bc98 58a6bc94 58a6bc90 58a6ca00  
Time(21:26:22), App(DEBUG):     5ec93d50 58a6b6d0 58a6b8f0 000002a0 58a6bbfc  
Time(21:26:22), App(DEBUG):
Time(21:26:22), App(DEBUG): memory near r6:
Time(21:26:22), App(DEBUG):     5ec94850 408cc2de 401cbecb 40d7fd0b 00000000  
Time(21:26:22), App(DEBUG):     5ec94860 00000000 ffffffff 00000000 00000000  
Time(21:26:22), App(DEBUG):     5ec94870 5e9be148 00000000 00000001 00004000  
Time(21:26:22), App(DEBUG):     5ec94880 61426960 3fc00000 410d2bf1 5ec94960  
Time(21:26:22), App(DEBUG):     5ec94890 b38253a0 00000000 4215a538 338253a0  
Time(21:26:22), App(DEBUG):     5ec948a0 5e9c1db0 00000000 00000000 00004000  
Time(21:26:22), App(DEBUG):     5ec948b0 5fd2e930 5fd2ec90 5fd2ec90 5fd2e390  
Time(21:26:22), App(DEBUG):     5ec948c0 5fd2edb0 acab53c2 5fd2e810 acab53c2  
Time(21:26:22), App(DEBUG):     5ec948d0 00000000 58adc2ec 00000000 5ec94980  
Time(21:26:22), App(DEBUG):     5ec948e0 5ec94960 5ec949f0 5ec9496c 5ec9499c  
Time(21:26:22), App(DEBUG):     5ec948f0 401c8228 5e5bce8c 00000000 5ec9496c  
Time(21:26:22), App(DEBUG):     5ec94900 5ec949f0 00000000 42bafc93 00000000  
Time(21:26:22), App(DEBUG):     5ec94910 00000000 00000000 42bafc93 5ec94960  
Time(21:26:22), App(DEBUG):     5ec94920 56e5bf70 5ea8217c 00000000 58aaaac0  
Time(21:26:22), App(DEBUG):     5ec94930 5ea8217c 5e465e43 5ea820dc 5e465fd7  
Time(21:26:22), App(DEBUG):     5ec94940 5e9c1db0 5ea820dc 5ea820dc 5e490e9d  
Time(21:26:22), App(DEBUG):
Time(21:26:22), App(DEBUG): memory near r8:
Time(21:26:22), App(DEBUG):     59acfde8 40b38d90 5fd2ecc0 6141fce0 40b3a5b0  
Time(21:26:22), App(DEBUG):     59acfdf8 61420430 61426870 614206a0 61426bd0  
Time(21:26:22), App(DEBUG):     59acfe08 5a5df550 58f3c940 40b398f0 40b3a490  
Time(21:26:22), App(DEBUG):     59acfe18 5a5e0180 5fd2e600 61420840 61426e10  
Time(21:26:22), App(DEBUG):     59acfe28 614205d0 61426ab0 61420770 61426cf0  
Time(21:26:22), App(DEBUG):     59acfe38 61420500 61426990 00000016 ffffffff  
Time(21:26:22), App(DEBUG):     59acfe48 ffffffff ffffffff ffffffff 00000000  
Time(21:26:22), App(DEBUG):     59acfe58 00000001 00000002 00000027 00000022  
Time(21:26:22), App(DEBUG):     59acfe68 00000021 0000001e 0000001c 0000001d  
Time(21:26:22), App(DEBUG):     59acfe78 00000006 00000004 00000019 00000009  
Time(21:26:22), App(DEBUG):     59acfe88 00000015 00000014 0000000b 00000018  
Time(21:26:22), App(DEBUG):     59acfe98 00000011 00000012 0000000e 00000008  
Time(21:26:22), App(DEBUG):     59acfea8 00000010 0000000f 00000007 00000017  
Time(21:26:22), App(DEBUG):     59acfeb8 00000128 00000013 00000001 5a81e060  
Time(21:26:22), App(DEBUG):     59acfec8 c0d55c2a 00000013 00000001 5a8355e8  
Time(21:26:22), App(DEBUG):     59acfed8 00000010 0000006b 10662c40 6146cc40  
Time(21:26:22), App(DEBUG):
Time(21:26:22), App(DEBUG): memory near r9:
Time(21:26:22), App(DEBUG):     5ec9482c 00000000 00000000 ffffffff 00000000  
Time(21:26:22), App(DEBUG):     5ec9483c ffffff00 00000000 00000000 00000000  
Time(21:26:22), App(DEBUG):     5ec9484c 00000003 408cc2de 401cbecb 40d7fd0b  
Time(21:26:22), App(DEBUG):     5ec9485c 00000000 00000000 ffffffff 00000000  
Time(21:26:22), App(DEBUG):     5ec9486c 00000000 5e9be148 00000000 00000001  
Time(21:26:22), App(DEBUG):     5ec9487c 00004000 61426960 3fc00000 410d2bf1  
Time(21:26:22), App(DEBUG):     5ec9488c 5ec94960 b38253a0 00000000 4215a538  
Time(21:26:22), App(DEBUG):     5ec9489c 338253a0 5e9c1db0 00000000 00000000  
Time(21:26:22), App(DEBUG):     5ec948ac 00004000 5fd2e930 5fd2ec90 5fd2ec90  
Time(21:26:22), App(DEBUG):     5ec948bc 5fd2e390 5fd2edb0 acab53c2 5fd2e810  
Time(21:26:22), App(DEBUG):     5ec948cc acab53c2 00000000 58adc2ec 00000000  
Time(21:26:22), App(DEBUG):     5ec948dc 5ec94980 5ec94960 5ec949f0 5ec9496c  
Time(21:26:22), App(DEBUG):     5ec948ec 5ec9499c 401c8228 5e5bce8c 00000000  
Time(21:26:22), App(DEBUG):     5ec948fc 5ec9496c 5ec949f0 00000000 42bafc93  
Time(21:26:22), App(DEBUG):     5ec9490c 00000000 00000000 00000000 42bafc93  
Time(21:26:22), App(DEBUG):     5ec9491c 5ec94960 56e5bf70 5ea8217c 00000000  
Time(21:26:22), App(DEBUG):
Time(21:26:22), App(DEBUG): memory near ip:
Time(21:26:22), App(DEBUG):     5e6a0c3c eef04a63 e3a03001 eaffffd0 e3530000  
Time(21:26:22), App(DEBUG):     5e6a0c4c 03a00001 0afffff4 eef07a66 eaffffdd  
Time(21:26:22), App(DEBUG):     5e6a0c5c eeb76a00 e92d41f0 ed2d8b04 edd11a03  
Time(21:26:22), App(DEBUG):     5e6a0c6c ed912a00 ed918a02 ed910a01 edd36a01  
Time(21:26:22), App(DEBUG):     5e6a0c7c edd37a02 edd32a00 ed934a03 ed905a02  
Time(21:26:22), App(DEBUG):     5e6a0c8c edd18a04 e24dd078 edd10a05 e1a04003  
Time(21:26:22), App(DEBUG):     5e6a0c9c e5933010 ed911a06 e1a05002 ee317aa1  
Time(21:26:22), App(DEBUG):     5e6a0cac e5942018 e58d305c e1a06000 e5943014  
Time(21:26:22), App(DEBUG):     5e6a0cbc e28d8010 e58d2064 e28d7038 e5952008  
Time(21:26:22), App(DEBUG):     5e6a0ccc e1a00008 e58d3060 e1a01007 e5953004  
Time(21:26:22), App(DEBUG):     5e6a0cdc e58d206c e58d3068 eeb03a46 e595300c  
Time(21:26:22), App(DEBUG):     5e6a0cec e58d3070 ee113a87 ee723a02 ee634a80  
Time(21:26:22), App(DEBUG):     5e6a0cfc ee635a88 ee023a23 ee763aa6 ee474a08  
Time(21:26:22), App(DEBUG):     5e6a0d0c ee661aa3 ee405a47 ee379aa7 ee327aa2  
Time(21:26:22), App(DEBUG):     5e6a0d1c ee240a23 ee278a87 ee673aa3 ee677a89  
Time(21:26:22), App(DEBUG):     5e6a0d2c eeb02a46 ee366a61 ee253a03 ee022ac7  
Time(21:26:22), App(DEBUG):
Time(21:26:22), App(DEBUG): memory near sp:
Time(21:26:22), App(DEBUG):     5ec93bf0 3f5f0bb4 be0a663e bd5bc4ea 43cd07ae  
Time(21:26:22), App(DEBUG):     5ec93c00 408cc2de 401cbecb df0027ad 00000000  
Time(21:26:22), App(DEBUG):     5ec93c10 bf800000 00000000 bd5bc4ea 00000000  
Time(21:26:22), App(DEBUG):     5ec93c20 5ec944c0 00000001 5ec944c0 00000001  
Time(21:26:22), App(DEBUG):     5ec93c30 5ec93c80 5e5bb510 00000000 00000000  
Time(21:26:22), App(DEBUG):     5ec93c40 00000000 00000000 00000000 00000000  
Time(21:26:22), App(DEBUG):     5ec93c50 00000000 00000000 00000000 00000000  
Time(21:26:22), App(DEBUG):     5ec93c60 00000000 00000000 5ec93c90 00000001  
Time(21:26:22), App(DEBUG):     5ec93c70 5ec94870 5ec93ca4 00000000 5e9cba68  
Time(21:26:22), App(DEBUG):     5ec93c80 58f3c910 5a5df530 ffffffff 00000000  
Time(21:26:22), App(DEBUG):     5ec93c90 58f3c910 5a5df530 5a5df550 58f3c940  
Time(21:26:22), App(DEBUG):     5ec93ca0 00000000 be035174 bf320479 be035174  
Time(21:26:22), App(DEBUG):     5ec93cb0 3f32047a c0800000 b3c00000 43cc5c8b  
Time(21:26:22), App(DEBUG):     5ec93cc0 00000000 3f000000 00000000 61428bd0  
Time(21:26:22), App(DEBUG):     5ec93cd0 61428bc8 5ec93cf4 5ec93dc0 59acfe10  
Time(21:26:22), App(DEBUG):     5ec93ce0 5ec93cf0 00000000 5ec93dac 5e78aebc  
Time(21:26:22), App(DEBUG):
Time(21:26:22), App(DEBUG): code around pc:
Time(21:26:22), App(DEBUG):     adff20d0 ffffffff ffffffff ffffffff ffffffff  
Time(21:26:22), App(DEBUG):     adff20e0 ffffffff ffffffff ffffffff ffffffff  
Time(21:26:22), App(DEBUG):     adff20f0 ffffffff ffffffff ffffffff ffffffff  
Time(21:26:22), App(DEBUG):     adff2100 ffffffff ffffffff ffffffff ffffffff  
Time(21:26:22), App(DEBUG):     adff2110 ffffffff ffffffff ffffffff ffffffff  
Time(21:26:22), App(DEBUG):     adff2120 ffffffff ffffffff ffffffff ffffffff  
Time(21:26:22), App(DEBUG):     adff2130 ffffffff ffffffff ffffffff ffffffff  
Time(21:26:22), App(DEBUG):     adff2140 ffffffff ffffffff ffffffff ffffffff  
Time(21:26:22), App(DEBUG):     adff2150 ffffffff ffffffff ffffffff ffffffff  
Time(21:26:22), App(DEBUG):     adff2160 ffffffff ffffffff ffffffff ffffffff  
Time(21:26:22), App(DEBUG):     adff2170 ffffffff ffffffff ffffffff ffffffff  
Time(21:26:22), App(DEBUG):     adff2180 ffffffff ffffffff ffffffff ffffffff  
Time(21:26:22), App(DEBUG):     adff2190 ffffffff ffffffff ffffffff ffffffff  
Time(21:26:22), App(DEBUG):     adff21a0 ffffffff ffffffff ffffffff ffffffff  
Time(21:26:22), App(DEBUG):     adff21b0 ffffffff ffffffff ffffffff ffffffff  
Time(21:26:22), App(DEBUG):     adff21c0 ffffffff ffffffff ffffffff ffffffff  
Time(21:26:22), App(DEBUG):
Time(21:26:22), App(DEBUG): code around lr:
Time(21:26:22), App(DEBUG):     5e4a08cc 6833ffad 20016003 b570bdf8 3480f500  
Time(21:26:22), App(DEBUG):     5e4a08dc 4606b086 46156923 6850b1f3 6c1b6803  
Time(21:26:22), App(DEBUG):     5e4a08ec 90004798 1d30b1c0 f7ff4669 b198ffce  
Time(21:26:22), App(DEBUG):     5e4a08fc 6869a801 f88d2300 f88d3005 93023004  
Time(21:26:22), App(DEBUG):     5e4a090c 93049303 f7ef9305 6920fba9 6803a901  
Time(21:26:22), App(DEBUG):     5e4a091c 4798681b 6120b900 b0062000 b530bd70  
Time(21:26:22), App(DEBUG):     5e4a092c 68434604 4615b087 6850b303 6803b1f0  
Time(21:26:22), App(DEBUG):     5e4a093c 47986c1b b1c89000 0008f104 f7ff4669  
Time(21:26:22), App(DEBUG):     5e4a094c b198ffa4 6869a801 f88d2300 f88d3005  
Time(21:26:22), App(DEBUG):     5e4a095c 93023004 93049303 f7ef9305 6860fb7f  
Time(21:26:22), App(DEBUG):     5e4a096c 6803a901 4798681b 6060b900 b0072000  
Time(21:26:22), App(DEBUG):     5e4a097c 0000bd30 357cf8df 4ff0e92d 8b04ed2d  
Time(21:26:22), App(DEBUG):     5e4a098c 681b447b 3d80f5ad f5ad4606 46157d0b  
Time(21:26:22), App(DEBUG):     5e4a099c 3080f50d f500681a 68377009 60029305  
Time(21:26:22), App(DEBUG):     5e4a09ac f0002f00 f8df8294 447b3550 33006adb  
Time(21:26:22), App(DEBUG):     5e4a09bc 2301bf18 bf0c2d00 f0032300 2b000301  
Time(21:26:22), App(DEBUG):
Time(21:26:22), App(DEBUG): memory map around fault addr adff20f2:
Time(21:26:22), App(DEBUG):     61936000-61976000 /dev/mali
Time(21:26:22), App(DEBUG):     (no map for address)
Time(21:26:22), App(DEBUG):     bed35000-bed56000 [stack]
Time(21:26:22), App(BootReceiver): Copying /data/tombstones/tombstone_08 to DropBox (SYSTEM_TOMBSTONE)
Time(21:26:22), App(Zygote): Process 9000 terminated by signal (11)
Time(21:26:22), App(InputDispatcher): channel '415cc358 com.mlinformatica.spaceshooter/com.mlinformatica.spaceshooter.EsenthelActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
Time(21:26:22), App(InputDispatcher): channel '415cc358 com.mlinformatica.spaceshooter/com.mlinformatica.spaceshooter.EsenthelActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
Time(21:26:22), App(dalvikvm): GC_FOR_ALLOC freed 560K, 15% free 10001K/11764K, paused 167ms, total 168ms
04-25-2015 09:38 PM
Find all posts by this user Quote this message in a reply
tiagolapa Offline
Member

Post: #2
RE: Android physics problem
Hello

I made all my editor objects Box physical body (they were Convex 8/16)

I made bullet a Box instead of Capsule.
Code:
BulletHitDetection bhd(T);
//Physics.cuts(Capsule(BulletRadius, pos_old, pos_new), bhd); // check if bullet test-capsule encountered an obstacle
Physics.cuts(Box(BulletRadius, pos_new), bhd);

Game improved and works some minutes then eventually crashes, with same debug references to physx:

(MultiQueryCallback<physx::PxOverlapHit>::invoke(float&, physx::Sq::PrunerPayload const*, unsigned int)+536)



My game periodically creates waves of enemies and player spaceship is always firing bullets and missiles.

I destroy them when out of screen, returning false on update.

I'm using Game.World.update(Cam.at) and checking Game.ObjMap containers elms() (around 20 objs total + 15 bullets) and mem.usage (around 90%)

Physics.draw() looks ok.

May be a bug of physics?
(This post was last modified: 04-26-2015 08:10 PM by tiagolapa.)
04-26-2015 08:07 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #3
RE: Android physics problem
Hi,

Make sure you're not modifying anything physics related in the physics callback, but only your own non-physics variables.

Attaching your project would help, or a smaller version of the project with just the issue reproduced.
04-26-2015 09:54 PM
Find all posts by this user Quote this message in a reply
tiagolapa Offline
Member

Post: #4
RE: Android physics problem
Hello im back smile

I made a small project to narrow down the problem, wich happens only on android after a few seconds of runtime.

I figured out the main line that makes it crash is: T.actor.addAngVel(Vec(0, 0.1, 0));

If i dont rotate all works fine with collisions.

Funny, if i dont call die() inside check_collisions(), it works with rotations. die() function only changes health to 0 and does not modify anything physics related.

enemy code:
PHP Code:
class Enemy Game.Item
{
   
int health 100;
   
   class 
CollisionDetection PhysCutsCallback
   
{
      
bool            collision=false;
      
Memc<Game.Obj*> objs;

      
virtual bool hit(ActorInfo &actor_info// this is called when detected a collision
      
{
         
collision=true;
         
objs.add(actor_info.obj);

         return 
true// continue checking for other objects
      
}
   }

   
bool alive(){return health>0;}
   
   
void die()
   {
      
health=0;
   }

   
void check_collisions()
   {
      
CollisionDetection cd;
      
      
T.actor.cuts(cd);
      if(
cd.collision)
      {
         die(); 
// problem !

         
REPA(cd.objs)
         {
            if(
Enemy *enemy=CAST(Enemycd.objs[i]))
               
enemy.die();
         }
      }
   }
   
   
virtual void create(Object &obj)
   {  
      
super.create(obj);
      
      
T.actor.collision(false);
      
T.actor.gravity(false);

      
T.pos(T.pos()+Vec(00RandomF(-5050)));
      
T.actor.addVel(Vec(00RandomF(-50, -10)));
   }
   
   
virtual bool update()
   {
      
      
T.check_collisions(); // problem !
      
      
      
      
if(super.update())
      {
         if(
T.pos().z<10)
         {
            die();
         }
         
         if(!
alive())
         {
            
add_above_message(PosToScreen(T.pos()), S+"dead");
            return 
false;
         }
         
         
         
         
// next code line makes crash on android:
         
         
T.actor.addAngVel(Vec(00.10));
         
         

         return 
true;
      }

      return 
false;
   }



Attached File(s)
.zip  TestProject.zip (Size: 15.05 KB / Downloads: 0)
(This post was last modified: 01-15-2016 12:51 PM by tiagolapa.)
01-15-2016 12:47 PM
Find all posts by this user Quote this message in a reply
tiagolapa Offline
Member

Post: #5
RE: Android physics problem
All works fine after changing physical body from box to ball.

Ball physical body is the only one working.

edit: figured how to use Physics.reportContact to check for collisions and now all works fine smile
(This post was last modified: 01-15-2016 08:31 PM by tiagolapa.)
01-15-2016 02:07 PM
Find all posts by this user Quote this message in a reply
Post Reply