ianyh / Amethyst

Automatic tiling window manager for macOS à la xmonad.
https://ianyh.com/amethyst/
MIT License
14.88k stars 485 forks source link

Updating to 0.11.0b2(39) completely stopped working on my system #487

Closed shlomiv closed 8 years ago

shlomiv commented 8 years ago

Hey, After updating to 0.11.0b2(39), amethyst stopped working at all. It does load up, and I see the icon on the top bar. However, I cant access the preference window (I can click it but nothing happens, even after removing ~/.amethyst file). No window is being recognized by it and so nothing gets reordered. Single windows on a space do not become full screen even after I click "relaunch amethyst". When I try to change the layout I do see the "new layout name" being displayed in the middle of the screen, but nothing else happens..

Does anyone else experience this?? Is there a way to revert to an older version? Did I accidentally skip some new headline in the RTFM ;) ?

Thanks! Shlomi

Trello Card

ianyh commented 8 years ago

Can you try launching in log mode and send the output? Note: this may output window titles.

$ /Applications/Amethyst.app/Contents/MacOS/Amethyst --log
shlomiv commented 8 years ago

Sure, however, all I am getting is this:

/Applications/Amethyst.app/Contents/MacOS/Amethyst --log                                                                                                                                                                           
[2016-08-16 13:12:40.643] AppDelegate.swift:42 INFO: Logging is enabled
[2016-08-16 13:12:40.831] WindowModifier.swift:476 WARNING: Could not find a space for screen: FD6E9053-53B7-5224-5892-F9F7EC52CEF3
[2016-08-16 13:12:40.831] WindowModifier.swift:476 WARNING: Could not find a space for screen: D2B242C3-4237-91BD-7935-B7ADCF376073
[2016-08-16 13:12:40.834] WindowModifier.swift:476 WARNING: Could not find a space for screen: 0B6EFF02-6ABF-09F8-6570-FA692B15F6B9
[2016-08-16 13:12:40.835] WindowModifier.swift:476 WARNING: Could not find a space for screen: D2B242C3-4237-91BD-7935-B7ADCF376073
[2016-08-16 13:12:40.835] WindowModifier.swift:476 WARNING: Could not find a space for screen: FD6E9053-53B7-5224-5892-F9F7EC52CEF3
[2016-08-16 13:12:40.836] WindowModifier.swift:476 WARNING: Could not find a space for screen: 0B6EFF02-6ABF-09F8-6570-FA692B15F6B9

Where should I find the log file?

shlomiv commented 8 years ago

ok, when running this way and trying to open up the preference, I am getting:

2016-08-16 13:14:07.238 Amethyst[1440:82816] An uncaught exception was raised
2016-08-16 13:14:07.238 Amethyst[1440:82816] -[NSNib initWithNibNamed:bundle:] could not load the nibName: Amethyst.GeneralPreferencesViewController in bundle (null).
2016-08-16 13:14:07.242 Amethyst[1440:82816] (
        0   CoreFoundation                      0x00007fff8d8cd03c __exceptionPreprocess + 172
        1   libobjc.A.dylib                     0x00007fff9a0d576e objc_exception_throw + 43
        2   CoreFoundation                      0x00007fff8d8cceed +[NSException raise:format:] + 205
        3   AppKit                              0x00007fff8e873d34 -[NSNib initWithNibNamed:bundle:] + 347
        4   AppKit                              0x00007fff8e873b86 -[NSViewController _nibWithName:bundle:] + 106
        5   AppKit                              0x00007fff8e8737c4 -[NSViewController loadView] + 125
        6   AppKit                              0x00007fff8e7f2e13 -[NSViewController _loadViewIfRequired] + 75
        7   AppKit                              0x00007fff8e7f2d7d -[NSViewController view] + 30
        8   CCNPreferencesWindowController      0x000000010a4b0141 -[CCNPreferencesWindowController activateViewController:animate:] + 133
        9   CCNPreferencesWindowController      0x000000010a4af843 -[CCNPreferencesWindowController showPreferencesWindow] + 255
        10  Amethyst                            0x000000010a3a7282 Amethyst + 189058
        11  libsystem_trace.dylib               0x00007fff90761cd7 _os_activity_initiate + 75
        12  AppKit                              0x00007fff8e8c2eb1 -[NSApplication sendAction:to:from:] + 452
        13  AppKit                              0x00007fff8e8c2c4e -[NSMenuItem _corePerformAction] + 382
        14  AppKit                              0x00007fff8e8c297c -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 114
        15  libsystem_trace.dylib               0x00007fff90761cd7 _os_activity_initiate + 75
        16  AppKit                              0x00007fff8e989b00 -[NSMenu performActionForItemAtIndex:] + 131
        17  AppKit                              0x00007fff8e989a66 -[NSMenu _internalPerformActionForItemAtIndex:] + 35
        18  AppKit                              0x00007fff8e9898b2 -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] + 107
        19  AppKit                              0x00007fff8e8aad6b NSSLMMenuEventHandler + 724
        20  HIToolbox                           0x00007fff8f270b6c _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 1260
        21  HIToolbox                           0x00007fff8f26ffae _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 386
        22  HIToolbox                           0x00007fff8f285cb6 SendEventToEventTarget + 40
        23  HIToolbox                           0x00007fff8f2bff45 _ZL18SendHICommandEventjPK9HICommandjjhPKvP20OpaqueEventTargetRefS5_PP14OpaqueEventRef + 428
        24  HIToolbox                           0x00007fff8f2fdb8d SendMenuCommandWithContextAndModifiers + 59
        25  HIToolbox                           0x00007fff8f2fdb30 SendMenuItemSelectedEvent + 188
        26  HIToolbox                           0x00007fff8f2fda09 _ZL19FinishMenuSelectionP13SelectionDataP10MenuResultS2_ + 96
        27  HIToolbox                           0x00007fff8f2d9cc1 _ZL19PopUpMenuSelectCoreP8MenuData5PointdS1_tjPK4RecttjS4_S4_PK14__CFDictionaryPK10__CFStringPP13OpaqueMenuRefPt + 1877
        28  HIToolbox                           0x00007fff8f2d8d74 _ZL26_HandlePopUpMenuSelection8P13OpaqueMenuRefP14OpaqueEventRefj5PointtjPK4RecttS6_S6_PK14__CFDictionaryPK10__CFStringPS0_Pt + 633
        29  HIToolbox                           0x00007fff8f2d893b _HandlePopUpMenuSelectionWithDictionary + 287
        30  AppKit                              0x00007fff8e97f71d _NSSLMPopUpCarbonMenu3 + 5810
        31  AppKit                              0x00007fff8e97e059 _NSPopUpCarbonMenu3 + 153
        32  AppKit                              0x00007fff8e97dfb1 -[NSCarbonMenuImpl popUpMenu:atLocation:width:forView:withSelectedItem:withFont:withFlags:withOptions:] + 350
        33  AppKit                              0x00007fff8ed57448 +[NSStatusBarButtonCell popupStatusBarMenu:inRect:ofView:withEvent:] + 682
        34  AppKit                              0x00007fff8ed5687d -[NSStatusBarButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 159
        35  AppKit                              0x00007fff8e8d5366 -[NSControl mouseDown:] + 714
        36  AppKit                              0x00007fff8ee3f2dc -[NSWindow _reallySendEvent:isDelayedEvent:] + 14125
        37  AppKit                              0x00007fff8e7cec86 -[NSWindow sendEvent:] + 470
        38  AppKit                              0x00007fff8ed59dee -[NSStatusBarWindow sendEvent:] + 242
        39  AppKit                              0x00007fff8e7cb212 -[NSApplication sendEvent:] + 2504
        40  AppKit                              0x00007fff8e6f4b68 -[NSApplication run] + 711
        41  AppKit                              0x00007fff8e671244 NSApplicationMain + 1832
        42  libdyld.dylib                       0x00007fff8e6655c9 start + 1
        43  ???                                 0x0000000000000002 0x0 + 2
)
ianyh commented 8 years ago

Do you have separate spaces for separate displays set? It's here in Mission Control preferences:

screen shot 2016-08-16 at 4 19 58 pm
shlomiv commented 8 years ago

Yes.. I reinstalled from brew, and now the pref window seems to open up, but I cant switch layouts anymore.. I played with the keybinding but it still doesnt respond. Nothing appears in the logs as well..

Logs now gives me this

2016-08-16 13:25:34.088 Amethyst[1899:155052] Failed to connect (containerView) outlet from (AMLayoutNameWindow) to (NSView): missing setter or instance variable

shlomiv commented 8 years ago

ok, so after I reinstalled from brew, I updated again, and I am getting the same errors in the beginning. Cant open the configuration pane:


2016-08-16 13:28:21.800 Amethyst[1991:176706] An uncaught exception was raised
2016-08-16 13:28:21.800 Amethyst[1991:176706] -[NSNib initWithNibNamed:bundle:] could not load the nibName: Amethyst.GeneralPreferencesViewController in bundle (null).
2016-08-16 13:28:21.804 Amethyst[1991:176706] (
        0   CoreFoundation                      0x00007fff8d8cd03c __exceptionPreprocess + 172
        1   libobjc.A.dylib                     0x00007fff9a0d576e objc_exception_throw + 43
        2   CoreFoundation                      0x00007fff8d8cceed +[NSException raise:format:] + 205
        3   AppKit                              0x00007fff8e873d34 -[NSNib initWithNibNamed:bundle:] + 347
        4   AppKit                              0x00007fff8e873b86 -[NSViewController _nibWithName:bundle:] + 106
        5   AppKit                              0x00007fff8e8737c4 -[NSViewController loadView] + 125
        6   AppKit                              0x00007fff8e7f2e13 -[NSViewController _loadViewIfRequired] + 75
        7   AppKit                              0x00007fff8e7f2d7d -[NSViewController view] + 30
        8   CCNPreferencesWindowController      0x00000001017ee141 -[CCNPreferencesWindowController activateViewController:animate:] + 133
        9   CCNPreferencesWindowController      0x00000001017ed843 -[CCNPreferencesWindowController showPreferencesWindow] + 255
        10  Amethyst                            0x00000001016e8282 Amethyst + 189058
        11  libsystem_trace.dylib               0x00007fff90761cd7 _os_activity_initiate + 75
        12  AppKit                              0x00007fff8e8c2eb1 -[NSApplication sendAction:to:from:] + 452
        13  AppKit                              0x00007fff8e8c2c4e -[NSMenuItem _corePerformAction] + 382
        14  AppKit                              0x00007fff8e8c297c -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 114
        15  libsystem_trace.dylib               0x00007fff90761cd7 _os_activity_initiate + 75
        16  AppKit                              0x00007fff8e989b00 -[NSMenu performActionForItemAtIndex:] + 131
        17  AppKit                              0x00007fff8e989a66 -[NSMenu _internalPerformActionForItemAtIndex:] + 35
        18  AppKit                              0x00007fff8e9898b2 -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] + 107
        19  AppKit                              0x00007fff8e8aad6b NSSLMMenuEventHandler + 724
        20  HIToolbox                           0x00007fff8f270b6c _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 1260
        21  HIToolbox                           0x00007fff8f26ffae _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 386
        22  HIToolbox                           0x00007fff8f285cb6 SendEventToEventTarget + 40
        23  HIToolbox                           0x00007fff8f2bff45 _ZL18SendHICommandEventjPK9HICommandjjhPKvP20OpaqueEventTargetRefS5_PP14OpaqueEventRef + 428
        24  HIToolbox                           0x00007fff8f2fdb8d SendMenuCommandWithContextAndModifiers + 59
        25  HIToolbox                           0x00007fff8f2fdb30 SendMenuItemSelectedEvent + 188
        26  HIToolbox                           0x00007fff8f2fda09 _ZL19FinishMenuSelectionP13SelectionDataP10MenuResultS2_ + 96
        27  HIToolbox                           0x00007fff8f2d9cc1 _ZL19PopUpMenuSelectCoreP8MenuData5PointdS1_tjPK4RecttjS4_S4_PK14__CFDictionaryPK10__CFStringPP13OpaqueMenuRefPt + 1877
        28  HIToolbox                           0x00007fff8f2d8d74 _ZL26_HandlePopUpMenuSelection8P13OpaqueMenuRefP14OpaqueEventRefj5PointtjPK4RecttS6_S6_PK14__CFDictionaryPK10__CFStringPS0_Pt + 633
        29  HIToolbox                           0x00007fff8f2d893b _HandlePopUpMenuSelectionWithDictionary + 287
        30  AppKit                              0x00007fff8e97f71d _NSSLMPopUpCarbonMenu3 + 5810
        31  AppKit                              0x00007fff8e97e059 _NSPopUpCarbonMenu3 + 153
        32  AppKit                              0x00007fff8e97dfb1 -[NSCarbonMenuImpl popUpMenu:atLocation:width:forView:withSelectedItem:withFont:withFlags:withOptions:] + 350
        33  AppKit                              0x00007fff8ed57448 +[NSStatusBarButtonCell popupStatusBarMenu:inRect:ofView:withEvent:] + 682
        34  AppKit                              0x00007fff8ed5687d -[NSStatusBarButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 159
        35  AppKit                              0x00007fff8e8d5366 -[NSControl mouseDown:] + 714
        36  AppKit                              0x00007fff8ee3f2dc -[NSWindow _reallySendEvent:isDelayedEvent:] + 14125
        37  AppKit                              0x00007fff8e7cec86 -[NSWindow sendEvent:] + 470
        38  AppKit                              0x00007fff8ed59dee -[NSStatusBarWindow sendEvent:] + 242
        39  AppKit                              0x00007fff8e7cb212 -[NSApplication sendEvent:] + 2504
        40  AppKit                              0x00007fff8e6f4b68 -[NSApplication run] + 711
        41  AppKit                              0x00007fff8e671244 NSApplicationMain + 1832
        42  libdyld.dylib                       0x00007fff8e6655c9 start + 1
        43  ???                                 0x0000000000000002 0x0 + 2
)

And it cannot find spaces for screens. This is what I am getting every time I change spaces:

[2016-08-16 13:30:51.237] WindowModifier.swift:476 WARNING: Could not find a space for screen: FD6E9053-53B7-5224-5892-F9F7EC52CEF3
[2016-08-16 13:30:51.237] WindowModifier.swift:476 WARNING: Could not find a space for screen: D2B242C3-4237-91BD-7935-B7ADCF376073
[2016-08-16 13:30:51.242] WindowModifier.swift:476 WARNING: Could not find a space for screen: FD6E9053-53B7-5224-5892-F9F7EC52CEF3
[2016-08-16 13:30:51.242] WindowModifier.swift:476 WARNING: Could not find a space for screen: 0B6EFF02-6ABF-09F8-6570-FA692B15F6B9

Any further clues?

ianyh commented 8 years ago

What OS are you on?

shlomiv commented 8 years ago

OSX Yosemite, 10.10.5

ianyh commented 8 years ago

So the problem based on those logs is that it doesn't think you have any spaces. Do you actually have 4 screens? Do you have some unique screen situation?

shlomiv commented 8 years ago

Actually no, I have 3 screens: laptop and two external monitors. It all worked perfectly fine until the recent update... Nothing unique..

shlomiv commented 8 years ago

ok... Reverted to 0.10.1 (37) for the time being, and things seems to be working for me again..

ianyh commented 8 years ago

Can you send me the output of

$ defaults read com.apple.spaces

That one can be kind of long so I would suggest putting it in a gist.

shlomiv commented 8 years ago

Sure! here it is https://gist.github.com/vadali/f61f300abdf6d7266d36dc2f7d3c3c32

ianyh commented 8 years ago

I've deployed another beta expanding the logging to include window reflowing operations which should help a lot in determining what the failure point is.

luke-clifton commented 8 years ago

I am also experiencing this issue on OS X 10.10.5

(truncated output)

[2016-08-31 10:17:51.651] AppDelegate.swift:42 INFO: Logging is enabled
[2016-08-31 10:17:51.874] WindowModifier.swift:476 WARNING: Could not find a space for screen: F466F621-B5FA-04A0-0800-CFA6C258DECD
[2016-08-31 10:17:51.874] WindowModifier.swift:476 WARNING: Could not find a space for screen: F466F621-B5FA-04A0-0800-CFA6C258DECD
2016-08-31 10:18:01.354 Amethyst[3261:18784] An uncaught exception was raised
2016-08-31 10:18:01.355 Amethyst[3261:18784] -[NSNib initWithNibNamed:bundle:] could not load the nibName: Amethyst.GeneralPreferencesViewController in bundle (null).
2016-08-31 10:18:01.359 Amethyst[3261:18784] (
        0   CoreFoundation                      0x00007fff935b703c __exceptionPreprocess + 172
        1   libobjc.A.dylib                     0x00007fff911db76e objc_exception_throw + 43
        2   CoreFoundation                      0x00007fff935b6eed +[NSException raise:format:] + 205
        3   AppKit                              0x00007fff8ef4fd34 -[NSNib initWithNibNamed:bundle:] + 347
        4   AppKit                              0x00007fff8ef4fb86 -[NSViewController _nibWithName:bundle:] + 106
        5   AppKit                              0x00007fff8ef4f7c4 -[NSViewController loadView] + 125
ianyh commented 8 years ago

Yeah, the bundle thing is due to how the app is being launched. It's directly executing the binary as opposed to opening the app bundle, which I think have different mechanics.

ianyh commented 8 years ago

@vadali is this still happening? I'm concerned it may be an issue with macOS 10.10.

ianyh commented 8 years ago

This appears to be a macOS version issue, so unfortunately closing this as won't fix as we're dropping support for versions earlier than 10.12.