Recent

Author Topic: Porting existing project problem: terminated by signal 11  (Read 5644 times)

Leledumbo

  • Hero Member
  • *****
  • Posts: 8836
  • Programming + Glam Metal + Tae Kwon Do = Me
Porting existing project problem: terminated by signal 11
« on: May 13, 2012, 01:36:32 pm »
I'm trying to port one of my games. After ensuring the androidlcl example works (I'm using v3 precompiled compiler for Linux), I started to port the game.

The game uses TStatusBar, TMainMenu, TToolbar and TPaintBox. Compilation goes well, need to change the LCLActivity.java a bit to match my .so name. And when executed, I got this in adb logcat:
Quote
I/ActivityManager(   73): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.pascal.lcltest/.LCLActivity } from pid 240
I/ActivityManager(   73): Start proc com.pascal.lcltest for activity com.pascal.lcltest/.LCLActivity: pid=570 uid=10034 gids={}
I/javanesechess(  570): Trying to load libjavanesechess.so
D/dalvikvm(  570): Trying to load lib /data/data/com.pascal.lcltest/lib/libjavanesechess.so 0x405137e0
D/dalvikvm(  570): Added shared lib /data/data/com.pascal.lcltest/lib/libjavanesechess.so 0x405137e0
I/lclapp  (  570): JNI_OnLoad called
I/lclapp  (  570): Reading our Activity Class
I/lclapp  (  570): JNI_OnLoad finished
I/lclapp  (  570): LCLOnCreate called by LCLActivity.onCreate
I/DEBUG   (   31): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG   (   31): Build fingerprint: 'generic/sdk/generic:2.3.3/GRI34/101070:eng/test-keys'
I/DEBUG   (   31): pid: 570, tid: 570  >>> com.pascal.lcltest <<<
I/DEBUG   (   31): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 72475356
I/DEBUG   (   31):  r0 43f521f0  r1 43eee200  r2 00000001  r3 43f521f0
I/DEBUG   (   31):  r4 72475357  r5 00000001  r6 000001af  r7 00000000
I/DEBUG   (   31):  r8 00000181  r9 418fccd8  10 418fccc0  fp be873cf4
I/DEBUG   (   31):  ip be873c08  sp be873c48  lr 80aeb2ac  pc 72475356  cpsr 20000010
I/DEBUG   (   31):          #00  pc 72475356 
I/DEBUG   (   31):          #01  lr 80aeb2ac  /data/data/com.pascal.lcltest/lib/libjavanesechess.so
I/DEBUG   (   31):
I/DEBUG   (   31): code around pc:
I/DEBUG   (   31): 72475334 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (   31): 72475344 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (   31): 72475354 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (   31): 72475364 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (   31): 72475374 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (   31):
I/DEBUG   (   31): code around lr:
I/DEBUG   (   31): 80aeb28c 0a000006 e5d4235c e594002c e1a01004
I/DEBUG   (   31): 80aeb29c e594302c e59340ec e1a0e00f e1a0f004
I/DEBUG   (   31): 80aeb2ac e8bd8010 e92d4010 e1a02000 e5920364
I/DEBUG   (   31): 80aeb2bc e5922364 e5922000 e5924070 e1a0e00f
I/DEBUG   (   31): 80aeb2cc e1a0f004 e8bd8010 e92d4070 e1a04000
I/DEBUG   (   31):
I/DEBUG   (   31): stack:
I/DEBUG   (   31):     be873c08  00000019 
I/DEBUG   (   31):     be873c0c  be873b68 
I/DEBUG   (   31):     be873c10  809bf76c  /data/data/com.pascal.lcltest/lib/libjavanesechess.so
I/DEBUG   (   31):     be873c14  be873bec 
I/DEBUG   (   31):     be873c18  be873f70 
I/DEBUG   (   31):     be873c1c  00000001 
I/DEBUG   (   31):     be873c20  be873cf4 
I/DEBUG   (   31):     be873c24  be873ca4 
I/DEBUG   (   31):     be873c28  809bf324  /data/data/com.pascal.lcltest/lib/libjavanesechess.so
I/DEBUG   (   31):     be873c2c  00000001 
I/DEBUG   (   31):     be873c30  000001af 
I/DEBUG   (   31):     be873c34  809b1af0  /data/data/com.pascal.lcltest/lib/libjavanesechess.so
I/DEBUG   (   31):     be873c38  00000001 
I/DEBUG   (   31):     be873c3c  809b1af0  /data/data/com.pascal.lcltest/lib/libjavanesechess.so
I/DEBUG   (   31):     be873c40  00000001 
I/DEBUG   (   31):     be873c44  000001af 
I/DEBUG   (   31): #00 be873c48  80aeb270  /data/data/com.pascal.lcltest/lib/libjavanesechess.so
I/DEBUG   (   31):     be873c4c  809bf554  /data/data/com.pascal.lcltest/lib/libjavanesechess.so
I/DEBUG   (   31):     be873c50  00000019 
I/DEBUG   (   31):     be873c54  418fcce0 
I/DEBUG   (   31):     be873c58  be874448 
I/DEBUG   (   31):     be873c5c  418fccd8 
I/DEBUG   (   31):     be873c60  00000000 
I/DEBUG   (   31):     be873c64  00000000 
I/DEBUG   (   31):     be873c68  809b1af0  /data/data/com.pascal.lcltest/lib/libjavanesechess.so
I/DEBUG   (   31):     be873c6c  00000001 
I/DEBUG   (   31):     be873c70  000001af 
I/DEBUG   (   31):     be873c74  00000000 
I/DEBUG   (   31):     be873c78  00000181 
I/DEBUG   (   31):     be873c7c  418fccd8 
I/DEBUG   (   31):     be873c80  418fccc0 
I/DEBUG   (   31):     be873c84  be873cf4 
I/DEBUG   (   31):     be873c88  be873c50 
I/DEBUG   (   31):     be873c8c  809bf530  /data/data/com.pascal.lcltest/lib/libjavanesechess.so
D/Zygote  (   33): Process 570 terminated by signal (11)
I/ActivityManager(   73): Process com.pascal.lcltest (pid 570) has died.
Have any idea how to fix? The project is attached.

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Porting existing project problem: terminated by signal 11
« Reply #1 on: May 13, 2012, 08:50:35 pm »
You can always create a non-android LPI for the project and test it against LCL-CustomDrawn to debug more easily the issues. Most of them are not Android-specific.

In this case my guess is that because the LCL crashes on unimplemented controls, it will crash at startup because you have TStatusBar and TToolbar both of which are still unimplemented in LCL-CustomDrawn. I try to maintain the list of implemented controls here: http://wiki.lazarus.freepascal.org/Roadmap#Status_of_native_controls_on_each_widgetset

It would be good if you file feature requests for those controls in the bug tracker so I won't forget about this. I priorize controls which people ask for, although will be travelling for 2 weeks soon, so it might take quite some time before I get to implementing those.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8836
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Porting existing project problem: terminated by signal 11
« Reply #2 on: May 14, 2012, 01:45:01 am »

 

TinyPortal © 2005-2018