WalletConnect/WalletConnectSwift

Random Crashes from `com.vluxe.starscream.websocket` library

Closed this issue · 1 comments

We are getting some crash reports which happens randomly in our application. They are caused by the web socket library used internally (Starscream).

Crashed: com.vluxe.starscream.websocket
EXC_BREAKPOINT

Crashed: com.vluxe.starscream.websocket
0  libobjc.A.dylib                0x5568 objc_opt_respondsToSelector + 48
1  CoreFoundation                 0x13f9fc _inputStreamCallbackFunc + 52
2  CoreFoundation                 0x103de0 _signalEventSync + 216
3  CoreFoundation                 0x120900 ___signalEventQueue_block_invoke + 28
4  libdispatch.dylib              0x2924 _dispatch_call_block_and_release + 32
5  libdispatch.dylib              0x4670 _dispatch_client_callout + 20
6  libdispatch.dylib              0xbdf4 _dispatch_lane_serial_drain + 672
7  libdispatch.dylib              0xc968 _dispatch_lane_invoke + 392
8  libdispatch.dylib              0x171b8 _dispatch_workloop_worker_thread + 656
9  libsystem_pthread.dylib        0x10f4 _pthread_wqthread + 288
10 libsystem_pthread.dylib        0xe94 start_wqthread + 8
Crashed: com.vluxe.starscream.websocket
EXC_BAD_ACCESS KERN_INVALID_ADDRESS

Crashed: com.vluxe.starscream.websocket
0  libobjc.A.dylib                0x15e0 objc_msgSend + 32
1  CoreFoundation                 0x103d38 _signalEventSync + 216
2  CoreFoundation                 0x120858 ___signalEventQueue_block_invoke + 28
3  libdispatch.dylib              0x1c04 _dispatch_call_block_and_release + 32
4  libdispatch.dylib              0x3950 _dispatch_client_callout + 20
5  libdispatch.dylib              0xb0ac _dispatch_lane_serial_drain + 664
6  libdispatch.dylib              0xbc10 _dispatch_lane_invoke + 392
7  libdispatch.dylib              0x16318 _dispatch_workloop_worker_thread + 656
8  libsystem_pthread.dylib        0x11b0 _pthread_wqthread + 288
9  libsystem_pthread.dylib        0xf50 start_wqthread + 8
Crashed: com.vluxe.starscream.websocket
EXC_BAD_ACCES

Crashed: com.vluxe.starscream.websocket
0  libswiftCore.dylib             0x3c8f34 swift_unknownObjectWeakLoadStrong + 60
1  pera                           0x8f264c FoundationTransport.stream(_:handle:) + 186 (FoundationTransport.swift:186)
2  pera                           0x8f2a44 @objc FoundationTransport.stream(_:handle:) + 4304923204 (<compiler-generated>:4304923204)
3  CoreFoundation                 0x103de0 _signalEventSync + 216
4  CoreFoundation                 0x120900 ___signalEventQueue_block_invoke + 28
5  libdispatch.dylib              0x2924 _dispatch_call_block_and_release + 32
6  libdispatch.dylib              0x4670 _dispatch_client_callout + 20
7  libdispatch.dylib              0xbdf4 _dispatch_lane_serial_drain + 672
8  libdispatch.dylib              0xc968 _dispatch_lane_invoke + 392
9  libdispatch.dylib              0x171b8 _dispatch_workloop_worker_thread + 656
10 libsystem_pthread.dylib        0x10f4 _pthread_wqthread + 288
11 libsystem_pthread.dylib        0xe94 start_wqthread + 8
Crashed: com.vluxe.starscream.websocket
EXC_BAD_ACCESS KERN_INVALID_ADDRESS

Crashed: com.vluxe.starscream.websocket
0  libobjc.A.dylib                0x2719c objc_opt_respondsToSelector + 20
1  CoreFoundation                 0x8d054 _outputStreamCallbackFunc + 52
2  CoreFoundation                 0xc0ef8 _signalEventSync + 216
3  CoreFoundation                 0xc1010 ___signalEventQueue_block_invoke + 28
4  libdispatch.dylib              0x2a84 _dispatch_call_block_and_release + 32
5  libdispatch.dylib              0x481c _dispatch_client_callout + 20
6  libdispatch.dylib              0xc004 _dispatch_lane_serial_drain + 620
7  libdispatch.dylib              0xcc00 _dispatch_lane_invoke + 404
8  libdispatch.dylib              0x174bc _dispatch_workloop_worker_thread + 764
9  libsystem_pthread.dylib        0x37a4 _pthread_wqthread + 276
10 libsystem_pthread.dylib        0xa74c start_wqthread + 8

Do you have any idea why they are happening or how to fix them? We are using the latest version 1.6.2 in the application. I can provide more information if it helps.

Hi, we removed the starscream library, you should not see these crashes anymore

Fixed in v1.7.0