nuclearace / Socket.IO-Client-Swift

socket.io-client for Swift
Other
361 stars 53 forks source link

Error: can't allocate region #125

Open MihaelIsaev opened 8 years ago

MihaelIsaev commented 8 years ago

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

nuclearace commented 8 years ago

This'll probably be fixed in a Websocket patch

Saulenco commented 7 years ago

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