Попытка понять SIGSEGV cra sh при показе NSPopover - PullRequest
0 голосов
/ 25 января 2020

Я получаю cra sh со следующей трассировкой стека, и я не уверен, что понимаю, что происходит и как это исправить:

libobjc.A.dylib
objc_release
libobjc.A.dylib
(anonymous namespace)::AutoreleasePoolPage::pop(void*)
CoreFoundation
_CFAutoreleasePoolPop
HIToolbox
ActivateInputMethodInstance
HIToolbox
utOpenActivateSelectedInputMethodInDoc
HIToolbox
utOpenActivateAllSelectedIMInDocIterator
CoreFoundation
CFArrayApplyFunction
HIToolbox
utOpenActivateAllSelectedIMInDoc
HIToolbox
MyActivateTSMDocument
AppKit
-[NSTextInputContext activate]
AppKit
+[NSTextInputContext currentInputContext_withFirstResponderSync:]
AppKit
-[NSTextInputContext invalidateCharacterCoordinates]
AppKit
-[NSTextView(NSSharing) setSelectedRanges:affinity:stillSelecting:]
AppKit
_NSEditTextCellWithOptions
AppKit
-[NSTextFieldCell _selectOrEdit:inView:target:editor:event:start:end:]
AppKit
-[NSCell selectWithFrame:inView:editor:delegate:start:length:]
AppKit
-[NSTextField selectText:]
AppKit
+[NSAppearance _performWithCurrentAppearance:usingBlock:]
AppKit
-[NSTextField selectText:]
AppKit
-[NSTextField becomeFirstResponder]
AppKit
-[NSWindow _realMakeFirstResponder:]
AppKit
-[NSWindow _makeParentWindowHaveFirstResponder:]
AppKit
-[NSWindow _selectFirstKeyView]
AppKit
-[NSWindow _setUpFirstResponder]
AppKit
-[NSWindow _doWindowWillBeVisibleAsSheet:]
AppKit
-[NSWindow _reallyDoOrderWindowAboveOrBelow:relativeTo:findKey:forCounter:force:isModal:]
AppKit
-[NSWindow _doOrderWindow:relativeTo:findKey:forCounter:force:isModal:]
AppKit
NSPerformVisuallyAtomicChange
AppKit
-[NSWindow _doOrderWindow:relativeTo:findKey:forCounter:force:isModal:]
AppKit
-[NSWindow orderWindow:relativeTo:]
AppKit
_NSWindowRebuildOrderingGroup
AppKit
NSPerformVisuallyAtomicChange
AppKit
-[NSWindow addChildWindow:ordered:]
AppKit
-[NSPopover showRelativeToRect:ofView:preferredEdge:]
Slideas
Slideas.Document.togglePresentationParams(sender: __C.NSButton) -> () Document.swift:397

, где строка Document.swift:397:

paramsPopover.show(relativeTo: sender.frame, of: sender, preferredEdge: NSRectEdge.maxY)

Есть идеи, откуда мне начинать расследование?

...