TheStalwart / Theremin

Undead Mac OS X MPD Client.
169 stars 25 forks source link

Volume Up/Down keys and associated menu items crash the app #7

Closed pigne closed 11 years ago

pigne commented 11 years ago

Hi,

On my OS X Mountain Lion, Pressing the Cmd + Up (⌘↑) or down keys or clicking the associated menu items result in a crash with the following log. Moreover the volume is not changed.

Exception Name: NSInvalidArgumentException
Description: -[PWVolumeSlider intValue]: unrecognized selector sent to instance 0x7fe2c8499f20
User Info: (null)

0   CoreFoundation                      0x00007fff90a20b06 __exceptionPreprocess + 198
1   libobjc.A.dylib                     0x00007fff8e6133f0 objc_exception_throw + 43
2   CoreFoundation                      0x00007fff90ab740a -[NSObject(NSObject) doesNotRecognizeSelector:] + 186
3   CoreFoundation                      0x00007fff90a0f02e ___forwarding___ + 414
4   CoreFoundation                      0x00007fff90a0ee18 _CF_forwarding_prep_0 + 232
5   Theremin                            0x00000001023f8b3b Theremin + 27451
6   AppKit                              0x00007fff8fd4e989 -[NSApplication sendAction:to:from:] + 342
7   AppKit                              0x00007fff8fe8437c -[NSMenuItem _corePerformAction] + 406
8   AppKit                              0x00007fff8fe8406a -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 133
9   AppKit                              0x00007fff8fb7128f -[NSMenu _internalPerformActionForItemAtIndex:] + 36
10  AppKit                              0x00007fff8fb71117 -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] + 135
11  AppKit                              0x00007fff8fe7d175 NSSLMMenuEventHandler + 342
12  HIToolbox                           0x00007fff8d793d1a _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 1206
13  HIToolbox                           0x00007fff8d7931e9 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 410
14  HIToolbox                           0x00007fff8d7a8fc9 SendEventToEventTarget + 40
15  HIToolbox                           0x00007fff8d7dfca9 _ZL18SendHICommandEventjPK9HICommandjjhPKvP20OpaqueEventTargetRefS5_PP14OpaqueEventRef + 443
16  HIToolbox                           0x00007fff8d784a21 SendMenuCommandWithContextAndModifiers + 59
17  HIToolbox                           0x00007fff8d7849d3 SendMenuItemSelectedEvent + 254
18  HIToolbox                           0x00007fff8d78485f _ZL19FinishMenuSelectionP13SelectionDataP10MenuResultS2_ + 94
19  HIToolbox                           0x00007fff8d7608bb _ZL14MenuSelectCoreP8MenuData5PointdjPP13OpaqueMenuRefPt + 605
20  HIToolbox                           0x00007fff8d75fec8 _HandleMenuSelection2 + 565
21  AppKit                              0x00007fff8fd3c8f6 _NSHandleCarbonMenuEvent + 245
22  AppKit                              0x00007fff8fc5eacf _DPSNextEvent + 2073
23  AppKit                              0x00007fff8fc5de22 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 128
24  AppKit                              0x00007fff8fc551d3 -[NSApplication run] + 517
25  AppKit                              0x00007fff8fbf9c06 NSApplicationMain + 869
26  Theremin                            0x00000001023f3f44 Theremin + 8004
27  ???                                 0x0000000000000002 0x0 + 2

Best,

Yoann

TheStalwart commented 11 years ago

That's quite interesting, because on my mac both hotkey and menu item just do nothing. I'll take a look at what can be done when i have spare time