Skip to content

Crash in AppSyncRealTimeClient.subscribeToWebSocketEvent() #3834

@amruth-movano

Description

@amruth-movano

Describe the bug

          Crashed: com.apple.root.default-qos.cooperative
0  libobjc.A.dylib                0x3020 objc_msgSend + 32
1  libswiftCore.dylib             0x1d69f4 __CocoaSet.member(for:) + 36
2  Combine                        0x23df0 specialized Set._Variant.insert(_:) + 92
3  Combine                        0x23d70 AnyCancellable.store(in:) + 48
4  Evie Ring                      0x1452f1c closure #2 in AppSyncRealTimeClient.subscribeToWebSocketEvent() + 244 (AppSyncRealTimeClient.swift:244)
5  Combine                        0xaecc Subscribers.Sink.receive(_:) + 92
6  Combine                        0xae60 protocol witness for Subscriber.receive(_:) in conformance Subscribers.Sink<A, B> + 24
7  Combine                        0x13714 PassthroughSubject.Conduit.offer(_:) + 744
8  Combine                        0x1341c partial apply for closure #1 in PassthroughSubject.send(_:) + 68
9  Combine                        0x3d5b0 partial apply for thunk for @callee_guaranteed (@guaranteed ConduitBase<A, B>) -> (@error @owned Error) + 32
10 libswiftCore.dylib             0xdee70 Sequence.forEach(_:) + 756
11 Combine                        0x12f30 ConduitList.forEach(_:) + 244
12 Combine                        0x12dcc PassthroughSubject.send(_:) + 268
13 Evie Ring                      0x96e9c8 WebSocketClient.onNetworkStateChange(_:) + 287 (WebSocketClient.swift:287)
14 libswift_Concurrency.dylib     0x4d764 swift::runJobInEstablishedExecutorContext(swift::Job*) + 436
15 libswift_Concurrency.dylib     0x4e9c8 swift_job_runImpl(swift::Job*, swift::ExecutorRef) + 72
16 libdispatch.dylib              0x15894 _dispatch_root_queue_drain + 392
17 libdispatch.dylib              0x1609c _dispatch_worker_thread2 + 156
18 libsystem_pthread.dylib        0x48f8 _pthread_wqthread + 228
19 libsystem_pthread.dylib        0x10cc start_wqthread + 8

Expected behavior

App should not crash

Amplify Framework Version

2.33.6

Amplify Categories

API

Dependency manager

Swift PM

Swift version

5.9.2

CLI version

12.11.1

Xcode version

15.0

Relevant log output

-

Is this a regression?

Yes

Regression additional context

No response

Platforms

iOS

OS Version

iOS 17.5.1

Device

iPhone 13 :Pro

Specific to simulators

No response

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiIssues related to the API categorybugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions