因此,我要从保存在应用程序文档目录中的文件中加载一些图像,完成后,我将更新一个字典,其中包含表视图的所有图像。到目前为止,一切正常。
但是现在我偶然发现了一个非常奇怪的崩溃。有时在更新字典时,应用程序崩溃,并显示以下错误消息:“检测到堆损坏,可用列表在...处被破坏”。
我已经在malloc_error_break处添加了一个符号断点,并按照本帖子中的建议打开了地址清理器,未定义行为清理器和僵尸对象:iOS error : Heap corruption detected, free list is damaged and Incorrect guard value: 0
现在,我收到以下错误消息,它也对我没有帮助:
2019-06-09 17:35:20.806306+0200 Wizy[9953:3221129] -[NSIndexPath count]: unrecognized selector sent to instance 0x8000000000000000
2019-06-09 17:36:28.490834+0200 Wizy[9953:3221129] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSIndexPath count]: unrecognized selector sent to instance 0x8000000000000000'
*** First throw call stack:
(0x1fc9d7ea0 0x1fbba9a40 0x1fc8f0d04 0x1fc9dd7b8 0x1fc9df45c 0x10952fbdc 0x10952fb5c 0x104868004 0x10461a178 0x104b59fd8 0x1045e4bd0 0x1067817c8 0x10a093824 0x10a094dc8 0x10a0a6330 0x10a0a6bc8 0x1fc5f417c 0x1fc5f6cec)
libc++abi.dylib: terminating with uncaught exception of type NSException
我不知道是什么原因导致了那次坠机,希望有人可以在这里帮助我!