fjolnir / xnomad

A tiling window manager for OS X, written in tranquil.
484 stars 28 forks source link

Uncaught exception on pointerAtIndex: #25

Closed piranha closed 11 years ago

piranha commented 11 years ago

Hi, I've just downloaded xnomad and have a problem that no key combo seems to be working for me. And on SelectPrev/SelectNext it writes following in shell:

2013-02-19 06:58:06.731 xnomad[31762:707] An uncaught exception was raised
2013-02-19 06:58:06.732 xnomad[31762:707] *** -[NSConcretePointerArray pointerAtIndex:]: attempt to access pointer at index 1 beyond bounds 1
2013-02-19 06:58:06.732 xnomad[31762:707] (
    0   CoreFoundation                      0x00000001070850a6 __exceptionPreprocess + 198
    1   libobjc.A.dylib                     0x0000000106ebb3f0 objc_exception_throw + 43
    2   CoreFoundation                      0x0000000107084e7c +[NSException raise:format:] + 204
    3   Foundation                          0x0000000105654e62 -[NSConcretePointerArray pointerAtIndex:] + 125
    4   xnomad                              0x000000010547e5a2 -[NSPointerArray(Tranquil) at:] + 66
    5   xnomad                              0x0000000105556716 -[WindowManager swapWithCounterpart:] + 2150
    6   xnomad                              0x000000010555a79d __tranquil_[mgr registerHotkey: (key[key]) withModifiers: (key[modifiers]) handler: block ]_blkArg226 + 157
    7   xnomad                              0x000000010549c24f TQDispatchBlock0 + 463
    8   xnomad                              0x00000001054ebc6c -[NSBlock(TQStubs) call] + 28
    9   xnomad                              0x0000000105558bce __tranquil_InstallEventHandler()_blkArg + 670
    10  xnomad                              0x00000001054a21a7 TQDispatchBlock2 + 487
    11  xnomad                              0x000000010553d424 ffi_call_unix64 + 76
    12  ???                                 0x00007fff5a782070 0x0 + 140734711210096

index and bounds are sometimes different (like 0 and 0, or 18446744073709551615 and 0).

There is sometimes one, sometimes many windows on a space.

If this information is not enough, I'll be happy to provide more if you tell me what to do.

fjolnir commented 11 years ago

Thanks for the report, fixed.