Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/csharp-4.0/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Objective c 此错误的原因是什么?无效指针从可用列表中退出队列?_Objective C_Macos_Cocoa - Fatal编程技术网

Objective c 此错误的原因是什么?无效指针从可用列表中退出队列?

Objective c 此错误的原因是什么?无效指针从可用列表中退出队列?,objective-c,macos,cocoa,Objective C,Macos,Cocoa,当我向视图中添加子视图时,以下堆栈导致崩溃。我找不到这个错误的确切原因?mac应用程序在10.10.5中运行。在搜索过程中,我发现该问题出现在10.10.5中。有人能帮我调试这个问题吗 Application Specific Information: abort() called *** error for object 0x600000a24ea1: Invalid pointer dequeued from free list Thread 0 Crashed:: MainThread

当我向视图中添加子视图时,以下堆栈导致崩溃。我找不到这个错误的确切原因?mac应用程序在10.10.5中运行。在搜索过程中,我发现该问题出现在10.10.5中。有人能帮我调试这个问题吗

Application Specific Information:
abort() called
*** error for object 0x600000a24ea1: Invalid pointer dequeued from free list


Thread 0 Crashed:: MainThread  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib          0x00007fff96bb2286 __pthread_kill + 10
1   libsystem_c.dylib               0x00007fff9358cb53 abort + 129
2   libsystem_malloc.dylib          0x00007fff97eadf3c nanozone_error + 524
3   libsystem_malloc.dylib          0x00007fff97e9ba5c _nano_malloc_check_clear + 370
4   libsystem_malloc.dylib          0x00007fff97e9db48 nano_calloc + 73
5   libsystem_malloc.dylib          0x00007fff97e9dacb malloc_zone_calloc + 78
6   libsystem_malloc.dylib          0x00007fff97ea3231 calloc + 49
7   libobjc.A.dylib                 0x00007fff8e09fc12 class_createInstance + 133
8   libobjc.A.dylib                 0x00007fff8e0a1dea +[NSObject new] + 42
9   com.apple.AppKit                0x00007fff90ab2a04 _NXSetCursorRect + 408
10  com.apple.AppKit                0x00007fff90ab26c6 -[NSWindow _addCursorRect:cursor:forView:] + 907
11  com.apple.AppKit                0x00007fff90ab231a -[NSView addCursorRect:cursor:] + 555
12  com.apple.AppKit                0x00007fff90cf88eb -[NSTableHeaderView resetCursorRects] + 389
13  com.apple.AppKit                0x00007fff90aaf3ef -[NSView(NSInternal) _updateTrackingAreas] + 663
14  com.apple.AppKit                0x00007fff90aaf899 -[NSView(NSInternal) _updateTrackingAreas] + 1857
15  com.apple.AppKit                0x00007fff90aaf899 -[NSView(NSInternal) _updateTrackingAreas] + 1857
16  com.apple.AppKit                0x00007fff90ab04ee -[NSScrollView _updateTrackingAreas] + 119
17  com.apple.AppKit                0x00007fff90aaf899 -[NSView(NSInternal) _updateTrackingAreas] + 1857
18  com.apple.AppKit                0x00007fff90aaf899 -[NSView(NSInternal) _updateTrackingAreas] + 1857
19  com.apple.AppKit                0x00007fff90aaf899 -[NSView(NSInternal) _updateTrackingAreas] + 1857
20  com.apple.AppKit                0x00007fff90aaf899 -[NSView(NSInternal) _updateTrackingAreas] + 1857
21  com.apple.AppKit                0x00007fff90aaf899 -[NSView(NSInternal) _updateTrackingAreas] + 1857
22  com.apple.AppKit                0x00007fff90aaf899 -[NSView(NSInternal) _updateTrackingAreas] + 1857
23  com.apple.AppKit                0x00007fff90aaf899 -[NSView(NSInternal) _updateTrackingAreas] + 1857
24  com.apple.AppKit                0x00007fff90aaf899 -[NSView(NSInternal) _updateTrackingAreas] + 1857
25  com.apple.AppKit                0x00007fff90ab04ee -[NSScrollView _updateTrackingAreas] + 119
26  com.apple.AppKit                0x00007fff90aaf899 -[NSView(NSInternal) _updateTrackingAreas] + 1857
27  com.apple.AppKit                0x00007fff90aaf899 -[NSView(NSInternal) _updateTrackingAreas] + 1857
28  com.apple.AppKit                0x00007fff90aaf899 -[NSView(NSInternal) _updateTrackingAreas] + 1857
29  com.apple.AppKit                0x00007fff90aaefb2 _handleInvalidCursorRectsNote + 1077
30  com.apple.AppKit                0x00007fff91132231 __35-[NSWindow _postInvalidCursorRects]_block_invoke3353 + 46

谷歌,你会发现这表明内存被覆盖,底层内存分配器malloc被破坏。至于它是你的还是一个系统错误,你必须自己做得更深入一些。检查指针的使用情况(与对象引用相反),
free
(如果使用的话),等等。很好的搜索!显示一些源代码,并解释您是否正在使用ARC。源代码非常庞大,不知道它在哪里崩溃。我们正在使用ARC。我在运行过程中只发生过一次崩溃,之后就不可复制了。你说“当我将子视图添加到视图中时…”,那么你是在代码中这样做的吗?如果是的话,这就是我想看的代码。这只是基本代码。添加子视图。我们在这个方法中没有做任何其他的事情。谷歌,你会发现这表明内存被覆盖,底层内存分配器malloc被破坏。至于它是你的还是一个系统错误,你必须自己做得更深入一些。检查指针的使用情况(与对象引用相反),
free
(如果使用的话),等等。很好的搜索!显示一些源代码,并解释您是否正在使用ARC。源代码非常庞大,不知道它在哪里崩溃。我们正在使用ARC。我在运行过程中只发生过一次崩溃,之后就不可复制了。你说“当我将子视图添加到视图中时…”,那么你是在代码中这样做的吗?如果是的话,这就是我想看的代码。这只是基本代码。添加子视图。我们没有用这种方法做任何其他事情。