iOS crasher:CFNetwork HTTPReadFilter :: doPlainRead(StreamReader *,unsigned char *,long,CFStreamError *,unsigned char *)

前端之家收集整理的这篇文章主要介绍了iOS crasher:CFNetwork HTTPReadFilter :: doPlainRead(StreamReader *,unsigned char *,long,CFStreamError *,unsigned char *)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我有这个在我们的生产应用程序中发生很多事情,但是我们无法再现它.它只发生在使用iOS8 SDK的iOS8上.
HTTPReadFilter::doPlainRead(StreamReader*,unsigned char*,long,CFStreamError*,unsigned char*) inside CFNetwork. Crashed: com.apple.NSURLConnectionLoader EXC_BAD_ACCESS KERN_INVALID_ADDRESS at 0x00000000

StackTrace:

        libsystem_platform.dylib    
    _platform_memmove + 185

    CFNetwork   
    HTTPReadFilter::doPlainRead(StreamReader*,unsigned char*) + 178

    CFNetwork   
    HTTPReadFilter::_streamImpl_Read(unsigned char*,unsigned char*) + 394

    CFNetwork   
    CoreStreamBase::_streamInterface_Read(unsigned char*,long) + 98

    CFNetwork   
    HTTPNetStreamInfo::_streamImpl_Read(__CFReadStream*,unsigned char*) + 306

    CFNetwork   
    CFNetworkReadStream::httpStreamRead(__CFReadStream*,void*) + 44

    CoreFoundation  
    CFReadStreamRead + 328

    CFNetwork   
    HTTPNetStreamInfo::_readStreamClientCallBack(__CFReadStream*,unsigned long) + 128

    CFNetwork   
    CFNetworkReadStream::_readStreamClientCallBackCallBack(__CFReadStream*,unsigned long,void*) + 38

    CoreFoundation  
    _signalEventSync + 146

    CoreFoundation  
    _cfstream_shared_signalEventSync + 342
        CoreFoundation  
    __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 14
        CoreFoundation  
    CFRunLoopRunInMode + 106

    CFNetwork   
    +[NSURLConnection(Loader) _resourceLoadLoop:] + 486
        Foundation  
    __NSThread__main__ + 1118
        libsystem_pthread.dylib 
    _pthread_start + 118

任何帮助是极大的赞赏!!

解决方法

这似乎是一个真正的iOS 8 bug.尝试不为您的NSURLCache设置自定义大小.检查这个 https://devforums.apple.com/message/1102182#1102182
原文链接:https://www.f2er.com/iOS/335746.html

猜你在找的iOS相关文章