【问题标题】:Crash while downloading video via ASIHTTPRequest?通过 ASIHTTPRequest 下载视频时崩溃?
【发布时间】:2012-04-12 05:43:40
【问题描述】:

以下是 BUGSENSE 的堆栈跟踪:

堆栈跟踪:

0  libobjc.A.dylib 0x34a80464 0x34a7d000 13412
1  CoreFoundation 0x35818bbf -[NSObject(NSObject) performSelector:withObject:] 22
2  App-iPad 0x0002839d 0x1000 160669
3  CoreFoundation 0x35818bbf -[NSObject(NSObject) performSelector:withObject:] 22
4  Foundation 0x31181795 __NSThreadPerformPerform 268
5  CoreFoundation 0x358307dd __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ 12
6  CoreFoundation 0x358025b7 __CFRunLoopDoSources0 382
7  CoreFoundation 0x35801e5b __CFRunLoopRun 230
8  CoreFoundation 0x35801c87 CFRunLoopRunSpecific 230
9  CoreFoundation 0x35801b8f CFRunLoopRunInMode 58
10 GraphicsServices 0x320c84ab GSEventRunModal 114
11 GraphicsServices 0x320c8557 GSEventRun 62
12 UIKit 0x341dc329 -[UIApplication _run] 412
13 UIKit 0x341d9e93 UIApplicationMain 670
14 App-iPad 0x00003ac5 main 108

有什么建议吗?

【问题讨论】:

  • __NSThreadPerformPerform 一般被选择器方法使用,你能检查一下你使用选择器的地方没有做任何错误的内存释放吗?
  • 您能发布代码吗?您如何提出请求和处理?

标签: iphone ios crash crash-reports


【解决方案1】:

在我看来,处理 ASIHTTPRequestdelegate 对象已被释放。

确保在解除分配委托时停止所有待处理的请求。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-03-17
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多