Post

Replies

Boosts

Views

Activity

Reply to How to report AppKit bug I can't reproduce but have dozens of reports (NSControlTrackMouse)
I wouldn't say as solution but I finally found what is causing it. On Big Sur I have slightly better crash report. I found out that there is a strong reference to a block + NSStepper. I was changing first responder somewhere in app (resign first responder and hide stepper). The fact that and there is a delayed mouseDown event delivered which is causing the crash. Still trying to dig more. Application Specific Information: objcmsgSend() selector name: sendActionsForEvents:view: 0   libobjc.A.dylib                   0x00007fff201b0d1d objcmsgSend + 29 1   com.apple.AppKit                  0x00007fff232bb0da NSControlTrackMouseblockinvoke.55 + 701 2   com.apple.AppKit                  0x00007fff22e3c922 -[NSDragEventTracker trackEvent:usingHandler:] + 1155 3   com.apple.AppKit                  0x00007fff22e3bdb5 NSControlTrackMouse + 1397 4   com.apple.AppKit                  0x00007fff22e3b818 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 130 5   com.apple.AppKit                  0x00007fff2338cd23 -[NSStepperCell trackMouse:inRect:ofView:untilMouseUp:] + 162 6   com.apple.AppKit                  0x00007fff231667d5 -[NSDatePickerCell(NSTextFieldWithStepperDatePickerInternal) textFieldWithStepperTrackMouse:inRect:ofView:untilMouseUp:] + 390 7   com.apple.AppKit                  0x00007fff22e3aa18 -[NSControl mouseDown:] + 722 8   com.apple.AppKit                  0x00007fff23160fcc -[NSDatePicker mouseDown:] + 47 9   com.apple.AppKit                  0x00007fff22e38e98 -[NSWindow(NSEventRouting) handleMouseDownEvent:isDelayedEvent:] + 4956 10  com.apple.AppKit                  0x00007fff22da7848 -[NSWindow(NSEventRouting) reallySendEvent:isDelayedEvent:] + 2594 11  com.apple.AppKit                  0x00007fff22da6c0a -[NSWindow(NSEventRouting) sendEvent:] + 347 12  com.apple.AppKit                  0x00007fff22da4ff0 -[NSApplication(NSEvent) sendEvent:] + 352 13  com.apple.AppKit                  0x00007fff2307dd16 -[NSApplication _handleEvent:] + 65 14  com.apple.AppKit                  0x00007fff22c0d983 -[NSApplication run] + 623
Oct ’20