Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash: -[GBPing stop] (GBPing.m:635) #38

Open
amcalgates opened this issue Jul 10, 2017 · 0 comments
Open

Crash: -[GBPing stop] (GBPing.m:635) #38

amcalgates opened this issue Jul 10, 2017 · 0 comments

Comments

@amcalgates
Copy link

amcalgates commented Jul 10, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant