[Lazarus] CustomDrawn, Android: Crash on Device

Lukas Gradl fpc at ssn.at
Fri Dec 2 18:52:41 CET 2011


> Just switched to that compiler and it seems like i can start it on the
> android device. I get a title bar saying "LCL Test" but the rest of the
> window keeps black.
>
> So as a next step I'll try to get the emulator up and running....
>

Tested in an emulator emulating android 2.2, I could install it and 
start it, but got the same black window as well.

When clicking in that black window I get a SIGSEV again.

I/ActivityManager(   58): Starting activity: Intent { 
act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] 
flg=0x10200000 cmp=com.pascal.lcltest/.LCLActivity }
I/ActivityManager(   58): Start proc com.pascal.lcltest for activity 
com.pascal.lcltest/.LCLActivity: pid=264 uid=10036 gids={}
I/ARMAssembler(   58): generated 
scanline__00000077:03545404_00000004_00000000 [ 47 ipp] (67 ins) at 
[0x358500:0x35860c] in 475898 ns
I/lclproject(  264): Trying to load liblclapp.so
D/dalvikvm(  264): Trying to load lib 
/data/data/com.pascal.lcltest/lib/liblclapp.so 0x44ede248
D/dalvikvm(  264): Added shared lib 
/data/data/com.pascal.lcltest/lib/liblclapp.so 0x44ede248
I/lclapp  (  264): JNI_OnLoad called
I/lclapp  (  264): Reading our Activity Class
D/dalvikvm(  264): GC_EXTERNAL_ALLOC freed 796 objects / 57152 bytes in 60ms
I/ActivityManager(   58): Displayed activity 
com.pascal.lcltest/.LCLActivity: 1215 ms (total 1215 ms)
D/dalvikvm(  119): GC_EXPLICIT freed 217 objects / 10416 bytes in 69ms
I/DEBUG   (   30): *** *** *** *** *** *** *** *** *** *** *** *** *** 
*** *** ***
I/DEBUG   (   30): Build fingerprint: 
'generic/sdk/generic/:2.2/FRF91/43546:eng/test-keys'
I/DEBUG   (   30): pid: 264, tid: 264  >>> com.pascal.lcltest <<<
I/DEBUG   (   30): signal 11 (SIGSEGV), fault addr 00000008
I/DEBUG   (   30):  r0 00000124  r1 00000000  r2 00000124  r3 00000000
I/DEBUG   (   30):  r4 00000000  r5 00000000  r6 000000d2  r7 4186bb98
I/DEBUG   (   30):  r8 be8f491c  r9 4186bb8c  10 4186bb74  fp be8f4914
I/DEBUG   (   30):  ip 81418c18  sp be8f48b0  lr 810c9948  pc 810f30d0 
cpsr 20000010
I/DEBUG   (   30):          #00  pc 000f30d0 
/data/data/com.pascal.lcltest/lib/liblclapp.so
I/DEBUG   (   30):          #01  lr 810c9948 
/data/data/com.pascal.lcltest/lib/liblclapp.so
I/DEBUG   (   30):
I/DEBUG   (   30): code around pc:
I/DEBUG   (   30): 810f30b0 e1a06000 e51b102c e24b0040 ebff463d
I/DEBUG   (   30): 810f30c0 e51b0040 e51b103c ebff74aa e1a02000
I/DEBUG   (   30): 810f30d0 e5941008 e5940004 e1a03006 eb018f83
I/DEBUG   (   30): 810f30e0 e1a06000 e51b1030 e24b0040 ebff4631
I/DEBUG   (   30): 810f30f0 e51b0040 e51b103c ebff749e e1a07000
I/DEBUG   (   30):
I/DEBUG   (   30): code around lr:
I/DEBUG   (   30): 810c9928 ebffe2c0 e1a05000 ea000005 e59d3008
I/DEBUG   (   30): 810c9938 e59d200c e59d1000 e59d0004 ebffe2b9
I/DEBUG   (   30): 810c9948 e1a05000 e1a00005 e28dd014 e8bd8030
I/DEBUG   (   30): 810c9958 e92d4010 e24dd010 e58d0000 e58d1004
I/DEBUG   (   30): 810c9968 e58d2008 e58d300c e59d0000 e59d1004
I/DEBUG   (   30):
I/DEBUG   (   30): stack:
I/DEBUG   (   30):     be8f4870  00000000
I/DEBUG   (   30):     be8f4874  00000124
I/DEBUG   (   30):     be8f4878  00000000
I/DEBUG   (   30):     be8f487c  810d0490 
/data/data/com.pascal.lcltest/lib/liblclapp.so
I/DEBUG   (   30):     be8f4880  00000000
I/DEBUG   (   30):     be8f4884  40724000
I/DEBUG   (   30):     be8f4888  00000000
I/DEBUG   (   30):     be8f488c  00000000
I/DEBUG   (   30):     be8f4890  00000000
I/DEBUG   (   30):     be8f4894  00000000
I/DEBUG   (   30):     be8f4898  00000000
I/DEBUG   (   30):     be8f489c  00000000
I/DEBUG   (   30):     be8f48a0  00000000
I/DEBUG   (   30):     be8f48a4  000000d2
I/DEBUG   (   30):     be8f48a8  df002777
I/DEBUG   (   30):     be8f48ac  e3a070ad
I/DEBUG   (   30): #00 be8f48b0  afd40328  /system/lib/libc.so
I/DEBUG   (   30):     be8f48b4  41903b50 
/dev/ashmem/dalvik-LinearAlloc (deleted)
I/DEBUG   (   30):     be8f48b8  be8f4928  [stack]
I/DEBUG   (   30):     be8f48bc  00000068
I/DEBUG   (   30):     be8f48c0  00000002
I/DEBUG   (   30):     be8f48c4  80866791  /system/lib/libdvm.so
I/DEBUG   (   30):     be8f48c8  41903b50 
/dev/ashmem/dalvik-LinearAlloc (deleted)
I/DEBUG   (   30):     be8f48cc  8085d123  /system/lib/libdvm.so
I/DEBUG   (   30):     be8f48d0  400187e8 
/dev/ashmem/mspace/dalvik-heap/zygote/0 (deleted)
I/DEBUG   (   30):     be8f48d4  00000000
I/DEBUG   (   30):     be8f48d8  40724000
I/DEBUG   (   30):     be8f48dc  80860201  /system/lib/libdvm.so
I/DEBUG   (   30):     be8f48e0  be8f4940  [stack]
I/DEBUG   (   30):     be8f48e4  43520000 
/system/framework/framework-res.apk
I/DEBUG   (   30):     be8f48e8  43920000
I/DEBUG   (   30):     be8f48ec  00000000
I/DEBUG   (   30):     be8f48f0  be8f4920  [stack]
I/DEBUG   (   30):     be8f48f4  400187e8 
/dev/ashmem/mspace/dalvik-heap/zygote/0 (deleted)
D/Zygote  (   32): Process 264 terminated by signal (11)
I/ActivityManager(   58): Process com.pascal.lcltest (pid 264) has died.
I/WindowManager(   58): WIN DEATH: Window{4503ba50 
com.pascal.lcltest/com.pascal.lcltest.LCLActivity paused=false}
I/WindowManager(   58): WIN DEATH: Window{450537f8 SurfaceView paused=false}
I/UsageStats(   58): Unexpected resume of com.android.launcher while 
already resumed in com.pascal.lcltest
W/InputManagerService(   58): Got RemoteException sending 
setActive(false) notification to pid 264 uid 10036


regards
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