Android Question Unfortunately, Application has Stop

b.neo

Member
Hi All,
I want to ask about the application that stopped unexpectedly.
i'm newbie here, maybe it's like a Dumb Question

maybe, i am facing a situation which is probably the same as this thread https://www.b4x.com/android/forum/threads/unfortunately-application-has-stop.104293/
I made a simple application regarding the POI map.
Unfortunately, when installed on a certain cellphone, the application does not load properly. on my Redmi cellphone the error message "Unfortunately, Application has stopped" appears

but when I debugged on the emulator or cellphone with a B4A-Bridge connection, it didn't happen. The application runs smoothly.

this is log activity on debug mode

Log Activity on Debug Mode:
>>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
CheckJNI is OFF
Failed to bind-mount /system/lib/x86/cpuinfo as /proc/cpuinfo: No such file or directory
Cannot create code cache directory ./code_cache: Read-only file system.
Couldn't load memtrack module (No such file or directory)
failed to load memtrack module: -2
Calling main entry com.android.commands.pm.Pm
Copying /data/local/tmp/AKM_RAPID_DEBUG.apk to base.apk
Renaming /data/app/vmdl2035248565.tmp to /data/app/AKM.B4A-2
Force stopping AKM.B4A appid=10062 user=-1: uninstall pkg
Package AKM.B4A codePath changed from /data/app/AKM.B4A-1 to /data/app/AKM.B4A-2; Retaining data and using new
Package AKM.B4A desires unavailable shared library org.apache.http.legacy; ignoring!
Code path for pkg : AKM.B4A changing from /data/app/AKM.B4A-1 to /data/app/AKM.B4A-2
Resource path for pkg : AKM.B4A changing from /data/app/AKM.B4A-1 to /data/app/AKM.B4A-2
Force stopping AKM.B4A appid=10062 user=-1: update pkg
Unknown permission AKM.B4A.permission.MAPS_RECEIVE in package AKM.B4A
Unknown permission android.permission.FOREGROUND_SERVICE in package AKM.B4A
Force stopping AKM.B4A appid=10062 user=0: pkg removed
Reconfiguring input devices.  changes=0x00000010
Reconfiguring input devices.  changes=0x00000010
PackageAdded: package:AKM.B4A
Explicit concurrent mark sweep GC freed 18358(715KB) AllocSpace objects, 5(2MB) LOS objects, 40% free, 18MB/30MB, paused 561us total 22.421ms
Reconfiguring input devices.  changes=0x00000010
Setting install_non_market_apps has moved from android.provider.Settings.Global to android.provider.Settings.Secure, returning read-only value.
Explicit concurrent mark sweep GC freed 48936(2MB) AllocSpace objects, 24(354KB) LOS objects, 33% free, 18MB/27MB, paused 501us total 43.357ms
WaitForGcToComplete blocked for 14.624ms for cause Explicit
Calling a method in the system process without a qualified user: android.app.ContextImpl.startService:1712 android.content.ContextWrapper.startService:516 android.content.ContextWrapper.startService:516 com.android.keychain.KeyChainBroadcastReceiver.onReceive:12 android.app.ActivityThread.handleReceiver:2614
setApplicationContext called twice! old=com.vphone.launcher.LauncherApplication@2ec0d19c new=com.vphone.launcher.LauncherApplication@2ec0d19c
Receieved: android.intent.action.PACKAGE_REMOVED
Received broadcast Intent { act=android.intent.action.PACKAGE_REMOVED dat=package:AKM.B4A flg=0x4000010 (has extras) }
Received broadcast Intent { act=android.intent.action.PACKAGE_ADDED dat=package:AKM.B4A flg=0x4000010 (has extras) }
Explicit concurrent mark sweep GC freed 5714(443KB) AllocSpace objects, 2(343KB) LOS objects, 23% free, 25MB/33MB, paused 632us total 132.026ms
Removing schedule queue dupe of AKM.B4A
Explicit concurrent mark sweep GC freed 3299(169KB) AllocSpace objects, 0(0B) LOS objects, 33% free, 18MB/27MB, paused 875us total 165.497ms
No global search activity found
Couldn't remove dex file for package:  at location /data/app/AKM.B4A-1/base.apk, retcode=-1
System.exit called, status: 0
VM exiting with result code 0.
No global search activity found
no available voice recognition services found for user 0
[1] uah.a(18): PackageMonitorReceiverImpl - Received: android.intent.action.PACKAGE_REMOVED, [22lA8QFx8TyT4UVg3IsxzqA3Ck3yddO0i464KY3ToXk]
[1] ubi.d(9): Invalidating cached PackageState for AKM.B4A
FitCleanupIntentOperation received Intent android.intent.action.PACKAGE_REMOVED [CONTEXT service_id=17 ]
step1
step2
step3  :3
step4  :com.vphone.game.registercenter
step4  :AKM.B4A
Deferring update until onResume
Deferring update until onResume
[1] lzi.c(2): Frosting ID looked up on UI thread. Caller should move to a background thread.
[1] nqb.c(3): Installer: package AKM.B4A was removed. replacing: true
Asset path '/system/framework/com.google.android.media.effects.jar' does not exist or contains no resources.
[1] nra.a(188): Installer: Notifying status update. package=AKM.B4A, status=UNINSTALLED
[264] lyv.run(-1): Wrote row to frosting DB: 1240
[1] lzi.c(2): Frosting ID looked up on UI thread. Caller should move to a background thread.
Deferring update until onResume
[1] nra.a(220): Installer: found apps to install. isMultiUserMode=false, apps=[]
getNetworkInfo() on networkType 1
[264] lyv.run(-1): Wrote row to frosting DB: 1241
[266] ejf.a(-1): Cancelled 0 ongoing asset module downloads for package AKM.B4A due to a concurrent app update.
[173] odj.b(52): IQ: Notifying installation update. package=AKM.B4A, status=UNINSTALLED
[265] gzn.a(-1): [ContentSync] finished, scheduled=false
[173] odj.b(40): IQ: No matching installs to run for jobs: []
[1] uah.a(18): PackageMonitorReceiverImpl - Received: android.intent.action.PACKAGE_ADDED, [22lA8QFx8TyT4UVg3IsxzqA3Ck3yddO0i464KY3ToXk]
[1] ubi.d(9): Invalidating cached PackageState for AKM.B4A
[1] lzi.c(2): Frosting ID looked up on UI thread. Caller should move to a background thread.
[265] gzn.a(-1): [ContentSync] finished, scheduled=false
[1] agsx.a(4): Do not start WearSupportService due to Wear service optimization
[1] lzi.c(2): Frosting ID looked up on UI thread. Caller should move to a background thread.
setApplicationContext called twice! old=com.vphone.launcher.LauncherApplication@2ec0d19c new=com.vphone.launcher.LauncherApplication@2ec0d19c
[266] ejc.a(-1): Asset module broadcast after update successful for package AKM.B4A. 0 sessions broadcast.
[264] lyv.run(-1): Wrote row to frosting DB: 1242
Unable to start service Intent { act=com.google.android.gms.auth.key.retrieval.service.START pkg=com.google.android.gms } U=0: not found
Unbind failed: could not find connection for android.os.BinderProxy@10e3fa82
[264] lyv.run(-1): Wrote row to frosting DB: 1243
>>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
invalid stream - problem with parameter iterator in /data/app/com.google.android.gms-3/base.apk:classes3.dex for method void com.google.android.gms.org.conscrypt.ConscryptFileDescriptorSocket.setSoWriteTimeout(int)
invalid stream - problem with parameter iterator in /data/app/com.google.android.gms-3/base.apk:classes3.dex for method void com.google.android.gms.org.conscrypt.ConscryptFileDescriptorSocket.setSoWriteTimeout(int)
CheckJNI is OFF
Failed to bind-mount /system/lib/x86/cpuinfo as /proc/cpuinfo: No such file or directory
Cannot create code cache directory ./code_cache: Read-only file system.
Couldn't load memtrack module (No such file or directory)
failed to load memtrack module: -2
Calling main entry com.android.commands.am.Am
START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=AKM.B4A/.main} from uid 0 on display 0
addAppToken: AppWindowToken{3693a2e token=Token{3ca1d4a9 ActivityRecord{2a8b030 u0 AKM.B4A/.main t31}}} to stack=1 task=31 at 0
tid 1456: eglCreateSyncKHR(1482): error 0x3004 (EGL_BAD_ATTRIBUTE)
Shutting down VM
** Activity (main) Pause, UserClosed = false **
Start proc 5084:AKM.B4A/u0a62 for activity AKM.B4A/.main
Adding window Window{90753c7 u0 Starting AKM.B4A} at 4 of 9 (after Window{2bdc7a0e u0 anywheresoftware.b4a.b4abridge/anywheresoftware.b4a.b4abridge.main})
*** Debugger waiting for connection (0) ***
*** Debugger waiting for connection (0) ***
*** Debugger waiting for connection (0) ***
*** Debugger waiting for connection (0) ***
No package identifier when getting value for resource number 0x00000000
Failure retrieving resources for anywheresoftware.b4a.b4abridge: Resource ID #0x0
Displayed AKM.B4A/.main: +1s148ms
0xaec64c00 Launching thread(s), CPUs 2
*** Debugger waiting for connection (1) ***
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
ignoring event: tf_textchanged
ignoring event: tf_textchanged
Verification of void androidx.viewpager.widget.ViewPager.onMeasure(int, int) took 104.464ms
Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$2>
Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$2>
ignoring event: tf_textchanged
ignoring event: tf_textchanged
ignoring event: tf_textchanged
ignoring event: tf_textchanged
ignoring event: tf_textchanged
ignoring event: tf_textchanged
ignoring event: tf_textchanged
ignoring event: tf_textchanged
ignoring event: tf_textchanged
ignoring event: tf_textchanged
** Activity (main) Resume **
Skipped 52 frames!  The application may be doing too much work on its main thread.
Making Creator dynamically
mismatched stack depths (depth=1, incoming depth=2)
mismatched stack depths (depth=0, incoming depth=2)
Considering local module com.google.android.gms.maps_dynamite:0 and remote module com.google.android.gms.maps_dynamite:202614000
Selected remote version of com.google.android.gms.maps_dynamite, version >= 202614000
Dynamite loader version >= 2, using loadModule2NoCrashUtils
Asset path '/system/framework/com.android.media.remotedisplay.jar' does not exist or contains no resources.
Asset path '/system/framework/com.android.location.provider.jar' does not exist or contains no resources.
Google Play services client version: 12451000
Google Play services package version: 202614013
HostConnection::get() New Host Connection established 0xa34ef3e0, tid 5138
FLP connected
Starting location updates
Location Changed: (Location) Location[g -6.235262,106.863035 acc=6 et=+54m29s163ms alt=42.86338424682617 vel=0.31190196 mock {Bundle[mParcelledData.dataSize=44]}]
not Base app: Adding window Window{35ebbe9f u0 AKM.B4A/AKM.B4A.main} at 5 of 10
Background sticky concurrent mark sweep GC freed 42564(2MB) AllocSpace objects, 22(1455KB) LOS objects, 17% free, 16MB/20MB, paused 5.086ms total 83.656ms
update Geolocation lat: -6.235129068557535
update Geolocation lat: -6.235129068557535
Long monitor contention event with owner method=void com.android.server.wm.WindowAnimator$1.run() from WindowAnimator.java:124 waiters=0 for 178ms
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
Response from server: [{"id_rec":"20200805223242",nama_poi":"Ba
Message longer than Log limit (4000). Message was truncated.
Local module descriptor class for com.google.android.gms.googlecertificates not found.
Considering local module com.google.android.gms.googlecertificates:0 and remote module com.google.android.gms.googlecertificates:5
Selected remote version of com.google.android.gms.googlecertificates, version >= 5
Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@b72bad8 attribute=null, token = android.os.BinderProxy@194d5ed5
Location Changed: (Location) Location[g -6.235264,106.863036 acc=1 et=+54m32s173ms alt=43.93109893798828 vel=0.27702132 mock {Bundle[mParcelledData.dataSize=44]}]

my question is, how do i find the error? is there a log or error log that can be read for solution.

thank you
note: sorry, for my english.. it came from Google Translate
 

Attachments

  • 1597103276227.png
    1597103276227.png
    53.1 KB · Views: 73
  • 1597103423903.png
    1597103423903.png
    25.9 KB · Views: 63
Last edited:

b.neo

Member
Connect your device using USB Debugging.
The error should appear in the IDE Log.

thanks @DonManfred
I tried to install the application on another phone with "USB Debugging on".
unfortunately I can't find the IDE Log.

but i get an error message
error message:
The "application" runtime exception
The "application" is experiencing crashes. Please update to the new version as soon as posible.

do you know what the error message means?


Best regards
 
Upvote 0

b.neo

Member
after I re-learn and change the logic of the process in the application .. and of course..i use "another cellphone" to DEBUG the application,
application become run smoothly

In my analysis, the problem is caused by a request permission access for location that i call from service and another sub to takes geolocation.

problem solve.

thank you @Erel , @DonManfred , @agraham
 
Upvote 0
Top