Socket.IO-Client-Swift icon indicating copy to clipboard operation
Socket.IO-Client-Swift copied to clipboard

Error: can't allocate region

Open MihaelIsaev opened this issue 8 years ago • 2 comments

Hello!

First time I receive from server long gzipped string, size of string about 30KB - and all fine, but if I request this big string again then it fails with error listed below:

WebSocket.swift 344: processInputStream() WebSocket.swift 391: dequeueInput() WebSocket.swift 411: processRawMessage(buffer, bufferLen: length) WebSocket.swift 536: let isFin = (FinMask & buffer[0])

It fails on this line with message: (1208,0x1f197000) malloc: *** mach_vm_map(size=1941504) failed (error code=3) *** error: can't allocate region

How to prevent this problem? Reconnect doesn't solve his issue.

2016-05-28_16-55-40

MihaelIsaev avatar May 28 '16 12:05 MihaelIsaev

This'll probably be fixed in a Websocket patch

nuclearace avatar Jun 09 '16 13:06 nuclearace

Hi guys any update on this issue? had the same error.

Saulenco avatar Nov 23 '16 11:11 Saulenco