iOS经常因以下堆栈的无限递归而崩溃:

#7801   0x01c96241 in _writeJSONValue ()
#7802   0x01c9a660 in ___writeJSONArray_block_invoke ()
#7803   0x04bbad86 in __53-[__NSArrayM     enumerateObjectsWithOptions:usingBlock:]_block_invoke ()
#7804   0x04bbac92 in -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] ()
#7805   0x04b37ca5 in -[NSArray enumerateObjectsUsingBlock:] ()
....
#7822   0x04bbac92 in -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] ()
#7823   0x04b37ca5 in -[NSArray enumerateObjectsUsingBlock:] ()
#7824   0x01c9a571 in _writeJSONArray ()
#7825   0x01c96241 in _writeJSONValue ()
#7826   0x01c95f9d in -[_NSJSONWriter dataWithRootObject:options:error:] ()
#7827   0x01c98b57 in +[NSJSONSerialization dataWithJSONObject:options:error:] ()
#7828   0x001a7ec8 in ptrIntPtrParamHandler at /Users/jenkins/workspace/iOS v3 Agent -

编辑,请查看屏幕NewRelic生成错误,而不是我的代码

最佳答案

这看起来像是代理(v3.252之前的版本)的旧错误。更新最新版本的New Relic应该可以解决此问题。

10-06 01:03