New version of Box2D

  ... the case you feel the need for a new feature or want to submit one.

Re: New version of Box2D

Postby nazgee » Thu Apr 25, 2013 1:32 pm

I am doing A LOT of processing in post solve, so I do not think there is anything broken with doing it 'per se'.
Dirt Rider Mayhem is PUBLISHED now!
Image
User avatar
nazgee
 
Posts: 527
Joined: Fri Oct 21, 2011 10:31 pm
Location: Poland, Wrocław

Re: New version of Box2D

Postby RealMayo » Thu Apr 25, 2013 3:38 pm

@fechy Keep in mind that postSolve gets called repeatedly during contact, so there is a chance that your code is being called repeatedly when you only intended it to be called once. Alternatively you can try placing your code in beginContact.

@nazgee What is AndEngineRubeLoaderExtension ?!
User avatar
RealMayo
 
Posts: 1694
Joined: Sat Sep 03, 2011 9:25 pm
Location: Chicago, IL

Re: New version of Box2D

Postby Mathew » Thu Apr 25, 2013 5:04 pm

RealMayo wrote:@nazgee What is AndEngineRubeLoaderExtension ?!


gles2/rube-loader-project-t10860.html#p50038

Could be posted in features section to be more visible though.
User avatar
Mathew
 
Posts: 1073
Joined: Sun Jul 31, 2011 2:49 pm
Location: Tarnów, Poland

Re: New version of Box2D

Postby fechy » Thu Apr 25, 2013 8:43 pm

Still not able to make it work :( but finally I found a error on LogCat:
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. 04-25 21:38:26.480: I/DEBUG(5850): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
  2. 04-25 21:38:26.480: I/DEBUG(5850): Build fingerprint: 'samsung/GT-I9100/GT-I9100:2.3.4/GRJ22/eng.build.20120314.185218:eng/release-keys'
  3. 04-25 21:38:26.480: I/DEBUG(5850): pid: 6679, tid: 6702  >>> com.kingmonkey.kot <<<
  4. 04-25 21:38:26.480: I/DEBUG(5850): pid: 6679, tid: 6702, pkg name: com.kingmonkey.kot
  5. 04-25 21:38:26.480: I/DEBUG(5850): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadbaad
  6. 04-25 21:38:26.480: I/DEBUG(5850):  eax 00000000  ebx 80163100  ecx 00000000  edx 00000000
  7. 04-25 21:38:26.480: I/DEBUG(5850):  esi b7773000  edi b0bb0410
  8. 04-25 21:38:26.480: I/DEBUG(5850):  xcs 00000073  xds 0000007b  xes 0000007b  xfs 00000000 xss 0000007b
  9. 04-25 21:38:26.480: I/DEBUG(5850):  eip 80115a83  ebp b0bb042c  esp b0bb03e4  flags 00010286
  10. 04-25 21:38:26.510: D/TelephonyManager(5862): returning subscriberId: 310260131459965
  11. 04-25 21:38:26.540: I/DEBUG(5850): #00
  12. 04-25 21:38:26.540: I/DEBUG(5850):     eip: 80115a83  /system/lib/libc.so (abort)
  13. 04-25 21:38:26.540: I/DEBUG(5850): #01
  14. 04-25 21:38:26.540: I/DEBUG(5850):     eip: 80122520  /system/lib/libc.so (__assert)
  15. 04-25 21:38:26.540: I/DEBUG(5850): #02
  16. 04-25 21:38:26.540: I/DEBUG(5850):     eip: 8502bbf8  /mnt/asec/com.kingmonkey.kot-1/lib/libandenginephysicsbox2dextension.so (_ZN6b2Body9SetActiveEb)
  17. 04-25 21:38:26.540: I/DEBUG(5850): #03
  18. 04-25 21:38:26.540: I/DEBUG(5850):     eip: 82354981  /system/lib/libdvm.so (dvmCallJNIMethod_virtualNoRef)
  19. 04-25 21:38:26.540: I/DEBUG(5850): #04
  20. 04-25 21:38:26.540: I/DEBUG(5850):     eip: 8232a913  /system/lib/libdvm.so (dvmInterpretDbg)
  21. 04-25 21:38:26.540: I/DEBUG(5850): #05
  22. 04-25 21:38:26.540: I/DEBUG(5850):     eip: 8232260e  /system/lib/libdvm.so (dvmInterpret)
  23. 04-25 21:38:26.540: I/DEBUG(5850): #06
  24. 04-25 21:38:26.540: I/DEBUG(5850):     eip: 8237d6ca  /system/lib/libdvm.so (dvmCallMethodV)
  25. 04-25 21:38:26.540: I/DEBUG(5850): #07
  26. 04-25 21:38:26.540: I/DEBUG(5850):     eip: 8235ac9e  /system/lib/libdvm.so (CallVoidMethodV)
  27. 04-25 21:38:26.540: I/DEBUG(5850): stack:
  28. 04-25 21:38:26.540: I/DEBUG(5850): #00
  29. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb03e4  00000002   (CallVoidMethodV)
  30. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb03e8  b0bb0410   (CallVoidMethodV)
  31. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb03ec  00000000   (CallVoidMethodV)
  32. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb03f0  085e67e8  [heap] (CallVoidMethodV)
  33. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb03f4  b0bb0434   (CallVoidMethodV)
  34. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb03f8  00000000   (CallVoidMethodV)
  35. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb03fc  80164d98  /system/lib/libc.so (CallVoidMethodV)
  36. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0400  80163100  /system/lib/libc.so (CallVoidMethodV)
  37. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0404  b0bb3d78   (CallVoidMethodV)
  38. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0408  b0bb050c   (CallVoidMethodV)
  39. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb040c  b0bb042c   (CallVoidMethodV)
  40. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0410  fffffbdf   (CallVoidMethodV)
  41. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0414  80163928  /system/lib/libc.so (CallVoidMethodV)
  42. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0418  8015ad04  /system/lib/libc.so
  43. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb041c  80115a0b  /system/lib/libc.so (abort)
  44. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0420  80163100  /system/lib/libc.so (abort)
  45. 04-25 21:38:26.540: I/DEBUG(5850):     ......  ......  
  46. 04-25 21:38:26.540: I/DEBUG(5850): #01
  47. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0430  80122520  /system/lib/libc.so (__assert)
  48. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0434  80163928  /system/lib/libc.so (__assert)
  49. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0438  8015ad04  /system/lib/libc.so
  50. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb043c  8504f0ae  /mnt/asec/com.kingmonkey.kot-1/lib/libandenginephysicsbox2dextension.so
  51. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0440  8504ef78  /mnt/asec/com.kingmonkey.kot-1/lib/libandenginephysicsbox2dextension.so
  52. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0444  000001c1  
  53. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0448  8504f324  /mnt/asec/com.kingmonkey.kot-1/lib/libandenginephysicsbox2dextension.so
  54. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb044c  80112909  /system/lib/libc.so (free)
  55. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0450  823c5b84  /system/lib/libdvm.so (free)
  56. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0454  0804b000  [heap] (free)
  57. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0458  8505eff4  /mnt/asec/com.kingmonkey.kot-1/lib/libandenginephysicsbox2dextension.so (free)
  58. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb045c  b0bb0524   (free)
  59. 04-25 21:38:26.540: I/DEBUG(5850): #02
  60. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0460  8502bbf8  /mnt/asec/com.kingmonkey.kot-1/lib/libandenginephysicsbox2dextension.so (_ZN6b2Body9SetActiveEb)
  61. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0464  8504ef78  /mnt/asec/com.kingmonkey.kot-1/lib/libandenginephysicsbox2dextension.so
  62. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0468  000001c1  
  63. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb046c  8504f324  /mnt/asec/com.kingmonkey.kot-1/lib/libandenginephysicsbox2dextension.so
  64. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0470  8504f0ae  /mnt/asec/com.kingmonkey.kot-1/lib/libandenginephysicsbox2dextension.so
  65. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0474  b0bb0494  
  66. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0478  80112923  /system/lib/libc.so (free)
  67. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb047c  0834b590  [heap] (free)
  68. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0480  823c5b00  /system/lib/libdvm.so (free)
  69. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0484  b0bb0494   (free)
  70. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0488  823c5b84  /system/lib/libdvm.so (free)
  71. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb048c  80112909  /system/lib/libc.so (free)
  72. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0490  823c5b84  /system/lib/libdvm.so (free)
  73. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0494  b0bb0514   (free)
  74. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0498  82380415  /system/lib/libdvm.so (dvmJdwpPostLocationEvent)
  75. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb049c  0834b590  [heap] (dvmJdwpPostLocationEvent)
  76. 04-25 21:38:26.540: I/DEBUG(5850):     ......  ......  
  77. 04-25 21:38:26.540: I/DEBUG(5850): #03
  78. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0528  82354981  /system/lib/libdvm.so (dvmCallJNIMethod_virtualNoRef)
  79. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb052c  080b9990  [heap] (dvmCallJNIMethod_virtualNoRef)
  80. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0530  00000000   (dvmCallJNIMethod_virtualNoRef)
  81. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0534  00000004   (dvmCallJNIMethod_virtualNoRef)
  82. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0538  00000004   (dvmCallJNIMethod_virtualNoRef)
  83. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb053c  b0bb3d64   (dvmCallJNIMethod_virtualNoRef)
  84. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0540  b17ddd4e  /data/dalvik-cache/mnt@asec@com.kingmonkey.kot-1@pkg.apk@classes.dex (dvmCallJNIMethod_virtualNoRef)
  85. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0544  85014e12  /mnt/asec/com.kingmonkey.kot-1/lib/libandenginephysicsbox2dextension.so (Java_com_badlogic_gdx_physics_box2d_Body_jniSetActive)
  86. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0548  b0bb0688   (Java_com_badlogic_gdx_physics_box2d_Body_jniSetActive)
  87. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb054c  000000c2   (Java_com_badlogic_gdx_physics_box2d_Body_jniSetActive)
  88. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0550  b3aa9aac  /dev/ashmem/dalvik-LinearAlloc (deleted) (Java_com_badlogic_gdx_physics_box2d_Body_jniSetActive)
  89. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0554  ffffffff   (Java_com_badlogic_gdx_physics_box2d_Body_jniSetActive)
  90. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0558  00000001   (Java_com_badlogic_gdx_physics_box2d_Body_jniSetActive)
  91. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb055c  b0bb05ec   (Java_com_badlogic_gdx_physics_box2d_Body_jniSetActive)
  92. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0560  4211c3a1   (Java_com_badlogic_gdx_physics_box2d_Body_jniSetActive)
  93. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0564  41170000   (Java_com_badlogic_gdx_physics_box2d_Body_jniSetActive)
  94. 04-25 21:38:26.540: I/DEBUG(5850):     ......  ......  
  95. 04-25 21:38:26.540: I/DEBUG(5850): #04
  96. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0578  8232a913  /system/lib/libdvm.so (dvmInterpretDbg)
  97. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb057c  b0bb3d64   (dvmInterpretDbg)
  98. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0580  b0bb0688   (dvmInterpretDbg)
  99. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0584  b3aa9aac  /dev/ashmem/dalvik-LinearAlloc (deleted) (dvmInterpretDbg)
  100. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0588  0825d008  [heap] (dvmInterpretDbg)
  101. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb058c  000000b4   (dvmInterpretDbg)
  102. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0590  b0bb05d4   (dvmInterpretDbg)
  103. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0594  b0bb05e4   (dvmInterpretDbg)
  104. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0598  8502217a  /mnt/asec/com.kingmonkey.kot-1/lib/libandenginephysicsbox2dextension.so (_Z10b2DistanceP16b2DistanceOutputP14b2SimplexCachePK15b2DistanceInput)
  105. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb059c  b0bb068c   (_Z10b2DistanceP16b2DistanceOutputP14b2SimplexCachePK15b2DistanceInput)
  106. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb05a0  b0bb0790   (_Z10b2DistanceP16b2DistanceOutputP14b2SimplexCachePK15b2DistanceInput)
  107. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb05a4  b0bb07c4   (_Z10b2DistanceP16b2DistanceOutputP14b2SimplexCachePK15b2DistanceInput)
  108. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb05a8  c0038d4b   (_Z10b2DistanceP16b2DistanceOutputP14b2SimplexCachePK15b2DistanceInput)
  109. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb05ac  b0bb0838   (_Z10b2DistanceP16b2DistanceOutputP14b2SimplexCachePK15b2DistanceInput)
  110. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb05b0  00000003   (_Z10b2DistanceP16b2DistanceOutputP14b2SimplexCachePK15b2DistanceInput)
  111. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb05b4  bf40f6cc   (_Z10b2DistanceP16b2DistanceOutputP14b2SimplexCachePK15b2DistanceInput)
  112. 04-25 21:38:26.540: I/DEBUG(5850):     ......  ......  
  113. 04-25 21:38:26.540: I/DEBUG(5850): #05
  114. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb06b8  8232260e  /system/lib/libdvm.so (dvmInterpret)
  115. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb06bc  0825d008  [heap] (dvmInterpret)
  116. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb06c0  b0bb06ec   (dvmInterpret)
  117. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb06c4  bf19c6e0   (dvmInterpret)
  118. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb06c8  3e857352   (dvmInterpret)
  119. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb06cc  00000002   (dvmInterpret)
  120. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb06d0  00000001   (dvmInterpret)
  121. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb06d4  4211c3a1   (dvmInterpret)
  122. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb06d8  8237d116  /system/lib/libdvm.so (callPrep)
  123. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb06dc  413af2fe   (callPrep)
  124. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb06e0  412df2ff   (callPrep)
  125. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb06e4  bf380000   (callPrep)
  126. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb06e8  82323560  /system/lib/libdvm.so (dvmMterpStd)
  127. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb06ec  b1716510  /data/dalvik-cache/mnt@asec@com.kingmonkey.kot-1@pkg.apk@classes.dex (dvmMterpStd)
  128. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb06f0  b0bb3e04   (dvmMterpStd)
  129. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb06f4  00000001   (dvmMterpStd)
  130. 04-25 21:38:26.540: I/DEBUG(5850):     ......  ......  
  131. 04-25 21:38:26.540: I/DEBUG(5850): #06
  132. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0748  8237d6ca  /system/lib/libdvm.so (dvmCallMethodV)
  133. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb074c  0825d008  [heap] (dvmCallMethodV)
  134. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0750  b3a95bdc  /dev/ashmem/dalvik-LinearAlloc (deleted) (dvmCallMethodV)
  135. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0754  b0bb07b4   (dvmCallMethodV)
  136. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0758  823938d7  /system/lib/libdvm.so (dvmGetVirtualizedMethod)
  137. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb075c  0825d008  [heap] (dvmGetVirtualizedMethod)
  138. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0760  01800000   (dvmGetVirtualizedMethod)
  139. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0764  b0bb0820   (dvmGetVirtualizedMethod)
  140. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0768  80000000  /system/lib/liblog.so
  141. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb076c  3f080000  
  142. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0770  00000000  
  143. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0774  3f880000  
  144. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0778  823c5b84  /system/lib/libdvm.so
  145. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb077c  0825d008  [heap]
  146. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0780  b4648a48  /dev/ashmem/dalvik-heap (deleted)
  147. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0784  b0bb07d4  
  148. 04-25 21:38:26.540: I/DEBUG(5850):     ......  ......  
  149. 04-25 21:38:26.540: I/DEBUG(5850): #07
  150. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0788  8235ac9e  /system/lib/libdvm.so (CallVoidMethodV)
  151. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb078c  0825d008  [heap] (CallVoidMethodV)
  152. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0790  b3a95bdc  /dev/ashmem/dalvik-LinearAlloc (deleted) (CallVoidMethodV)
  153. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0794  b4648a48  /dev/ashmem/dalvik-heap (deleted) (CallVoidMethodV)
  154. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb0798  00000001   (CallVoidMethodV)
  155. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb079c  b0bb07b4   (CallVoidMethodV)
  156. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb07a0  b0bb0818   (CallVoidMethodV)
  157. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb07a4  4214a3a1   (CallVoidMethodV)
  158. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb07a8  41230000   (CallVoidMethodV)
  159. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb07ac  00000000   (CallVoidMethodV)
  160. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb07b0  3f800000   (CallVoidMethodV)
  161. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb07b4  4211c3a1   (CallVoidMethodV)
  162. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb07b8  41348000   (CallVoidMethodV)
  163. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb07bc  00010201   (CallVoidMethodV)
  164. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb07c0  4211c3a1   (CallVoidMethodV)
  165. 04-25 21:38:26.540: I/DEBUG(5850):     b0bb07c4  41170000   (CallVoidMethodV)
  166. 04-25 21:38:26.540: I/DEBUG(5850):     ......  ......  
  167.  
Parsed in 0.040 seconds, using GeSHi 1.0.8.4


I little bit long, but here's one point that is (maybe) more important:
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. 04-25 21:38:26.480: I/DEBUG(5850): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadbaad
  2.  
Parsed in 0.010 seconds, using GeSHi 1.0.8.4


I use BlueStacks to test, but it also happen in a Samsumg S2, Motorola Atrix and a Samsumg Galaxy tab

Any idea?
fechy
 
Posts: 47
Joined: Fri Sep 14, 2012 3:38 pm

Re: New version of Box2D

Postby nazgee » Thu May 09, 2013 12:40 pm

Actually, there is something else that is interesing in this stacktrace. It is:
04-25 21:38:26.540: I/DEBUG(5850): eip: 80122520 /system/lib/libc.so (__assert)
04-25 21:38:26.540: I/DEBUG(5850): eip: 8502bbf8 /mnt/asec/com.kingmonkey.kot-1/lib/libandenginephysicsbox2dextension.so (_ZN6b2Body9SetActiveEb)


Which means that some assertion in b2Body::SetActive() failed. You might wanna have a look at b2d code- im might give you an idea of what is going wrong. But to be honest- native crashes are a bitch...
Dirt Rider Mayhem is PUBLISHED now!
Image
User avatar
nazgee
 
Posts: 527
Joined: Fri Oct 21, 2011 10:31 pm
Location: Poland, Wrocław

Re: New version of Box2D

Postby fechy » Mon Jul 08, 2013 4:07 pm

Ok, after lot of time, I took the time to try this new extension again. The problem persisted, but with more time to digg and a little bit more of research I found this:

http://www.andengine.org/forums/physics-box2d-extension/poor-box2d-advice-t9909.html

So it basically says that set a body as inactive inside of the contactListener is a bad idea (or at least I think is that)

And I started removing every setActive() from it AND from any method called inside of it too. And it finally worked.

However it make me re think a lot of thing I was doing with the bodies. Which brings me to some questions:

1) To create a "bomb", I set the body as inactive, and then, after X seconds, I set it as active and keep it like that for 0.1f sec, so any enemy that is inside the bomb reach area gets busted. The body is a sensor so the rats don't fly away on explosion. I wonder, is there any better solution to this?

2) I found that my projectiles moves the rats body when collision until the body of the rat and the projectile gets deactivated. So now is in Begin Contact. But I wonder, how can I make the rats body to not bounce on shoot. I try with the friction and the elasticity, but I wasn't able to stop it. Any advice?

Thanks in advance.

Cheers
fechy
 
Posts: 47
Joined: Fri Sep 14, 2012 3:38 pm

Previous

Return to Features

Who is online

Users browsing this forum: No registered users and 4 guests