语音发送很慢,还有错误信息

android
标签: #<Tag:0x00007f213ee1a170>

(Qiang) #1

错误信息:

I/DnsManager: cant get local dns server.
    java.net.SocketTimeoutException: Poll timed out
        at libcore.io.IoBridge.poll(IoBridge.java:691)
        at java.net.PlainDatagramSocketImpl.doRecv(PlainDatagramSocketImpl.java:149)
        at java.net.PlainDatagramSocketImpl.receive0(PlainDatagramSocketImpl.java:140)
        at java.net.AbstractPlainDatagramSocketImpl.receive(AbstractPlainDatagramSocketImpl.java:143)
        at java.net.DatagramSocket.receive(DatagramSocket.java:847)
        at cn.jmessage.support.qiniu.android.dns.local.Resolver.udpCommunicate(Unknown Source:35)
        at cn.jmessage.support.qiniu.android.dns.local.Resolver.resolve(Unknown Source:18)
        at cn.jmessage.support.qiniu.android.dns.local.HijackingDetectWrapper.resolve(Unknown Source:2)
        at cn.jmessage.support.qiniu.android.dns.local.AndroidDnsServer$1.resolve(Unknown Source:33)
        at cn.jmessage.support.qiniu.android.dns.DnsManager.queryInternal(Unknown Source:120)
        at cn.jmessage.support.qiniu.android.dns.DnsManager.query(Unknown Source:46)
        at cn.jmessage.support.qiniu.android.dns.DnsManager.queryInetAdress(Unknown Source:0)
        at cn.jmessage.support.qiniu.android.storage.Configuration$Builder$1.lookup(Unknown Source:7)
        at cn.jmessage.support.qiniu.android.http.Client$1.lookup(Unknown Source:2)
        at cn.jmessage.support.okhttp3.internal.connection.RouteSelector.resetNextInetSocketAddress(Unknown Source:130)
        at cn.jmessage.support.okhttp3.internal.connection.RouteSelector.nextProxy(Unknown Source:66)
        at cn.jmessage.support.okhttp3.internal.connection.RouteSelector.next(Unknown Source:23)
        at cn.jmessage.support.okhttp3.internal.connection.StreamAllocation.findConnection(Unknown Source:144)
        at cn.jmessage.support.okhttp3.internal.connection.StreamAllocation.findHealthyConnection(Unknown Source:0)
        at cn.jmessage.support.okhttp3.internal.connection.StreamAllocation.newStream(Unknown Source:22)
        at cn.jmessage.support.okhttp3.internal.connection.ConnectInterceptor.intercept(Unknown Source:25)
        at cn.jmessage.support.okhttp3.internal.http.RealInterceptorChain.proceed(Unknown Source:168)
        at cn.jmessage.support.okhttp3.internal.http.RealInterceptorChain.proceed(Unknown Source:6)
        at cn.jmessage.support.okhttp3.internal.cache.CacheInterceptor.intercept(Unknown Source:139)
        at cn.jmessage.support.okhttp3.internal.http.RealInterceptorChain.proceed(Unknown Source:168)
        at cn.jmessage.support.okhttp3.internal.http.RealInterceptorChain.proceed(Unknown Source:6)
        at cn.jmessage.support.okhttp3.internal.http.BridgeInterceptor.intercept(Unknown Source:225)
        at cn.jmessage.support.okhttp3.internal.http.RealInterceptorChain.proceed(Unknown Source:168)
        at cn.jmessage.support.okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(Unknown Source:63)
        at cn.jmessage.support.okhttp3.internal.http.RealInterceptorChain.proceed(Unknown Source:168)
        at cn.jmessage.support.okhttp3.internal.http.RealInterceptorChain.proceed(Unknown Source:6)
        at cn.jmessage.support.okhttp3.RealCall.getResponseWithInterceptorChain(Unknown Source:115)
        at cn.jmessage.support.okhttp3.RealCall$AsyncCall.execute(Unknown Source:4)
        at cn.jmessage.support.okhttp3.internal.NamedRunnable.run(Unknown Source:17)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
        at java.lang.Thread.run(Thread.java:764)

#2

1、提供你使用的 SDK 版本号

2、该问题是可以复现的是吗?将你完整的客户端日志提供一下,从初始化到你复现到报错


3、你的网络状态如何?使用的是 4 G 还是 WiFi


(Qiang) #3

网络畅通,网络类型是WIFI,从初始化到发送一条语音的日志:

D/JIGUANG-JMessage: [AndroidUtil] action:checkValidManifest
D/JIGUANG-JCore: [JCoreGlobal] action:init - sdkVersion:1.2.6, buildId:101
D/JIGUANG-JCore: [JCoreGlobal] manifest:channel - developer-default
D/JIGUANG-JCore: [JCoreGlobal] metadata: appKey - 05731a8301337f91f10b0eb6
D/JIGUANG-JCore: [AndroidUtil] action:checkValidManifest
W/JIGUANG-JCore: [AndroidUtil] We recommend DataProvider's process same as PushService
D/JIGUANG-JCore: [JCoreServiceUtils] set Push/Alarm Receiver enabled
E/JIGUANG-JMessage: [PluginWhichPlatform] cn.jpush.android.thirdpush.xiaomi.XMPushManager
E/JIGUANG-JMessage: [PluginWhichPlatform] cn.jpush.android.thirdpush.huawei.HWPushManager
E/JIGUANG-JMessage: [PluginWhichPlatform] cn.jpush.android.thirdpush.meizu.MeizuPushManager
E/JIGUANG-JMessage: [PluginWhichPlatform] cn.jpush.android.thridpush.oppo.OPushManager
E/JIGUANG-JMessage: [PluginWhichPlatform] cn.jpush.android.thirdpush.fcm.FCMPushManager
I/JIGUANG-JMessage: [JMessageClient] JMessage SDK init finished! version = 2.8.1 build id = 986
D/JIGUANG-JPush: [JPushInterface] action:init - sdkVersion:3.1.3, buildId:405
D/JIGUANG-JPush: [AndroidUtil] action:checkValidManifest
I/JIGUANG-JPush: [PluginPlatformsInterface] whichPlatform - 0
I/JIGUANG-JPush: [PluginPlatformsInterface] isIntegrateFCM -false
D/JIGUANG-JMessage: [b] processIMData type : network_status_changed
D/JIGUANG-JMessage: [b] processIMData type : push_login_status_changed
D/JIGUANG-JMessage: [RequestingThread] Action - onLoggedIn
D/JIGUANG-JMessage: [RequestingThread] Action - sendRequestInternal - connection:, timeout:60000, threadId:1966
I/JIGUANG-JMessage: [RequestProcessor] start SyncCheck
D/JIGUANG-JMessage: [RequestingThread] Action - sendCommandWithLoggedIn
D/JIGUANG-JCore: [PushReceiver] onReceive - cn.jpush.android.intent.ACTION_REPORT_HISTORY
D/JIGUANG-JMessage: [RequestingThread] request is [Requesting] - timeout:50000, times:1, request:[Request] - [JHead] - len:0, version:1, command:100, rid:3940, sid:36454, juid:23887856350
D/JIGUANG-JMessage: [RequestingThread] Request params - cmd:100
D/JIGUANG-JPush: [PushReceiverCore] onReceive - cn.jpush.android.intent.ACTION_REPORT_HISTORY
D/JIGUANG-JMessage: [b] processIMData type : im_response
D/JIGUANG-JMessage: [ResponseProcessor] IMCMD:23
D/JIGUANG-JPush: [JPushInterface] action:resumePush
D/JIGUANG-JMessage: [RequestingThread] Action - sendRequestInternal - connection:, timeout:60000, threadId:1966
D/JIGUANG-JMessage: [RequestingThread] Action - sendCommandWithLoggedIn
D/JIGUANG-JMessage: [RequestingThread] request is [Requesting] - timeout:50000, times:1, request:[Request] - [JHead] - len:0, version:1, command:100, rid:3942, sid:36454, juid:23887856350
D/JIGUANG-JMessage: [RequestingThread] Request params - cmd:100
D/JIGUANG-JMessage: [b] processIMData type : im_response
D/JIGUANG-JMessage: [ResponseProcessor] IMCMD:39
D/JIGUANG-JMessage: [b] processIMData type : im_response
D/JIGUANG-JMessage: [ResponseProcessor] IMCMD:40
D/JIGUANG-JMessage: [SyncRespBaseHandler] sync resp received , uid = 245116632
I/JIGUANG-JMessage: [SyncRespBaseHandler] [PageReceived] receive page . page no = 1 page = cn.jmessage.biz.j.a.f$m@1a1070
I/JIGUANG-JMessage: [SyncRespBaseHandler] [PageReceived] cached page no[1]
D/JIGUANG-JMessage: [SyncRespBaseHandler] [PageReceived]start convLocalize conv pages. total page 1
I/JIGUANG-JMessage: [SyncConvRespHandler]  conv id = 245116632_245189752 new list totalCount = 5 old list totalCount = 0
D/JIGUANG-JMessage: [SyncRespBaseHandler] conversation localize finished. status code = -100
I/JIGUANG-JMessage: [SyncConvRespHandler] send sync conv ack back == synckey is 1555383232711
I/JIGUANG-JMessage: [SyncRespBaseHandler] sync resp finished. code = 0 desc = Success
D/JIGUANG-JMessage: [RequestingThread] Action - sendRequestInternal - connection:, timeout:60000, threadId:1966
D/JIGUANG-JMessage: [RequestingThread] Action - sendCommandWithLoggedIn
D/JIGUANG-JMessage: [RequestingThread] request is [Requesting] - timeout:50000, times:1, request:[Request] - [JHead] - len:0, version:1, command:100, rid:3944, sid:36454, juid:23887856350
D/JIGUANG-JMessage: [RequestingThread] Request params - cmd:100
D/JIGUANG-JMessage: [RequestingThread] Action - sendRequestInternal - connection:, timeout:300000, threadId:1966
D/JIGUANG-JMessage: [RequestingThread] Action - sendCommandWithLoggedIn
D/JIGUANG-JMessage: [RequestingThread] request is [Requesting] - timeout:290000, times:1, request:[Request] - [JHead] - len:0, version:1, command:100, rid:3948, sid:36454, juid:23887856350
D/JIGUANG-JMessage: [RequestingThread] Request params - cmd:100
D/JIGUANG-JMessage: [b] processIMData type : im_response
D/JIGUANG-JMessage: [ResponseProcessor] IMCMD:3
D/JIGUANG-JMessage: [MsgRequest] send message success. id = 3302168050 cTimeMS = 1555383385935
D/JIGUANG-JMessage: [RequestingThread] Action - sendRequestInternal - connection:, timeout:300000, threadId:1966
D/JIGUANG-JMessage: [RequestingThread] Action - sendCommandWithLoggedIn
D/JIGUANG-JMessage: [RequestingThread] request is [Requesting] - timeout:290000, times:1, request:[Request] - [JHead] - len:0, version:1, command:100, rid:3952, sid:36454, juid:23887856350
D/JIGUANG-JMessage: [RequestingThread] Request params - cmd:100
D/JIGUANG-JMessage: [b] processIMData type : im_response
D/JIGUANG-JMessage: [ResponseProcessor] IMCMD:3
D/JIGUANG-JMessage: [MsgRequest] send message success. id = 3302172100 cTimeMS = 1555383421136

(Qiang) #4
android = [
        compileSdkVersion: 27,
        buildToolsVersion: '27.0.3',
        minSdkVersion    : 19,
        targetSdkVersion : 26,
        versionCode      : 34,
        versionName      : '3.0.4',
]

supportVersion = "27.1.1"

#5

根据日志来看是设备网络问题,你换 4 G 测试看看


(Qiang) #7

嗯,换4G就正常。但是设备的浏览器访问是很快的的。


#8

4 G 正常,WiFi 有问题,可能是你的 WiFi 对极光的 SDK 所需访问的域名有 限制导致的


(Qiang) #9

好的,谢谢。