Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working on Hopper 3.1.3 #1

Open
esttorhe opened this issue Jun 10, 2016 · 3 comments
Open

Not working on Hopper 3.1.3 #1

esttorhe opened this issue Jun 10, 2016 · 3 comments

Comments

@esttorhe
Copy link

First of all great plugin.

I haven't looked at the implementation yet but I just tried to demangle a file and I got this

2016-06-09 18:27:11.726 Hopper Disassembler v3[32218:8833191] -[DisassembledFile analysisInProgress]: unrecognized selector sent to instance 0x7fe9d4c41450

2016-06-09 18:27:11.734 Hopper Disassembler v3[32218:8833191] An uncaught exception was raised
2016-06-09 18:27:11.734 Hopper Disassembler v3[32218:8833191] -[DisassembledFile analysisInProgress]: unrecognized selector sent to instance 0x7fe9d4c41450
2016-06-09 18:27:11.736 Hopper Disassembler v3[32218:8833191] (
    0   CoreFoundation                      0x00007fff9de4d4f2 __exceptionPreprocess + 178
    1   libobjc.A.dylib                     0x00007fffa000c73c objc_exception_throw + 48
    2   CoreFoundation                      0x00007fff9deb71ad -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
    3   CoreFoundation                      0x00007fff9ddbd571 ___forwarding___ + 1009
    4   CoreFoundation                      0x00007fff9ddbd0f8 _CF_forwarding_prep_0 + 120
    5   Swift Demangle                      0x00000001153da376 _TWaO14Swift_DemangleP33_C529D99E97BE40395B140E581DEAD5096Actions8HashableS_ + 6806
    6   Swift Demangle                      0x00000001153da30c _TWaO14Swift_DemangleP33_C529D99E97BE40395B140E581DEAD5096Actions8HashableS_ + 6700
    7   Swift Demangle                      0x00000001153d8c1e _TWaO14Swift_DemangleP33_C529D99E97BE40395B140E581DEAD5096Actions8HashableS_ + 830
    8   Swift Demangle                      0x00000001153d8cab _TWaO14Swift_DemangleP33_C529D99E97BE40395B140E581DEAD5096Actions8HashableS_ + 971
    9   libsystem_trace.dylib               0x00007fff9cd9607a _os_activity_initiate + 75
    10  AppKit                              0x00007fff8b946dbd -[NSApplication sendAction:to:from:] + 460
    11  AppKit                              0x00007fff8b946b57 -[NSMenuItem _corePerformAction] + 336
    12  AppKit                              0x00007fff8b9468b7 -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 114
    13  libsystem_trace.dylib               0x00007fff9cd9607a _os_activity_initiate + 75
    14  AppKit                              0x00007fff8b9d8e54 -[NSMenu performActionForItemAtIndex:] + 131
    15  AppKit                              0x00007fff8b9d8dc7 -[NSMenu _internalPerformActionForItemAtIndex:] + 35
    16  AppKit                              0x00007fff8b9d8c1f -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] + 107
    17  AppKit                              0x00007fff8b87dfd9 NSSLMMenuEventHandler + 708
    18  HIToolbox                           0x00007fff8e9277be _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 1231
    19  HIToolbox                           0x00007fff8e926c48 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 404
    20  HIToolbox                           0x00007fff8e93c9e6 SendEventToEventTarget + 40
    21  HIToolbox                           0x00007fff8e98699a _ZL18SendHICommandEventjPK9HICommandjjhPKvP20OpaqueEventTargetRefS5_PP14OpaqueEventRef + 411
    22  HIToolbox                           0x00007fff8e9b1d5b SendMenuCommandWithContextAndModifiers + 59
    23  HIToolbox                           0x00007fff8e9b1d0c SendMenuItemSelectedEvent + 188
    24  HIToolbox                           0x00007fff8e9b1be8 _ZL19FinishMenuSelectionP13SelectionDataP10MenuResultS2_ + 96
    25  HIToolbox                           0x00007fff8e9b2596 _ZL14MenuSelectCoreP8MenuData5PointdjPP13OpaqueMenuRefPt + 711
    26  HIToolbox                           0x00007fff8e9b2230 _HandleMenuSelection2 + 460
    27  AppKit                              0x00007fff8b8690fa _NSHandleCarbonMenuEvent + 277
    28  AppKit                              0x00007fff8b6de13d _DPSNextEvent + 1906
    29  AppKit                              0x00007fff8b6dd226 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
    30  AppKit                              0x00007fff8b6d1d80 -[NSApplication run] + 682
    31  AppKit                              0x00007fff8b69b368 NSApplicationMain + 1176
    32  Hopper Disassembler v3              0x000000010ff755de Hopper Disassembler v3 + 5598
    33  Hopper Disassembler v3              0x000000010ff75374 Hopper Disassembler v3 + 4980
)

Don't know if its related to my version of Hopper.
I will try to set some time aside and try to figure this out but wanted to create this issue for reference.

@keith
Copy link
Owner

keith commented Jun 10, 2016

Arg! Thanks for reporting this. I'm 90% sure that you're right and it is because of the version of Hopper. The plugin SDK is entirely undocumented (and unsupported AFAICT) so everything I'm hooking into are just random selectors found using cycript or other methods.

I only tested this on the latest version which is currently 3.11.14. Do you mind upgrading? In theory I could try to verify all these calls at runtime, but I'd prefer to avoid that for now if possible!

@Naville
Copy link

Naville commented Jun 12, 2016

I do personally recommend add version-comparing codes

@keith
Copy link
Owner

keith commented Jun 12, 2016

Did you run in to the crash because of the exact same selector? If that's the only one affected at least that would be a small addition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants