migueldeicaza / SwiftTermApp

MIT License
309 stars 29 forks source link

M1/iOS app: Pressing control-[ crashes. #186

Closed migueldeicaza closed 2 years ago

migueldeicaza commented 2 years ago
2022-04-25 22:31:14.237706-0400 SwiftTermApp[23468:11205755] -[UIMenuController propertyList]: unrecognized selector sent to instance 0x600003f650c0
2022-04-25 22:31:14.237946-0400 SwiftTermApp[23468:11205755] [General] -[UIMenuController propertyList]: unrecognized selector sent to instance 0x600003f650c0
2022-04-25 22:31:14.240503-0400 SwiftTermApp[23468:11205755] [General] (
    0   CoreFoundation                      0x00000001a16bc1cc __exceptionPreprocess + 240
    1   libobjc.A.dylib                     0x00000001a140d7b8 objc_exception_throw + 60
    2   CoreFoundation                      0x00000001a174f1a0 -[NSObject(NSObject) __retain_OA] + 0
    3   CoreFoundation                      0x00000001a161c360 ___forwarding___ + 1728
    4   CoreFoundation                      0x00000001a161bbe0 _CF_forwarding_prep_0 + 96
    5   SwiftUI                             0x00000001ddeef788 $sSo12UIKeyCommandC7SwiftUIE17discoverabilityIDAC03KeybF0VSgvg + 40
    6   SwiftUI                             0x00000001dda29cd0 $s7SwiftUI23UIKitMainMenuControllerC08_performdE18ShortcutKeyCommandyySo05UIKeyJ0CF + 36
    7   SwiftUI                             0x00000001de0bce18 $s7SwiftUI11AppDelegateC34_performMainMenuShortcutKeyCommandyySo05UIKeyJ0CF + 48
    8   SwiftUI                             0x00000001de0bce68 $s7SwiftUI11AppDelegateC34_performMainMenuShortcutKeyCommandyySo05UIKeyJ0CFTo + 36
    9   UIKitCore                           0x00000001c9cab158 -[_UIMenuBarItem _performAction] + 428
    10  UIKitMacHelper                      0x00000001b6be5a5c -[UINSResponderProxy _performMenuProxyActionForSender:] + 284
    11  CoreFoundation                      0x00000001a161dbd4 __invoking___ + 148
    12  CoreFoundation                      0x00000001a161da4c -[NSInvocation invoke] + 468
    13  UIKitMacHelper                      0x00000001b6be5908 -[UINSResponderProxy forwardInvocation:] + 180
    14  CoreFoundation                      0x00000001a161c068 ___forwarding___ + 968
    15  CoreFoundation                      0x00000001a161bbe0 _CF_forwarding_prep_0 + 96
    16  AppKit                              0x00000001a43950c0 -[NSApplication(NSResponder) sendAction:to:from:] + 456
    17  AppKit                              0x00000001a448ac44 -[NSMenuItem _corePerformAction] + 444
    18  AppKit                              0x00000001a448a938 -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 100
    19  AppKit                              0x00000001a47c339c -[NSMenu _performActionForItem:atIndex:fromEvent:] + 224
    20  AppKit                              0x00000001a4489c34 -[NSMenu performKeyEquivalent:] + 456
    21  AppKit                              0x00000001a48fd174 routeKeyEquivalent + 580
    22  AppKit                              0x00000001a42ffa10 -[NSApplication(NSEvent) sendEvent:] + 1176
    23  AppKit                              0x00000001a45b859c -[NSApplication _handleEvent:] + 76
    24  AppKit                              0x00000001a41815cc -[NSApplication run] + 636
    25  AppKit                              0x00000001a4152c78 NSApplicationMain + 1064
    26  AppKit                              0x00000001a4429084 +[NSWindow _savedFrameFromString:] + 0
    27  UIKitMacHelper                      0x00000001b6b399ac UINSApplicationMain + 1280
    28  UIKitCore                           0x00000001c8ac6b28 UIApplicationMain + 164
    29  SwiftUI                             0x00000001dde8a8b0 $s7SwiftUI17KitRendererCommon33_ACC2C5639A7D76F611E170E831FCA491LLys5NeverOyXlXpFAESpySpys4Int8VGSgGXEfU_ + 164
    30  SwiftUI                             0x00000001dde8a808 $s7SwiftUI6runAppys5NeverOxAA0D0RzlF + 252
    31  SwiftUI                             0x00000001dd7b14cc $s7SwiftUI3AppPAAE4mainyyFZ + 128
    32  SwiftTermApp                        0x0000000102574210 $s12SwiftTermApp06SampleC0V5$mainyyFZ + 40
    33  SwiftTermApp                        0x00000001025742b8 main + 12
    34  dyld                                0x000000010345d0f4 start + 520
)
(lldb) 
migueldeicaza commented 2 years ago

Not worth doing this via iOS emulation