Android Question (SOLVED)Random error on starting App

tigrot

Well-Known Member
Licensed User
Longtime User
Hi everybody,
I get a random error:
B4X:
Logger connected to:  samsung GT-I9060
--------- beginning of /dev/log/main
com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization.
Could not find method android.content.Context.getNoBackupFilesDir, referenced from method com.google.android.gms.common.util.zzx.getNoBackupFilesDir
VFY: unable to resolve virtual method 426: Landroid/content/Context;.getNoBackupFilesDir ()Ljava/io/File;
VFY: replacing opcode 0x6e at 0x0008
Considering local module com.google.android.gms.flags:2 and remote module com.google.android.gms.flags:0
Selected local version of com.google.android.gms.flags
Local module descriptor class for com.google.android.gms.crash not found.
Considering local module com.google.android.gms.crash:0 and remote module com.google.android.gms.crash:4
Selected remote version of com.google.android.gms.crash, version >= 4
DexOpt: couldn't find static field Landroid/os/Build;.SUPPORTED_64_BIT_ABIS
VFY: unable to resolve static field 29 (SUPPORTED_64_BIT_ABIS) in Landroid/os/Build;
VFY: replacing opcode 0x62 at 0x0012
DexOpt: couldn't find static field Landroid/os/Build;.SUPPORTED_32_BIT_ABIS
VFY: unable to resolve static field 28 (SUPPORTED_32_BIT_ABIS) in Landroid/os/Build;
VFY: replacing opcode 0x62 at 0x0021
DexOpt: couldn't find static field Landroid/os/Build;.SUPPORTED_64_BIT_ABIS
VFY: unable to resolve static field 29 (SUPPORTED_64_BIT_ABIS) in Landroid/os/Build;
VFY: replacing opcode 0x62 at 0x0008
DexOpt: couldn't find static field Landroid/os/Build;.SUPPORTED_64_BIT_ABIS
DexOpt: unable to optimize static field ref 0x001d at 0x17 in Lv;.a
DexOpt: couldn't find static field Landroid/os/Build;.SUPPORTED_32_BIT_ABIS
DexOpt: unable to optimize static field ref 0x001c at 0x26 in Lv;.a
DexOpt: couldn't find static field Landroid/os/Build;.SUPPORTED_64_BIT_ABIS
DexOpt: unable to optimize static field ref 0x001d at 0x0d in Lv;.b
Could not find method b.createCredentialProtectedStorageContext, referenced from method c.createCredentialProtectedStorageContext
VFY: unable to resolve virtual method 181: Lb;.createCredentialProtectedStorageContext ()Landroid/content/Context;
VFY: replacing opcode 0x6f at 0x0002
Could not find method b.createDeviceProtectedStorageContext, referenced from method c.createDeviceProtectedStorageContext
VFY: unable to resolve virtual method 182: Lb;.createDeviceProtectedStorageContext ()Landroid/content/Context;
VFY: replacing opcode 0x6f at 0x0002
FirebaseCrashApiImpl created by ClassLoader p[dexPath=/data/data/com.google.android.gms/app_chimera/m/0000001a/DynamiteModulesC_GmsCore_prod_hdpi_release.apk,libraryPath=/data/data/com.google.android.gms/app_chimera/m/0000001a/n/armeabi-v7a:/data/data/com.google.android.gms/app_chimera/m/0000001a/n/armeabi]
Considering local module com.google.android.gms.flags:2 and remote module com.google.android.gms.flags:0
Selected local version of com.google.android.gms.flags
Could not find method java.util.Locale.toLanguageTag, referenced from method boq.y
VFY: unable to resolve virtual method 10343: Ljava/util/Locale;.toLanguageTag ()Ljava/lang/String;
VFY: replacing opcode 0x6e at 0x0013
Local module descriptor class for com.google.android.gms.crash not found.
DexOpt: couldn't find static field Luw;.common_full_open_on_phone
VFY: unable to resolve static field 4955 (common_full_open_on_phone) in Luw;
VFY: replacing opcode 0x60 at 0x0060
DexOpt: couldn't find static field Luy;.common_google_play_services_notification_ticker
VFY: unable to resolve static field 4965 (common_google_play_services_notification_ticker) in Luy;
VFY: replacing opcode 0x60 at 0x0092
DexOpt: couldn't find static field Luy;.common_open_on_phone
DexOpt: unable to optimize static field ref 0x136d at 0x62 in Lail;.a
Could not find method android.content.pm.PackageManager.getPackageInstaller, referenced from method aiy.a
VFY: unable to resolve virtual method 2339: Landroid/content/pm/PackageManager;.getPackageInstaller ()Landroid/content/pm/PackageInstaller;
VFY: replacing opcode 0x6e at 0x001c
Could not find method android.os.UserManager.getApplicationRestrictions, referenced from method aiy.a
VFY: unable to resolve virtual method 2968: Landroid/os/UserManager;.getApplicationRestrictions (Ljava/lang/String;)Landroid/os/Bundle;
VFY: replacing opcode 0x6e at 0x0065
Could not find method android.os.UserManager.getApplicationRestrictions, referenced from method com.google.android.gms.common.zzg.zzaK
VFY: unable to resolve virtual method 1555: Landroid/os/UserManager;.getApplicationRestrictions (Ljava/lang/String;)Landroid/os/Bundle;
VFY: replacing opcode 0x6e at 0x0015
Could not find method android.content.pm.PackageManager.getPackageInstaller, referenced from method com.google.android.gms.common.zzg.zzz
VFY: unable to resolve virtual method 558: Landroid/content/pm/PackageManager;.getPackageInstaller ()Landroid/content/pm/PackageInstaller;
VFY: replacing opcode 0x6e at 0x0015
App measurement is starting up, version: 10298
To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
Could not find class 'android.app.AppOpsManager', referenced from method com.google.android.gms.internal.zzadf.zzg
VFY: unable to resolve check-cast 40 (Landroid/app/AppOpsManager;) in Lcom/google/android/gms/internal/zzadf;
VFY: replacing opcode 0x1f at 0x0012
To enable faster debug mode event logging run:
  adb shell setprop debug.firebase.analytics.app it.whereami.logicdata
FirebaseCrash reporting initialized com.google.android.gms.internal.zzbnq@4183f8e8
FirebaseApp initialization successful
Starting remote logger. Port: 29816
** Service (starter) Create **

** Service (starter) Start **
GC_CONCURRENT freed 666K, 22% free 8802K/11240K, paused 2ms+1ms, total 29ms
GC_FOR_ALLOC freed 50K, 22% free 8863K/11240K, paused 25ms, total 25ms
Grow heap (frag case) to 10.522MB for 147472-byte allocation
GC_FOR_ALLOC freed 3K, 21% free 9004K/11388K, paused 13ms, total 13ms
adjustAdaptiveCoef max=4194304, min=1048576, ut=568
GC_FOR_ALLOC freed <1K, 21% free 9004K/11388K, paused 15ms, total 15ms
Parent view is not a TextView
** Service (starter) Start **
gHwMemAllocator client 1
gHwMemAllocator client 2
loaded /system/lib/egl/libGLES_java.so
mem_init ++
gHwMemAllocator client 3
**** Using ION allocator ****
registered SIGUSR1[10] for pid[1965]
HwMemAllocatorImpl Static Counters 0 0
HwMemAllocatorImpl[50ecddcc] totalDeviceAllocSize[0] totalFree[0] maxFree[0] in numSlabs[0]
mem_init 50ecddcc--
config: version(0x10000) secure(0xf000) 256M(0x22d) fast(0x608) hwwr(0x608)
Waiting for mm thread to come up
mm_device_thread starting
Enabling debug mode 0
Tag Manager is not found and thus will not be used
Remote logger timeout: 1
Starting remote logger. Port: 29816
After accept
GC_FOR_ALLOC freed 313K, 21% free 9395K/11764K, paused 40ms, total 40ms
GC_CONCURRENT freed 277K, 20% free 9501K/11764K, paused 12ms+2ms, total 37ms
-1 received
writer error
java.lang.InterruptedException
    at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:1993)
    at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2028)
    at java.util.concurrent.ArrayBlockingQueue.take(ArrayBlockingQueue.java:372)
    at anywheresoftware.b4a.remotelogger.Connector$Writer.run(Connector.java:160)
    at java.lang.Thread.run(Thread.java:856)
Starting remote logger. Port: 29816
After accept
GC_FOR_ALLOC freed 114K, 20% free 9435K/11752K, paused 19ms, total 19ms
ignoring event: activity_keypress
GC_CONCURRENT freed 302K, 19% free 9528K/11752K, paused 5ms+2ms, total 30ms

On user request I terminate Main activity, leaving Starter running. When I start App from Icon, sometimes the main Activity doesn't start.
I compiled with 6.80.
The action on startup is (in Starter):
B4X:
Sub Service_Create
   FusedLocationProvider1.Initialize("FusedLocationProvider1")
   timer.Initialize("tim",30000)
   locazione.Initialize()
   analytics.Initialize
End Sub
I don't see anything wrong in this code.
Any advice?
Thank you in advance!

Mauro
 
Top