Closed alissonrodrigo closed 1 year ago
Are you saying without this change it does not crash? Without any error messages this may be difficult to diagnose - I suggest using a logcat viewer (such as Device Lens) to ascertain any errors emitted by the OS.
Also, please indicate what version of Android you are using, and the device model. When creating an issue, you are prompted for this kind of info.
It crashes whenever I accept the Location permission. I'm testing on 2 devices LG G5 Android 7 Nokia 2.4 Android 12
09-08 08:44:22.474: A/art(11451): art/runtime/java_vm_ext.cc:470] JNI DETECTED ERROR IN APPLICATION: JNI RegisterNatives called with pending exception java.lang.NoSuchMethodError: no static or non-static method "Lcom/embarcadero/services/CrossPlatformLocationServiceProxyInterface;.dispatchToNative2(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;J)Ljava/lang/Object;"
09-08 08:44:22.474: A/art(11451): art/runtime/java_vm_ext.cc:470] at void com.embarcadero.rtl.ProxyService.onCreateNative(java.lang.Object, java.lang.String) (ProxyService.java:-2)
09-08 08:44:22.474: A/art(11451): art/runtime/java_vm_ext.cc:470] at void com.embarcadero.rtl.ProxyService.onCreate(java.lang.Object, java.lang.String) (ProxyService.java:51)
09-08 08:44:22.474: A/art(11451): art/runtime/java_vm_ext.cc:470] at void com.embarcadero.services.CrossPlatformLocationService.onCreate() (CrossPlatformLocationService.java:41)
09-08 08:44:22.474: A/art(11451): art/runtime/java_vm_ext.cc:470] at void android.app.ActivityThread.handleCreateService(android.app.ActivityThread$CreateServiceData) (ActivityThread.java:3298)
09-08 08:44:22.474: A/art(11451): art/runtime/java_vm_ext.cc:470] at void android.app.ActivityThread.-wrap5(android.app.ActivityThread, android.app.ActivityThread$CreateServiceData) (ActivityThread.java:-1)
09-08 08:44:22.474: A/art(11451): art/runtime/java_vm_ext.cc:470] at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1618)
09-08 08:44:22.474: A/art(11451): art/runtime/java_vm_ext.cc:470] at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
09-08 08:44:22.474: A/art(11451): art/runtime/java_vm_ext.cc:470] at void android.os.Looper.loop() (Looper.java:154)
09-08 08:44:22.474: A/art(11451): art/runtime/java_vm_ext.cc:470] at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6311)
09-08 08:44:22.474: A/art(11451): art/runtime/java_vm_ext.cc:470] at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2)
09-08 08:44:22.474: A/art(11451): art/runtime/java_vm_ext.cc:470] at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:872)
09-08 08:44:22.474: A/art(11451): art/runtime/java_vm_ext.cc:470] at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:762)
09-08 08:44:22.474: A/art(11451): art/runtime/java_vm_ext.cc:470]
09-08 08:44:22.474: A/art(11451): art/runtime/java_vm_ext.cc:470] in call to RegisterNatives
09-08 08:44:22.474: A/art(11451): art/runtime/java_vm_ext.cc:470] from void com.embarcadero.rtl.ProxyService.onCreateNative(java.lang.Object, java.lang.String)
09-08 08:44:22.474: A/art(11451): art/runtime/java_vm_ext.cc:470] "main" prio=5 tid=1 Runnable
09-08 08:44:22.474: A/art(11451): art/runtime/java_vm_ext.cc:470] | group="main" sCount=0 dsCount=0 obj=0x74ec19f0 self=0xaf305400
09-08 08:44:22.474: A/art(11451): art/runtime/java_vm_ext.cc:470] | sysTid=11451 nice=0 cgrp=default sched=0/0 handle=0xb21b0534
09-08 08:44:22.474: A/art(11451): art/runtime/java_vm_ext.cc:470] | state=R schedstat=( 668221726 10281868 548 ) utm=46 stm=20 core=4 HZ=100
09-08 08:44:22.474: A/art(11451): art/runtime/java_vm_ext.cc:470] | stack=0xbe1f9000-0xbe1fb000 stackSize=8MB
09-08 08:44:22.474: A/art(11451): art/runtime/java_vm_ext.cc:470] | held mutexes= "mutator lock"(shared held)
09-08 08:44:22.474: A/art(11451): art/runtime/java_vm_ext.cc:470] native: #00 pc 0034d481 /system/lib/libart.so (_ZN3art15DumpNativeStackERNSt3113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+128)
09-08 08:44:22.474: A/art(11451): art/runtime/java_vm_ext.cc:470] native: #01 pc 0032de41 /system/lib/libart.so (_ZNK3art6Thread9DumpStackERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMap+308)
09-08 08:44:22.474: A/art(11451): art/runtime/java_vm_ext.cc:470] native: #02 pc 002375d5 /system/lib/libart.so (ZN3art9JavaVMExt8JniAbortEPKcS2+848)
09-08 08:44:22.474: A/art(11451): art/runtime/java_vm_ext.cc:470] native: #03 pc 00237af7 /system/lib/libart.so (_ZN3art9JavaVMExt9JniAbortVEPKcS2_St9va_list+58)
09-08 08:44:22.474: A/art(11451): art/runtime/java_vm_ext.cc:470] native: #04 pc 000ca21b /system/lib/libart.so (_ZN3art11ScopedCheck6AbortFEPKcz+46)
09-08 08:44:22.474: A/art(11451): art/runtime/java_vm_ext.cc:470] native: #05 pc 000c9e07 /system/lib/libart.so (_ZN3art11ScopedCheck11CheckThreadEP7_JNIEnv+362)
09-08 08:44:22.474: A/art(11451): art/runtime/java_vm_ext.cc:470] native: #06 pc 000c8e1f /system/lib/libart.so (_ZN3art11ScopedCheck22CheckPossibleHeapValueERNS_18ScopedObjectAccessEcNS_12JniValueTypeE+26)
09-08 08:44:22.474: A/art(11451): art/runtime/java_vm_ext.cc:470] native: #07 pc 000c82fb /system/lib/libart.so (_ZN3art11ScopedCheck5CheckERNS_18ScopedObjectAccessEbPKcPNS_12JniValueTypeE+802)
09-08 08:44:22.474: A/art(11451): art/runtime/java_vm_ext.cc:470] native: #08 pc 000c590d /system/lib/libart.so (_ZN3art8CheckJNI15RegisterNativesEP7_JNIEnvP7_jclassPK15JNINativeMethodi+464)
09-08 08:44:22.474: A/art(11451): art/runtime/java_vm_ext.cc:470] native: #09 pc 004489eb /data/app/com.embarcadero.CrossPlatformLocationD11-2/lib/arm/libCrossPlatformLocationService.so (???)
09-08 08:44:22.474: A/art(11451): art/runtime/java_vm_ext.cc:470] native: #10 pc 003620ff /data/app/com.embarcadero.CrossPlatformLocationD11-2/lib/arm/libCrossPlatformLocationService.so (???)
09-08 08:44:22.474: A/art(11451): art/runtime/java_vm_ext.cc:470] native: #11 pc 0036219f /data/app/com.embarcadero.CrossPlatformLocationD11-2/lib/arm/libCrossPlatformLocationService.so (???)
09-08 08:44:22.474: A/art(11451): art/runtime/java_vm_ext.cc:470] native: #12 pc 0035610d /data/app/com.embarcadero.CrossPlatformLocationD11-2/lib/arm/libCrossPlatformLocationService.so (???)
09-08 08:44:22.475: A/art(11451): art/runtime/java_vm_ext.cc:470] native: #13 pc 008115d1 /data/app/com.embarcadero.CrossPlatformLocationD11-2/lib/arm/libCrossPlatformLocationService.so (_NativeMain+24)
09-08 08:44:22.475: A/art(11451): art/runtime/java_vm_ext.cc:470] native: #14 pc 00592969 /data/app/com.embarcadero.CrossPlatformLocationD11-2/lib/arm/libCrossPlatformLocationService.so (???)
09-08 08:44:22.475: A/art(11451): art/runtime/java_vm_ext.cc:470] native: #15 pc 005929f7 /data/app/com.embarcadero.CrossPlatformLocationD11-2/lib/arm/libCrossPlatformLocationService.so (OnCreateDelphi+126)
09-08 08:44:22.475: A/art(11451): art/runtime/java_vm_ext.cc:470] native: #16 pc 0019532b /data/app/com.embarcadero.CrossPlatformLocationD11-2/lib/arm/libProxyAndroidService.so (Java_com_embarcadero_rtl_ProxyService_onCreateNative+98)
09-08 08:44:22.475: A/art(11451): art/runtime/java_vm_ext.cc:470] native: #17 pc 0010de35 /data/app/com.embarcadero.CrossPlatformLocationD11-2/oat/arm/base.odex (Java_com_embarcadero_rtl_ProxyService_onCreateNativeLjava_lang_Object_2Ljava_lang_String_2+112)
09-08 08:44:22.475: A/art(11451): art/runtime/java_vm_ext.cc:470] at com.embarcadero.rtl.ProxyService.onCreateNative(Native method)
09-08 08:44:22.475: A/art(11451): art/runtime/java_vm_ext.cc:470] at com.embarcadero.rtl.ProxyService.onCreate(ProxyService.java:51)
09-08 08:44:22.475: A/art(11451): art/runtime/java_vm_ext.cc:470] at com.embarcadero.services.CrossPlatformLocationService.onCreate(CrossPlatformLocationService.java:41)
09-08 08:44:22.475: A/art(11451): art/runtime/java_vm_ext.cc:470] at android.app.ActivityThread.handleCreateService(ActivityThread.java:3298)
09-08 08:44:22.475: A/art(11451): art/runtime/java_vm_ext.cc:470] at android.app.ActivityThread.-wrap5(ActivityThread.java:-1)
09-08 08:44:22.475: A/art(11451): art/runtime/java_vm_ext.cc:470] at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1618)
09-08 08:44:22.475: A/art(11451): art/runtime/java_vm_ext.cc:470] at android.os.Handler.dispatchMessage(Handler.java:102)
09-08 08:44:22.475: A/art(11451): art/runtime/java_vm_ext.cc:470] at android.os.Looper.loop(Looper.java:154)
09-08 08:44:22.475: A/art(11451): art/runtime/java_vm_ext.cc:470] at android.app.ActivityThread.main(ActivityThread.java:6311)
09-08 08:44:22.475: A/art(11451): art/runtime/java_vm_ext.cc:470] at java.lang.reflect.Method.invoke!(Native method)
09-08 08:44:22.475: A/art(11451): art/runtime/java_vm_ext.cc:470] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:872)
09-08 08:44:22.475: A/art(11451): art/runtime/java_vm_ext.cc:470] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:762)
09-08 08:44:22.475: A/art(11451): art/runtime/java_vm_ext.cc:470]
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] Runtime aborting...
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] Aborting thread:
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] "main" prio=5 tid=1 Native
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] | group="" sCount=0 dsCount=0 obj=0x74ec19f0 self=0xaf305400
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] | sysTid=11451 nice=0 cgrp=default sched=0/0 handle=0xb21b0534
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] | state=R schedstat=( 696327297 10560046 666 ) utm=48 stm=21 core=5 HZ=100
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] | stack=0xbe1f9000-0xbe1fb000 stackSize=8MB
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] | held mutexes= "abort lock"
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] native: #00 pc 0034d481 /system/lib/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+128)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] native: #01 pc 0032de41 /system/lib/libart.so (_ZNK3art6Thread9DumpStackERNSt3113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMap+308)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] native: #02 pc 00320fe1 /system/lib/libart.so (_ZNK3art10AbortState10DumpThreadERNSt3113basic_ostreamIcNS1_11char_traitsIcEEEEPNS_6ThreadE+24)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] native: #03 pc 00320e69 /system/lib/libart.so (_ZNK3art10AbortState4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+424)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] native: #04 pc 00317ceb /system/lib/libart.so (_ZN3art7Runtime5AbortEv+90)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] native: #05 pc 000b4879 /system/lib/libart.so (_ZN3art10LogMessageD2Ev+864)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] native: #06 pc 00237905 /system/lib/libart.so (ZN3art9JavaVMExt8JniAbortEPKcS2+1664)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] native: #07 pc 00237af7 /system/lib/libart.so (_ZN3art9JavaVMExt9JniAbortVEPKcS2_St9va_list+58)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] native: #08 pc 000ca21b /system/lib/libart.so (_ZN3art11ScopedCheck6AbortFEPKcz+46)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] native: #09 pc 000c9e07 /system/lib/libart.so (_ZN3art11ScopedCheck11CheckThreadEP7_JNIEnv+362)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] native: #10 pc 000c8e1f /system/lib/libart.so (_ZN3art11ScopedCheck22CheckPossibleHeapValueERNS_18ScopedObjectAccessEcNS_12JniValueTypeE+26)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] native: #11 pc 000c82fb /system/lib/libart.so (_ZN3art11ScopedCheck5CheckERNS_18ScopedObjectAccessEbPKcPNS_12JniValueTypeE+802)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] native: #12 pc 000c590d /system/lib/libart.so (_ZN3art8CheckJNI15RegisterNativesEP7_JNIEnvP7_jclassPK15JNINativeMethodi+464)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] native: #13 pc 004489eb /data/app/com.embarcadero.CrossPlatformLocationD11-2/lib/arm/libCrossPlatformLocationService.so (???)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] native: #14 pc 003620ff /data/app/com.embarcadero.CrossPlatformLocationD11-2/lib/arm/libCrossPlatformLocationService.so (???)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] native: #15 pc 0036219f /data/app/com.embarcadero.CrossPlatformLocationD11-2/lib/arm/libCrossPlatformLocationService.so (???)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] native: #16 pc 0035610d /data/app/com.embarcadero.CrossPlatformLocationD11-2/lib/arm/libCrossPlatformLocationService.so (???)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] native: #17 pc 008115d1 /data/app/com.embarcadero.CrossPlatformLocationD11-2/lib/arm/libCrossPlatformLocationService.so (_NativeMain+24)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] native: #18 pc 00592969 /data/app/com.embarcadero.CrossPlatformLocationD11-2/lib/arm/libCrossPlatformLocationService.so (???)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] native: #19 pc 005929f7 /data/app/com.embarcadero.CrossPlatformLocationD11-2/lib/arm/libCrossPlatformLocationService.so (OnCreateDelphi+126)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] native: #20 pc 0019532b /data/app/com.embarcadero.CrossPlatformLocationD11-2/lib/arm/libProxyAndroidService.so (Java_com_embarcadero_rtl_ProxyService_onCreateNative+98)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] native: #21 pc 0010de35 /data/app/com.embarcadero.CrossPlatformLocationD11-2/oat/arm/base.odex (???)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] at com.embarcadero.rtl.ProxyService.onCreateNative(Native method)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] at com.embarcadero.rtl.ProxyService.onCreate(ProxyService.java:51)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] at com.embarcadero.services.CrossPlatformLocationService.onCreate(CrossPlatformLocationService.java:41)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] at android.app.ActivityThread.handleCreateService(ActivityThread.java:3298)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] at android.app.ActivityThread.-wrap5(ActivityThread.java:-1)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1618)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] at android.os.Handler.dispatchMessage(Handler.java:102)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] at android.os.Looper.loop(Looper.java:154)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] at android.app.ActivityThread.main(ActivityThread.java:6311)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] at java.lang.reflect.Method.invoke!(Native method)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:872)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:762)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] Pending exception java.lang.NoSuchMethodError: no static or non-static method "Lcom/embarcadero/services/CrossPlatformLocationServiceProxyInterface;.dispatchToNative2(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;J)Ljava/lang/Object;"
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] at void com.embarcadero.rtl.ProxyService.onCreateNative(java.lang.Object, java.lang.String) (ProxyService.java:-2)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] at void com.embarcadero.rtl.ProxyService.onCreate(java.lang.Object, java.lang.String) (ProxyService.java:51)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] at void com.embarcadero.services.CrossPlatformLocationService.onCreate() (CrossPlatformLocationService.java:41)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] at void android.app.ActivityThread.handleCreateService(android.app.ActivityThread$CreateServiceData) (ActivityThread.java:3298)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] at void android.app.ActivityThread.-wrap5(android.app.ActivityThread, android.app.ActivityThread$CreateServiceData) (ActivityThread.java:-1)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1618)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] at void android.os.Looper.loop() (Looper.java:154)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6311)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:872)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:762)
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] Dumping all threads without appropriate locks held: thread list lock mutator lock
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] All threads:
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] DALVIK THREADS (11):
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] "main" prio=5 tid=1 Runnable
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] | group="" sCount=0 dsCount=0 obj=0x74ec19f0 self=0xaf305400
09-08 08:44:22.550: A/art(11451): art/runtime/runtime.cc:403] | sysTid=11451 nice=0 cgrp=default sched=0/0 handle=0xb21b0534
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] | state=R schedstat=( 724174224 10560046 666 ) utm=50 stm=22 core=5 HZ=100
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] | stack=0xbe1f9000-0xbe1fb000 stackSize=8MB
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] | held mutexes= "abort lock" "mutator lock"(shared held)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #00 pc 0034d481 /system/lib/libart.so (_ZN3art15DumpNativeStackERNSt3113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+128)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #01 pc 0032de41 /system/lib/libart.so (_ZNK3art6Thread9DumpStackERNSt3113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMap+308)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #02 pc 0033fca1 /system/lib/libart.so (_ZN3art14DumpCheckpoint3RunEPNS_6ThreadE+620)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #03 pc 00339cab /system/lib/libart.so (_ZN3art10ThreadList13RunCheckpointEPNS_7ClosureE+330)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #04 pc 003399d1 /system/lib/libart.so (_ZN3art10ThreadList4DumpERNSt3113basic_ostreamIcNS1_11char_traitsIcEEEEb+180)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #05 pc 00320e35 /system/lib/libart.so (_ZNK3art10AbortState4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+372)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #06 pc 00317ceb /system/lib/libart.so (_ZN3art7Runtime5AbortEv+90)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #07 pc 000b4879 /system/lib/libart.so (_ZN3art10LogMessageD2Ev+864)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #08 pc 00237905 /system/lib/libart.so (ZN3art9JavaVMExt8JniAbortEPKcS2+1664)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #09 pc 00237af7 /system/lib/libart.so (_ZN3art9JavaVMExt9JniAbortVEPKcS2_St9va_list+58)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #10 pc 000ca21b /system/lib/libart.so (_ZN3art11ScopedCheck6AbortFEPKcz+46)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #11 pc 000c9e07 /system/lib/libart.so (_ZN3art11ScopedCheck11CheckThreadEP7_JNIEnv+362)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #12 pc 000c8e1f /system/lib/libart.so (_ZN3art11ScopedCheck22CheckPossibleHeapValueERNS_18ScopedObjectAccessEcNS_12JniValueTypeE+26)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #13 pc 000c82fb /system/lib/libart.so (_ZN3art11ScopedCheck5CheckERNS_18ScopedObjectAccessEbPKcPNS_12JniValueTypeE+802)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #14 pc 000c590d /system/lib/libart.so (_ZN3art8CheckJNI15RegisterNativesEP7_JNIEnvP7_jclassPK15JNINativeMethodi+464)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #15 pc 004489eb /data/app/com.embarcadero.CrossPlatformLocationD11-2/lib/arm/libCrossPlatformLocationService.so (???)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #16 pc 003620ff /data/app/com.embarcadero.CrossPlatformLocationD11-2/lib/arm/libCrossPlatformLocationService.so (???)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #17 pc 0036219f /data/app/com.embarcadero.CrossPlatformLocationD11-2/lib/arm/libCrossPlatformLocationService.so (???)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #18 pc 0035610d /data/app/com.embarcadero.CrossPlatformLocationD11-2/lib/arm/libCrossPlatformLocationService.so (???)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #19 pc 008115d1 /data/app/com.embarcadero.CrossPlatformLocationD11-2/lib/arm/libCrossPlatformLocationService.so (_NativeMain+24)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #20 pc 00592969 /data/app/com.embarcadero.CrossPlatformLocationD11-2/lib/arm/libCrossPlatformLocationService.so (???)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #21 pc 005929f7 /data/app/com.embarcadero.CrossPlatformLocationD11-2/lib/arm/libCrossPlatformLocationService.so (OnCreateDelphi+126)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #22 pc 0019532b /data/app/com.embarcadero.CrossPlatformLocationD11-2/lib/arm/libProxyAndroidService.so (Java_com_embarcadero_rtl_ProxyService_onCreateNative+98)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #23 pc 0010de35 /data/app/com.embarcadero.CrossPlatformLocationD11-2/oat/arm/base.odex (Java_com_embarcadero_rtl_ProxyService_onCreateNativeLjava_lang_Object_2Ljava_lang_String_2+112)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] at com.embarcadero.rtl.ProxyService.onCreateNative(Native method)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] at com.embarcadero.rtl.ProxyService.onCreate(ProxyService.java:51)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] at com.embarcadero.services.CrossPlatformLocationService.onCreate(CrossPlatformLocationService.java:41)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] at android.app.ActivityThread.handleCreateService(ActivityThread.java:3298)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] at android.app.ActivityThread.-wrap5(ActivityThread.java:-1)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1618)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] at android.os.Handler.dispatchMessage(Handler.java:102)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] at android.os.Looper.loop(Looper.java:154)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] at android.app.ActivityThread.main(ActivityThread.java:6311)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] at java.lang.reflect.Method.invoke!(Native method)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:872)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:762)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403]
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] "Jit thread pool worker thread 0" prio=5 tid=2 Native (still starting up)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] | group="" sCount=1 dsCount=0 obj=0x0 self=0xa7d8d000
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] | sysTid=11456 nice=9 cgrp=default sched=0/0 handle=0xaea27920
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] | state=S schedstat=( 334844 260991 3 ) utm=0 stm=0 core=4 HZ=100
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] | stack=0xae929000-0xae92b000 stackSize=1022KB
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] | held mutexes=
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #00 pc 000177ac /system/lib/libc.so (syscall+28)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #01 pc 000b643d /system/lib/libart.so (_ZN3art17ConditionVariable16WaitHoldingLocksEPNS_6ThreadE+92)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #02 pc 003411e9 /system/lib/libart.so (_ZN3art10ThreadPool7GetTaskEPNS_6ThreadE+160)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #03 pc 00340a13 /system/lib/libart.so (_ZN3art16ThreadPoolWorker3RunEv+62)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #04 pc 00340541 /system/lib/libart.so (_ZN3art16ThreadPoolWorker8CallbackEPv+64)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #05 pc 00047503 /system/lib/libc.so (_ZL15__pthread_startPv+22)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #06 pc 00019ded /system/lib/libc.so (start_thread+6)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] (no managed stack frames)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403]
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] "Signal Catcher" prio=5 tid=3 WaitingInMainSignalCatcherLoop
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] | group="" sCount=1 dsCount=0 obj=0x12e33280 self=0x9e4e9200
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] | sysTid=11457 nice=0 cgrp=default sched=0/0 handle=0xae926920
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] | state=S schedstat=( 530207 17136 2 ) utm=0 stm=0 core=4 HZ=100
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] | stack=0xae82a000-0xae82c000 stackSize=1014KB
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] | held mutexes=
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #00 pc 00048ce4 /system/lib/libc.so (rt_sigtimedwait+12)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #01 pc 0001e257 /system/lib/libc.so (sigwait+34)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #02 pc 00323fab /system/lib/libart.so (_ZN3art9SignalSet4WaitEv+22)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #03 pc 00323ba5 /system/lib/libart.so (_ZN3art13SignalCatcher13WaitForSignalEPNS_6ThreadERNS_9SignalSetE+168)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #04 pc 00322909 /system/lib/libart.so (_ZN3art13SignalCatcher3RunEPv+276)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #05 pc 00047503 /system/lib/libc.so (_ZL15__pthread_startPv+22)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #06 pc 00019ded /system/lib/libc.so (start_thread+6)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] (no managed stack frames)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403]
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] "JDWP" prio=5 tid=4 WaitingInMainDebuggerLoop
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] | group="" sCount=1 dsCount=0 obj=0x12e33310 self=0xa7d8e400
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] | sysTid=11458 nice=0 cgrp=default sched=0/0 handle=0xae827920
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] | state=S schedstat=( 2097137 2249945 18 ) utm=0 stm=0 core=5 HZ=100
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] | stack=0xae72b000-0xae72d000 stackSize=1014KB
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] | held mutexes=
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #00 pc 00048bbc /system/lib/libc.so (pselect6+20)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #01 pc 0001d01d /system/lib/libc.so (select+88)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #02 pc 003f83f7 /system/lib/libart.so (_ZN3art4JDWP12JdwpAdbState15ProcessIncomingEv+302)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #03 pc 00246907 /system/lib/libart.so (_ZN3art4JDWP9JdwpState3RunEv+650)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #04 pc 002460ab /system/lib/libart.so (_ZN3art4JDWPL15StartJdwpThreadEPv+22)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #05 pc 00047503 /system/lib/libc.so (_ZL15pthread_startPv+22)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #06 pc 00019ded /system/lib/libc.so (start_thread+6)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] (no managed stack frames)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403]
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] "ReferenceQueueDaemon" prio=5 tid=5 Waiting
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] | group="" sCount=1 dsCount=0 obj=0x12e333a0 self=0x9e4eab00
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] | sysTid=11459 nice=0 cgrp=default sched=0/0 handle=0xae728920
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] | state=S schedstat=( 197916 20572 6 ) utm=0 stm=0 core=4 HZ=100
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] | stack=0xae626000-0xae628000 stackSize=1038KB
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] | held mutexes=
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #00 pc 000177ac /system/lib/libc.so (syscall+28)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #01 pc 000b643d /system/lib/libart.so (_ZN3art17ConditionVariable16WaitHoldingLocksEPNS_6ThreadE+92)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #02 pc 0029d147 /system/lib/libart.so (_ZN3art7Monitor4WaitEPNS_6ThreadExibNS_11ThreadStateE+514)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #03 pc 0029e8ab /system/lib/libart.so (_ZN3art7Monitor4WaitEPNS_6ThreadEPNS_6mirror6ObjectExibNS_11ThreadStateE+258)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #04 pc 002ad013 /system/lib/libart.so (_ZN3artL11Object_waitEP7_JNIEnvP8_jobject+32)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] native: #05 pc 00000557 /system/framework/arm/boot.oat (Java_java_lang_Object_wait+74)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] at java.lang.Object.wait!(Native method)
09-08 08:44:22.551: A/art(11451): art/runtime/runtime.cc:403] - waiting on <0x02995290> (a java.lang.Class
The error messages indicate that the project may have been initially used in an earlier version of Delphi (perhaps Delphi 11.0), then compiled again in Delphi 11.1. Please refer to this solution: https://github.com/DelphiWorlds/HowTo/tree/main/Solutions/AndroidServiceDelphi111
I'm getting this error after adding the "play-services-location.16.0.0.jar" in new project
[PAClient Error] Error: E7688 Unable to execute '"C:\Program Files\AdoptOpenJDK\jdk-8.0.242.08-hotspot\bin\java.exe" -cp "c:\program files (x86)\embarcadero\studio\ 22.0\bin\Android\r8-3.0.73.jar" com.android.tools.r8.D8 --release --min-api 23 --output "C:\Development\ZapCargas\Mobile\Android\Release\ZapCargasCelular .classes" @"C:\Development\ZapCargas\Mobile\Android\Release\dex_list.txt"' (Error 1) [PAClient Error] Error: E7688 Error in c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\play-services-location-18.0.0.dex.jar:classes.dex: [PAClient Error] Error: E7688 Type com.google.android.gms.internal.location.zza is defined multiple times: c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\play-services -location-18.0.0.dex.jar:classes.dex, C:\Development\ZapCargas\Mobile\Android\Release\play-services-location-16.0.0-dexed.jar:classes.dex [PAClient Error] Error: E7688 Compilation failed [PAClient Error] Error: E7688 Exception in thread "main" java.lang.RuntimeException: com.android.tools.r8.CompilationFailedException: Compilation failed to complete, origin: c:\program files (x86)\embarcadero\studio\22.0 \lib\android\Release\play-services-location-18.0.0.dex.jar:classes.dex [PAClient Error] Error: E7688 at com.android.tools.r8.utils.w.a(SourceFile:92) [PAClient Error] Error: E7688 at com.android.tools.r8.D8.main(D8.java:4) [PAClient Error] Error: E7688 Caused by: com.android.tools.r8.CompilationFailedException: Compilation failed to complete, origin: c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\play- services-location-18.0.0.dex.jar:classes.dex [PAClient Error] Error: E7688 at Version.fakeStackEntry(Version_3.0.73.java:0) [PAClient Error] Error: E7688 at com.android.tools.r8.utils.w.a(SourceFile:68) [PAClient Error] Error: E7688 at com.android.tools.r8.utils.w.a(SourceFile:28) [PAClient Error] Error: E7688 at com.android.tools.r8.utils.w.a(SourceFile:27)
and message onclick ChangeStateButtonClick
Accessing hidden method Landroid/view/MotionEvent;->
I'm getting this error after adding the "play-services-location.16.0.0.jar" in new project
That needs to be done only when using Delphi 10.4.x or earlier. Please refer to the CPLAndroidGroupD11 group project that comes with the demo.
Accessing hidden method Landroid/view/MotionEvent;->()V (max-target-o, JNI, denied)
This is just a warning, and can be ignored
but the service never starts… unfortunately I can't do the service in my application
Are you adding the service to your application? Please refer to the "Adding an Android Service to an application" section in this documentation
yes i am adding your demo service in my application
Again, a log cat viewer might help work out why
09-12 07:58:57.277: E/GooglePlayServicesUtil(26144): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
09-12 07:58:57.305: E/ActivityThread(26144): Service com.embarcadero.services.CrossPlatformLocationService has leaked IntentReceiver com.delphiworlds.kastri.DWMultiBroadcastReceiver@fd4f9a6 that was originally registered here. Are you missing a call to unregisterReceiver()?
09-12 07:58:57.305: E/ActivityThread(26144): android.app.IntentReceiverLeaked: Service com.embarcadero.services.CrossPlatformLocationService has leaked IntentReceiver com.delphiworlds.kastri.DWMultiBroadcastReceiver@fd4f9a6 that was originally registered here. Are you missing a call to unregisterReceiver()?
09-12 07:58:57.305: E/ActivityThread(26144): at android.app.LoadedApk$ReceiverDispatcher.
It's returning messages in cat. In this project I use several functions and libraries from kastri itself and Skia4Dephi only, of course in the app the service and the demo itself.
Have you made all the necessary changes to AndroidManifest.template.xml
? Compare with what is in the demo. Also ensure that you have dw-fusedlocation.jar and dw-kastri-base-2.0.0.jar added to your project.
my Manifest https://textuploader.com/tt6th
I added all the jar files and changed the manifest. As soon as I release the coordinates permissions it kills the application.
As soon as I release the coordinates permissions it kills the application
You should show what your code is doing at that point. The logcat dump that you provided does not appear to show all of the messages related to the issue.
at this point only replication of the demo code.
at this point only replication of the demo code.
Not sure I can help, then - the demo works for me
able to start and send the codernadas to the server, but when I close the app I get the following error message.. and then the app doesn't open anymore
09-12 14:30:35.134: A/libc(18262): Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 18262 (stemas.zapcarga), pid 18262 (stemas.zapcarga)
do you know this message?
09-12 16:16:21.506: E/AndroidRuntime(27422): FATAL EXCEPTION: main 09-12 16:16:21.506: E/AndroidRuntime(27422): Process: com.cruxsistemas.zapcarga, PID: 27422 09-12 16:16:21.506: E/AndroidRuntime(27422): com.embarcadero.rtl.NativeDispatchException: RTTI for type onNmeaMessage was not found. Perhaps missing {$M+}? 09-12 16:16:21.506: E/AndroidRuntime(27422): at com.embarcadero.services.CrossPlatformLocationServiceProxyInterface.dispatchToNative2(Native Method) 09-12 16:16:21.506: E/AndroidRuntime(27422): at com.embarcadero.services.CrossPlatformLocationServiceProxyInterface.invoke(CrossPlatformLocationServiceProxyInterface.java:26) 09-12 16:16:21.506: E/AndroidRuntime(27422): at java.lang.reflect.Proxy.invoke(Proxy.java:1006) 09-12 16:16:21.506: E/AndroidRuntime(27422): at $Proxy4.onNmeaMessage(Unknown Source) 09-12 16:16:21.506: E/AndroidRuntime(27422): at android.location.LocationManager$GnssNmeaTransport.lambda$onNmeaReceived$0(LocationManager.java:3365) 09-12 16:16:21.506: E/AndroidRuntime(27422): at android.location.LocationManager$GnssNmeaTransport$$ExternalSyntheticLambda0.accept(Unknown Source:6) 09-12 16:16:21.506: E/AndroidRuntime(27422): at com.android.internal.listeners.ListenerTransport.lambda$execute$0(ListenerTransport.java:60) 09-12 16:16:21.506: E/AndroidRuntime(27422): at com.android.internal.listeners.ListenerTransport$$ExternalSyntheticLambda0.run(Unknown Source:4) 09-12 16:16:21.506: E/AndroidRuntime(27422): at android.os.Handler.handleCallback(Handler.java:938) 09-12 16:16:21.506: E/AndroidRuntime(27422): at android.os.Handler.dispatchMessage(Handler.java:99) 09-12 16:16:21.506: E/AndroidRuntime(27422): at android.os.Looper.loopOnce(Looper.java:201) 09-12 16:16:21.506: E/AndroidRuntime(27422): at android.os.Looper.loop(Looper.java:288) 09-12 16:16:21.506: E/AndroidRuntime(27422): at android.app.ActivityThread.main(ActivityThread.java:7880) 09-12 16:16:21.506: E/AndroidRuntime(27422): at java.lang.reflect.Method.invoke(Native Method) 09-12 16:16:21.506: E/AndroidRuntime(27422): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:568) 09-12 16:16:21.506: E/AndroidRuntime(27422): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1045)
Is it necessary to put the conditional LOCATION RECEIVER? When I put the app crashes, removing it loads but gives an error after a few seconds of closing.
09-12 16:16:21.506: E/AndroidRuntime(27422): com.embarcadero.rtl.NativeDispatchException: RTTI for type onNmeaMessage was not found. Perhaps missing {$M+}?
I have no idea why this error would happen. If you're unable to resolve it some other way, you could try removing lines 204-206 from the DW.Location.FusedLocation.Android
unit in the Features\Location
folder
Is it necessary to put the conditional LOCATION RECEIVER?
LOCATIONRECEIVER
isn't used any more, so I don't know why removing the conditional define would make any difference
When I close the application it loads a notification icon informing that the system is being monitored ("Monitoring location changes") great it runs normally sending the coordinates to the server... but when I have to open the app again to the foreground it simply hangs... I repeat the operation a few times, then the icon closes, (I imagine the service is stopped) and with that the app opens normally again.
When I load the system (in the foreground again) shouldn't this icon come up?
when I have to open the app again to the foreground it simply hangs
Again, use a logcat viewer to see whether there are any messages that might indicate why it is hanging
LG G5 - Android 7.0
09-13 07:51:03.703: E/DWFusedLocationClient(9412): Location settings are inadequate, and cannot be fixed here. Please fix in Settings. 09-13 07:51:03.714: D/AndroidRuntime(9412): Shutting down VM 09-13 07:51:03.718: E/AndroidRuntime(9412): FATAL EXCEPTION: main 09-13 07:51:03.718: E/AndroidRuntime(9412): Process: com.cruxsistemas.zapcarga, PID: 9412 09-13 07:51:03.718: E/AndroidRuntime(9412): com.embarcadero.rtl.NativeDispatchException: Invoke error: method 'onLocationSettingsChange(Z)V' not found 09-13 07:51:03.718: E/AndroidRuntime(9412): at com.embarcadero.services.CrossPlatformLocationServiceProxyInterface.dispatchToNative2(Native Method) 09-13 07:51:03.718: E/AndroidRuntime(9412): at com.embarcadero.services.CrossPlatformLocationServiceProxyInterface.invoke(CrossPlatformLocationServiceProxyInterface.java:26) 09-13 07:51:03.718: E/AndroidRuntime(9412): at java.lang.reflect.Proxy.invoke(Proxy.java:813) 09-13 07:51:03.718: E/AndroidRuntime(9412): at $Proxy20.onLocationSettingsChange(Unknown Source) 09-13 07:51:03.718: E/AndroidRuntime(9412): at com.delphiworlds.kastri.DWFusedLocationClient$4.onFailure(DWFusedLocationClient.java:235) 09-13 07:51:03.718: E/AndroidRuntime(9412): at com.google.android.gms.tasks.zzk.run(com.google.android.gms:play-services-tasks@@17.2.0:4) 09-13 07:51:03.718: E/AndroidRuntime(9412): at android.os.Handler.handleCallback(Handler.java:751) 09-13 07:51:03.718: E/AndroidRuntime(9412): at android.os.Handler.dispatchMessage(Handler.java:95) 09-13 07:51:03.718: E/AndroidRuntime(9412): at android.os.Looper.loop(Looper.java:154) 09-13 07:51:03.718: E/AndroidRuntime(9412): at android.app.ActivityThread.main(ActivityThread.java:6311) 09-13 07:51:03.718: E/AndroidRuntime(9412): at java.lang.reflect.Method.invoke(Native Method) 09-13 07:51:03.718: E/AndroidRuntime(9412): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:872) 09-13 07:51:03.718: E/AndroidRuntime(9412): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:762)
Nokia 2.4 - Android 12
09-13 08:01:53.855: W/stemas.zapcarg(15363): Accessing hidden method Landroid/util/Log;->
Kastri demo has the same error on LG G5 with android 7
LG G5 - Android 7.0 09-13 07:51:03.703: E/DWFusedLocationClient(9412): Location settings are inadequate, and cannot be fixed here. Please fix in Settings
This means that the location settings on the device are insufficient for the demo to work. You will need to adjust them in the Android Settings app.
Nokia 2.4 - Android 12
For this device, there does not appear to be any messages that indicate there is a problem. You may have missed including the actual errors that are causing the problem.
Dave, using Device Lens to debug both the demo and my app I verified that when mine only opens when this info appears "DWFusedLocationClient All location settings are satisfied." "DWFusedLocationClient Calling mDelegate.onLocationUpdatesChange"
after I close my application the service no these commands are not sent to the service as in your demo
"LocalReceiverReceive received command: 2" "Starting foreground.." "CompatibilityChangeReporter Compat change id reported: 160794467; UID 10226; state: DISABLED"
after I close my application the service no these commands are not sent to the service as in your demo
You mean they are sent in the demo, but not your app? If so, then perhaps you have left out code that is in the demo?
I'm actually using the demo service ("CrossPlatformLocationService"). I just added the codes in the main form and of course the service to the project, but the .jar files and changed the manifest
exist dw-fusedlocation-2.0.0-jar.json for D11?
exist dw-fusedlocation-2.0.0-jar.json for D11?
That is for Delphi 11
Hello, I'm still 'fighting' to solve my 'problem' can I send you the messages I receive in the logcat of the demo and my app?
DEMO:
LocalReceiverReceive received command: 2
Starting foreground..
Compat change id reported: 160794467; UID 10215; state: DISABLED
ged_boost_gpu_freq, level 100, eOrigin 2, final_idx 2, oppidx_max 2, oppidx_min 0
SurfaceView[com.embarcadero.CrossPlatformLocationD11/com.embarcadero.firemonkey.FMXNativeActivity]#2(BLAST Consumer)2 disconnect: api 1
SurfaceView[com.embarcadero.CrossPlatformLocationD11/com.embarcadero.firemonkey.FMXNativeActivity]#2(BLAST Consumer)2 disconnect: not connected (req=1)
EGLNativeWindowType 0xa634fbf8 disconnect failed
[SurfaceView[com.embarcadero.CrossPlatformLocationD11/com.embarcadero.firemonkey.FMXNativeActivity]#2] destructor()
SurfaceView[com.embarcadero.CrossPlatformLocationD11/com.embarcadero.firemonkey.FMXNativeActivity]#2(BLAST Consumer)2 disconnect
releaseBufferCallbackThunk bufferId:101631811125249 framenumber:27 blastBufferQueue is dead
Late-enabling -Xcheck:jni
Binder ioctl to enable oneway spam detection failed: Invalid argument
Compat change id reported: 171979766; UID 10215; state: DISABLED
ANGLE Developer option for 'com.embarcadero.CrossPlatformLocationD11' set to: 'default'
Neither updatable production driver nor prerelease driver is supported.
No Network Security Config specified, using platform default
No Network Security Config specified, using platform default
Accessing hidden method Landroid/util/Log;->
APP:
LocalReceiverReceive received command: 2
Starting foreground..
Compat change id reported: 160794467; UID 10005; state: DISABLED
Svc: 09-23 16:04:06.870: Service entered foreground mode
releaseBufferCallbackThunk bufferId:136558485176322 framenumber:3 blastBufferQueue is dead
Destroy
_release native called
_release native finished
ged_boost_gpu_freq, level 100, eOrigin 2, final_idx 2, oppidx_max 2, oppidx_min 0
SurfaceView[com.cruxsistemas.zapcarga/com.embarcadero.firemonkey.FMXNativeActivity]#2(BLAST Consumer)2 disconnect: api 1
SurfaceView[com.cruxsistemas.zapcarga/com.embarcadero.firemonkey.FMXNativeActivity]#2(BLAST Consumer)2 disconnect: not connected (req=1)
EGLNativeWindowType 0xa635ac48 disconnect failed
[SurfaceView[com.cruxsistemas.zapcarga/com.embarcadero.firemonkey.FMXNativeActivity]#2] destructor()
SurfaceView[com.cruxsistemas.zapcarga/com.embarcadero.firemonkey.FMXNativeActivity]#2(BLAST Consumer)2 disconnect
releaseBufferCallbackThunk bufferId:136558485176321 framenumber:6 blastBufferQueue is dead
Thread[2,tid=31808,WaitingInMainSignalCatcherLoop,Thread*=0xa2280010,peer=0x12f404f8,"Signal Catcher"]: reacting to signal 3
Wrote stack traces to tombstoned
obtaining output fd from tombstoned, type: kDebuggerdNativeBacktrace
performing dump of process 724 (target tid = 724)
Late-enabling -Xcheck:jni
Binder ioctl to enable oneway spam detection failed: Invalid argument
Compat change id reported: 171979766; UID 10005; state: DISABLED
No Network Security Config specified, using platform default
No Network Security Config specified, using platform default
Accessing hidden method Landroid/util/Log;->
the error message jumps on the screen moments after this message is logged "Wrote stack traces to tombstoned"
Without seeing your project code, it would be hard to tell what is causing your issue
I'm really desperate lol, if you want I'll send you the whole project by email. would you do me this kindness?
I noticed that if I cause a memory leak before "inherited;" the error message does not appear.
destructor TMainView.Destroy; begin {$IF Defined(ANDROID)} FRreceiver.Free; {$ENDIF} FLocation.Free; FreeAndNil(dmConnection); inherited; end;
I'll send you the whole project by email
You may send it to: davidn@radsoft.com.au. Preferably the project should contain the minimum required to reproduce the issue.
send to e-mail!
I was testing the CrossPlatformLocation project in the Delphi 11.2 IDE on an Android 12 device and noticed the following issue. Autostart of the service works acceptable on the Android 32-bit platform and autostart does not work on the Android 64-bit platform. Can you explain this to me? Thanks.
This sounds like a separate issue. Please file another report for this
Android kills the application right after giving the permissions. and is always closed. Using the demo and the only change and cUpdaterLocationURL = '192.168.1.114:8080/insert'; // Replace this with the URL you send updates to
D11