burningmantech / ranger-ims-mac

Ranger Incident Management System—Mac OS Client
Apache License 2.0
4 stars 2 forks source link

Changing columns to sort by in Dispatch Cue randomly locks up the program #37

Closed splintermathwood closed 9 years ago

splintermathwood commented 9 years ago

In Dispatch Queue, select different headers to sort by. Sometimes after two and sometimes after 3 or 4 the program won't let you select another column.

Closing the Dispatch Queue and re opening it then gives you no incidents.

Quitting and restarting makes it work again...

wsanchez commented 9 years ago

wow huh

wsanchez commented 9 years ago

OK I'm seeing weirdness here also…

wsanchez commented 9 years ago

It looks like everything is fine until you sort on the "state" column, then pooches happens.

wsanchez commented 9 years ago

Aha:

2014-08-13 18:08:38.476 Incidents[47947:2162049] [<Incident 0x608000087f80> valueForUndefinedKey:]: this class is not key value coding-compliant for the key stateSortKey.
2014-08-13 18:08:38.477 Incidents[47947:2162049] (
    0   CoreFoundation                      0x00007fff8ebefccc __exceptionPreprocess + 172
    1   libobjc.A.dylib                     0x00007fff8d7d26de objc_exception_throw + 43
    2   CoreFoundation                      0x00007fff8ebef869 -[NSException raise] + 9
    3   Foundation                          0x00007fff8fc5dd39 -[NSObject(NSKeyValueCoding) valueForUndefinedKey:] + 226
    4   Foundation                          0x00007fff8fb7b668 -[NSObject(NSKeyValueCoding) valueForKey:] + 385
    5   Foundation                          0x00007fff8fb940d3 -[NSObject(NSKeyValueCoding) valueForKeyPath:] + 324
    6   Foundation                          0x00007fff8fb92bf3 _sortedObjectsUsingDescriptors + 390
    7   Foundation                          0x00007fff8fb92a14 -[NSArray(NSKeyValueSorting) sortedArrayUsingDescriptors:] + 521
    8   Incidents                           0x0000000100005c2f -[DispatchQueueController sortedIncidents] + 607
    9   Incidents                           0x00000001000089ea -[DispatchQueueController(NSTableViewDataSource) numberOfRowsInTableView:] + 58
    10  AppKit                              0x00007fff8b24c3e5 -[NSTableView _uncachedNumberOfRows] + 124
    11  AppKit                              0x00007fff8b24c2e3 -[_NSTableRowHeightStorage numberOfRows] + 58
    12  AppKit                              0x00007fff8b8176b7 -[NSTableHeaderView _unobstructedVisibleHeaderRectOfColumn:] + 137
    13  AppKit                              0x00007fff8b81afe3 -[NSTableHeaderView _cursorRectForColumn:] + 630
    14  AppKit                              0x00007fff8b81b36f -[NSTableHeaderView _resizeableColumnAtPoint:] + 251
    15  AppKit                              0x00007fff8b81a9e6 -[NSTableHeaderView mouseDown:] + 138
    16  AppKit                              0x00007fff8b910a4f -[NSWindow _reallySendEvent:] + 12827
    17  AppKit                              0x00007fff8b3a67fc -[NSWindow sendEvent:] + 368
    18  AppKit                              0x00007fff8b35826c -[NSApplication sendEvent:] + 2148
    19  AppKit                              0x00007fff8b1e59b8 -[NSApplication run] + 711
    20  AppKit                              0x00007fff8b1d0dc4 NSApplicationMain + 1832
    21  Incidents                           0x0000000100001af2 main + 34
    22  Incidents                           0x0000000100001ac4 start + 52
)
wsanchez commented 9 years ago

Fixed by afe796517fa98eb9a1955a4f836204358d536470

wsanchez commented 9 years ago

Please verify in 2.0b2