Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
How to figure out offending lua code? — Gideros Forum

How to figure out offending lua code?

Jeff_KanaziJeff_Kanazi Member
edited December 2013 in Bugs and issues

We are seeing the following random crash, which we could not figure out. Is there any way to link this to actual LUA code?

"random" in a sense that it happens often but there are no specific steps to reproduce. Sometimes it happens when moving an object on the screen, sometimes when preparing a new scene etc. Most times the "exact same steps" would not cause the crash but something else would.

Whatever the problem is crashes the Gideros player so there is no error message.

Other then removing LUA code line by line is there any smarter way to figure out what might be causing this?

12-05 11:31:56.704: A/libc(5753): Fatal signal 11 (SIGSEGV) at 0x00000004 (code=1), thread 5772 (Thread-372)
12-05 11:31:56.814: I/DEBUG(121): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
12-05 11:31:56.814: I/DEBUG(121): Build fingerprint: 'google/nakasi/grouper:4.4/KRT16S/920375:user/release-keys'
12-05 11:31:56.814: I/DEBUG(121): Revision: '0'
12-05 11:31:56.814: I/DEBUG(121): pid: 5753, tid: 5772, name: Thread-372 >>> com.ijs.phyzzlets <<<
12-05 11:31:56.814: I/DEBUG(121): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000004
12-05 11:31:56.924: I/DEBUG(121): r0 6c9c5768 r1 00000002 r2 00000000 r3 000c9028
12-05 11:31:56.924: I/DEBUG(121): r4 6ab81d4c r5 6c9c5768 r6 00000000 r7 6c9c59e8
12-05 11:31:56.924: I/DEBUG(121): r8 00000000 r9 69fcd074 sl 69fe624c fp 00000290
12-05 11:31:56.924: I/DEBUG(121): ip 69fca2f0 sp 6ac866c0 lr 6aab112f pc 6aab4686 cpsr 20000030
12-05 11:31:56.924: I/DEBUG(121): d0 3da0a84a6a129eb0 d1 3ec7166bd60dc52e
12-05 11:31:56.924: I/DEBUG(121): d2 3f800000e0ee5069 d3 3f600000e1053a42
12-05 11:31:56.924: I/DEBUG(121): d4 4184dddf3ad97282 d5 414b4b0ac038ca40
12-05 11:31:56.924: I/DEBUG(121): d6 418099d3be51cbc0 d7 bff5d0b8c05adf90
12-05 11:31:56.924: I/DEBUG(121): d8 402e000000000000 d9 4067abdc80000000
12-05 11:31:56.924: I/DEBUG(121): d10 0000000000000000 d11 0000000000000000
12-05 11:31:56.924: I/DEBUG(121): d12 0000000000000000 d13 0000000000000000
12-05 11:31:56.924: I/DEBUG(121): d14 0000000000000000 d15 0000000000000000
12-05 11:31:56.924: I/DEBUG(121): d16 3ec7166bd60dc52e d17 3ff921fb54442d18
12-05 11:31:56.924: I/DEBUG(121): d18 3feffffd1d32909d d19 bfdffffffd0c5e81
12-05 11:31:56.924: I/DEBUG(121): d20 3f811110896efbb2 d21 3da0a84ab9658375
12-05 11:31:56.924: I/DEBUG(121): d22 3ef99342e0ee5069 d23 bfc55555238ac7f2
12-05 11:31:56.924: I/DEBUG(121): d24 bf2a00f9d25733e2 d25 3f5b2e503f86250e
12-05 11:31:56.924: I/DEBUG(121): d26 3f28aee543748320 d27 bf56c087d59b5aa8
12-05 11:31:56.924: I/DEBUG(121): d28 3fefff3a89a10c5a d29 3f5b2e5110b46000
12-05 11:31:56.934: I/DEBUG(121): d30 3e630a13c8d6e5c4 d31 3ff921fb54442d18
12-05 11:31:56.934: I/DEBUG(121): scr 8000001d
12-05 11:31:56.934: I/DEBUG(121): backtrace:
12-05 11:31:56.934: I/DEBUG(121): #00 pc 0013c686 /data/app-lib/com.ijs.phyzzlets-1/libgideros.so (b2Contact::Create(b2Fixture*, int, b2Fixture*, int, b2BlockAllocator*)+37)
12-05 11:31:56.934: I/DEBUG(121): #01 pc 0013912b /data/app-lib/com.ijs.phyzzlets-1/libgideros.so (b2ContactManager::AddPair(void*, void*)+222)
12-05 11:31:56.934: I/DEBUG(121): #02 pc 001397e5 /data/app-lib/com.ijs.phyzzlets-1/libgideros.so (void b2BroadPhase::UpdatePairs<b2ContactManager>(b2ContactManager*)+140)
12-05 11:31:56.934: I/DEBUG(121): #03 pc 0014a95b /data/app-lib/com.ijs.phyzzlets-1/libgideros.so (Box2DBinder2::b2Body_SetPosition(lua_State*)+170)
12-05 11:31:56.934: I/DEBUG(121): stack:
12-05 11:31:56.934: I/DEBUG(121): 6ac86680 0000000f
12-05 11:31:56.934: I/DEBUG(121): 6ac86684 6aa99fdd /data/app-lib/com.ijs.phyzzlets-1/libgideros.so
12-05 11:31:56.934: I/DEBUG(121): 6ac86688 6b4b3c90
12-05 11:31:56.934: I/DEBUG(121): 6ac8668c 6e6aef40
12-05 11:31:56.934: I/DEBUG(121): 6ac86690 6b4b3c90
12-05 11:31:56.934: I/DEBUG(121): 6ac86694 00000064
12-05 11:31:56.934: I/DEBUG(121): 6ac86698 69fcd008
12-05 11:31:56.934: I/DEBUG(121): 6ac8669c 6bcb2e60
12-05 11:31:56.934: I/DEBUG(121): 6ac866a0 00000005
12-05 11:31:56.934: I/DEBUG(121): 6ac866a4 6e6aef00
12-05 11:31:56.934: I/DEBUG(121): 6ac866a8 6b4b3c90
12-05 11:31:56.934: I/DEBUG(121): 6ac866ac 6e6aef00
12-05 11:31:56.934: I/DEBUG(121): 6ac866b0 69fcd008
12-05 11:31:56.934: I/DEBUG(121): 6ac866b4 6bcb2e60
12-05 11:31:56.934: I/DEBUG(121): 6ac866b8 00000002
12-05 11:31:56.934: I/DEBUG(121): 6ac866bc 00000007
12-05 11:31:56.934: I/DEBUG(121): #00 6ac866c0 0000001b
12-05 11:31:56.934: I/DEBUG(121): 6ac866c4 6a12fa80
12-05 11:31:56.934: I/DEBUG(121): 6ac866c8 6ab51a20 /data/app-lib/com.ijs.phyzzlets-1/libgideros.so
12-05 11:31:56.934: I/DEBUG(121): 6ac866cc 69fe624c
12-05 11:31:56.934: I/DEBUG(121): 6ac866d0 6c9c59e8
12-05 11:31:56.934: I/DEBUG(121): 6ac866d4 6c9c5768
12-05 11:31:56.934: I/DEBUG(121): 6ac866d8 00000000
12-05 11:31:56.934: I/DEBUG(121): 6ac866dc 00000000
12-05 11:31:56.934: I/DEBUG(121): 6ac866e0 0000000c
12-05 11:31:56.934: I/DEBUG(121): 6ac866e4 6aab112f /data/app-lib/com.ijs.phyzzlets-1/libgideros.so (b2ContactManager::AddPair(void*, void*)+226)
12-05 11:31:56.934: I/DEBUG(121): #01 6ac866e8 69fcd074
12-05 11:31:56.934: I/DEBUG(121): 6ac866ec 00000018
12-05 11:31:56.934: I/DEBUG(121): 6ac866f0 00000002
12-05 11:31:56.934: I/DEBUG(121): 6ac866f4 69fe624c
12-05 11:31:56.934: I/DEBUG(121): 6ac866f8 69f4a540
12-05 11:31:56.934: I/DEBUG(121): 6ac866fc 00000003
12-05 11:31:56.934: I/DEBUG(121): 6ac86700 69f4a54c
12-05 11:31:56.934: I/DEBUG(121): 6ac86704 0000000c
12-05 11:31:56.934: I/DEBUG(121): 6ac86708 69fe624c
12-05 11:31:56.934: I/DEBUG(121): 6ac8670c 6aab17e9 /data/app-lib/com.ijs.phyzzlets-1/libgideros.so (void b2BroadPhase::UpdatePairs(b2ContactManager*)+144)
12-05 11:31:56.934: I/DEBUG(121): #02 6ac86710 6b4b3c90
12-05 11:31:56.934: I/DEBUG(121): 6ac86714 69fca2f0
12-05 11:31:56.934: I/DEBUG(121): 6ac86718 00000000
12-05 11:31:56.934: I/DEBUG(121): 6ac8671c 00000000
12-05 11:31:56.934: I/DEBUG(121): 6ac86720 6e6aeef0
12-05 11:31:56.934: I/DEBUG(121): 6ac86724 00000007
12-05 11:31:56.934: I/DEBUG(121): 6ac86728 6b5a82c8
12-05 11:31:56.934: I/DEBUG(121): 6ac8672c 6aac295f /data/app-lib/com.ijs.phyzzlets-1/libgideros.so (Box2DBinder2::b2Body_SetPosition(lua_State*)+174)

Comments

  • ar2rsawseenar2rsawseen Maintainer
    edited December 2013
    It seems to be a physics (box2d) issue, most probably something on collision
    (updating position during collision ? )

    I'll let @atilim know, maybe he can be more of a help, because this bug could be on your side, or on Gideros or on Box2d side.

    But (spolier) I have heard that @atilim updated box2d to newer version, so maybe this will go away after the next release ;)
  • Thanks.

    This was helpful. Turned out to be something related to default filtering when objects are being created. Lets hope the newer version has this addressed. Looks like a Box2d issue.



Sign In or Register to comment.