Lately we are experiencing a lot of crashes on our client (iOS devices, all using the SFS API [1.6.2]).
Do you guys have any idea why this exception occurs?
Thanks!
Code: Select all
NSRangeException
*** -[NSConcreteMutableData getBytes:range:]: range {308, 79} exceeds data length 317
0 CoreFoundation ___exceptionPreprocess + 124
1 libobjc.A.dylib objc_exception_throw + 56
2 CoreFoundation -[NSException initWithCoder:]
3 Foundation -[NSData(NSData) getBytes:range:] + 276
4 Bocai -[Data readUTF] (Data.m:127)
5 Bocai -[DefaultSFSDataSerializer decodeSFSObject:] (DefaultSFSDataSerializer.m:350)
6 Bocai -[DefaultSFSDataSerializer binary2object:] (DefaultSFSDataSerializer.m:773)
7 Bocai +[SFSObject newFromBinaryData:] (SFSObject.m:36)
8 Bocai -[SFSProtocolCodec onPacketRead:] (SFSProtocolCodec.m:88)
9 Bocai -[SFSIOHandler handlePacketData:] (SFSIOHandler.m:94)
10 Bocai -[SFSIOHandler onDataRead:] (SFSIOHandler.m:244)
11 Bocai -[BitSwarmClient stream:handleEvent:] (BitSwarmClient.m:464)
Thanks!