facebookincubator / SocketRocket

A conforming Objective-C WebSocket client library.
Other
9.56k stars 2.01k forks source link

Crash #459

Open vladimir-ionita opened 8 years ago

vladimir-ionita commented 8 years ago

I had multiple crashes

Environment: iOS 9.3 iPhone 5s

This is from Xcode (while debugging):

Assertion failed: (mapped_size >= sizeof(_currentReadMaskOffset) + offset), function __33-[SRWebSocket _readFrameContinue]_block_invoke_2, file 

SRWebSocket.m, line 1131.
warning: could not load any Objective-C class information from the dyld shared cache. This will significantly reduce the quality of type information available.

This is from Crashlytics:

#2. Crashed: Thread
0  libsystem_kernel.dylib         0x181cb011c __pthread_kill + 8
1  libsystem_pthread.dylib        0x181d7cef8 pthread_kill + 112
2  libsystem_c.dylib              0x181c21dac abort + 140
3  libsystem_c.dylib              0x181bf6e7c basename + 322
4  Skeegle                        0x100332158 __33-[SRWebSocket _readFrameContinue]_block_invoke_2 (SRWebSocket.m:1131)
5  Skeegle                        0x1003345ac -[SRWebSocket _innerPumpScanner] (SRWebSocket.m:1394)
6  Skeegle                        0x100334db8 -[SRWebSocket _pumpScanner] (SRWebSocket.m:1412)
7  Skeegle                        0x1003365ec -[SRWebSocket safeHandleEvent:stream:] (SRWebSocket.m:1623)
8  Skeegle                        0x100335ecc __34-[SRWebSocket stream:handleEvent:]_block_invoke.519 (SRWebSocket.m:1543)
9  libdispatch.dylib              0x181b614bc _dispatch_call_block_and_release + 24
10 libdispatch.dylib              0x181b6147c _dispatch_client_callout + 16
11 libdispatch.dylib              0x181b6d4c0 _dispatch_queue_drain + 864
12 libdispatch.dylib              0x181b64f80 _dispatch_queue_invoke + 464
13 libdispatch.dylib              0x181b6f390 _dispatch_root_queue_drain + 728
14 libdispatch.dylib              0x181b6f0b0 _dispatch_worker_thread3 + 112
15 libsystem_pthread.dylib        0x181d79470 _pthread_wqthread + 1092
16 libsystem_pthread.dylib        0x181d79020 start_wqthread + 4
wudijimao commented 7 years ago

Also crash, To send string when connecting

dimsky commented 5 years ago

same problem。

DaveLomber commented 5 years ago

Same issue, any solution?

roylly commented 5 years ago

Same issue, but assert here:
if (header.payload_length == 126) { assert(mapped_size >= sizeof(uint16_t)); any solution ? wait online for help!!!

MrGCY commented 1 year ago

same issue