[Lazarus] CustomDrawn, Android: Crash on Device

Lukas Gradl fpc at ssn.at
Fri Dec 2 17:13:03 CET 2011


Hi,

tried to run the androidlcl example out of 
http://wiki.lazarus.freepascal.org/Custom_Drawn_Interface/Android#Compiling_the_example_LCL_Android_Application

I can compile the app (after changing -Fl) and create the apk using ant.

After installing on my device (a galaxy tab 10.1 using android 3.1 and a 
galaxy s using android 2.3.5) the app can't be started,

I did:
file liblclapp.so:
liblclapp.so: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), 
dynamically linked, not stripped

ldd liblclapp.so:
das Programm ist nicht dynamisch gelinkt (means: the program isn't 
linked dynamically)

AFAIK this seems to be right.




But on the device, via adb logcat on the Galaxy Tab I get:

D/dalvikvm(28803): Trying to load lib 
/data/data/com.pascal.lcltest/lib/liblclapp.so 0x4072a520
D/WindowManager(  290): Setting visibility of AppWindowToken{42643ba8 
token=ActivityRecord{41473368 
com.android.packageinstaller/.InstallAppProgress}}: false
D/WindowManager(  290): Setting visibility of AppWindowToken{419af608 
token=ActivityRecord{416e0458 
com.estrongs.android.pop/.view.FileExplorerActivity}}: false
I/DEBUG   (  223): *** *** *** *** *** *** *** *** *** *** *** *** *** 
*** *** ***
I/DEBUG   (  223): Build fingerprint: 
'samsung/GT-P7500/GT-P7500:3.1/HMJ37/XWKHC:user/release-keys'
I/DEBUG   (  223): pid: 28803, tid: 28803  >>> com.pascal.lcltest <<<
I/DEBUG   (  223): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 
00000004
I/DEBUG   (  223):  r0 00000000  r1 00000004  r2 be964afc  r3 00000000
I/DEBUG   (  223):  r4 00000001  r5 00000000  r6 819aae98  r7 00014260
I/DEBUG   (  223):  r8 b0014bc8  r9 81d21000  10 0052e000  fp be964ab4
I/DEBUG   (  223):  ip be964ab8  sp be964938  lr 818f2d7c  pc 818f2e0c 
cpsr 80000010
I/DEBUG   (  223):  d0  000000a043200000  d1  3ff0000043200000
I/DEBUG   (  223):  d2  4e17618442bdda33  d3  42c8000000660ff0
I/DEBUG   (  223):  d4  000001fd0060e240  d5  3fe999999999999a
I/DEBUG   (  223):  d6  3fe8000000000000  d7  3f8000003f4ccccd
I/DEBUG   (  223):  d8  0000000000000000  d9  0000000000000000
I/DEBUG   (  223):  d10 0000000000000000  d11 0000000000000000
I/DEBUG   (  223):  d12 0000000000000000  d13 0000000000000000
I/DEBUG   (  223):  d14 0000000000000000  d15 0000000000000000
I/DEBUG   (  223):  scr 60000012
I/DEBUG   (  223):
V/AudioPolicyManager(  227): stopOutput() output 1, stream 1, session 
244 mPhoneState 0
V/AudioPolicyManager(  227): getNewDevice() selected device 0
V/AudioPolicyManager(  227): setOutputDevice() output 1 device 0 delayMs 0
V/AudioPolicyManager(  227): setOutputDevice() setting same device 0 or 
null device for output 1
I/SurfaceFlinger(  224): id=340 Removed 
com.estrongs.android.pop/com.estrongs.android.pop.view.FileExplorerActivity 
idx=1 Map Size=4
I/AudioFlinger(  227): stop output streamType (0, 1) for 1
D/AudioHardware(  227): AudioStreamOutALSA::setParameters() 
stop_output_streamtype=1
I/SurfaceFlinger(  224): id=340 Removed 
com.estrongs.android.pop/com.estrongs.android.pop.view.FileExplorerActivity 
idx=-2 Map Size=4
I/SurfaceFlinger(  224): id=359 Removed 
com.android.packageinstaller/com.android.packageinstaller.InstallAppProgress 
idx=1 Map Size=3
I/SurfaceFlinger(  224): id=359 Removed 
com.android.packageinstaller/com.android.packageinstaller.InstallAppProgress 
idx=-2 Map Size=3
I/DEBUG   (  223):          #00  pc 000f2e0c 
/data/data/com.pascal.lcltest/lib/liblclapp.so
I/DEBUG   (  223):          #01  lr 818f2d7c 
/data/data/com.pascal.lcltest/lib/liblclapp.so
I/DEBUG   (  223):
I/DEBUG   (  223): libc base address: aff00000
I/DEBUG   (  223):
I/DEBUG   (  223): code around pc:
I/DEBUG   (  223): 818f2dec e1540000 aa000018 e3a05000 ea000000
I/DEBUG   (  223): 818f2dfc e2855001 e59f008c e5900000 e1a01104
I/DEBUG   (  223): 818f2e0c e7900001 e7d00005 e3500000 1afffff7
I/DEBUG   (  223): 818f2e1c e1a01005 e51b002c ebff9534 e3550000
I/DEBUG   (  223): 818f2e2c da00000e e51b002c ebff95d5 e1a01000
I/DEBUG   (  223):
I/DEBUG   (  223): code around lr:
I/DEBUG   (  223): 818f2d5c e1a04001 e3a00000 e50b0068 e24b2038
I/DEBUG   (  223): 818f2d6c e24b1060 e3a00001 ebffb9f5 ebffce5c
I/DEBUG   (  223): 818f2d7c e50b0064 e3500000 1a000038 e3540000
I/DEBUG   (  223): 818f2d8c 1a000012 e24b0068 ebff934b e3a00000
I/DEBUG   (  223): 818f2d9c e50b0068 e24b0f5a e3a01000 ebfff9ee das 
Programm ist nicht dynamisch gelinkt
I/DEBUG   (  223):
I/DEBUG   (  223): stack:
I/DEBUG   (  223):     be9648f8  00113fc0
I/DEBUG   (  223):     be9648fc  00000063
I/DEBUG   (  223):     be964900  aca89831  /system/lib/libdvm.so
I/DEBUG   (  223):     be964904  00000002
I/DEBUG   (  223):     be964908  be964f0a
I/DEBUG   (  223):     be96490c  b00094e8
I/DEBUG   (  223):     be964910  aca912da  /system/lib/libdvm.so
I/DEBUG   (  223):     be964914  00000001
I/DEBUG   (  223):     be964918  aca81797  /system/lib/libdvm.so
I/DEBUG   (  223):     be96491c  00000003
I/DEBUG   (  223):     be964920  000be000
I/DEBUG   (  223):     be964924  00000001
I/DEBUG   (  223):     be964928  00000001
I/DEBUG   (  223):     be96492c  819aae98 
/data/data/com.pascal.lcltest/lib/liblclapp.so
I/DEBUG   (  223):     be964930  00014260
I/DEBUG   (  223):     be964934  818f2d78 
/data/data/com.pascal.lcltest/lib/liblclapp.so
I/DEBUG   (  223): #00 be964938  be964b28
I/DEBUG   (  223):     be96493c  00000000
I/DEBUG   (  223):     be964940  adee01e0
I/DEBUG   (  223):     be964944  00113fd4
I/DEBUG   (  223):     be964948  ffffffff
I/DEBUG   (  223):     be96494c  73752f14
I/DEBUG   (  223):     be964950  68732f72
I/DEBUG   (  223):     be964954  2f657261
I/DEBUG   (  223):     be964958  656e6f7a
I/DEBUG   (  223):     be96495c  6f666e69
I/DEBUG   (  223):     be964960  be964b2f
I/DEBUG   (  223):     be964964  ad9c0201  /system/lib/libicui18n.so
I/DEBUG   (  223):     be964968  04140025
I/DEBUG   (  223):     be96496c  be964900
I/DEBUG   (  223):     be964970  00000000
I/DEBUG   (  223):     be964974  00000000
I/DEBUG   (  223):     be964978  00000020
I/DEBUG   (  223):     be96497c  be964910
I/DEBUG   (  223): dumpstate /data/log/dumpstate_app_native.txt


hoping for an Idea how to proceed,

Lukas

-- 

--------------------------
software security networks
Lukas Gradl <fpc#ssn.at>
Eduard-Bodem-Gasse 5
A - 6020 Innsbruck
Tel: +43-512-214040-0
Fax: +43-512-214040-21
--------------------------




More information about the Lazarus mailing list