x43x61x69/otx

otx GUI exception on File Open

Closed this issue · 4 comments

When I attempt to use the otx GUI to open a file (even the otx command itself) via File > Open, it throws the exception below.

The File displayed in otx does not change.

The command line otx works on the same executable files, and the GUI works if I drag the file to the window.

This is with otx build 564 on OS X 10.9.5 and Xcode 5.1.1.

Apr 24 18:12:03 Michaels-iMac.local otx[90430]: -[NSURL length]: unrecognized selector sent to instance 0x618000871640
Apr 24 18:12:03 Michaels-iMac.local otx[90430]: An uncaught exception was raised
Apr 24 18:12:03 Michaels-iMac.local otx[90430]: -[NSURL length]: unrecognized selector sent to instance 0x618000871640
Apr 24 18:12:03 Michaels-iMac.local otx[90430]: (
        0   CoreFoundation                      0x00007fff8eb6825c __exceptionPreprocess + 172
        1   libobjc.A.dylib                     0x00007fff95604e75 objc_exception_throw + 43
        2   CoreFoundation                      0x00007fff8eb6b12d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
        3   CoreFoundation                      0x00007fff8eac6272 ___forwarding___ + 1010
        4   CoreFoundation                      0x00007fff8eac5df8 _CF_forwarding_prep_0 + 120
        5   Foundation                          0x00007fff8b9988e1 -[NSURL(NSURL) initFileURLWithPath:] + 40
        6   Foundation                          0x00007fff8b99889d +[NSURL(NSURL) fileURLWithPath:] + 43
        7   otx                                 0x0000000108508b4d -[AppController openExe:] + 137
        8   AppKit                              0x00007fff96ad6260 -[NSApplication sendAction:to:from:] + 327
        9   AppKit                              0x00007fff96af11c8 -[NSMenuItem _corePerformAction] + 394
        10  AppKit                              0x00007fff96af0f04 -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 117
        11  AppKit                              0x00007fff96b4040d -[NSMenu _internalPerformActionForItemAtIndex:] + 35
        12  AppKit                              0x00007fff96b40289 -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] + 104
        13  AppKit                              0x00007fff96ae6ff6 NSSLMMenuEventHandler + 716
        14  HIToolbox                           0x00007fff93adb1d4 _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 892
        15  HIToolbox                           0x00007fff93ada787 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 385
        16  HIToolbox                           0x00007fff93aee880 SendEventToEventTarget + 40
        17  HIToolbox                           0x00007fff93b24640 _ZL18SendHICommandEventjPK9HICommandjjhPKvP20OpaqueEventTargetRefS5_PP14OpaqueEventRef + 420
        18  HIToolbox                           0x00007fff93b57228 SendMenuCommandWithContextAndModifiers + 59
        19  HIToolbox                           0x00007fff93b571d0 SendMenuItemSelectedEvent + 178
        20  HIToolbox                           0x00007fff93b570af _ZL19FinishMenuSelectionP13SelectionDataP10MenuResultS2_ + 94
        21  HIToolbox                           0x00007fff93b5f085 _ZL14MenuSelectCoreP8MenuData5PointdjPP13OpaqueMenuRefPt + 718
        22  HIToolbox                           0x00007fff93b5ecb1 _HandleMenuSelection2 + 446
        23  AppKit                              0x00007fff96a5962c _NSHandleCarbonMenuEvent + 284
        24  AppKit                              0x00007fff968b852e _DPSNextEvent + 2170
        25  AppKit                              0x00007fff968b789b -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 122
        26  AppKit                              0x00007fff968ab99c -[NSApplication run] + 553
        27  AppKit                              0x00007fff96896783 NSApplicationMain + 940
        28  libdyld.dylib                       0x00007fff9504e5fd start + 1
        29  ???                                 0x0000000000000001 0x0 + 1

Hi @m-schmitt ,

Please check out build 565.

Best,
Cai

The 565 build doesn't have any binaries.

I confirm that build 565 can open files via File Open.