一段时间后就找不到android设备了

android
标签: #<Tag:0x00007fb84d588a10>

#1

每次推送开始的时候是正常的,能收到消息。但是几分钟之后日志就显示“3次推送无响应,自动登出“,但是app的进程还在,没被杀死,请问怎么回事呢


#2

这个日志在哪里来的?有jiguang的tag?

请给出你完整的客户端日志信息。


#3

手机锁屏之后连接就断掉了,但程序进程还在的,日志是这样的:

11-21 12:27:56.935 9314-16153/com.htandroid.htandroid W/JIGUANG-JCore: [ConnectingHelper] Can not get sis info from host: s.jpush.cn
                                                                       java.net.SocketException: sendto failed: EPERM (Operation not permitted)
                                                                           at libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:577)
                                                                           at libcore.io.IoBridge.sendto(IoBridge.java:546)
                                                                           at java.net.PlainDatagramSocketImpl.send(PlainDatagramSocketImpl.java:184)
                                                                           at java.net.DatagramSocket.send(DatagramSocket.java:305)
                                                                           at cn.jiguang.b.d.c.a(Unknown Source)
                                                                           at cn.jiguang.b.b.g.run(Unknown Source)
                                                                           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
                                                                           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
                                                                           at java.lang.Thread.run(Thread.java:818)
                                                                        Caused by: android.system.ErrnoException: sendto failed: EPERM (Operation not permitted)
                                                                           at libcore.io.Posix.sendtoBytes(Native Method)
                                                                           at libcore.io.Posix.sendto(Posix.java:211)
                                                                           at libcore.io.BlockGuardOs.sendto(BlockGuardOs.java:278)
                                                                           at libcore.io.IoBridge.sendto(IoBridge.java:544)
                                                                           at java.net.PlainDatagramSocketImpl.send(PlainDatagramSocketImpl.java:184) 
                                                                           at java.net.DatagramSocket.send(DatagramSocket.java:305) 
                                                                           at cn.jiguang.b.d.c.a(Unknown Source) 
                                                                           at cn.jiguang.b.b.g.run(Unknown Source) 
                                                                           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) 
                                                                           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) 
                                                                           at java.lang.Thread.run(Thread.java:818) 
11-21 12:27:56.935 9314-16153/com.htandroid.htandroid D/JIGUANG-JCore: [ConnectingHelper] To get sis - host:sis.jpush.io, port:19000
11-21 12:27:56.937 9314-16156/com.htandroid.htandroid I/System.out: [CDS][DNS] getAllByNameImpl netId = 0
11-21 12:27:56.937 9314-16156/com.htandroid.htandroid D/libc-netbsd: [getaddrinfo]: hostname=sis.jpush.io; servname=(null); netid=0; mark=0
11-21 12:27:56.937 9314-16156/com.htandroid.htandroid D/libc-netbsd: [getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
11-21 12:27:56.938 9314-16156/com.htandroid.htandroid D/libc-netbsd: [getaddrinfo]: hostname=sis.jpush.io; servname=(null); netid=0; mark=0
11-21 12:27:56.938 9314-16156/com.htandroid.htandroid D/libc-netbsd: [getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
11-21 12:27:56.946 9314-16156/com.htandroid.htandroid D/libc-netbsd: getaddrinfo: sis.jpush.io get result from proxy gai_error = 0
11-21 12:27:56.949 9314-16153/com.htandroid.htandroid W/JIGUANG-JCore: [ConnectingHelper] Can not get sis info from host: sis.jpush.io
                                                                       java.net.SocketException: sendto failed: EPERM (Operation not permitted)
                                                                           at libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:577)
                                                                           at libcore.io.IoBridge.sendto(IoBridge.java:546)
                                                                           at java.net.PlainDatagramSocketImpl.send(PlainDatagramSocketImpl.java:184)
                                                                           at java.net.DatagramSocket.send(DatagramSocket.java:305)
                                                                           at cn.jiguang.b.d.c.a(Unknown Source)
                                                                           at cn.jiguang.b.b.g.run(Unknown Source)
                                                                           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
                                                                           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
                                                                           at java.lang.Thread.run(Thread.java:818)
                                                                        Caused by: android.system.ErrnoException: sendto failed: EPERM (Operation not permitted)
                                                                           at libcore.io.Posix.sendtoBytes(Native Method)
                                                                           at libcore.io.Posix.sendto(Posix.java:211)
                                                                           at libcore.io.BlockGuardOs.sendto(BlockGuardOs.java:278)
                                                                           at libcore.io.IoBridge.sendto(IoBridge.java:544)
                                                                           at java.net.PlainDatagramSocketImpl.send(PlainDatagramSocketImpl.java:184) 
                                                                           at java.net.DatagramSocket.send(DatagramSocket.java:305) 
                                                                           at cn.jiguang.b.d.c.a(Unknown Source) 
                                                                           at cn.jiguang.b.b.g.run(Unknown Source) 
                                                                           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) 
                                                                           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) 
                                                                           at java.lang.Thread.run(Thread.java:818) 
11-21 12:27:56.949 9314-16153/com.htandroid.htandroid D/JIGUANG-JCore: [ConnectingHelper] To get sis - host:easytomessage.com, port:19000
11-21 12:27:56.971 9314-16160/com.htandroid.htandroid I/System.out: [CDS][DNS] getAllByNameImpl netId = 0
11-21 12:27:56.972 9314-16160/com.htandroid.htandroid D/libc-netbsd: [getaddrinfo]: hostname=easytomessage.com; servname=(null); netid=0; mark=0
11-21 12:27:56.972 9314-16160/com.htandroid.htandroid D/libc-netbsd: [getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
11-21 12:27:56.972 9314-16160/com.htandroid.htandroid D/libc-netbsd: [getaddrinfo]: hostname=easytomessage.com; servname=(null); netid=0; mark=0
11-21 12:27:56.972 9314-16160/com.htandroid.htandroid D/libc-netbsd: [getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
11-21 12:27:59.279 9314-16160/com.htandroid.htandroid D/libc-netbsd: getaddrinfo: easytomessage.com get result from proxy gai_error = 0
11-21 12:27:59.282 9314-16153/com.htandroid.htandroid W/JIGUANG-JCore: [ConnectingHelper] Can not get sis info from host: easytomessage.com
                                                                       java.net.SocketException: sendto failed: EPERM (Operation not permitted)
                                                                           at libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:577)
                                                                           at libcore.io.IoBridge.sendto(IoBridge.java:546)
                                                                           at java.net.PlainDatagramSocketImpl.send(PlainDatagramSocketImpl.java:184)
                                                                           at java.net.DatagramSocket.send(DatagramSocket.java:305)
                                                                           at cn.jiguang.b.d.c.a(Unknown Source)
                                                                           at cn.jiguang.b.b.g.run(Unknown Source)
                                                                           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
                                                                           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
                                                                           at java.lang.Thread.run(Thread.java:818)
                                                                        Caused by: android.system.ErrnoException: sendto failed: EPERM (Operation not permitted)
                                                                           at libcore.io.Posix.sendtoBytes(Native Method)
                                                                           at libcore.io.Posix.sendto(Posix.java:211)
                                                                           at libcore.io.BlockGuardOs.sendto(BlockGuardOs.java:278)
                                                                           at libcore.io.IoBridge.sendto(IoBridge.java:544)
                                                                           at java.net.PlainDatagramSocketImpl.send(PlainDatagramSocketImpl.java:184) 
                                                                           at java.net.DatagramSocket.send(DatagramSocket.java:305) 
                                                                           at cn.jiguang.b.d.c.a(Unknown Source) 
                                                                           at cn.jiguang.b.b.g.run(Unknown Source) 
                                                                           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) 
                                                                           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) 
                                                                           at java.lang.Thread.run(Thread.java:818) 
11-21 12:27:59.282 9314-16153/com.htandroid.htandroid D/JIGUANG-JCore: [ConnectingHelper] Open connection with last good - ip:103.229.215.19, port:7007
11-21 12:28:00.280 9314-16153/com.htandroid.htandroid D/PushProtocol: init m_nSocket - -12
11-21 12:28:00.280 9314-16153/com.htandroid.htandroid D/JIGUANG-JCore: [ConnectingHelper] Open connection failed - ret:-993
11-21 12:28:00.281 9314-16153/com.htandroid.htandroid I/System.out: [CDS][DNS] getAllByNameImpl netId = 0
11-21 12:28:00.281 9314-16153/com.htandroid.htandroid D/libc-netbsd: [getaddrinfo]: hostname=192.168.1.1; servname=(null); netid=0; mark=0
11-21 12:28:00.281 9314-16153/com.htandroid.htandroid D/libc-netbsd: [getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
11-21 12:28:00.281 9314-16153/com.htandroid.htandroid I/System.out: [CDS]connect[/192.168.1.1:53]
11-21 12:28:00.282 9314-16153/com.htandroid.htandroid D/Posix: [Posix_connect Debug]Process com.htandroid.htandroid :53 
11-21 12:28:01.281 9314-16153/com.htandroid.htandroid W/JIGUANG-JCore: [DNSSrvUtils] Get default ports error with IOException:failed to connect to /192.168.1.1 (port 53): isConnected failed: ENETUNREACH (Network is unreachable)
11-21 12:28:01.314 9314-16236/com.htandroid.htandroid I/System.out: [CDS][DNS] getAllByNameImpl netId = 0
11-21 12:28:01.315 9314-16236/com.htandroid.htandroid D/libc-netbsd: [getaddrinfo]: hostname=im64.jpush.cn; servname=(null); netid=0; mark=0
11-21 12:28:01.315 9314-16236/com.htandroid.htandroid D/libc-netbsd: [getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
11-21 12:28:01.315 9314-16236/com.htandroid.htandroid D/libc-netbsd: [getaddrinfo]: hostname=im64.jpush.cn; servname=(null); netid=0; mark=0
11-21 12:28:01.315 9314-16236/com.htandroid.htandroid D/libc-netbsd: [getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
11-21 12:28:01.331 9314-16236/com.htandroid.htandroid D/libc-netbsd: getaddrinfo: im64.jpush.cn get result from proxy gai_error = 0
11-21 12:28:01.332 9314-16153/com.htandroid.htandroid D/JIGUANG-JCore: [ConnectingHelper] Open connection with default host - ip:117.121.49.77, port:7000
11-21 12:28:02.330 9314-16153/com.htandroid.htandroid D/PushProtocol: init m_nSocket - -12
11-21 12:28:02.331 9314-16153/com.htandroid.htandroid D/JIGUANG-JCore: [ConnectingHelper] Open connection failed - ret:-993
11-21 12:28:02.331 9314-16153/com.htandroid.htandroid D/JIGUANG-JCore: [ConnectingHelper] Open connection with default host - ip:117.121.49.77, port:7002
11-21 12:28:03.330 9314-16153/com.htandroid.htandroid D/PushProtocol: init m_nSocket - -12
11-21 12:28:03.330 9314-16153/com.htandroid.htandroid D/JIGUANG-JCore: [ConnectingHelper] Open connection failed - ret:-993
11-21 12:28:03.331 9314-16153/com.htandroid.htandroid D/JIGUANG-JCore: [ConnectingHelper] Open connection with default host - ip:117.121.49.77, port:7003
11-21 12:28:04.330 9314-16153/com.htandroid.htandroid D/PushProtocol: init m_nSocket - -12
11-21 12:28:04.330 9314-16153/com.htandroid.htandroid D/JIGUANG-JCore: [ConnectingHelper] Open connection failed - ret:-993
11-21 12:28:04.331 9314-16153/com.htandroid.htandroid D/JIGUANG-JCore: [ConnectingHelper] Open connection with default host - ip:117.121.49.77, port:7004
11-21 12:28:05.330 9314-16153/com.htandroid.htandroid D/PushProtocol: init m_nSocket - -12
11-21 12:28:05.330 9314-16153/com.htandroid.htandroid D/JIGUANG-JCore: [ConnectingHelper] Open connection failed - ret:-993
11-21 12:28:05.331 9314-16153/com.htandroid.htandroid D/JIGUANG-JCore: [ConnectingHelper] Open connection with default host - ip:117.121.49.77, port:7005
11-21 12:28:06.330 9314-16153/com.htandroid.htandroid D/PushProtocol: init m_nSocket - -12
11-21 12:28:06.330 9314-16153/com.htandroid.htandroid D/JIGUANG-JCore: [ConnectingHelper] Open connection failed - ret:-993
11-21 12:28:06.331 9314-16153/com.htandroid.htandroid D/JIGUANG-JCore: [ConnectingHelper] Open connection with default host - ip:117.121.49.77, port:7006
11-21 12:28:07.330 9314-16153/com.htandroid.htandroid D/PushProtocol: init m_nSocket - -12
11-21 12:28:07.330 9314-16153/com.htandroid.htandroid D/JIGUANG-JCore: [ConnectingHelper] Open connection failed - ret:-993
11-21 12:28:07.331 9314-16153/com.htandroid.htandroid D/JIGUANG-JCore: [ConnectingHelper] Open connection with default host - ip:117.121.49.77, port:7007
11-21 12:28:08.330 9314-16153/com.htandroid.htandroid D/PushProtocol: init m_nSocket - -12
11-21 12:28:08.330 9314-16153/com.htandroid.htandroid D/JIGUANG-JCore: [ConnectingHelper] Open connection failed - ret:-993
11-21 12:28:08.331 9314-16153/com.htandroid.htandroid D/JIGUANG-JCore: [ConnectingHelper] Open connection with default host - ip:117.121.49.77, port:7008
11-21 12:28:09.330 9314-16153/com.htandroid.htandroid D/PushProtocol: init m_nSocket - -12
11-21 12:28:09.330 9314-16153/com.htandroid.htandroid D/JIGUANG-JCore: [ConnectingHelper] Open connection failed - ret:-993
11-21 12:28:09.331 9314-16153/com.htandroid.htandroid D/JIGUANG-JCore: [ConnectingHelper] Open connection with default host - ip:117.121.49.77, port:7009
11-21 12:28:10.330 9314-16153/com.htandroid.htandroid D/PushProtocol: init m_nSocket - -12
11-21 12:28:10.330 9314-16153/com.htandroid.htandroid D/JIGUANG-JCore: [ConnectingHelper] Open connection failed - ret:-993
11-21 12:28:10.331 9314-16153/com.htandroid.htandroid D/JIGUANG-JCore: [ConnectingHelper] Open connection with default - ip:103.230.236.33, port:7011
11-21 12:28:11.330 9314-16153/com.htandroid.htandroid D/PushProtocol: init m_nSocket - -12
11-21 12:28:11.330 9314-16153/com.htandroid.htandroid D/JIGUANG-JCore: [ConnectingHelper] Open connection failed - ret:-993
11-21 12:28:11.331 9314-16153/com.htandroid.htandroid D/JIGUANG-JCore: [NetworkingClient] Action - closeConnection - connection:547491266560
11-21 12:28:11.331 9314-16153/com.htandroid.htandroid D/JIGUANG-JCore: [NetworkingClient] Return of Close jni connection - 0
11-21 12:28:11.332 9314-9565/com.htandroid.htandroid D/JIGUANG-JCore: [JiguangTcpManager] Action - onDisconnected - connection:0
11-21 12:28:11.332 9314-9565/com.htandroid.htandroid D/JIGUANG-JCore: [ConnectingHelper] Action - sendConnectionChanged
11-21 12:28:11.332 9314-9565/com.htandroid.htandroid D/JIGUANG-JCore: [NetworkingClient] Action - tryStop - connection:0
11-21 12:28:11.336 9314-9565/com.htandroid.htandroid D/JIGUANG-JCore: [JiguangTcpManager] Action - retryConnect - disconnectedTimes:4
11-21 12:28:11.340 9314-9565/com.htandroid.htandroid D/JIGUANG-JCore: [JiguangTcpManager] onDisconnected and retry restart conn - delay:48000

#4

受手机系统限制,断开了链接,乃正常现象


#5

那这个要怎么解决呢 还有比较特殊的是华为手机,app只要退出前台状态 不管锁不锁屏 都会断掉连接,但程序进程一直都在的 这个什么问题呢