daylen/stockfish-mac

Fatal Exception: NSInvalidArgumentException

daylen opened this issue · 3 comments

http://crashes.to/s/621a2458908

We are getting the following exception:

Fatal Exception: NSInvalidArgumentException
*** -[__NSArrayM insertObject:atIndex:]: object cannot be nil

with the following stack trace

Fatal Exception: NSInvalidArgumentException
0  CoreFoundation                 0x7fff361feff3 (Missing)
1  libobjc.A.dylib                0x7fff5cdd9c76 (Missing)
2  CoreFoundation                 0x7fff36240514 (Missing)
3  CoreFoundation                 0x7fff3611d200 (Missing)
4  Stockfish                      0x10f78550a +[SFMParser parseToken:fromNode:position:] (SFMParser.m:87)
5  Stockfish                      0x10f78520b +[SFMParser parseString:fromNode:position:] (SFMParser.m:71)
6  Stockfish                      0x10f785077 +[SFMParser parseMoveText:position:] (SFMParser.m:63)
7  Stockfish                      0x10f774b02 -[SFMChessGame parseMoveText:] (SFMChessGame.m:77)
8  Stockfish                      0x10f777ebe -[SFMWindowController loadGameAtIndex:] (SFMWindowController.m:217)
9  Stockfish                      0x10f777c33 -[SFMWindowController windowDidLoad] (SFMWindowController.m:201)

Seems to be related to the new variations support.

There was an issue with move annotation offsetting some ranges, see #44

Closing because #44 is merged.