Starscream: [CRASH] CoreFoundation _inputStreamCallbackFunc

Created on 1 Jan 2021  路  8Comments  路  Source: daltoniam/Starscream

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

question

Most helpful comment

same crashes :(
Any updates?

All 8 comments

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

@daltoniam Any thoughts?

same crashes :(
Any updates?

same crashes

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

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

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

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

marknorgren picture marknorgren  路  5Comments

felipeflorencio picture felipeflorencio  路  4Comments

dessmith picture dessmith  路  5Comments

Dezabro picture Dezabro  路  3Comments

gmosx picture gmosx  路  4Comments