Don't understand error log

Post your questions and help other users.

Moderator: Martin

Post Reply
Econdoc
Posts: 153
Joined: 28 May 2016 20:06

Don't understand error log

Post by Econdoc » 06 Feb 2019 02:02

flow_Do_I_have_a_network_02-05-2019_205723.xml
(3.07 KiB) Downloaded 700 times
My flow “Do I have a network” pings the OpenDNS server at IP 208.67.220.220 to determine if I have an internet connection or not. The global variable global_connected returns true if the ping is successful, false otherwise. Five attempts at 5 second intervals are made. Automatic Emergency Stop is set to 100, although it does not seem possible that it could have 100 actions in a minute.
The flow works well, except when it errors out. Here are the logs on an error. I have no idea what these logs mean. Can anyone provide some direction as to what is wrong?

05.02.2019 17:58:55.266 [Wifi connection new] Start executing action 'Execute Flows: Do I have a network?'
05.02.2019 17:58:55.272 [Do I have a network?] Starting to execute flow 'Do I have a network?' with Context{global{global_network_state={airplane_on=true,.....
05.02.2019 17:58:55.272 [Do I have a network?] Start executing condition 'Host Reachable: ping {global_opendns_ip}'
05.02.2019 17:58:55.273 [Do I have a network?] Condition 'Host Reachable: ping {global_opendns_ip}' Executing ping to host '208.67.220.220'
05.02.2019 17:58:55.290 [Do I have a network?] End executing condition 'Host Reachable: ping {global_opendns_ip}' with return value false
05.02.2019 17:58:55.290 [Do I have a network?] Flow continues executing with the next step.
05.02.2019 17:58:55.290 [Do I have a network?] Start executing condition 'Execution Count: 5 times'
05.02.2019 17:58:55.291 [Do I have a network?] End executing condition 'Execution Count: 5 times' with return value false
05.02.2019 17:58:55.292 [Do I have a network?] Flow continues executing with the next step.
05.02.2019 17:58:55.292 [Do I have a network?] Start executing action 'Sleep: 5s (keep device awake)'
05.02.2019 17:58:55.292 [Do I have a network?] Action 'Sleep: 5s (keep device awake)' Sleeping for 5s (keep device awake)
05.02.2019 17:59:00.297 [Do I have a network?] End executing action 'Sleep: 5s (keep device awake)'
05.02.2019 17:59:00.299 [Do I have a network?] Flow continues executing with the next step.
05.02.2019 17:59:00.299 [Do I have a network?] Start executing condition 'Host Reachable: ping {global_opendns_ip}'
05.02.2019 17:59:00.308 [Do I have a network?] Condition 'Host Reachable: ping {global_opendns_ip}' Executing ping to host '208.67.220.220'
05.02.2019 17:59:10.328 Process is still running, ending now
05.02.2019 17:59:10.388 Could not read from stream
java.io.InterruptedIOException: read interrupted
at libcore.io.Linux.readBytes(Native Method)
at libcore.io.Linux.read(Linux.java:184)
at libcore.io.BlockGuardOs.read(BlockGuardOs.java:251)
at libcore.io.IoBridge.read(IoBridge.java:528)
at java.io.FileInputStream.read(FileInputStream.java:254)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
at java.io.BufferedInputStream.read(BufferedInputStream.java:347)
at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:288)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:351)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:180)
at java.io.InputStreamReader.read(InputStreamReader.java:184)
at java.io.Reader.read(Reader.java:140)
at ch.gridvision.ppam.androidautomagiclib.util.bv$1.run(SourceFile:63)

05.02.2019 17:59:10.389 Could not read from stream
java.io.InterruptedIOException: read interrupted
at libcore.io.Linux.readBytes(Native Method)
at libcore.io.Linux.read(Linux.java:184)
at libcore.io.BlockGuardOs.read(BlockGuardOs.java:251)
at libcore.io.IoBridge.read(IoBridge.java:528)
at java.io.FileInputStream.read(FileInputStream.java:254)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
at java.io.BufferedInputStream.read(BufferedInputStream.java:347)
at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:288)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:351)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:180)
at java.io.InputStreamReader.read(InputStreamReader.java:184)
at java.io.Reader.read(Reader.java:140)
at ch.gridvision.ppam.androidautomagiclib.util.bv$1.run(SourceFile:63)

05.02.2019 17:59:10.390 [Do I have a network?] Condition 'Host Reachable: ping {global_opendns_ip}' Timeout in ping. Treating as unreachable.
05.02.2019 17:59:10.390 [Do I have a network?] End executing condition 'Host Reachable: ping {global_opendns_ip}' with return value false
05.02.2019 17:59:10.390 [Do I have a network?] Flow continues executing with the next step.
05.02.2019 17:59:10.391 [Do I have a network?] Start executing condition 'Execution Count: 5 times'
05.02.2019 17:59:10.392 [Do I have a network?] End executing condition 'Execution Count: 5 times' with return value false
05.02.2019 17:59:10.392 [Do I have a network?] Flow continues executing with the next step.
05.02.2019 17:59:10.392 [Do I have a network?] Start executing action 'Sleep: 5s (keep device awake)'
05.02.2019 17:59:10.393 [Do I have a network?] Action 'Sleep: 5s (keep device awake)' Sleeping for 5s (keep device awake)
05.02.2019 17:59:15.397 [Do I have a network?] End executing action 'Sleep: 5s (keep device awake)'
05.02.2019 17:59:15.399 [Do I have a network?] Flow continues executing with the next step.
05.02.2019 17:59:15.400 [Do I have a network?] Start executing condition 'Host Reachable: ping {global_opendns_ip}'
05.02.2019 17:59:15.405 [Do I have a network?] Condition 'Host Reachable: ping {global_opendns_ip}' Executing ping to host '208.67.220.220'
05.02.2019 17:59:25.418 Process is still running, ending now
05.02.2019 17:59:25.451 [Do I have a network?] Condition 'Host Reachable: ping {global_opendns_ip}' Timeout in ping. Treating as unreachable.
05.02.2019 17:59:25.452 [Do I have a network?] End executing condition 'Host Reachable: ping {global_opendns_ip}' with return value false
05.02.2019 17:59:25.452 [Do I have a network?] Flow continues executing with the next step.
05.02.2019 17:59:25.452 [Do I have a network?] Start executing condition 'Execution Count: 5 times'
05.02.2019 17:59:25.458 [Do I have a network?] End executing condition 'Execution Count: 5 times' with return value false
05.02.2019 17:59:25.459 [Do I have a network?] Flow continues executing with the next step.
------------------------------------------------------------------------------------------------------------------------------

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Don't understand error log

Post by Desmanto » 06 Feb 2019 16:15

I also have no idea. Seems like the ping process hang up and stuck at there. I tried your flow, it success and fail properly, branching properly to each true/false immediately. No stucked process as yours.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Econdoc
Posts: 153
Joined: 28 May 2016 20:06

Re: Don't understand error log

Post by Econdoc » 07 Feb 2019 00:03

Thanks for trying. I will post again if I can solve this.

Post Reply