Objective c 应用程序挂起并最终崩溃,调用[NSView cursorUpdate:]n次

Objective c 应用程序挂起并最终崩溃,调用[NSView cursorUpdate:]n次,objective-c,cocoa,crash,stack-overflow,Objective C,Cocoa,Crash,Stack Overflow,当我编辑文本字段时,点击返回键或空格键,我看到上面提到的崩溃。崩溃日志没有引用我的任何代码行 Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_PROTECTION_FAILURE at 0x00007fff54c2fff8 VM Regions Near 0x7fff54c2fff8: MALLOC

当我编辑文本字段时,点击返回键或空格键,我看到上面提到的崩溃。崩溃日志没有引用我的任何代码行

Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00007fff54c2fff8

VM Regions Near 0x7fff54c2fff8:
MALLOC_SMALL           00007f85ec000000-00007f85ee000000 [ 32.0M] rw-/rwx SM=PRV  
--> STACK GUARD            00007fff51430000-00007fff54c30000 [ 56.0M] ---/rwx SM=NUL  stack guard for thread 0
Stack                  00007fff54c30000-00007fff55430000 [ 8192K] rw-/rwx SM=COW  thread 0

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   com.apple.CoreGraphics          0x00007fff92b7b149 CGSLogTrace + 24
1   com.apple.CoreGraphics          0x00007fff92b82d9d CGSGetCurrentCursorLocation + 125
2   com.apple.CoreGraphics          0x00007fff92bb417b CGSGetWindowMouseLocation + 73
3   com.apple.AppKit                0x00007fff96d3f3cd PScurrentmouse + 74
4   com.apple.AppKit                0x00007fff96d3f32c _NSCurrentMouseLocationInWindow + 71
5   com.apple.AppKit                0x00007fff96e8cbe5 -[NSWindow(NSCarbonExtensions) _findCursorForView:] + 94
6   com.apple.AppKit                0x00007fff96e8cb42 -[NSView cursorUpdate:] + 84
7   com.apple.AppKit                0x00007fff96e8ce17 forwardMethod + 125
8   com.apple.AppKit                0x00007fff96e8cb7b -[NSView cursorUpdate:] + 141

同样的事情永远都在发生。有人能帮我吗?非常感谢。

是否有任何内容写入控制台?听起来你的应用程序中可能有其他东西正在破坏内存,但在运行
cursorUpdate
之前它不会显示。不,控制台只显示与应用程序相关的日志与崩溃或内存损坏无关,基本上没有任何用处。我希望你还没有解决这个问题。我知道应用程序正在进入无限循环。但就是停不下来。请分享任何可以帮助我解决这个问题的想法。你有解决这个问题的运气吗?