daltoniam / Starscream

Websockets in swift for iOS and OSX
Apache License 2.0
8.28k stars 1.2k forks source link

[CRASH] TCPTransport.write(data:completion:) #989

Open olehhrechyn opened 10 months ago

olehhrechyn commented 10 months ago

Describe the bug

I was unable to reproduce this crash, but I am providing you with the data from Firebase Crashlytics. Most importantly: this crash only occurs in Starscream version 4.0.6.

Stack trace:

Crashed: com.vluxe.starscream.writequeue 0 libswiftCore.dylib 0x402c94 swift_unknownObjectRetain + 20 1 libswiftNetwork.dylib 0x187d8 NWConnection.send(content:contentContext:isComplete:completion:) + 72 2 Zap 0x7456a8 TCPTransport.write(data:completion:) + 100 (TCPTransport.swift:100) 3 Zap 0x72f7c4 closure #1 in WSEngine.write(data:opcode:completion:) + 131 (WSEngine.swift:131) 4 Zap 0x72f830 thunk for @escaping @callee_guaranteed @Sendable () -> () + 4370659376 (:4370659376) 5 libdispatch.dylib 0x2320 _dispatch_call_block_and_release + 32 6 libdispatch.dylib 0x3eac _dispatch_client_callout + 20 7 libdispatch.dylib 0xb534 _dispatch_lane_serial_drain + 668 8 libdispatch.dylib 0xc0a4 _dispatch_lane_invoke + 384 9 libdispatch.dylib 0x16cdc _dispatch_workloop_worker_thread + 648 10 libsystem_pthread.dylib 0xddc _pthread_wqthread + 288 11 libsystem_pthread.dylib 0xb7c start_wqthread + 8

Keys:

crash_info_entry_0 Object 0x283f749c0 deallocated with retain count 2, reference may have escaped from deinit.
crash_info_entry_1 abort() called
llodi commented 6 months ago
image
RishavG96 commented 4 months ago

I am facing the same crash, any update on this?