WalletConnectSwiftV2 icon indicating copy to clipboard operation
WalletConnectSwiftV2 copied to clipboard

RelayClient.publish(topic:payload:tag:prompt:ttl:) - app crash

Open alexanderkhitev opened this issue 1 year ago • 2 comments

Describe the bug We experienced an app crash linked to the Wallet Connect SDK, specifically on the com.walletconnect.sdk.relay_client thread.

SDK Version

  • Client: Swift 5.9, iOS 17.6.1
  • Version 1.9.4

To Reproduce Steps to reproduce the behavior:

          Crashed: com.walletconnect.sdk.relay_client
0  libswift_Concurrency.dylib     0x54564 swift_continuation_throwingResumeWithErrorImpl(swift::AsyncTask*, swift::SwiftError*) + 244
1  App                        0x7db5c0 closure #3 in closure #1 in RelayClient.publish(topic:payload:tag:prompt:ttl:) + 134 (RelayClient.swift:134)
2  Combine                        0x44fec Subscribers.Sink.receive(completion:) + 448
3  Combine                        0x44e20 protocol witness for Subscriber.receive(completion:) in conformance Subscribers.Sink<A, B> + 24
4  Combine                        0xfd098 Publishers.Timeout.Inner.timedOut() + 1000
5  libswiftDispatch.dylib         0x2c84 thunk for @escaping @callee_guaranteed () -> () + 36
6  libdispatch.dylib              0x3dd4 _dispatch_client_callout + 20
7  libdispatch.dylib              0x72d8 _dispatch_continuation_pop + 600
8  libdispatch.dylib              0x1b1c8 _dispatch_source_latch_and_call + 420
9  libdispatch.dylib              0x19d8c _dispatch_source_invoke + 832
10 libdispatch.dylib              0x7150 _dispatch_continuation_pop + 208
11 libdispatch.dylib              0x68f4 _dispatch_async_redirect_invoke + 584
12 libdispatch.dylib              0x15894 _dispatch_root_queue_drain + 392
13 libdispatch.dylib              0x1609c _dispatch_worker_thread2 + 156
14 libsystem_pthread.dylib        0x48f8 _pthread_wqthread + 228
15 libsystem_pthread.dylib        0x10cc start_wqthread + 8

Expected behavior The app should not crash under these conditions.

Screenshots Screenshot 2024-09-04 at 11 57 01 AM

alexanderkhitev avatar Sep 04 '24 07:09 alexanderkhitev

hey @alexanderkhitev would you like to migrate to reown-swift and check if you are still experiencing this issue?

llbartekll avatar Oct 17 '24 11:10 llbartekll

hey @alexanderkhitev would you like to migrate to reown-swift and check if you are still experiencing this issue?

Hey @llbartekll ! I'll have a look on this soon, thanks!

alexanderkhitev avatar Oct 17 '24 11:10 alexanderkhitev