MQTTInspector(73316,0xb0093000) malloc: *** mach_vm_map(size=8388608) failed (error code=3) #58

Closed
i5ting opened this Issue Jul 19, 2014 · 2 comments

2 participants

@i5ting
2014-07-20 00:12:50.680 MQTTInspector[73316:70b] <MQTTSession: 0x8b536d0> encoder handleEvent: MQTTEncoderEventReady (0) (null)
2014-07-20 00:12:51.129 MQTTInspector[73316:70b] <MQTTDecoder: 0x8b5ff70> handleEvent 0x02
2014-07-20 00:12:51.145 MQTTInspector[73316:70b] <MQTTDecoder: 0x8b5ff70>received (0)=<>...
MQTTInspector(73316,0xb0093000) malloc: *** mach_vm_map(size=8388608) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug

code in MQTTInspectorDetailViewController file

- (void)finishQueue
{
    while (!self.runningSwitch.on) {
        [[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:1.0]];
    }
    [self performSelectorOnMainThread:@selector(showQueue) withObject:nil waitUntilDone:NO];
}

@ckrey
Owner

your probably receiving too large amounts of data. try setting max size in session parameters.

Then Inspector will receive full data but process only thr first bytes

@ckrey
Owner

@i5ting did setting the max size solve your problem?

@ckrey ckrey closed this Aug 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment