- objective-c - iOS 5 : Can you override UIAppearance customisations in specific classes?
- iphone - 如何将 CGFontRef 转换为 UIFont?
- ios - 以编程方式关闭标记的信息窗口 google maps iOS
- ios - Xcode 5 - 尝试验证存档时出现 "No application records were found"
应用程序在启动后大约 15 秒崩溃,XCode 只是在一个地址处中断并给我一个弹出窗口,上面写着“线程 6 com.apple.NSURLConnectionLoader:程序收到信号:EXC_BAD_ACCESS”
我一直无法找到问题所在。它在 iOS 4 上运行良好,但我猜那只是因为它对 bug 或其他东西的容忍度更高。我试过在任何地方设置断点并单步执行,在 Zombies 配置文件下的 Instruments 中运行它,但它只是炸毁并且没有告诉我在哪里。我没有收到警告和清晰的分析,所以我有点不知所措。谁能提供任何建议?谢谢。
回溯是:
(gdb) backtrace
#0 0x024fb939 in _dispatch_retain ()
#1 0x024fbc02 in dispatch_source_cancel ()
#2 0x0109e492 in _CFURLCacheDeallocate ()
#3 0x0205a4e3 in CFRelease ()
#4 0x010331b1 in HTTPProtocol::~HTTPProtocol ()
#5 0x0100c75d in CFClass::FinalizeObj ()
#6 0x0205a4e3 in CFRelease ()
#7 0x02110af0 in __CFDictionaryStandardReleaseValue ()
#8 0x020714b1 in __CFBasicHashDrain ()
#9 0x0205a4e3 in CFRelease ()
#10 0x01024237 in SocketStream::~SocketStream ()
#11 0x0100c75d in CFClass::FinalizeObj ()
#12 0x0205a4e3 in CFRelease ()
#13 0x01023e0b in SocketStream::finalize ()
#14 0x01023dc6 in virtual thunk to SocketStream::finalize(void const*) ()
#15 0x01023da1 in ReadStreamCallbacks::_finalize ()
#16 0x0208201a in __CFStreamDeallocate ()
#17 0x0205a4e3 in CFRelease ()
#18 0x01030a6c in HTTPReadFilter::~HTTPReadFilter ()
#19 0x0100c75d in CFClass::FinalizeObj ()
#20 0x0205a4e3 in CFRelease ()
#21 0x010c22bc in non-virtual thunk to HTTPReadFilter::readStreamFinalize(__CFReadStream*) ()
#22 0x0102ff1c in CFNetworkReadStream::httpStreamFinalize ()
#23 0x0208201a in __CFStreamDeallocate ()
#24 0x0205a4e3 in CFRelease ()
#25 0x0103070f in NetConnection::shutdownConnectionStreams ()
#26 0x010bf1fc in NetConnection::closeStreamsIfPossibleOrSignalThatThatNeedsToBeDonePrettyPlease ()
#27 0x0103485b in HTTPConnectionCacheEntry::removeUnauthConnection ()
#28 0x010d6d2d in HTTPConnectionCacheEntry::purgeIdleConnections ()
#29 0x010d3c1e in ConnectionCacheTLS::resetCacheForThisThread ()
#30 0x0101b739 in ConnectionTimerTLS::_timerPurgeEntries ()
#31 0x02122966 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ ()
#32 0x02122407 in __CFRunLoopDoTimer ()
#33 0x020857c0 in __CFRunLoopRun ()
#34 0x02084db4 in CFRunLoopRunSpecific ()
#35 0x02084ccb in CFRunLoopRunInMode ()
#36 0x00206e40 in +[NSURLConnection(Loader) _resourceLoadLoop:] ()
#37 0x001184e6 in -[NSThread main] ()
#38 0x00118457 in __NSThread__main__ ()
#39 0x98d6b259 in _pthread_start ()
#40 0x98d6b0de in thread_start ()
最佳答案
设置NSZombieEnabled , MallocStackLogging , 和 guard malloc在调试器中。然后,当您的应用程序崩溃时,在 gdb 控制台中输入:
(gdb) info malloc-history 0x543216
将 0x543216
替换为导致崩溃的对象的地址,您将获得更有用的堆栈跟踪,它应该可以帮助您查明代码中导致问题的确切行.
关于iphone - "Thread 6 com.apple.NSURLConnectionLoader: Program received signal: EXC_BAD_ACCESS",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7814917/
我们开始看到应用启动时发生的崩溃。我无法重现它,它只发生在少数用户身上。 异常是:异常类型:EXC_BAD_ACCESS 代码:KERN_INVALID_ADDRESS at 0x3250974659
我遇到了 Webview 的问题我正在尝试在其中加载网页。但每次我的ViewControler加载我得到以下崩溃 网页 View : - 这就是我在我的viewDidLoad: 中所做的。方法 - (
我正在使用相同的 Xcode 项目在 IOS 和 OSX 上构建相同的应用程序。我是新的 OSX 开发者。 对于此应用程序,我将共享代码以使用 NSURLConnection 将 HTTPS 请求发送
基本任务 我有一些使用某些 C++ 流接口(interface)的多平台库。我必须使用此流接口(interface)通过 NSURLSession 上传数据。我的实现应该在 OS X 和 iOS 上工
我已经开始在一些生产设备上看到这种崩溃。在这种情况下,Fabric Crashlytics 和 iOS 提供的信息非常有限,我不确定如何调试它。 唯一常见的崩溃是发生在 iPhone 5S/iOS 1
应用程序在启动后大约 15 秒崩溃,XCode 只是在一个地址处中断并给我一个弹出窗口,上面写着“线程 6 com.apple.NSURLConnectionLoader:程序收到信号:EXC_BAD
我是一名优秀的程序员,十分优秀!