崩溃在NSOperationQueue addOperation Custom NSOperation

时间:2016-07-28 11:04:29

标签: crash nsoperation nsoperationqueue

我有一个NSOperationQueue,maxConcurrentOperationCount = 1,

和Custom NSOperation有一个属性是块,

当NSOperationQueue addOperation时,应用程序崩溃,在iOS 9.x中,

NSOperation不是零。

以下是Apple崩溃报告,但我无法重新出现:

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x1000000013ed199e

0   Foundation 0x0000000182f3b4e8 ____addOperations_block_invoke607 + 524 (NSOperation.m:193)
1   Foundation 0x0000000182f3b488 ____addOperations_block_invoke607 + 428 (NSOperation.m:204)
2   Foundation 0x0000000182f26170 -[NSObject(NSKeyValueObservingPrivate) _changeValueForKeys:count:maybeOldValuesDict:usingBlock:] + 672 (NSKeyValueObserving.m:2406)
3   Foundation 0x0000000182e7afc0 -[NSObject(NSKeyValueObservingPrivate) _changeValueForKey:key:key:usingBlock:] + 64 (NSKeyValueObserving.m:2432)
4   Foundation 0x0000000182f392e4 __addOperations + 1400 (NSOperation.m:2100)

谢谢!

0 个答案:

没有答案