ChargeBar
Moderator: Martin
Re: ChargeBar
Oh, that's correct. The published version is not identical with what I'm using on my device, but the original flows would require too many modifications, as they are more environment specific. Therefore I modified them such that they should be fit for general use, void of gorilla syndrome (which is "if you want the banana, you get the whole gorilla"). My apologies.
Re: ChargeBar
Ever since I have upgraded to Nougat (Android 7), I have received an error message from the Automagic start flow, which seems to relate to the wm size command. Any suggestions on how to fix this would be greatly appreciated.
The error it gives is Can't connect to window manager. is the system running?
The log file says:
29.04.2017 10:54:44.595 [ChargeBar: Automagic start] Starting to execute flow 'ChargeBar: Automagic start' with Context{global{global_volume_system=15,global_cellIDs_Staybridge=61818135,3156955,3161955,3176938,3151955,3146955,3171743,3181938,3180667,25730,653954,653934,2571...,global_cellIDs_WatercressDentistry=2435726,2437945,2457690,2456431,global_cellIDs_Vodafone=25608558, 25608568,global_cellIDs_ISACA=524910,global_roz_phonenumber=+447798538345,global_volume_music=15,global_volume_ring=15,global_volume_alarm=15,global_location=Neideen,global_access_points=null,global_car=undefined sutomobile,global_cellIDs_WinchesterStation=2588052,2590873,2591233,2570873,16485,2592438,51054,2568052,2578052,2594542,2580873,572536,global_cellIDs_WaterlooStation=172219,162219,175325,180325,167219,177219,167758,30743,166184,142758,2765,185325,152758,141447,16...,global_volume_voice_call=5,global_width=1440,global_location_reason=Wi-Fi,global_debug=FALSE,global_ssid=disconnected,global_charging=,global_battery_level=100,global_volume_dtmf=15,global_volume_notification=15,global_roztold=FALSE,global_cellIDs_Neideen=566392,global_cellIDs_Bracknell=522370,global_blinks=0,global_profile=LOUD,global_screen_long=2560.0,global_screen_short=1440,global_profile_locked=FALSE},local{flow_name=ChargeBar: Automagic start,triggertime=1493459684589,trigger=Manual}}
29.04.2017 10:54:44.599 [ChargeBar: Automagic start] Start executing action 'Execute Command: wm size in '
29.04.2017 10:54:45.268 [ChargeBar: Automagic start] Action 'Execute Command: wm size in ' stdout=
29.04.2017 10:54:45.268 [ChargeBar: Automagic start] Action 'Execute Command: wm size in ' stderr=Error type 2
android.util.AndroidException: Can't connect to window manager; is the system running?
at com.android.commands.wm.Wm.onRun(Wm.java:81)
at com.android.internal.os.BaseCommand.run(Base...
29.04.2017 10:54:45.269 [ChargeBar: Automagic start] Action 'Execute Command: wm size in ' exit_code=1
29.04.2017 10:54:45.269 [ChargeBar: Automagic start] End executing action 'Execute Command: wm size in '
29.04.2017 10:54:45.322 [ChargeBar: Automagic start] Flow continues executing with the next step.
29.04.2017 10:54:45.322 [ChargeBar: Automagic start] Start executing action 'Script: geometry = split(replace(stdout, "Physical size: ", ""), "x"); x = toNumber(geometry[0]); y = toNumber(geometry[1]); global_screen_short = min(x, y); global_screen_long = max(x, y);'
29.04.2017 10:54:45.324 [ChargeBar: Automagic start] Start executing action 'Notification on Screen: stdout is {stdout}. stderr is {stderr}. exitcode is {exit_code}. (long)'
29.04.2017 10:54:45.372 [ChargeBar: Automagic start] Object 'ChargeBar: Automagic start' Showing toast text 'stdout is . stderr is Error type 2
android.util.AndroidException: Can't connect to window manager; is the system running?
at com.android.commands.wm.Wm.onRun(Wm.java:81)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:51)
at com.android.commands.wm.Wm.main(Wm.java:46)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:301)
. exitcode is 1.'.
29.04.2017 10:54:45.389 [ChargeBar: Automagic start] End executing action 'Notification on Screen: stdout is {stdout}. stderr is {stderr}. exitcode is {exit_code}. (long)'
29.04.2017 10:54:45.390 [ChargeBar: Automagic start] Action 'Script: geometry = split(replace(stdout, "Physical size: ", ""), "x"); x = toNumber(geometry[0]); y = toNumber(geometry[1]); global_screen_short = min(x, y); global_screen_long = max(x, y);'
ch.gridvision.ppam.androidautomagic.simplelang.a.d: can not convert value '' to number (Expression: toNumber(geometry[0])[line 1])
at ch.gridvision.ppam.androidautomagic.simplelang.a.j.h(SourceFile:190)
at ch.gridvision.ppam.androidautomagic.simplelang.a.c.a(SourceFile:1581)
at ch.gridvision.ppam.androidautomagic.simplelang.a.b.a(SourceFile:730)
at ch.gridvision.ppam.androidautomagic.simplelang.c.ah.b(SourceFile:51)
at ch.gridvision.ppam.androidautomagic.simplelang.c.b.a(SourceFile:43)
at ch.gridvision.ppam.androidautomagic.simplelang.a.b.a(SourceFile:109)
at ch.gridvision.ppam.androidautomagic.simplelang.c.w.b(SourceFile:25)
at ch.gridvision.ppam.androidautomagic.simplelang.a.b.a(SourceFile:397)
at ch.gridvision.ppam.androidautomagic.simplelang.c.d.b(SourceFile:22)
at ch.gridvision.ppam.androidautomagic.simplelang.c.b.a(SourceFile:43)
at ch.gridvision.ppam.androidautomagic.simplelang.a.b.a(SourceFile:109)
at ch.gridvision.ppam.androidautomagic.simplelang.c.w.b(SourceFile:25)
at ch.gridvision.ppam.androidautomagic.simplelang.a.b.a(SourceFile:805)
at ch.gridvision.ppam.androidautomagic.simplelang.c.y.b(SourceFile:43)
at ch.gridvision.ppam.androidautomagic.simplelang.c.b.a(SourceFile:43)
at ch.gridvision.ppam.androidautomagic.simplelang.a.b.a(SourceFile:116)
at ch.gridvision.ppam.androidautomagic.simplelang.c.am.b(SourceFile:34)
at ch.gridvision.ppam.androidautomagic.simplelang.a.j.a(SourceFile:913)
at ch.gridvision.ppam.androidautomagic.simplelang.a.j.a(SourceFile:894)
at ch.gridvision.ppam.androidautomagic.c.a.dr$1.a(SourceFile:120)
at ch.gridvision.ppam.androidautomagic.c.a.dr$1.c(SourceFile:110)
at ch.gridvision.ppam.androidautomagiclib.util.ck$1.run(SourceFile:39)
at java.lang.Thread.run(Thread.java:762)
29.04.2017 10:54:45.392 [ChargeBar: Automagic start] End executing action 'Script: geometry = split(replace(stdout, "Physical size: ", ""), "x"); x = toNumber(geometry[0]); y = toNumber(geometry[1]); global_screen_short = min(x, y); global_screen_long = max(x, y);' and exception can not convert value '' to number (Expression: toNumber(geometry[0])[line 1])
29.04.2017 10:54:45.557 [ChargeBar: Automagic start] Flow ends execution due to errors
29.04.2017 10:54:45.557 [ChargeBar: Automagic start] Error:
ch.gridvision.ppam.androidautomagic.simplelang.a.d: can not convert value '' to number (Expression: toNumber(geometry[0])[line 1])
at ch.gridvision.ppam.androidautomagic.simplelang.a.j.h(SourceFile:190)
at ch.gridvision.ppam.androidautomagic.simplelang.a.c.a(SourceFile:1581)
at ch.gridvision.ppam.androidautomagic.simplelang.a.b.a(SourceFile:730)
at ch.gridvision.ppam.androidautomagic.simplelang.c.ah.b(SourceFile:51)
at ch.gridvision.ppam.androidautomagic.simplelang.c.b.a(SourceFile:43)
at ch.gridvision.ppam.androidautomagic.simplelang.a.b.a(SourceFile:109)
at ch.gridvision.ppam.androidautomagic.simplelang.c.w.b(SourceFile:25)
at ch.gridvision.ppam.androidautomagic.simplelang.a.b.a(SourceFile:397)
at ch.gridvision.ppam.androidautomagic.simplelang.c.d.b(SourceFile:22)
at ch.gridvision.ppam.androidautomagic.simplelang.c.b.a(SourceFile:43)
at ch.gridvision.ppam.androidautomagic.simplelang.a.b.a(SourceFile:109)
at ch.gridvision.ppam.androidautomagic.simplelang.c.w.b(SourceFile:25)
at ch.gridvision.ppam.androidautomagic.simplelang.a.b.a(SourceFile:805)
at ch.gridvision.ppam.androidautomagic.simplelang.c.y.b(SourceFile:43)
at ch.gridvision.ppam.androidautomagic.simplelang.c.b.a(SourceFile:43)
at ch.gridvision.ppam.androidautomagic.simplelang.a.b.a(SourceFile:116)
at ch.gridvision.ppam.androidautomagic.simplelang.c.am.b(SourceFile:34)
at ch.gridvision.ppam.androidautomagic.simplelang.a.j.a(SourceFile:913)
at ch.gridvision.ppam.androidautomagic.simplelang.a.j.a(SourceFile:894)
at ch.gridvision.ppam.androidautomagic.c.a.dr$1.a(SourceFile:120)
at ch.gridvision.ppam.androidautomagic.c.a.dr$1.c(SourceFile:110)
at ch.gridvision.ppam.androidautomagiclib.util.ck$1.run(SourceFile:39)
at java.lang.Thread.run(Thread.java:762)
29.04.2017 10:54:45.568 [ChargeBar: Automagic start] Flow ended.
The error it gives is Can't connect to window manager. is the system running?
The log file says:
29.04.2017 10:54:44.595 [ChargeBar: Automagic start] Starting to execute flow 'ChargeBar: Automagic start' with Context{global{global_volume_system=15,global_cellIDs_Staybridge=61818135,3156955,3161955,3176938,3151955,3146955,3171743,3181938,3180667,25730,653954,653934,2571...,global_cellIDs_WatercressDentistry=2435726,2437945,2457690,2456431,global_cellIDs_Vodafone=25608558, 25608568,global_cellIDs_ISACA=524910,global_roz_phonenumber=+447798538345,global_volume_music=15,global_volume_ring=15,global_volume_alarm=15,global_location=Neideen,global_access_points=null,global_car=undefined sutomobile,global_cellIDs_WinchesterStation=2588052,2590873,2591233,2570873,16485,2592438,51054,2568052,2578052,2594542,2580873,572536,global_cellIDs_WaterlooStation=172219,162219,175325,180325,167219,177219,167758,30743,166184,142758,2765,185325,152758,141447,16...,global_volume_voice_call=5,global_width=1440,global_location_reason=Wi-Fi,global_debug=FALSE,global_ssid=disconnected,global_charging=,global_battery_level=100,global_volume_dtmf=15,global_volume_notification=15,global_roztold=FALSE,global_cellIDs_Neideen=566392,global_cellIDs_Bracknell=522370,global_blinks=0,global_profile=LOUD,global_screen_long=2560.0,global_screen_short=1440,global_profile_locked=FALSE},local{flow_name=ChargeBar: Automagic start,triggertime=1493459684589,trigger=Manual}}
29.04.2017 10:54:44.599 [ChargeBar: Automagic start] Start executing action 'Execute Command: wm size in '
29.04.2017 10:54:45.268 [ChargeBar: Automagic start] Action 'Execute Command: wm size in ' stdout=
29.04.2017 10:54:45.268 [ChargeBar: Automagic start] Action 'Execute Command: wm size in ' stderr=Error type 2
android.util.AndroidException: Can't connect to window manager; is the system running?
at com.android.commands.wm.Wm.onRun(Wm.java:81)
at com.android.internal.os.BaseCommand.run(Base...
29.04.2017 10:54:45.269 [ChargeBar: Automagic start] Action 'Execute Command: wm size in ' exit_code=1
29.04.2017 10:54:45.269 [ChargeBar: Automagic start] End executing action 'Execute Command: wm size in '
29.04.2017 10:54:45.322 [ChargeBar: Automagic start] Flow continues executing with the next step.
29.04.2017 10:54:45.322 [ChargeBar: Automagic start] Start executing action 'Script: geometry = split(replace(stdout, "Physical size: ", ""), "x"); x = toNumber(geometry[0]); y = toNumber(geometry[1]); global_screen_short = min(x, y); global_screen_long = max(x, y);'
29.04.2017 10:54:45.324 [ChargeBar: Automagic start] Start executing action 'Notification on Screen: stdout is {stdout}. stderr is {stderr}. exitcode is {exit_code}. (long)'
29.04.2017 10:54:45.372 [ChargeBar: Automagic start] Object 'ChargeBar: Automagic start' Showing toast text 'stdout is . stderr is Error type 2
android.util.AndroidException: Can't connect to window manager; is the system running?
at com.android.commands.wm.Wm.onRun(Wm.java:81)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:51)
at com.android.commands.wm.Wm.main(Wm.java:46)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:301)
. exitcode is 1.'.
29.04.2017 10:54:45.389 [ChargeBar: Automagic start] End executing action 'Notification on Screen: stdout is {stdout}. stderr is {stderr}. exitcode is {exit_code}. (long)'
29.04.2017 10:54:45.390 [ChargeBar: Automagic start] Action 'Script: geometry = split(replace(stdout, "Physical size: ", ""), "x"); x = toNumber(geometry[0]); y = toNumber(geometry[1]); global_screen_short = min(x, y); global_screen_long = max(x, y);'
ch.gridvision.ppam.androidautomagic.simplelang.a.d: can not convert value '' to number (Expression: toNumber(geometry[0])[line 1])
at ch.gridvision.ppam.androidautomagic.simplelang.a.j.h(SourceFile:190)
at ch.gridvision.ppam.androidautomagic.simplelang.a.c.a(SourceFile:1581)
at ch.gridvision.ppam.androidautomagic.simplelang.a.b.a(SourceFile:730)
at ch.gridvision.ppam.androidautomagic.simplelang.c.ah.b(SourceFile:51)
at ch.gridvision.ppam.androidautomagic.simplelang.c.b.a(SourceFile:43)
at ch.gridvision.ppam.androidautomagic.simplelang.a.b.a(SourceFile:109)
at ch.gridvision.ppam.androidautomagic.simplelang.c.w.b(SourceFile:25)
at ch.gridvision.ppam.androidautomagic.simplelang.a.b.a(SourceFile:397)
at ch.gridvision.ppam.androidautomagic.simplelang.c.d.b(SourceFile:22)
at ch.gridvision.ppam.androidautomagic.simplelang.c.b.a(SourceFile:43)
at ch.gridvision.ppam.androidautomagic.simplelang.a.b.a(SourceFile:109)
at ch.gridvision.ppam.androidautomagic.simplelang.c.w.b(SourceFile:25)
at ch.gridvision.ppam.androidautomagic.simplelang.a.b.a(SourceFile:805)
at ch.gridvision.ppam.androidautomagic.simplelang.c.y.b(SourceFile:43)
at ch.gridvision.ppam.androidautomagic.simplelang.c.b.a(SourceFile:43)
at ch.gridvision.ppam.androidautomagic.simplelang.a.b.a(SourceFile:116)
at ch.gridvision.ppam.androidautomagic.simplelang.c.am.b(SourceFile:34)
at ch.gridvision.ppam.androidautomagic.simplelang.a.j.a(SourceFile:913)
at ch.gridvision.ppam.androidautomagic.simplelang.a.j.a(SourceFile:894)
at ch.gridvision.ppam.androidautomagic.c.a.dr$1.a(SourceFile:120)
at ch.gridvision.ppam.androidautomagic.c.a.dr$1.c(SourceFile:110)
at ch.gridvision.ppam.androidautomagiclib.util.ck$1.run(SourceFile:39)
at java.lang.Thread.run(Thread.java:762)
29.04.2017 10:54:45.392 [ChargeBar: Automagic start] End executing action 'Script: geometry = split(replace(stdout, "Physical size: ", ""), "x"); x = toNumber(geometry[0]); y = toNumber(geometry[1]); global_screen_short = min(x, y); global_screen_long = max(x, y);' and exception can not convert value '' to number (Expression: toNumber(geometry[0])[line 1])
29.04.2017 10:54:45.557 [ChargeBar: Automagic start] Flow ends execution due to errors
29.04.2017 10:54:45.557 [ChargeBar: Automagic start] Error:
ch.gridvision.ppam.androidautomagic.simplelang.a.d: can not convert value '' to number (Expression: toNumber(geometry[0])[line 1])
at ch.gridvision.ppam.androidautomagic.simplelang.a.j.h(SourceFile:190)
at ch.gridvision.ppam.androidautomagic.simplelang.a.c.a(SourceFile:1581)
at ch.gridvision.ppam.androidautomagic.simplelang.a.b.a(SourceFile:730)
at ch.gridvision.ppam.androidautomagic.simplelang.c.ah.b(SourceFile:51)
at ch.gridvision.ppam.androidautomagic.simplelang.c.b.a(SourceFile:43)
at ch.gridvision.ppam.androidautomagic.simplelang.a.b.a(SourceFile:109)
at ch.gridvision.ppam.androidautomagic.simplelang.c.w.b(SourceFile:25)
at ch.gridvision.ppam.androidautomagic.simplelang.a.b.a(SourceFile:397)
at ch.gridvision.ppam.androidautomagic.simplelang.c.d.b(SourceFile:22)
at ch.gridvision.ppam.androidautomagic.simplelang.c.b.a(SourceFile:43)
at ch.gridvision.ppam.androidautomagic.simplelang.a.b.a(SourceFile:109)
at ch.gridvision.ppam.androidautomagic.simplelang.c.w.b(SourceFile:25)
at ch.gridvision.ppam.androidautomagic.simplelang.a.b.a(SourceFile:805)
at ch.gridvision.ppam.androidautomagic.simplelang.c.y.b(SourceFile:43)
at ch.gridvision.ppam.androidautomagic.simplelang.c.b.a(SourceFile:43)
at ch.gridvision.ppam.androidautomagic.simplelang.a.b.a(SourceFile:116)
at ch.gridvision.ppam.androidautomagic.simplelang.c.am.b(SourceFile:34)
at ch.gridvision.ppam.androidautomagic.simplelang.a.j.a(SourceFile:913)
at ch.gridvision.ppam.androidautomagic.simplelang.a.j.a(SourceFile:894)
at ch.gridvision.ppam.androidautomagic.c.a.dr$1.a(SourceFile:120)
at ch.gridvision.ppam.androidautomagic.c.a.dr$1.c(SourceFile:110)
at ch.gridvision.ppam.androidautomagiclib.util.ck$1.run(SourceFile:39)
at java.lang.Thread.run(Thread.java:762)
29.04.2017 10:54:45.568 [ChargeBar: Automagic start] Flow ended.
--
Philip
Philip
-
- Posts: 109
- Joined: 16 Apr 2014 04:57
Re: ChargeBar
Hey there!Bushmills wrote:To start: enable all flows, then manually execute the flow "Automagic start". This flow also takes care of launching the widget after system restart.
First off, the flows you've designed are in German, I guess. That made it a little difficult for me to comprehend fully what the flows do. Also, as soon as I manually executed the flow "Automagic start", the following error message was displayed on the notification bar:-
Error: can not convert value " to number (Expression: toNumber(geometry[0])[line 1])
Kindly guide as to what needs to be rectified?
Akhilesh Chandra Gairola
-
- Posts: 109
- Joined: 16 Apr 2014 04:57
Re: ChargeBar
The stderr variable contains the following error output:-
Error type 2
android.util.AndroidException: Can't connect to window manager; is the system running?
at com.android.commands.wm.Wm.onRun(Wm.java:82)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:51)
at com.android.commands.wm.Wm.main(Wm.java:47)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:264)
Error type 2
android.util.AndroidException: Can't connect to window manager; is the system running?
at com.android.commands.wm.Wm.onRun(Wm.java:82)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:51)
at com.android.commands.wm.Wm.main(Wm.java:47)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:264)