Android Question App isn't responding

edgar_ortiz

Active Member
Licensed User
Longtime User
Hi,

I have a small project to capture the GPS position every 5 minutes.

But it's NOT working. sometimes hang (stop working) and other the services don't keep alive.

Any help is welcome.

Regards,

Edgar

P.D.:
Rename database.txt to database.db3
 

Attachments

  • Screenshot_20170122-004721.png
    Screenshot_20170122-004721.png
    138.6 KB · Views: 294
  • database.txt
    240 KB · Views: 252
  • GPS_Clientes.zip
    172.5 KB · Views: 218

Erel

B4X founder
Staff member
Licensed User
Longtime User
1. You need to use PhoneWakeState to acquire a partial lock if you want to keep the service running.
2. Remove any calls to DoEvents.
3. You need to find out which code causes the main thread to freeze. Close the app when you see the ANR dialog it should print more information in the logs.
Make sure to test it in release mode.
 
Upvote 0

edgar_ortiz

Active Member
Licensed User
Longtime User
1. You need to use PhoneWakeState to acquire a partial lock if you want to keep the service running.
2. Remove any calls to DoEvents.
3. You need to find out which code causes the main thread to freeze. Close the app when you see the ANR dialog it should print more information in the logs.
Make sure to test it in release mode.

Thanks for your advice... I'll try
 
Upvote 0

edgar_ortiz

Active Member
Licensed User
Longtime User
Hi,

I Try and found this information in the logs (of course I don't have any idea of what it means).


01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:43)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._get_format_date(rutinas.java:86)
01-25 20:56:56.651: I/B4A(15944): at GPS.Clientes.rutinas._write_log(rutinas.java:379)
01-25 20:57:00.791: W/Bundle(15944): at GPS.Clientes.starter._application_error(starter.java:158)
01-25 20:57:00.791: W/Bundle(15944): at GPS.Clientes.gps.handleStart(gps.java:102)
01-25 20:57:00.791: W/Bundle(15944): at GPS.Clientes.gps.access$000(gps.java:8)
01-25 20:57:00.791: W/Bundle(15944): at GPS.Clientes.gps$1.run(gps.java:77)
01-25 20:57:00.821: I/B4A(15944): ~e: at GPS.Clientes.starter._application_error(starter.java:158)
01-25 20:57:00.821: I/B4A(15944): ~e: at GPS.Clientes.gps.handleStart(gps.java:102)
01-25 20:57:00.821: I/B4A(15944): ~e: at GPS.Clientes.gps.access$000(gps.java:8)
01-25 20:57:00.821: I/B4A(15944): ~e: at GPS.Clientes.gps$1.run(gps.java:77)
01-25 20:57:00.821: I/B4A(15944): ~e: at GPS.Clientes.starter._application_error(starter.java:158)
01-25 20:57:00.821: I/B4A(15944): ~e: at GPS.Clientes.gps.handleStart(gps.java:102)
01-25 20:57:00.821: I/B4A(15944): ~e: at GPS.Clientes.gps.access$000(gps.java:8)
01-25 20:57:00.821: I/B4A(15944): ~e: at GPS.Clientes.gps$1.run(gps.java:77)
01-25 20:57:00.821: E/AndroidRuntime(15944): Process: GPS.Clientes, PID: 15944
01-25 20:57:00.821: E/AndroidRuntime(15944): at GPS.Clientes.starter._application_error(starter.java:158)
01-25 20:57:00.821: E/AndroidRuntime(15944): at GPS.Clientes.gps.handleStart(gps.java:102)
01-25 20:57:00.821: E/AndroidRuntime(15944): at GPS.Clientes.gps.access$000(gps.java:8)
01-25 20:57:00.821: E/AndroidRuntime(15944): at GPS.Clientes.gps$1.run(gps.java:77)
01-25 20:57:00.881: D/StatusBarManagerService(2558): manageDisableList userId=0 what=0x0 pkg=Window{5268c24 u0 d0 Application Error: GPS.Clientes}
01-25 20:57:00.901: V/WindowStateAnimator(2558): Finishing drawing window Window{5268c24 u0 d0 Application Error: GPS.Clientes}: mDrawState=DRAW_PENDING
01-25 20:57:00.901: V/WindowStateAnimator(2558): Finishing drawing window Window{5268c24 u0 d0 Application Error: GPS.Clientes}: mDrawState=HAS_DRAWN
01-25 20:57:02.491: I/ActivityManager(2558): Process GPS.Clientes (pid 15944)(adj 2) has died(90,690)
01-25 20:57:02.491: D/ActivityManager(2558): isAutoRunBlockedApp:: GPS.Clientes, Auto Run ON
01-25 20:57:02.491: W/ActivityManager(2558): Scheduling restart of crashed service GPS.Clientes/.starter in 1000ms
01-25 20:57:02.491: W/ActivityManager(2558): Service crashed 2 times, stopping: ServiceRecord{54253e u0 GPS.Clientes/.gps}
01-25 20:57:02.491: D/ActivityManager(2558): removeProcessNameLocked mProcessNames.remove pid=15944 ,hash=2500995 ,name=GPS.Clientes
01-25 20:57:02.491: D/PhoneStatusBar(3010): removeNotification key=0|GPS.Clientes|1|null|10262 old=StatusBarNotification(pkg=GPS.Clientes user=UserHandle{0} id=1 tag=null score=0 key=0|GPS.Clientes|1|null|10262: Notification(pri=0 contentView=GPS.Clientes/0x10900a3 vibrate=null sound=null defaults=0xfffffff8 flags=0x72 color=0x00000000 vis=PRIVATE secFlags=0x0 secPriority=0))

Note that the zip file in the original post is updated.

Any help is welcome.

Thanks in advance,

Edgar
 

Attachments

  • log 2017 01 25.txt
    9.1 KB · Views: 222
Upvote 0

edgar_ortiz

Active Member
Licensed User
Longtime User
Hi,

I made more "simple" "write_log"... and crash AGAIN :(

B4X:
Sub Write_Log (ParamPrograma As String, ParamInfo As String)
    Dim lcSqlComando As String
    Dim lcFecha As String
    '
    lcFecha = NumberFormat2(DateTime.GetYear(DateTime.Now),4,0,0,False) & "-" & _
                            NumberFormat2(DateTime.GetMonth(DateTime.Now),2,0,0,False) & "-" & _
                            NumberFormat2(DateTime.GetDayOfMonth(DateTime.Now),2,0,0,False) & " " & _
                            NumberFormat2(DateTime.GetHour(DateTime.Now),2,0,0,False) & ":" & _
                            NumberFormat2(DateTime.GetMinute(DateTime.Now),2,0,0,False) & ":" & _
                            NumberFormat2(DateTime.GetSecond(DateTime.Now),2,0,0,False)
    '
    lcSqlComando = "INSERT INTO sg_t_log (programa, fecha_hora, info) values (" & _
                                "^XXParamProgramaXX^," & _
                                "^" & lcFecha & "^, " & _
                                "^XXParamInfoXX^)"
    lcSqlComando    = lcSqlComando.Replace("XXParamProgramaXX", ParamPrograma)
    lcSqlComando    = lcSqlComando.Replace("XXParamInfoXX", ParamInfo)
    lcSqlComando    = lcSqlComando.Replace("^", Main.GlbComillas)
    Main.DBGPS.ExecNonQuery(lcSqlComando)
    '
End Sub

and logs says:

01-26 00:39:57.331: I/ActivityManager(2558): Killing 32506:GPS.Clientes/u0a263 (adj 15): DHA:SPC_empty #17
01-26 00:39:57.421: D/ActivityManager(2558): isAutoRunBlockedApp:: GPS.Clientes, Auto Run ON
01-26 00:39:57.421: W/ActivityManager(2558): Scheduling restart of crashed service GPS.Clientes/.starter in 1000ms
01-26 00:39:57.421: D/ActivityManager(2558): removeProcessNameLocked mProcessNames.remove pid=32506 ,hash=214524108 ,name=GPS.Clientes
01-26 00:40:11.261: I/Timeline(3278): Timeline: Activity_launch_request id:GPS.Clientes time:76041905
01-26 00:40:11.261: V/WindowManager(2558): addAppToken: AppWindowToken{d0184656c token=Token{1d9ce1f ActivityRecord{e036dbe u0 GPS.Clientes/.main t635}}} to stack=1 task=635 at 0
01-26 00:40:11.281: I/ActivityManager(2558): Start proc 570:GPS.Clientes/u0a263 for activity GPS.Clientes/.main
01-26 00:40:11.291: W/SELinux(570): SELinux: seapp_context_lookup: seinfo=default, level=s0:c512,c768, pkgname=GPS.Clientes
01-26 00:40:11.311: D/ActivityManager(2558): Launching GPS.Clientes, updated priority
01-26 00:40:11.311: V/MARsPolicyManager(2558): updatePackagesScore PackageInfo name -- GPS.Clientes
01-26 00:40:11.321: W/System(570): ClassLoader referenced unknown path: /data/app/GPS.Clientes-1/lib/arm
01-26 00:40:11.331: V/WindowStateAnimator(2558): Finishing drawing window Window{6cc84a3 u0 d0 Starting GPS.Clientes}: mDrawState=DRAW_PENDING
01-26 00:40:11.331: D/StatusBarManagerService(2558): manageDisableList userId=0 what=0x0 pkg=Window{6cc84a3 u0 d0 Starting GPS.Clientes}
01-26 00:40:11.481: D/libGLESv1(570): DTS_GLAPI : DTS is not allowed for Package : GPS.Clientes
01-26 00:40:11.501: V/WindowStateAnimator(2558): Finishing drawing window Window{5338415 u0 d0 GPS.Clientes/GPS.Clientes.main}: mDrawState=DRAW_PENDING
01-26 00:40:11.511: I/ActivityManager(2558): Displayed GPS.Clientes/.main: +237ms
01-26 00:40:11.531: D/ApplicationPolicy(2558): isStatusBarNotificationAllowedAsUser: packageName = GPS.Clientes,userId = 0
01-26 00:40:11.541: D/ApplicationPolicy(2558): isStatusBarNotificationAllowedAsUser: packageName = GPS.Clientes,userId = 0
01-26 00:40:11.541: D/MARsPolicyManager(2558): NotificationListenerService OngoingNotificationPosted : GPS.Clientes
01-26 00:40:11.571: D/ApplicationPolicy(2558): isStatusBarNotificationAllowedAsUser: packageName = GPS.Clientes,userId = 0
01-26 00:40:11.571: D/EdgeLight(2558): Turning on edge light for notification (NotificationRecord(0x0429b7f7: pkg=GPS.Clientes user=UserHandle{0} id=1 tag=null score=0 key=0|GPS.Clientes|1|null|10263: Notification(pri=0 contentView=null vibrate=default sound=default defaults=0xffffffff flags=0x73 color=0x00000000 vis=PRIVATE secFlags=0x0 secPriority=0))) with color=ffffffff
01-26 00:40:11.581: D/MARsPolicyManager(2558): NotificationListenerService OngoingNotificationPosted : GPS.Clientes
01-26 00:40:11.581: D/PhoneStatusBar(3010): removeNotification key=0|GPS.Clientes|2|null|10263 old=StatusBarNotification(pkg=GPS.Clientes user=UserHandle{0} id=2 tag=null score=0 key=0|GPS.Clientes|2|null|10263: Notification(pri=0 contentView=GPS.Clientes/0x10900a3 vibrate=null sound=null defaults=0xfffffff8 flags=0x10 color=0x00000000 vis=PRIVATE secFlags=0x0 secPriority=0))
01-26 00:40:11.641: I/AppOps(2558): sendInfoToFLP, code=41 , uid=10263 , packageName=GPS.Clientes , type=startOp
01-26 00:40:11.711: I/Timeline(2558): Timeline: Activity_windows_visible id: ActivityRecord{e036dbe u0 GPS.Clientes/.main t635} time:76042350
01-26 00:40:21.011: V/WindowStateAnimator(2558): Finishing drawing window Window{1ae9094 u0 d0 GPS.Clientes/GPS.Clientes.main}: mDrawState=DRAW_PENDING
01-26 00:40:21.031: V/WindowStateAnimator(2558): Finishing drawing window Window{1ae9094 u0 d0 GPS.Clientes/GPS.Clientes.main}: mDrawState=HAS_DRAWN
01-26 00:40:22.731: V/WindowStateAnimator(2558): Finishing drawing window Window{a9a31df u0 d0 GPS.Clientes/GPS.Clientes.main}: mDrawState=DRAW_PENDING
01-26 00:40:22.741: V/WindowStateAnimator(2558): Finishing drawing window Window{a9a31df u0 d0 GPS.Clientes/GPS.Clientes.main}: mDrawState=HAS_DRAWN
01-26 00:40:25.451: I/AppOps(2558): sendInfoToFLP, code=42 , uid=10263 , packageName=GPS.Clientes , type=startOp
01-26 00:40:26.551: I/AppOps(2558): sendInfoToFLP, code=41 , uid=10263 , packageName=GPS.Clientes , type=finishOp
01-26 00:40:26.551: I/AppOps(2558): sendInfoToFLP, code=42 , uid=10263 , packageName=GPS.Clientes , type=finishOp
01-26 00:40:26.561: D/MARsPolicyManager(2558): NotificationListenerService OngoingNotificationRemoved : GPS.Clientes
01-26 00:40:26.581: D/PhoneStatusBar(3010): removeNotification key=0|GPS.Clientes|1|null|10263 old=StatusBarNotification(pkg=GPS.Clientes user=UserHandle{0} id=1 tag=null score=0 key=0|GPS.Clientes|1|null|10263: Notification(pri=0 contentView=GPS.Clientes/0x10900a3 vibrate=default sound=default defaults=0xffffffff flags=0x73 color=0x00000000 vis=PRIVATE secFlags=0x0 secPriority=0))
01-26 00:40:27.991: D/StatusBarManagerService(2558): manageDisableList userId=0 what=0x0 pkg=Window{5338415 u0 d0 GPS.Clientes/GPS.Clientes.main}
01-26 00:40:29.351: W/VirtualScreenManagerService(2558): failed to move task TaskRecord{c44559f #635 A=GPS.Clientes U=0 sz=1}
01-26 00:40:30.431: D/PackageManager(2558): getComponentMetadataForIconTray : GPS.Clientes.main does not exist in mServices
01-26 00:40:30.431: D/PackageManager(2558): getComponentMetadataForIconTray : GPS.Clientes.main does not exist in mProviders
01-26 00:40:30.431: D/PackageManager(2558): getComponentMetadataForIconTray : GPS.Clientes.main does not exist in mReceivers
01-26 00:40:30.431: I/ApplicationPackageManager(3087): load=GPS.Clientes, bg=96-96, dr=122-122
01-26 00:40:33.181: I/ActivityManager(2558): Killing 570:GPS.Clientes/u0a263 (adj 16): remove task
01-26 00:40:33.281: D/ActivityManager(2558): isAutoRunBlockedApp:: GPS.Clientes, Auto Run ON
01-26 00:40:33.281: D/ActivityManager(2558): removeProcessNameLocked mProcessNames.remove pid=570 ,hash=25486941 ,name=GPS.Clientes
01-26 00:40:33.281: W/ActivityManager(2558): Scheduling restart of crashed service GPS.Clientes/.starter in 1000ms

----
----

01-26 00:40:11.261: I/Timeline(3278): Timeline: Activity_launch_request id:GPS.Clientes time:76041905
01-26 00:40:11.261: V/WindowManager(2558): addAppToken: AppWindowToken{d0184656c token=Token{1d9ce1f ActivityRecord{e036dbe u0 GPS.Clientes/.main t635}}} to stack=1 task=635 at 0
01-26 00:40:11.281: I/ActivityManager(2558): Start proc 570:GPS.Clientes/u0a263 for activity GPS.Clientes/.main
01-26 00:40:11.291: W/SELinux(570): SELinux: seapp_context_lookup: seinfo=default, level=s0:c512,c768, pkgname=GPS.Clientes
01-26 00:40:11.311: D/ActivityManager(2558): Launching GPS.Clientes, updated priority
01-26 00:40:11.311: V/MARsPolicyManager(2558): updatePackagesScore PackageInfo name -- GPS.Clientes
01-26 00:40:11.321: W/System(570): ClassLoader referenced unknown path: /data/app/GPS.Clientes-1/lib/arm
01-26 00:40:11.331: V/WindowStateAnimator(2558): Finishing drawing window Window{6cc84a3 u0 d0 Starting GPS.Clientes}: mDrawState=DRAW_PENDING
01-26 00:40:11.331: D/StatusBarManagerService(2558): manageDisableList userId=0 what=0x0 pkg=Window{6cc84a3 u0 d0 Starting GPS.Clientes}
01-26 00:40:11.481: D/libGLESv1(570): DTS_GLAPI : DTS is not allowed for Package : GPS.Clientes
01-26 00:40:11.501: V/WindowStateAnimator(2558): Finishing drawing window Window{5338415 u0 d0 GPS.Clientes/GPS.Clientes.main}: mDrawState=DRAW_PENDING
01-26 00:40:11.511: I/ActivityManager(2558): Displayed GPS.Clientes/.main: +237ms
01-26 00:40:11.531: D/ApplicationPolicy(2558): isStatusBarNotificationAllowedAsUser: packageName = GPS.Clientes,userId = 0
01-26 00:40:11.541: D/ApplicationPolicy(2558): isStatusBarNotificationAllowedAsUser: packageName = GPS.Clientes,userId = 0
01-26 00:40:11.541: D/MARsPolicyManager(2558): NotificationListenerService OngoingNotificationPosted : GPS.Clientes
01-26 00:40:11.571: D/ApplicationPolicy(2558): isStatusBarNotificationAllowedAsUser: packageName = GPS.Clientes,userId = 0
01-26 00:40:11.571: D/EdgeLight(2558): Turning on edge light for notification (NotificationRecord(0x0429b7f7: pkg=GPS.Clientes user=UserHandle{0} id=1 tag=null score=0 key=0|GPS.Clientes|1|null|10263: Notification(pri=0 contentView=null vibrate=default sound=default defaults=0xffffffff flags=0x73 color=0x00000000 vis=PRIVATE secFlags=0x0 secPriority=0))) with color=ffffffff
01-26 00:40:11.581: D/MARsPolicyManager(2558): NotificationListenerService OngoingNotificationPosted : GPS.Clientes
01-26 00:40:11.581: D/PhoneStatusBar(3010): removeNotification key=0|GPS.Clientes|2|null|10263 old=StatusBarNotification(pkg=GPS.Clientes user=UserHandle{0} id=2 tag=null score=0 key=0|GPS.Clientes|2|null|10263: Notification(pri=0 contentView=GPS.Clientes/0x10900a3 vibrate=null sound=null defaults=0xfffffff8 flags=0x10 color=0x00000000 vis=PRIVATE secFlags=0x0 secPriority=0))
01-26 00:40:11.641: I/AppOps(2558): sendInfoToFLP, code=41 , uid=10263 , packageName=GPS.Clientes , type=startOp
01-26 00:40:11.711: I/Timeline(2558): Timeline: Activity_windows_visible id: ActivityRecord{e036dbe u0 GPS.Clientes/.main t635} time:76042350
01-26 00:40:21.011: V/WindowStateAnimator(2558): Finishing drawing window Window{1ae9094 u0 d0 GPS.Clientes/GPS.Clientes.main}: mDrawState=DRAW_PENDING
01-26 00:40:21.031: V/WindowStateAnimator(2558): Finishing drawing window Window{1ae9094 u0 d0 GPS.Clientes/GPS.Clientes.main}: mDrawState=HAS_DRAWN
01-26 00:40:22.731: V/WindowStateAnimator(2558): Finishing drawing window Window{a9a31df u0 d0 GPS.Clientes/GPS.Clientes.main}: mDrawState=DRAW_PENDING
01-26 00:40:22.741: V/WindowStateAnimator(2558): Finishing drawing window Window{a9a31df u0 d0 GPS.Clientes/GPS.Clientes.main}: mDrawState=HAS_DRAWN
01-26 00:40:25.451: I/AppOps(2558): sendInfoToFLP, code=42 , uid=10263 , packageName=GPS.Clientes , type=startOp
01-26 00:40:26.551: I/AppOps(2558): sendInfoToFLP, code=41 , uid=10263 , packageName=GPS.Clientes , type=finishOp
01-26 00:40:26.551: I/AppOps(2558): sendInfoToFLP, code=42 , uid=10263 , packageName=GPS.Clientes , type=finishOp
01-26 00:40:26.561: D/MARsPolicyManager(2558): NotificationListenerService OngoingNotificationRemoved : GPS.Clientes
01-26 00:40:26.581: D/PhoneStatusBar(3010): removeNotification key=0|GPS.Clientes|1|null|10263 old=StatusBarNotification(pkg=GPS.Clientes user=UserHandle{0} id=1 tag=null score=0 key=0|GPS.Clientes|1|null|10263: Notification(pri=0 contentView=GPS.Clientes/0x10900a3 vibrate=default sound=default defaults=0xffffffff flags=0x73 color=0x00000000 vis=PRIVATE secFlags=0x0 secPriority=0))
01-26 00:40:27.991: D/StatusBarManagerService(2558): manageDisableList userId=0 what=0x0 pkg=Window{5338415 u0 d0 GPS.Clientes/GPS.Clientes.main}
01-26 00:40:29.351: W/VirtualScreenManagerService(2558): failed to move task TaskRecord{c44559f #635 A=GPS.Clientes U=0 sz=1}
01-26 00:40:30.431: D/PackageManager(2558): getComponentMetadataForIconTray : GPS.Clientes.main does not exist in mServices
01-26 00:40:30.431: D/PackageManager(2558): getComponentMetadataForIconTray : GPS.Clientes.main does not exist in mProviders
01-26 00:40:30.431: D/PackageManager(2558): getComponentMetadataForIconTray : GPS.Clientes.main does not exist in mReceivers
01-26 00:40:30.431: I/ApplicationPackageManager(3087): load=GPS.Clientes, bg=96-96, dr=122-122
01-26 00:40:33.181: I/ActivityManager(2558): Killing 570:GPS.Clientes/u0a263 (adj 16): remove task
01-26 00:40:33.281: D/ActivityManager(2558): isAutoRunBlockedApp:: GPS.Clientes, Auto Run ON
01-26 00:40:33.281: D/ActivityManager(2558): removeProcessNameLocked mProcessNames.remove pid=570 ,hash=25486941 ,name=GPS.Clientes
01-26 00:40:33.281: W/ActivityManager(2558): Scheduling restart of crashed service GPS.Clientes/.starter in 1000ms
01-26 00:45:11.641: I/ActivityManager(2558): Start proc 755:GPS.Clientes/u0a263 for service GPS.Clientes/.gps
01-26 00:45:11.641: W/SELinux(755): SELinux: seapp_context_lookup: seinfo=default, level=s0:c512,c768, pkgname=GPS.Clientes
01-26 00:45:11.681: W/System(755): ClassLoader referenced unknown path: /data/app/GPS.Clientes-1/lib/arm
01-26 00:45:11.741: D/ApplicationPolicy(2558): isStatusBarNotificationAllowedAsUser: packageName = GPS.Clientes,userId = 0
01-26 00:45:11.741: D/ApplicationPolicy(2558): isStatusBarNotificationAllowedAsUser: packageName = GPS.Clientes,userId = 0
01-26 00:45:11.751: D/MARsPolicyManager(2558): NotificationListenerService OngoingNotificationPosted : GPS.Clientes
01-26 00:45:11.751: D/ApplicationPolicy(2558): isStatusBarNotificationAllowedAsUser: packageName = GPS.Clientes,userId = 0
01-26 00:45:11.751: D/MARsPolicyManager(2558): NotificationListenerService OngoingNotificationRemoved : GPS.Clientes
01-26 00:45:11.761: I/B4A(755): ~e: at GPS.Clientes.rutinas._write_log(rutinas.java:392)
01-26 00:45:11.761: I/B4A(755): ~e: at GPS.Clientes.gps._service_start(gps.java:340)
01-26 00:45:11.761: I/B4A(755): ~e: at GPS.Clientes.gps.handleStart(gps.java:102)
01-26 00:45:11.761: I/B4A(755): ~e: at GPS.Clientes.gps.access$000(gps.java:8)
01-26 00:45:11.761: I/B4A(755): ~e: at GPS.Clientes.gps$1.run(gps.java:77)
01-26 00:45:11.781: D/PhoneStatusBar(3010): removeNotification key=0|GPS.Clientes|2|null|10263 old=StatusBarNotification(pkg=GPS.Clientes user=UserHandle{0} id=2 tag=null score=0 key=0|GPS.Clientes|2|null|10263: Notification(pri=0 contentView=GPS.Clientes/0x10900a3 vibrate=null sound=null defaults=0xfffffff8 flags=0x10 color=0x00000000 vis=PRIVATE secFlags=0x0 secPriority=0))
01-26 00:45:11.851: D/PhoneStatusBar(3010): removeNotification key=0|GPS.Clientes|2|null|10263 old=StatusBarNotification(pkg=GPS.Clientes user=UserHandle{0} id=2 tag=null score=0 key=0|GPS.Clientes|2|null|10263: Notification(pri=0 contentView=GPS.Clientes/0x10900a3 vibrate=null sound=null defaults=0xfffffff8 flags=0x10 color=0x00000000 vis=PRIVATE secFlags=0x0 secPriority=0))
01-26 00:45:12.771: W/Bundle(755): at GPS.Clientes.starter._application_error(starter.java:158)
01-26 00:45:12.771: W/Bundle(755): at GPS.Clientes.gps.handleStart(gps.java:102)
01-26 00:45:12.771: W/Bundle(755): at GPS.Clientes.gps.access$000(gps.java:8)
01-26 00:45:12.771: W/Bundle(755): at GPS.Clientes.gps$1.run(gps.java:77)
01-26 00:45:12.841: E/AndroidRuntime(755): Process: GPS.Clientes, PID: 755
01-26 00:45:12.841: E/AndroidRuntime(755): at GPS.Clientes.rutinas._write_log(rutinas.java:392)
01-26 00:45:12.841: E/AndroidRuntime(755): at GPS.Clientes.gps._service_start(gps.java:340)
01-26 00:45:12.841: E/AndroidRuntime(755): at GPS.Clientes.gps.handleStart(gps.java:102)
01-26 00:45:12.841: E/AndroidRuntime(755): at GPS.Clientes.gps.access$000(gps.java:8)
01-26 00:45:12.841: E/AndroidRuntime(755): at GPS.Clientes.gps$1.run(gps.java:77)
01-26 00:45:12.871: I/ActivityManager(2558): Process GPS.Clientes (pid 755)(adj 2) has died(20,747)
01-26 00:45:12.871: D/ActivityManager(2558): isAutoRunBlockedApp:: GPS.Clientes, Auto Run ON
01-26 00:45:12.881: W/ActivityManager(2558): Scheduling restart of crashed service GPS.Clientes/.starter in 1000ms
01-26 00:45:12.881: W/ActivityManager(2558): Scheduling restart of crashed service GPS.Clientes/.gps in 1000ms
01-26 00:45:12.881: D/ActivityManager(2558): removeProcessNameLocked mProcessNames.remove pid=755 ,hash=203819364 ,name=GPS.Clientes
01-26 00:45:12.891: D/PhoneStatusBar(3010): removeNotification key=0|GPS.Clientes|1|null|10263 old=StatusBarNotification(pkg=GPS.Clientes user=UserHandle{0} id=1 tag=null score=0 key=0|GPS.Clientes|1|null|10263: Notification(pri=0 contentView=GPS.Clientes/0x10900a3 vibrate=null sound=null defaults=0xfffffff8 flags=0x72 color=0x00000000 vis=PRIVATE secFlags=0x0 secPriority=0))
01-26 00:45:13.891: W/SELinux(835): SELinux: seapp_context_lookup: seinfo=default, level=s0:c512,c768, pkgname=GPS.Clientes
01-26 00:45:13.891: I/ActivityManager(2558): Start proc 835:GPS.Clientes/u0a263 for service GPS.Clientes/.gps
01-26 00:45:13.911: D/ApplicationPolicy(2558): isStatusBarNotificationAllowedAsUser: packageName = GPS.Clientes,userId = 0
01-26 00:45:13.911: D/MARsPolicyManager(2558): NotificationListenerService OngoingNotificationPosted : GPS.Clientes
01-26 00:45:13.921: W/System(835): ClassLoader referenced unknown path: /data/app/GPS.Clientes-1/lib/arm
01-26 00:45:13.981: D/ApplicationPolicy(2558): isStatusBarNotificationAllowedAsUser: packageName = GPS.Clientes,userId = 0
01-26 00:45:13.981: D/MARsPolicyManager(2558): NotificationListenerService OngoingNotificationRemoved : GPS.Clientes
01-26 00:45:13.981: D/ApplicationPolicy(2558): isStatusBarNotificationAllowedAsUser: packageName = GPS.Clientes,userId = 0
01-26 00:45:13.991: D/MARsPolicyManager(2558): NotificationListenerService OngoingNotificationPosted : GPS.Clientes
01-26 00:45:14.001: D/ApplicationPolicy(2558): isStatusBarNotificationAllowedAsUser: packageName = GPS.Clientes,userId = 0
01-26 00:45:14.001: D/MARsPolicyManager(2558): NotificationListenerService OngoingNotificationRemoved : GPS.Clientes
01-26 00:45:14.001: I/B4A(835): ~e: at GPS.Clientes.rutinas._write_log(rutinas.java:392)
01-26 00:45:14.001: I/B4A(835): ~e: at GPS.Clientes.gps._service_start(gps.java:340)
01-26 00:45:14.001: I/B4A(835): ~e: at GPS.Clientes.gps.handleStart(gps.java:102)
01-26 00:45:14.001: I/B4A(835): ~e: at GPS.Clientes.gps.access$000(gps.java:8)
01-26 00:45:14.001: I/B4A(835): ~e: at GPS.Clientes.gps$1.run(gps.java:77)
01-26 00:45:14.041: D/PhoneStatusBar(3010): removeNotification key=0|GPS.Clientes|2|null|10263 old=StatusBarNotification(pkg=GPS.Clientes user=UserHandle{0} id=2 tag=null score=0 key=0|GPS.Clientes|2|null|10263: Notification(pri=0 contentView=GPS.Clientes/0x10900a3 vibrate=null sound=null defaults=0xfffffff8 flags=0x10 color=0x00000000 vis=PRIVATE secFlags=0x0 secPriority=0))
01-26 00:45:14.081: D/PhoneStatusBar(3010): removeNotification key=0|GPS.Clientes|2|null|10263 old=StatusBarNotification(pkg=GPS.Clientes user=UserHandle{0} id=2 tag=null score=0 key=0|GPS.Clientes|2|null|10263: Notification(pri=0 contentView=GPS.Clientes/0x10900a3 vibrate=null sound=null defaults=0xfffffff8 flags=0x10 color=0x00000000 vis=PRIVATE secFlags=0x0 secPriority=0))
01-26 00:45:15.011: W/Bundle(835): at GPS.Clientes.starter._application_error(starter.java:158)
01-26 00:45:15.011: W/Bundle(835): at GPS.Clientes.gps.handleStart(gps.java:102)
01-26 00:45:15.011: W/Bundle(835): at GPS.Clientes.gps.access$000(gps.java:8)
01-26 00:45:15.011: W/Bundle(835): at GPS.Clientes.gps$1.run(gps.java:77)
01-26 00:45:15.041: E/AndroidRuntime(835): Process: GPS.Clientes, PID: 835
01-26 00:45:15.041: E/AndroidRuntime(835): at GPS.Clientes.rutinas._write_log(rutinas.java:392)
01-26 00:45:15.041: E/AndroidRuntime(835): at GPS.Clientes.gps._service_start(gps.java:340)
01-26 00:45:15.041: E/AndroidRuntime(835): at GPS.Clientes.gps.handleStart(gps.java:102)
01-26 00:45:15.041: E/AndroidRuntime(835): at GPS.Clientes.gps.access$000(gps.java:8)
01-26 00:45:15.041: E/AndroidRuntime(835): at GPS.Clientes.gps$1.run(gps.java:77)
01-26 00:45:15.091: I/ActivityManager(2558): Process GPS.Clientes (pid 835)(adj 2) has died(23,747)
01-26 00:45:15.091: D/ActivityManager(2558): isAutoRunBlockedApp:: GPS.Clientes, Auto Run ON
01-26 00:45:15.091: W/ActivityManager(2558): Scheduling restart of crashed service GPS.Clientes/.starter in 1000ms
01-26 00:45:15.091: W/ActivityManager(2558): Service crashed 2 times, stopping: ServiceRecord{3ec57d0 u0 GPS.Clientes/.gps}
01-26 00:45:15.091: D/ActivityManager(2558): removeProcessNameLocked mProcessNames.remove pid=835 ,hash=129568842 ,name=GPS.Clientes
01-26 00:45:15.111: D/PhoneStatusBar(3010): removeNotification key=0|GPS.Clientes|1|null|10263 old=StatusBarNotification(pkg=GPS.Clientes user=UserHandle{0} id=1 tag=null score=0 key=0|GPS.Clientes|1|null|10263: Notification(pri=0 contentView=GPS.Clientes/0x10900a3 vibrate=null sound=null defaults=0xfffffff8 flags=0x72 color=0x00000000 vis=PRIVATE secFlags=0x0 secPriority=0))


Again, any help is welcome.

Regards,

Edgar

P.D.:
Project ZIP is updated.
 

Attachments

  • Crash Log.png
    Crash Log.png
    120.4 KB · Views: 289
Upvote 0

edgar_ortiz

Active Member
Licensed User
Longtime User
Hi,

I'm sorry... I'm in a "loop" (it's 1:11 AM and 16+ hours of work)

:(

How I read logs in the IDE in release mode?
 
Upvote 0

edgar_ortiz

Active Member
Licensed User
Longtime User
Hi,

The "Starter" service send me:

--------- beginning of main
~i:** Service (starter) Create **
~i:** Service (starter) Start **
~i:** Activity (main) Create, isFirst = true **
~i:** Activity (main) Resume **
~i:** Service (gps) Create **
~i:** Service (gps) Start **
1485412740174
YYYY-MM-DD HH:MM:SS
1485412441187
YYYY-MM-DD HH:MM:SS
1485412441188
YYYY-MM-DD HH:MM:SS
~i:** Service (gps) Destroy **
~i:** Activity (main) Pause, UserClosed = true **
~i:** Activity (main) Create, isFirst = false **
~i:** Activity (main) Resume **
~i:** Activity (main) Pause, UserClosed = true **
~i:** Service (starter) Create **
~i:** Service (starter) Start **
~i:** Activity (main) Create, isFirst = true **
~i:** Activity (main) Resume **
~i:** Service (gps) Create **
~i:** Service (gps) Start **
1485412563207
YYYY-MM-DD HH:MM:SS
1485412863255
YYYY-MM-DD HH:MM:SS
1485412574840
YYYY-MM-DD HH:MM:SS
1485412574840
YYYY-MM-DD HH:MM:SS
~i:** Service (gps) Destroy **
No partial wakelock.
~i:** Activity (main) Pause, UserClosed = false **
~i:** Service (starter) Create **
~i:** Service (starter) Start **
~i:** Activity (main) Create, isFirst = true **
~i:** Activity (main) Resume **
~i:** Service (gps) Create **
~i:** Service (gps) Start **
1485412894281
YYYY-MM-DD HH:MM:SS
1485412595257
YYYY-MM-DD HH:MM:SS
1485412595257
YYYY-MM-DD HH:MM:SS
~i:** Service (gps) Destroy **
~i:** Activity (main) Pause, UserClosed = true **
--------- beginning of system
~i:** Service (starter) Create **
~i:** Service (starter) Start **
~i:** Activity (main) Create, isFirst = true **
~i:** Activity (main) Resume **
~i:** Service (gps) Create **
~i:** Service (gps) Start **
1485412811557
YYYY-MM-DD HH:MM:SS
1485413111601
YYYY-MM-DD HH:MM:SS
1485412826534
YYYY-MM-DD HH:MM:SS
1485412826535
YYYY-MM-DD HH:MM:SS
~i:** Service (gps) Destroy **
No partial wakelock.
~i:** Activity (main) Pause, UserClosed = true **
~i:** Service (starter) Create **
~i:** Service (starter) Start **
~i:** Service (gps) Create **
~i:** Service (gps) Start **
~e:rutinas_write_log (java line: 392)
~e:java.lang.RuntimeException: Object should first be initialized.
~e: at anywheresoftware.b4a.sql.SQL.checkNull(SQL.java:48)
~e: at anywheresoftware.b4a.sql.SQL.ExecNonQuery(SQL.java:66)
~e: at GPS.Clientes.rutinas._write_log(rutinas.java:392)
~e: at GPS.Clientes.gps._service_start(gps.java:340)
~e: at java.lang.reflect.Method.invoke(Native Method)
~e: at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
~e: at anywheresoftware.b4a.BA.raiseEvent(BA.java:153)
~e: at GPS.Clientes.gps.handleStart(gps.java:102)
~e: at GPS.Clientes.gps.access$000(gps.java:8)
~e: at GPS.Clientes.gps$1.run(gps.java:77)
~e: at android.os.Handler.handleCallback(Handler.java:739)
~e: at android.os.Handler.dispatchMessage(Handler.java:95)
~e: at android.os.Looper.loop(Looper.java:158)
~e: at android.app.ActivityThread.main(ActivityThread.java:7230)
~e: at java.lang.reflect.Method.invoke(Native Method)
~e: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
~e: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
~i:** Service (starter) Create **
~i:** Service (starter) Start **
~i:** Service (gps) Create **
~i:** Service (gps) Start **
~e:rutinas_write_log (java line: 392)
~e:java.lang.RuntimeException: Object should first be initialized.
~e: at anywheresoftware.b4a.sql.SQL.checkNull(SQL.java:48)
~e: at anywheresoftware.b4a.sql.SQL.ExecNonQuery(SQL.java:66)
~e: at GPS.Clientes.rutinas._write_log(rutinas.java:392)
~e: at GPS.Clientes.gps._service_start(gps.java:340)
~e: at java.lang.reflect.Method.invoke(Native Method)
~e: at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
~e: at anywheresoftware.b4a.BA.raiseEvent(BA.java:153)
~e: at GPS.Clientes.gps.handleStart(gps.java:102)
~e: at GPS.Clientes.gps.access$000(gps.java:8)
~e: at GPS.Clientes.gps$1.run(gps.java:77)
~e: at android.os.Handler.handleCallback(Handler.java:739)
~e: at android.os.Handler.dispatchMessage(Handler.java:95)
~e: at android.os.Looper.loop(Looper.java:158)
~e: at android.app.ActivityThread.main(ActivityThread.java:7230)
~e: at java.lang.reflect.Method.invoke(Native Method)
~e: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
~e: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
java.lang.RuntimeException: Object should first be initialized.
at anywheresoftware.b4a.sql.SQL.checkNull(SQL.java:48)
at anywheresoftware.b4a.sql.SQL.ExecNonQuery(SQL.java:66)
at GPS.Clientes.rutinas._write_log(rutinas.java:392)
at GPS.Clientes.gps._service_start(gps.java:340)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:153)
at GPS.Clientes.gps.handleStart(gps.java:102)
at GPS.Clientes.gps.access$000(gps.java:8)
at GPS.Clientes.gps$1.run(gps.java:77)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:7230)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

--


Any help is welcome,

Regards,

Edgar
 
Upvote 0
Top