Starscream icon indicating copy to clipboard operation
Starscream copied to clipboard

[CRASH] CoreFoundation _inputStreamCallbackFunc

Open DavidKmn opened this issue 3 years ago • 8 comments

Here is a crash that has started coming up. It seems similar to #676

Below is the Crashlytics stack trace. We are using the latest version of Starscream and we are using the socket in a thead safe way.

Crashed: com.vluxe.starscream.websocket EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x000000064e8d60bc _inputStreamCallbackFunc

Crashed: com.vluxe.starscream.websocket 0 libobjc.A.dylib 0x1988dfd10 objc_opt_respondsToSelector + 20 1 CoreFoundation 0x198b05b0c _inputStreamCallbackFunc + 48 2 CoreFoundation 0x198b3831c _signalEventSync + 212 3 CoreFoundation 0x198b3837c ___signalEventQueue_block_invoke + 24 4 libdispatch.dylib 0x1988669a8 _dispatch_call_block_and_release + 24 5 libdispatch.dylib 0x198867524 _dispatch_client_callout + 16 6 libdispatch.dylib 0x198844b3c _dispatch_lane_serial_drain$VARIANT$armv81 + 564 7 libdispatch.dylib 0x19884554c _dispatch_lane_invoke$VARIANT$armv81 + 396 8 libdispatch.dylib 0x19884e84c _dispatch_workloop_worker_thread + 580 9 libsystem_pthread.dylib 0x1988b8b74 _pthread_wqthread + 272 10 libsystem_pthread.dylib 0x1988bb740 start_wqthread + 8

DavidKmn avatar Jan 01 '21 18:01 DavidKmn

Screenshot 2021-01-20 at 08 58 58 Screenshot 2021-01-20 at 08 59 20

DavidKmn avatar Jan 20 '21 09:01 DavidKmn

@daltoniam Any thoughts?

DavidKmn avatar Jan 20 '21 09:01 DavidKmn

same crashes :( Any updates?

DmitriiChikovinskii avatar Jan 28 '21 08:01 DmitriiChikovinskii

same crashes

Changzw avatar Feb 04 '21 06:02 Changzw

We also have these kind of crashes and mostly when app is in background (91%). @daltoniam any idea?

kwstasna avatar Feb 09 '21 13:02 kwstasna

Also got the same crash, but only 7% in background

mmdock avatar Mar 03 '21 16:03 mmdock

Any update on this? Still seeing this - although it seems to only be happening on my iOS 10(1%) and iOS 11(99%) users and 22% in background.

Crashed: com.vluxe.starscream.websocket 0 libobjc.A.dylib 0x181604910 objc_msgSend + 16 1 CoreFoundation 0x1823cf068 _inputStreamCallbackFunc + 56 2 CoreFoundation 0x18236fb34 _signalEventSync + 212 3 CoreFoundation 0x1823edea4 ___signalEventQueue_block_invoke + 24 4 libdispatch.dylib 0x181d28b24 _dispatch_call_block_and_release + 24 5 libdispatch.dylib 0x181d28ae4 _dispatch_client_callout + 16 6 libdispatch.dylib 0x181d32a38 _dispatch_queue_serial_drain$VARIANT$mp + 608 7 libdispatch.dylib 0x181d33380 _dispatch_queue_invoke$VARIANT$mp + 336 8 libdispatch.dylib 0x181d33d4c _dispatch_root_queue_drain_deferred_wlh$VARIANT$mp + 340 9 libdispatch.dylib 0x181d3c11c _dispatch_workloop_worker_thread$VARIANT$mp + 668 10 libsystem_pthread.dylib 0x18205be70 _pthread_wqthread + 860 11 libsystem_pthread.dylib 0x18205bb08 start_wqthread + 4

mmdock avatar May 19 '21 02:05 mmdock

This was fixed in https://github.com/daltoniam/Starscream/pull/777, which is included in the 4.0.4 tag but no official release has been made since 3.1.1, so many people are probably still using a version which still crashes.

@daltoniam would it be possible to make a new official release which includes the fix for the crash?

In addition, we are still seeing this crash with 4.0.4, so it's not all solved yet.

mluisbrown avatar Jan 12 '22 15:01 mluisbrown