Recent

Author Topic: [solved] LCLExample/androidlcl doesnt work on Android 4 (SIGSERV)  (Read 15983 times)

DimProfi

  • Full Member
  • ***
  • Posts: 126
    • http://www.dimprofi.de
Is there an example and compiling tools, which let an App running on Android 4.

I tried androidlcl, LCLExample, own application, compiled with Api-8 and Api-14
It runs pretty on 2.3, but always crashes in the same way, with SIGSERV on Android 4.

Is it possible at all at the moment?  :-\

Code: [Select]
I/ActivityManager( 1592): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.pascal.lcltest/.LCLActivity u=0} from pid 16346
D/dalvikvm(24576): Late-enabling CheckJNI
I/ActivityManager( 1592): Start proc com.pascal.lcltest for activity com.pascal.lcltest/.LCLActivity: pid=24576 uid=10088 gids={1028}
I/dalvikvm(24576): Turning on JNI app bug workarounds for target SDK version 8...
E/Trace   (24576): error opening trace file: No such file or directory (2)
V/ActivityThread(24576): com.pascal.lcltest white listed for hwui
D/dalvikvm(24026): GC_EXPLICIT freed 480K, 70% free 2593K/8387K, paused 5ms+15ms, total 90ms
I/lclapp  (24576): Trying to load liblclapp.so
D/dalvikvm(24576): Trying to load lib /data/data/com.pascal.lcltest/lib/liblclapp.so 0x40dd1128
D/dalvikvm(24576): Added shared lib /data/data/com.pascal.lcltest/lib/liblclapp.so 0x40dd1128
I/lclapp  (24576): JNI_OnLoad called
I/lclapp  (24576): Reading our Activity Class
I/lclapp  (24576): JNI_OnLoad finished
I/lclapp  (24576): LCLOnCreate called by LCLActivity.onCreate
W/dalvikvm(24576): JNI WARNING: GetLongField for field 'lclxdpi' of expected type J, got I
W/dalvikvm(24576):              in Lcom/pascal/lcltest/LCLActivity;.LCLOnCreate:(Lcom/pascal/lcltest/LCLActivity;)I (GetLongField)
I/dalvikvm(24576): "main" prio=5 tid=1 NATIVE
I/dalvikvm(24576):   | group="main" sCount=0 dsCount=0 obj=0x40aa0568 self=0x2a00ba20
I/dalvikvm(24576):   | sysTid=24576 nice=0 sched=0/0 cgrp=apps handle=1073889072
I/dalvikvm(24576):   | schedstat=( 138458247 71624758 191 ) utm=6 stm=6 core=0
I/dalvikvm(24576):   #00  pc 00001260  /system/lib/libcorkscrew.so (unwind_backtrace_thread+27)
I/dalvikvm(24576):   #01  pc 0005f904  /system/lib/libdvm.so (dvmDumpNativeStack(DebugOutputTarget const*, int)+35)
I/dalvikvm(24576):   #02  pc 00053784  /system/lib/libdvm.so (dvmDumpThreadEx(DebugOutputTarget const*, Thread*, bool)+303)
I/dalvikvm(24576):   #03  pc 0005381e  /system/lib/libdvm.so (dvmDumpThread(Thread*, bool)+25)
I/dalvikvm(24576):   #04  pc 00038f6a  /system/lib/libdvm.so
I/dalvikvm(24576):   #05  pc 0003ea92  /system/lib/libdvm.so
I/dalvikvm(24576):   at com.pascal.lcltest.LCLActivity.LCLOnCreate(Native Method)
I/dalvikvm(24576):   at com.pascal.lcltest.LCLActivity.onCreate(LCLActivity.java:203)
I/dalvikvm(24576):   at android.app.Activity.performCreate(Activity.java:5008)
I/dalvikvm(24576):   at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
I/dalvikvm(24576):   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2141)
I/dalvikvm(24576):   at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2212)
I/dalvikvm(24576):   at android.app.ActivityThread.access$600(ActivityThread.java:144)
I/dalvikvm(24576):   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1210)
I/dalvikvm(24576):   at android.os.Handler.dispatchMessage(Handler.java:99)
I/dalvikvm(24576):   at android.os.Looper.loop(Looper.java:137)
I/dalvikvm(24576):   at android.app.ActivityThread.main(ActivityThread.java:4966)
I/dalvikvm(24576):   at java.lang.reflect.Method.invokeNative(Native Method)
I/dalvikvm(24576):   at java.lang.reflect.Method.invoke(Method.java:511)
I/dalvikvm(24576):   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
I/dalvikvm(24576):   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:558)
I/dalvikvm(24576):   at dalvik.system.NativeStart.main(Native Method)
I/dalvikvm(24576):
E/dalvikvm(24576): VM aborting


F/libc    (24576): Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 24576 (.pascal.lcltest)


I/DEBUG   ( 1262): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG   ( 1262): Build fingerprint: 'MOTO/MB526_O2DE/umts_jordan:2.3.6/4.5.1-134_DFP-132/1317968148:user/release-keys'
I/DEBUG   ( 1262): pid: 24576, tid: 24576, name: UNKNOWN  >>> com.pascal.lcltest <<<
I/DEBUG   ( 1262): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadd00d
D/dalvikvm( 1592): GC_EXPLICIT freed 124K, 39% free 15541K/25415K, paused 4ms+10ms, total 152ms
I/DEBUG   ( 1262):     r0 00000000  r1 00000000  r2 deadd00d  r3 00000000
I/DEBUG   ( 1262):     r4 407d41b8  r5 0000020c  r6 44f23b88  r7 2a008470
I/DEBUG   ( 1262):     r8 40dd6690  r9 44c77ca8  sl 2a00ba30  fp bec86594
I/DEBUG   ( 1262):     ip 00000001  sp bec862f8  lr 40044a91  pc 4076ff54  cpsr 60070070
I/DEBUG   ( 1262):     d0  67756265643a6467  d1  6174536576697465
I/DEBUG   ( 1262):     d2  4965746f67795a72  d3  6e69616d2e746964
I/DEBUG   ( 1262):     d4  6854706d75446d76  d5  4428784564616572
I/DEBUG   ( 1262):     d6  7074754f67756265  d7  7465677261547475
I/DEBUG   ( 1262):     d8  0000000000000000  d9  0000000000000000
I/DEBUG   ( 1262):     d10 0000000000000000  d11 0000000000000000
I/DEBUG   ( 1262):     d12 0000000000000000  d13 0000000000000000
I/DEBUG   ( 1262):     d14 0000000000000000  d15 0000000000000000
I/DEBUG   ( 1262):     d16 0008691200086912  d17 0000b7460000b746
I/DEBUG   ( 1262):     d18 00005fb400005a46  d19 000000160000b6f4
I/DEBUG   ( 1262):     d20 0000000000000100  d21 0000000000000000
I/DEBUG   ( 1262):     d22 0000000000000000  d23 090a0b0c0d0e0f10
I/DEBUG   ( 1262):     d24 000004230000e1ea  d25 000005e500000586
I/DEBUG   ( 1262):     d26 000000150000b6f4  d27 0000001c0000001f
I/DEBUG   ( 1262):     d28 000000160000b6f4  d29 0000001c00000020
I/DEBUG   ( 1262):     d30 0000000900000009  d31 0000000900000009
I/DEBUG   ( 1262):     scr 60000010
I/DEBUG   ( 1262):
I/DEBUG   ( 1262): backtrace:
I/DEBUG   ( 1262):     #00  pc 00045f54  /system/lib/libdvm.so (dvmAbort+75)
I/DEBUG   ( 1262):     #01  pc 0003ea93  /system/lib/libdvm.so
I/DEBUG   ( 1262):     #02  pc 000e5d34  /data/data/com.pascal.lcltest/lib/liblclapp.so
I/DEBUG   ( 1262):
I/DEBUG   ( 1262): stack:
I/DEBUG   ( 1262):          bec862b8  00000001 
I/DEBUG   ( 1262):          bec862bc  40073d14 
I/DEBUG   ( 1262):          bec862c0  40073d14 
I/DEBUG   ( 1262):          bec862c4  40073d14 
I/DEBUG   ( 1262):          bec862c8  40073d14 
I/DEBUG   ( 1262):          bec862cc  40044a91  /system/lib/libc.so (__sflush_locked+36)
I/DEBUG   ( 1262):          bec862d0  4006e774  /system/lib/libc.so
I/DEBUG   ( 1262):          bec862d4  40073d14 
I/DEBUG   ( 1262):          bec862d8  00000000 
I/DEBUG   ( 1262):          bec862dc  40045a61  /system/lib/libc.so (_fwalk+32)
I/DEBUG   ( 1262):          bec862e0  407d41b8  /system/lib/libdvm.so
I/DEBUG   ( 1262):          bec862e4  0000020c 
I/DEBUG   ( 1262):          bec862e8  44f23b88  /dev/ashmem/dalvik-LinearAlloc (deleted)
I/DEBUG   ( 1262):          bec862ec  2a008470  [heap]
I/DEBUG   ( 1262):          bec862f0  40dd6690  /dev/ashmem/dalvik-heap (deleted)
I/DEBUG   ( 1262):          bec862f4  4076ff73  /system/lib/libdvm.so (dvmAbort+106)
I/DEBUG   ( 1262):     #00  bec862f8  bec86318  [stack]
I/DEBUG   ( 1262):          bec862fc  6c756e28 
I/DEBUG   ( 1262):          bec86300  0000296c 
I/DEBUG   ( 1262):          bec86304  00000000 
I/DEBUG   ( 1262):          bec86308  00000000 
I/DEBUG   ( 1262):          bec8630c  00000000 
I/DEBUG   ( 1262):          bec86310  00000000 
I/DEBUG   ( 1262):          bec86314  00000000 
I/DEBUG   ( 1262):          bec86318  00000000 
I/DEBUG   ( 1262):          bec8631c  00000000 
I/DEBUG   ( 1262):          bec86320  00000000 
I/DEBUG   ( 1262):          bec86324  00000000 
I/DEBUG   ( 1262):          bec86328  00000000 
I/DEBUG   ( 1262):          bec8632c  00000000 
I/DEBUG   ( 1262):          bec86330  00000000 
I/DEBUG   ( 1262):          bec86334  00000000 
I/DEBUG   ( 1262):          ........  ........
I/DEBUG   ( 1262):     #01  bec86510  40dd6690  /dev/ashmem/dalvik-heap (deleted)
I/DEBUG   ( 1262):          bec86514  44f23b88  /dev/ashmem/dalvik-LinearAlloc (deleted)
I/DEBUG   ( 1262):          bec86518  00000000 
I/DEBUG   ( 1262):          bec8651c  2a008470  [heap]
I/DEBUG   ( 1262):          bec86520  407cab55  /system/lib/libdvm.so
I/DEBUG   ( 1262):          bec86524  00000000 
I/DEBUG   ( 1262):          bec86528  00000001 
I/DEBUG   ( 1262):          bec8652c  2a128290  [heap]
I/DEBUG   ( 1262):          bec86530  4a66fc6c  /data/data/com.pascal.lcltest/lib/liblclapp.so
I/DEBUG   ( 1262):          bec86534  2a00ba20  [heap]
I/DEBUG   ( 1262):          bec86538  00000004 
I/DEBUG   ( 1262):          bec8653c  44c77cb0 
I/DEBUG   ( 1262):          bec86540  bec86688  [stack]
I/DEBUG   ( 1262):          bec86544  4a66fd38  /data/data/com.pascal.lcltest/lib/liblclapp.so
I/DEBUG   ( 1262):     #02  bec86548  00007205 
I/DEBUG   ( 1262):          bec8654c  00000000 
I/DEBUG   ( 1262):          bec86550  2a0ca1c8  [heap]
I/DEBUG   ( 1262):          bec86554  40107059  /system/lib/libbinder.so (android::IPCThreadState::waitForResponse(android::Parcel*, int*)+232)
I/DEBUG   ( 1262):          bec86558  4aa40020 
I/DEBUG   ( 1262):          bec8655c  00000000 
I/DEBUG   ( 1262):          bec86560  4aa30020 
I/DEBUG   ( 1262):          bec86564  00000058 
I/DEBUG   ( 1262):          bec86568  4aa40020 
I/DEBUG   ( 1262):          bec8656c  2a0ca1f8  [heap]
I/DEBUG   ( 1262):          bec86570  40286300  /system/lib/libskia.so
I/DEBUG   ( 1262):          bec86574  00000000 
I/DEBUG   ( 1262):          bec86578  00000000 
I/DEBUG   ( 1262):          bec8657c  00000000 
I/DEBUG   ( 1262):          bec86580  00000000 
I/DEBUG   ( 1262):          bec86584  00000000 
I/DEBUG   ( 1262):
I/DEBUG   ( 1262): memory near r4:
I/DEBUG   ( 1262):     407d4198 00000000 00000000 00000000 00000000  ................
I/DEBUG   ( 1262):     407d41a8 00000000 00000000 00000000 00000000  ................
I/DEBUG   ( 1262):     407d41b8 2a0096e0 2a0096d0 00500000 03000000  ...*...*..P.....
I/DEBUG   ( 1262):     407d41c8 03000000 00004000 00006000 00000001  .....@...`......
I/DEBUG   ( 1262):     407d41d8 00000101 00000002 00000001 00000000  ................
I/DEBUG   ( 1262):
I/DEBUG   ( 1262): memory near r6:
I/DEBUG   ( 1262):     44f23b68 4a5794ef 00000012 00000188 40dd5b00  ..WJ.........[.@
I/DEBUG   ( 1262):     44f23b78 4a57a6dc 4a5794ef 00000001 0000018c  ..WJ..WJ........
I/DEBUG   ( 1262):     44f23b88 40dd5b00 4a57a6e6 4a5794ef 00000001  .[.@..WJ..WJ....
I/DEBUG   ( 1262):     44f23b98 00000190 40dd5b00 4a57a6ef 4a5794ef  .....[.@..WJ..WJ
I/DEBUG   ( 1262):     44f23ba8 00000001 00000194 40dd5b00 4a57a413  .........[.@..WJ
I/DEBUG   ( 1262):
I/DEBUG   ( 1262): memory near r7:
I/DEBUG   ( 1262):     2a008450 00000000 2a0107a0 00000000 00000000  .......*........
I/DEBUG   ( 1262):     2a008460 78742e73 00000074 00000030 00000023  s.txt...0...#...
I/DEBUG   ( 1262):     2a008470 407cd8dc 407cdd50 00000001 2a00ba20  ..|@P.|@.... ..*
I/DEBUG   ( 1262):     2a008480 00000000 2a028ed0 00000000 0000001b  .......*........
I/DEBUG   ( 1262):     2a008490 00000000 00000000 00000000 2a008490  ...............*
I/DEBUG   ( 1262):
I/DEBUG   ( 1262): memory near r8:
I/DEBUG   ( 1262):     40dd6670 4f2cd476 00000000 00000001 00000000  v.,O............
I/DEBUG   ( 1262):     40dd6680 000081ed 000003e8 000003e8 000001a3  ................
I/DEBUG   ( 1262):     40dd6690 40dd5b00 00000000 40dd69d0 40dd69d0  .[.@.....i.@.i.@
I/DEBUG   ( 1262):     40dd66a0 40dd70a0 40dd88b8 01030005 00000000  .p.@...@........
I/DEBUG   ( 1262):     40dd66b0 40dcd298 00000000 40dd5818 40dd7220  ...@.....X.@ r.@
I/DEBUG   ( 1262):
I/DEBUG   ( 1262): memory near r9:
I/DEBUG   ( 1262):     44c77c88 44ccbd40 466b1566 44c77cc0 4a579090  @..Df.kF.|.D..WJ
I/DEBUG   ( 1262):     44c77c98 44f23fc0 00000006 00000000 40dd6690  .?.D.........f.@
I/DEBUG   ( 1262):     44c77ca8 40dd6690 44c77ce4 46456daa 44f241b8  .f.@.|.D.mEF.A.D
I/DEBUG   ( 1262):     44c77cb8 4a579090 00000000 40edf5f8 00000108  ..WJ.......@....
I/DEBUG   ( 1262):     44c77cc8 40dd6690 00000000 44c77d0c 464b0d60  .f.@.....}.D`.KF
I/DEBUG   ( 1262):
I/DEBUG   ( 1262): memory near sl:
I/DEBUG   ( 1262):     2a00ba10 00000000 00000000 00000000 00000453  ............S...
I/DEBUG   ( 1262):     2a00ba20 46480dc0 44c77ca4 44f241b8 47e28000  ..HF.|.D.A.D...G
I/DEBUG   ( 1262):     2a00ba30 00000000 4a23c028 bec867b0 00000000  ....(.#J.g......
I/DEBUG   ( 1262):     2a00ba40 bec867e4 00000001 00000000 40748240  .g..........@.t@
I/DEBUG   ( 1262):     2a00ba50 00000000 00000000 443fbe70 44c72300  ........p.?D.#.D
I/DEBUG   ( 1262):
I/DEBUG   ( 1262): memory near fp:
I/DEBUG   ( 1262):     bec86574 00000000 00000000 00000000 00000000  ................
I/DEBUG   ( 1262):     bec86584 00000000 bec865dc bec86598 4a7d59d4  .....e...e...Y}J
I/DEBUG   ( 1262):     bec86594 4a66fc78 4a23c038 a2c21f3d 00000000  x.fJ8.#J=.......
I/DEBUG   ( 1262):     bec865a4 2a0ca1c8 2a128290 00000058 4aa40020  ...*...*X... ..J
I/DEBUG   ( 1262):     bec865b4 00000000 00000006 2a113f80 40dccb50  .........?.*P..@
I/DEBUG   ( 1262):
I/DEBUG   ( 1262): memory near sp:
I/DEBUG   ( 1262):     bec862d8 00000000 40045a61 407d41b8 0000020c  ....aZ.@.A}@....
I/DEBUG   ( 1262):     bec862e8 44f23b88 2a008470 40dd6690 4076ff73  .;.Dp..*.f.@s.v@
I/DEBUG   ( 1262):     bec862f8 bec86318 6c756e28 0000296c 00000000  .c..(null)......
I/DEBUG   ( 1262):     bec86308 00000000 00000000 00000000 00000000  ................
I/DEBUG   ( 1262):     bec86318 00000000 00000000 00000000 00000000  ................
I/DEBUG   ( 1262):
I/DEBUG   ( 1262): code around pc:
I/DEBUG   ( 1262):     4076ff34 34bcf8d3 ed2cf7d7 461d2300 b1525d1a  ...4..,..#.F.]R.
I/DEBUG   ( 1262):     4076ff44 18ad3301 7f00f5b3 e004d1f8 4a0a4798  .3...........G.J
I/DEBUG   ( 1262):     4076ff54 f7d77015 490ced24 4a0c2006 44794c0c  .p..$..I. .J.LyD
I/DEBUG   ( 1262):     4076ff64 447c447a ebd6f7d7 f7d72000 6ca3ec76  zD|D..... ..v..l
I/DEBUG   ( 1262):     4076ff74 d1eb2b00 bf00e7eb deadd00d 0005fbec  .+..............
I/DEBUG   ( 1262):
I/DEBUG   ( 1262): code around lr:
I/DEBUG   ( 1262):     40044a70 447e4e08 68336836 f000b10b 4620fa4c  .N~D6h3h....L. F
I/DEBUG   ( 1262):     40044a80 ffcaf7ff 68304605 4620b110 fa50f000  .....F0h.. F..P.
I/DEBUG   ( 1262):     40044a90 bd704628 00029a32 4604b570 4811b928  (Fp.2...p..F(..H
I/DEBUG   ( 1262):     40044aa0 e8bd4478 f0004070 4e0fbfcb 6836447e  xD..p@.....N~D6h
I/DEBUG   ( 1262):     40044ab0 b10b6833 fa2ff000 f01089a0 d1060f18  3h..../.........
I/DEBUG   ( 1262):
I/DEBUG   ( 1262): memory map around fault addr deadd00d:
I/DEBUG   ( 1262):     bec7b000-bec87000 [stack]
I/DEBUG   ( 1262):     (no map for address)
I/DEBUG   ( 1262):     (no map above)
I/BootReceiver( 1592): Copying /data/tombstones/tombstone_06 to DropBox (SYSTEM_TOMBSTONE)
D/Zygote  ( 1265): Process 24576 terminated by signal (11)
I/ActivityManager( 1592): Process com.pascal.lcltest (pid 24576) has died.
W/ActivityManager( 1592): Force removing ActivityRecord{4175e668 com.pascal.lcltest/.LCLActivity}: app died, no saved state

I hope, i provided enough debug information  :D
« Last Edit: March 19, 2013, 01:18:56 pm by dimprofi »
Lazarus 1.2/FPC 2.6.4 (x86/x86_64/win32/win64/Linux) :: Be smart - use predictable {$INTERFACES CORBA}! :)

Leledumbo

  • Hero Member
  • *****
  • Posts: 8835
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: LCLExample/androidlcl doesnt work on Android 4 (SIGSERV)
« Reply #1 on: March 18, 2013, 03:10:32 pm »
My app is build against android-8 target and works on my Xperia Mini Pro with ICS based ROM. I use FPC trunk (2.7.1) with native arm-android target, Android SDK r21.1 and NDK r8d. Try installing the apk and test whether it can run or not on your device.

DimProfi

  • Full Member
  • ***
  • Posts: 126
    • http://www.dimprofi.de
Re: LCLExample/androidlcl doesnt work on Android 4 (SIGSERV)
« Reply #2 on: March 18, 2013, 04:07:21 pm »
Would you attach some test.apk, that I just need to install/start one time on Android 4, to know, that I am on the right way?

Please ;)
Lazarus 1.2/FPC 2.6.4 (x86/x86_64/win32/win64/Linux) :: Be smart - use predictable {$INTERFACES CORBA}! :)

Leledumbo

  • Hero Member
  • *****
  • Posts: 8835
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: LCLExample/androidlcl doesnt work on Android 4 (SIGSERV)
« Reply #3 on: March 18, 2013, 04:08:34 pm »
There's only 1 APK in the downloads section... (and I can't attach, it's 1.3 MB which is over the attachment size limit)

DimProfi

  • Full Member
  • ***
  • Posts: 126
    • http://www.dimprofi.de
Re: LCLExample/androidlcl doesnt work on Android 4 (SIGSERV)
« Reply #4 on: March 18, 2013, 04:14:15 pm »
Where?
If you give me a URL, it would be enough  :)
Was it tested on Android 4?
Lazarus 1.2/FPC 2.6.4 (x86/x86_64/win32/win64/Linux) :: Be smart - use predictable {$INTERFACES CORBA}! :)

Leledumbo

  • Hero Member
  • *****
  • Posts: 8835
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: LCLExample/androidlcl doesnt work on Android 4 (SIGSERV)
« Reply #5 on: March 18, 2013, 05:05:11 pm »
Quote
Where?
The phrase "my app" above is a link...
Quote
Was it tested on Android 4?
Read my answer again...

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: LCLExample/androidlcl doesnt work on Android 4 (SIGSERV)
« Reply #6 on: March 18, 2013, 06:41:54 pm »
Some NDK versions are buggy. This is one potential source of problems.

DimProfi

  • Full Member
  • ***
  • Posts: 126
    • http://www.dimprofi.de
Re: LCLExample/androidlcl doesnt work on Android 4 (SIGSERV)
« Reply #7 on: March 18, 2013, 09:08:24 pm »
Quote
The phrase "my app" above is a link...

Sorry, I was blind and thought you mean another one :)

So, I was trying to install your App:
1. On installing it, i got a message that I already have it ( :o) and the question "Shoul it replaced with this one?"
2. If I say "yes", I'm getting "Installation failed".
3. I dont have this problem with androidlcl.
4. Ok. I uninstalled androidlcl.
5. And repeated the installation.
6. But it fails again.

 %)

I have 4.1.2 (see first post)
Lazarus 1.2/FPC 2.6.4 (x86/x86_64/win32/win64/Linux) :: Be smart - use predictable {$INTERFACES CORBA}! :)

roeug

  • Jr. Member
  • **
  • Posts: 67
    • http://roeug.50megs.com/
Re: LCLExample/androidlcl doesnt work on Android 4 (SIGSERV)
« Reply #8 on: March 19, 2013, 06:58:44 am »
I you have time try (ok with emulator)
http://roeug.snow.prohosting.com/Nke_a.apk

Leledumbo

  • Hero Member
  • *****
  • Posts: 8835
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: LCLExample/androidlcl doesnt work on Android 4 (SIGSERV)
« Reply #9 on: March 19, 2013, 08:49:57 am »
Quote
I have 4.1.2
This is the missing information. I don't see 4.1.2 in the first post. I've tested my app to work from 2.2 (my friend's device) to 4.0 (my device). 4.1 is another beast I guess. I'll test on 4.1 emulator (unless you want to buy me a real device :P).

DimProfi

  • Full Member
  • ***
  • Posts: 126
    • http://www.dimprofi.de
Re: LCLExample/androidlcl doesnt work on Android 4 (SIGSERV)
« Reply #10 on: March 19, 2013, 09:02:23 am »
Quote
I'll test on 4.1 emulator (unless you want to buy me a real device

Its ok, if you test on a simulator  ;)
Tell me what you've got.
Lazarus 1.2/FPC 2.6.4 (x86/x86_64/win32/win64/Linux) :: Be smart - use predictable {$INTERFACES CORBA}! :)

DimProfi

  • Full Member
  • ***
  • Posts: 126
    • http://www.dimprofi.de
Re: LCLExample/androidlcl doesnt work on Android 4 (SIGSERV)
« Reply #11 on: March 19, 2013, 09:07:40 am »
I you have time try (ok with emulator)
http://roeug.snow.prohosting.com/Nke_a.apk

Yeah! It works!  :D

Would you provide me a fpc compiler/ndk/jdk versions and parameters? Please  :)
Lazarus 1.2/FPC 2.6.4 (x86/x86_64/win32/win64/Linux) :: Be smart - use predictable {$INTERFACES CORBA}! :)

simsam

  • Newbie
  • Posts: 3
Re: LCLExample/androidlcl doesnt work on Android 4 (SIGSERV)
« Reply #12 on: March 19, 2013, 12:49:59 pm »
You see in the logcat that just befor the crash you get a warning about GetLongField.
I had the same problem with the application working on 2.3 emulator and crashing on 4.2.2 (emulator and device).
In my case replacing all occurrences to "javaEnvRef^^.GetLongField()" by "javaEnvRef^^.GetIntfield()" in "lcl/interfaces/customdrawn/customdrawnwinapi_android.inc" solved the problem.

Good Luck
« Last Edit: March 19, 2013, 01:14:40 pm by simsam »

DimProfi

  • Full Member
  • ***
  • Posts: 126
    • http://www.dimprofi.de
Re: LCLExample/androidlcl doesnt work on Android 4 (SIGSERV)
« Reply #13 on: March 19, 2013, 01:18:14 pm »
You see in the logcat that just befor the crash you get a warning about GetLongField.
I had the same problem with the application working on 2.3 emulator and crashing on 4.2.2 (emulator and device).
In my case replacing all occurrences to "javaEnvRef^^.GetLongField()" by "javaEnvRef^^.GetIntfield()" in "lcl/interfaces/customdrawn/customdrawnwinapi_android.pas" solved the problem.

Good Luck

I thought, that one warning is a warning  O:-)

Yeah! It works now! Thanks a lot!  8-)
Lazarus 1.2/FPC 2.6.4 (x86/x86_64/win32/win64/Linux) :: Be smart - use predictable {$INTERFACES CORBA}! :)

simsam

  • Newbie
  • Posts: 3
Re: [solved] LCLExample/androidlcl doesnt work on Android 4 (SIGSERV)
« Reply #14 on: March 19, 2013, 01:23:40 pm »
... must be one of those FATAL warnings ...  %)

Cheers

 

TinyPortal © 2005-2018