简体   繁体   English

如何调试线程1的问题:EXC_BAD_ACCESS(代码= 2,地址= 0x7ffee1ba8578)

[英]How debug the issue of Thread 1: EXC_BAD_ACCESS (code=2, address=0x7ffee1ba8578)

I encounter the Thread 1: EXC_BAD_ACCESS (code=2, address=0x7ffee1ba8578) error. 我遇到线程1:EXC_BAD_ACCESS(代码= 2,地址= 0x7ffee1ba8578)错误。

As I know this cause from abnormal object release. 据我所知,这是由于异常对象释放引起的。

But seem as stuck [MTLModel description] infinite loop. 但是似乎卡住了[MTLModel description]无限循环。

在此处输入图片说明

Even already add one exception breakpoint in project and enable Zombie Objects in Edit Scheme, the console still without any information and output when error occurs. 即使已经在项目中添加了一个异常断点并在“编辑方案”中启用了“僵尸对象”,当发生错误时,控制台仍然没有任何信息和输出。

Is there any idea or experience for debugging. 是否有调试的想法或经验。

Would you by any chance have a property in your model named description ? 您是否会在模型中有一个名为description的属性? If so, please note that description is reserved in Objective-C to generate a NSString description of an object. 如果是,请注意, description在目标C保留以产生对象的一个的NSString描述。 You will probably need to name it "desc" or some other name and use the JSONKeyPathsByPropertyKey to associate the "description" property of your JSON model to your "desc" property of your Objective-C model. 您可能需要将其命名为“ desc”或其他名称,然后使用JSONKeyPathsByPropertyKey将JSON模型的“ description”属性与Objective-C模型的“ desc”属性相关联。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何修复错误:“线程 1:EXC_BAD_ACCESS(代码 = 2,地址 = 0x7ffee0761ed8)” - How do I fix the error: "Thread 1: EXC_BAD_ACCESS (code=2, address=0x7ffee0761ed8)" 线程 1:EXC_BAD_ACCESS (code=2, address=0x7ffee0948ff8) 在 SwiftUI 中启动应用程序时 - Thread 1: EXC_BAD_ACCESS (code=2, address=0x7ffee0948ff8) while launch app in SwiftUI AVAudioRecorder线程1:EXC_BAD_ACCESS(代码= 1,地址= 0x0) - AVAudioRecorder Thread 1: EXC_BAD_ACCESS (code=1, address=0x0) 线程 1:EXC_BAD_ACCESS(代码 = 1,地址 = 0x30000008) - Thread 1 : EXC_BAD_ACCESS (Code = 1, address = 0x30000008) 线程1:EXC_BAD_ACCESS(代码= 1,地址= 0x200) - Thread 1: EXC_BAD_ACCESS (code=1, address=0x200) 线程1:EXC_BAD_ACCESS (code=1, address=0x0) in xcode - Thread 1: EXC_BAD_ACCESS (code=1, address=0x0) in xcode 线程1:EXC_BAD_ACCESS(代码= 1,地址= 0x14) - thread 1:EXC_BAD_ACCESS (code=1, address=0x14) 线程 1:EXC_BAD_ACCESS(代码=1,地址=0x8000000000000010) - Thread 1: EXC_BAD_ACCESS (code=1, address=0x8000000000000010) 线程1:EXC_BAD_ACCESS(代码= 1,地址= 0x48) - Thread 1: EXC_BAD_ACCESS (code=1, address=0x48) 线程1:生成EXC_BAD_ACCESS(代码= 1,地址= 0x0)问题 - Thread 1 : EXC_BAD_ACCESS (Code = 1, address = 0x0) issue generated
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM