centrifugal / centrifuge-swift

Swift client SDK for bidirectional real-time communication with Centrifugo and Centrifuge-based server over WebSocket
MIT License
48 stars 43 forks source link

Crashed: NSOperationQueue 0x107f17910 (QOS: UNSPECIFIED) #63

Closed isandeepj closed 2 years ago

isandeepj commented 2 years ago

@FZambia
Crashed: NSOperationQueue 0x107f17910 (QOS: UNSPECIFIED) EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x00000b785f7af4f0

0  libobjc.A.dylib                0x1540 objc_msgSend + 32
1  SwiftCentrifuge                0x4a660 $s15SwiftCentrifuge9WebSocketC12dequeueWrite33_266A61F1477EE162B72F41A784B32A3ALL_4code15writeCompletiony10Foundation4DataV_AC6OpCodeOyycSgtFyycfU_ + 2048
2  SwiftCentrifuge                0x84fc $sIeg_IeyB_TR + 28
3  Foundation                     0x50c54 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 24
4  Foundation                     0x62de8 -[NSBlockOperation main] + 104
5  Foundation                     0x3b774 __NSOPERATION_IS_INVOKING_MAIN__ + 24
6  Foundation                     0x4c6f0 -[NSOperation start] + 804
7  Foundation                     0x4fc9c __NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__ + 24
8  Foundation                     0x5dd40 __NSOQSchedule_f + 184
9  libdispatch.dylib              0x13454 _dispatch_block_async_invoke2 + 148
10 libdispatch.dylib              0x4670 _dispatch_client_callout + 20
11 libdispatch.dylib              0x7b44 _dispatch_continuation_pop + 504
12 libdispatch.dylib              0x71a0 _dispatch_async_redirect_invoke + 596
13 libdispatch.dylib              0x15de0 _dispatch_root_queue_drain + 396
14 libdispatch.dylib              0x16608 _dispatch_worker_thread2 + 164
15 libsystem_pthread.dylib        0x10b8 _pthread_wqthread + 228
16 libsystem_pthread.dylib        0xe94 start_wqthread + 8 

The application will occasionally crash when opened .I can only view the report from Firebase Analytics. Currently i using the latest version Swift Centrifuge (0.4.4).

seidju commented 2 years ago

@FZambia I suppose this fix https://github.com/centrifugal/centrifuge-swift/pull/65 should help with this issue

FZambia commented 2 years ago

This seems similar to other fix I recently pushed: https://github.com/centrifugal/centrifuge-swift/commit/4a7ae08d1d760e66339344abd97e64b63040419c

So I hope after merging #65 and releasing new version both problems should go away.

FZambia commented 2 years ago

@sandeep-yudiz hello, if the problem still reproduces using v0.4.5 plz reopen the issue.