Application exit on start lazarus / 43-Android ---------------------------------------------------------------------- Leledumbo · 2012-11-15 16:42 I've finally managed to build my Javanese Chess game for Android. However, upon starting, it dies without any error (i.e. seems like normal exit). The trace that ADB shows is: QuoteI/ActivityManager(   61): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.pascal.lcltest/.LCLActivity } from pid 133 I/ActivityManager(   61): Start proc com.pascal.lcltest for activity com.pascal.lcltest/.LCLActivity: pid=323 uid=10034 gids={3003} I/ARMAssembler(   61): generated scanline__00000177:03515104_00001002_00000000 [ 87 ipp] (110 ins) at [0x4446d6f0:0x4446d8a8] in 423532 ns I/javanesechess(  323): Trying to load libjavanesechess.so D/dalvikvm(  323): Trying to load lib /data/data/com.pascal.lcltest/lib/libjavanesechess.so 0x40514110 D/Zygote  (   33): Process 323 exited cleanly (216) I/ActivityManager(   61): Process com.pascal.lcltest (pid 323) has died.The project is located here, but if you don't have Mercurial installed please take the attached zip. ---------------------------------------------------------------------- Leledumbo · 2012-11-23 17:58 My bad, my ppcrossarm symlink still points to 2.7.1. I've got a better stack trace with 2.5.1v3: QuoteI/ActivityManager(   61): Start proc com.pascal.lcltest for activity com.pascal.lcltest/.LCLActivity: pid=331 uid=10034 gids={3003} I/ARMAssembler(   61): generated scanline__00000177:03515104_00001002_00000000 [ 87 ipp] (110 ins) at [0x4446d6f0:0x4446d8a8] in 391041 ns I/javanesechess(  331): Trying to load libjavanesechess.so D/dalvikvm(  331): Trying to load lib /data/data/com.pascal.lcltest/lib/libjavanesechess.so 0x40514570 D/dalvikvm(  331): Added shared lib /data/data/com.pascal.lcltest/lib/libjavanesechess.so 0x40514570 I/lclapp  (  331): JNI_OnLoad called I/lclapp  (  331): Reading our Activity Class I/lclapp  (  331): JNI_OnLoad finished I/lclapp  (  331): LCLOnCreate called by LCLActivity.onCreate I/lclapp  (  331): [FORMS.PP] ExceptionOccurred I/lclapp  (  331):   Sender=Exception I/lclapp  (  331):   Exception=Unknown Run-Time error : 202 I/lclapp  (  331):   Stack trace: I/lclapp  (  331):   $808E1124 I/lclapp  (  331): TApplication.HandleException Unknown Run-Time error : 202 I/lclapp  (  331):   Stack trace: I/lclapp  (  331):   $808E1124 D/Zygote  (   33): Process 331 exited cleanly (217) I/ActivityManager(   61): Process com.pascal.lcltest (pid 331) has died. ---------------------------------------------------------------------- User137 · 2012-11-24 01:11 The game played fine when i changed it to win32. Heaptrc showed 0 unfreed. Lazarus and fpc SVN versions. And error 202 is Stack overflow, caused by reserving too much memory somewhere. Android has less in its disposal? ---------------------------------------------------------------------- Leledumbo · 2012-11-24 08:06 QuoteThe game played fine when i changed it to win32. Heaptrc showed 0 unfreed. Lazarus and fpc SVN versions.Yes, which is why I'm confused. Lazarus 1.1 r38762 FPC 2.5.1v3 - arm-linux (special android patch) QuoteAnd error 202 is Stack overflow, caused by reserving too much memory somewhere. Android has less in its disposal?I have no idea about it. There was a bug like this in LCL a couple of months ago, but fixed already. So I don't know why it doesn't work on android. ---------------------------------------------------------------------- Leledumbo · 2012-11-28 15:36 OK, finally found it out tonight. The debug build mode doesn't work, I don't know which option causes it. I switch to release mode and everything works! Now I just need to adjust my form size to the screen correctly, I'll put in another topic. Thank you...