Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash Related to Keychain/Auth Data #1244

Open
kevinyou77 opened this issue Dec 1, 2023 · 0 comments
Open

Crash Related to Keychain/Auth Data #1244

kevinyou77 opened this issue Dec 1, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@kevinyou77
Copy link

kevinyou77 commented Dec 1, 2023

Describe the bug
Hi team, we’ve been receiving some crashes within the WalletConnectV2 SDK for iOS. Was not able to reproduce these crashes though. Asking here so maybe you guys can take a look on what the root cause is, but judging at the crash logs, it happens when the SDK is initializing. The crash only happens when we've upgraded to 1.9.8
Note that we’ve changed the endpoints in the SDK to have .org extension since .com endpoints have issues in some countries.
Do let me know if you guys need anything, thanks!

SDK Version

  • Client: 1.9.8

Crash Logs

Incident Identifier: 1ad9e4fb-a964-4985-9fb4-a5fcd57542ee
CrashReporter Key:   04A4C98C-520A-497F-A1D5-AC0D2FB40DD1
Hardware Model:      iPhone14,2
Process:         App [873]
Version:         6.43.0 (20231125006002)
Code Type:       arm64
Parent Process:   [1]

Date/Time:       2023-12-13T06:07:05.999Z
Launch Time:     2023-12-12T23:18:18Z
OS Version:      iPhone OS 16.1 (20B82)
Report Version:  104

Exception Type:  SIGSEGV
Exception Codes: SEGV_MAPERR at 0x6f7d57aaae30
Crashed Thread:  33

Thread 33 Crashed:
0   libswiftCore.dylib                   0x00000001b9ab711c _swift_release_dealloc + 32
1   App                                 0x0000000102444120 WalletConnectSwiftV2.ClientIdAuthenticator.createAuthToken(url: Swift.String?) throws -> Swift.String (<compiler-generated>:0)
2   App                                 0x00000001014893d4 protocol witness for WalletConnectSwiftV2.ClientIdAuthenticating.createAuthToken(url: Swift.String?) throws -> Swift.String in conformance WalletConnectSwiftV2.ClientIdAuthenticator : WalletConnectSwiftV2.ClientIdAuthenticating in WalletConnectSwiftV2 (<compiler-generated>:0)
3   App                                 0x0000000100dc8db0 WalletConnectSwiftV2.RelayUrlFactory.create(fallback: Swift.Bool) -> Foundation.URL (RelayURLFactory.swift:26)
4   App                                 0x000000010152a82c WalletConnectSwiftV2.Dispatcher.(handleFallbackIfNeeded in _CD746E5E5A0D156EC460EB96203F857B)(error: WalletConnectSwiftV2.NetworkError) -> () (Dispatching.swift:143)
5   App                                 0x0000000100993814 closure #3 (Combine.Subscribers.Completion<WalletConnectSwiftV2.NetworkError>) -> () in WalletConnectSwiftV2.Dispatcher.protectedSend(_: Swift.String, completion: (Swift.Error?) -> ()) -> () (Dispatching.swift:85)
6   Combine                              0x00000001c8098a10 Combine.Subscribers.Sink.receive(completion: Combine.Subscribers.Completion<B>) -> () + 444
7   Combine                              0x00000001c806ec08 protocol witness for Combine.Subscriber.receive(completion: Combine.Subscribers.Completion<A.Failure>) -> () in conformance Combine.Subscribers.Sink<A, B> : Combine.Subscriber in Combine + 20
8   Combine                              0x00000001c8078144 Combine.Publishers.Timeout.(Inner in _9F96572ECE26BDE18838818BF97711BA).timedOut() -> () + 1060
9   libswiftDispatch.dylib               0x00000001c804ef58 reabstraction thunk helper from @escaping @callee_guaranteed () -> () to @escaping @callee_unowned @convention(block) () -> () + 32
10  libdispatch.dylib                    0x00000001c6e75fdc _dispatch_client_callout + 16
11  libdispatch.dylib                    0x00000001c6e7946c _dispatch_continuation_pop + 500
12  libdispatch.dylib                    0x00000001c6e8ca58 _dispatch_source_invoke + 1584
13  libdispatch.dylib                    0x00000001c6e79344 _dispatch_continuation_pop + 204
14  libdispatch.dylib                    0x00000001c6e78ad4 _dispatch_async_redirect_invoke + 580
15  libdispatch.dylib                    0x00000001c6e87a6c _dispatch_root_queue_drain + 392
16  libdispatch.dylib                    0x00000001c6e88284 _dispatch_worker_thread2 + 160
17  libsystem_pthread.dylib              0x000000020c8ffdbc _pthread_wqthread + 224
18  libsystem_pthread.dylib              0x000000020c8ffb98 start_wqthread + 4

Device (please complete the following information):
WalletConnectSwiftV2.ClientIdAuthenticator.createAuthToken(url: Swift.String?) throws -> Swift.String
Screenshot 2023-12-01 at 1 15 07 PM

WalletConnectSwiftV2.KeychainStorage.readData(key: Swift.String) throws -> Foundation.Data?
13 Pro Max - iOS 16.6.1

@kevinyou77 kevinyou77 added the bug Something isn't working label Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant