GBPing
GBPing copied to clipboard
Crash: -[GBPing stop] (GBPing.m:635)
Fatal Exception: NSMallocException
*** attempt to create a temporary id buffer of length (576460752303423486) failed
Fatal Exception: NSMallocException
0 CoreFoundation 0x18bf4afe0 __exceptionPreprocess
1 libobjc.A.dylib 0x18a9ac538 objc_exception_throw
2 CoreFoundation 0x18be49f48 CFStringGetPascalStringPtr
3 GBPing 0x100da3828 -[GBPing stop] (GBPing.m:635)
4 GBPing 0x100da2404 -[GBPing listenOnce] (GBPing.m:448)
5 GBPing 0x100da1ef0 -[GBPing listenLoop] (GBPing.m:352)
6 Foundation 0x18ca3e2d8 __NSThread__start__
7 libsystem_pthread.dylib 0x18b00d68c _pthread_body
8 libsystem_pthread.dylib 0x18b00d59c _pthread_body
9 libsystem_pthread.dylib 0x18b00acb4 thread_start
I've never seen this before and the only StackOverflow post I can find on it (https://stackoverflow.com/questions/26549610/attempt-to-create-a-temporary-id-buffer-which-is-too-large-or-with-a-negative-c) isn't helpful, but here's the crash. Running 1.4.0, so line 635 is:
for (NSNumber *key in [self.timeoutTimers copy]) {
The whole loop is:
for (NSNumber *key in [self.timeoutTimers copy]) {
NSTimer *timer = self.timeoutTimers[key];
[timer invalidate];
}
Since this code is in a @syncrhonized block I don't see anything wrong with it. Sorry I can't be of more help. Would love to hear anyone's insight on the matter though.