Skip to content

SocketEnginePollable Crash Sometimes  #356

Open
@jose-roberto-abreu

Description

@jose-roberto-abreu

Sometimes the app crash in the class (SocketEnginePollable), in the next method,

doRequest(req:NSURLRequest, withCallback callback: (NSData?, NSURLResponse?, NSError?) -> Void)

Specifically when calling:
session?.dataTaskWithRequest(req, completionHandler: callback).resume().

I'm using version 5.5.0, the last part of the log that I receive:

Log
2016-04-26 17:14:14.824 Logic[479:93592] *** Terminating app due to uncaught exception 'NSGenericException', reason: 'Task created in a session that has been invalidated' *** First throw call stack: (0x2293e2eb 0x2210adff 0x22e3f77d 0x22e40463 0x10e168 0x10db58 0x10d9ec 0x18acf8 0x18cb38 0x18cee4 0x1121b4 0x10f36c 0x231040 0x22aecbf 0x22b95c3 0x22b1efb 0x22baab7 0x22ba909 0x22674e0d 0x226749fc) libc++abi.dylib: terminating with uncaught exception of type NSException 2016-04-26 17:14:14.826 Logic[479:93566] LOG SocketEngine: Got message: 0{"sid":"_towWQV4p66lC-UeAAVf","upgrades":["websocket"],"pingInterval":25000,"pingTimeout":60000} 2016-04-26 17:14:14.823 Logic[479:93918] LOG SocketEngine: Got message: 40 2016-04-26 17:14:14.854 Logic[479:92712] LOG SocketIOClient: Disconnected: Ping timeout 2016-04-26 17:14:14.854 Logic[479:92712] LOG SocketEngine: Engine is being closed. 2016-04-26 17:14:14.855 Logic[479:92712] LOG SocketEnginePolling: Created POST string: 1:1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions