aws-amplify / amplify-swift

A declarative library for application development using cloud services.
Apache License 2.0
462 stars 198 forks source link

Crashing at `CognitoIdentityProviderClient.revokeToken` #3056

Closed AndyMeagher closed 1 year ago

AndyMeagher commented 1 year ago

Describe the bug

For months we have been seeing a high number of crashes occurring inside the aws-crt-swift library at aws_http_stream_activate. However digging deeper I can find that CognitoIdentityProviderClient.revokeToken is being called.

The crashes started occurring as soon as we migrated from v1.28 of this library to v2.8.1.

I am unable to reproduce this. Does anyone have any clues as to what could be causing this?

Steps To Reproduce

Unable to reproduce unfortunately

Expected behavior

Not crash

Amplify Framework Version

2.8.1

Amplify Categories

API, Auth

Dependency manager

Swift PM

Swift version

5.0

CLI version

10.6.1

Xcode version

14.3.1

Relevant log output

<details>
<summary>Log Messages</summary>

#0  0x0000000100f42f14 in aws_http_stream_activate at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/aws-crt-swift/aws-common-runtime/aws-c-http/source/request_response.c:1037
#1  0x0000000100e99a4c in closure #1 in CRTClientEngine.execute(request:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Networking/Http/CRT/CRTClientEngine.swift:97
#2  (null) in specialized closure #1 in withCheckedThrowingContinuation<A>(function:_:) ()
#3  (null) in specialized closure #1 in withUnsafeThrowingContinuation<A>(_:) ()
#4  (null) in specialized withUnsafeThrowingContinuation<A>(_:) ()
#5  (null) in specialized withCheckedThrowingContinuation<A>(function:_:) ()
#6  0x0000000100e99a4c in CRTClientEngine.execute(request:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Networking/Http/CRT/CRTClientEngine.swift:94
#7  (null) in protocol witness for HttpClientEngine.execute(request:) in conformance CRTClientEngine ()
#8  0x0000000100eaaba5 in ClientHandler.handle(context:input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Networking/Http/SdkHttpClient.swift:37
#9  (null) in protocol witness for Handler.handle(context:input:) in conformance ClientHandler<A> ()
#10 (null) in implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) ()
#11 (null) in partial apply for implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) ()
#12 0x0000000100e8ba61 in AnyHandler.handle(context:input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/AnyHandler.swift:18
#13 (null) in protocol witness for Handler.handle(context:input:) in conformance AnyHandler<A, B, C> ()
#14 0x0000000100e938e9 in DeserializeStepHandler.handle(context:input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/Steps/DeserializeStep.swift:35
#15 (null) in protocol witness for Handler.handle(context:input:) in conformance DeserializeStepHandler<A, B> ()
#16 (null) in implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) ()
#17 (null) in partial apply for implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) ()
#18 0x0000000100e8ba61 in AnyHandler.handle(context:input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/AnyHandler.swift:18
#19 (null) in protocol witness for Handler.handle(context:input:) in conformance AnyHandler<A, B, C> ()
#20 0x0000000100ea456d in DeserializeMiddleware.handle<A>(context:input:next:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Networking/Http/Middlewares/DeserializeMiddleware.swift:18
#21 (null) in protocol witness for Middleware.handle<A>(context:input:next:) in conformance DeserializeMiddleware<A, B> ()
#22 (null) in implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) ()
#23 (null) in partial apply for implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) ()
#24 0x0000000100e8c62d in AnyMiddleware.handle<A>(context:input:next:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/AnyMiddleware.swift:36
#25 0x0000000100e8ddc9 in ComposedHandler.handle(context:input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/ComposedHandler.swift:27
#26 (null) in protocol witness for Handler.handle(context:input:) in conformance ComposedHandler<A, B, C> ()
#27 (null) in implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) ()
#28 (null) in partial apply for implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) ()
#29 0x0000000100e8ba61 in AnyHandler.handle(context:input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/AnyHandler.swift:18
#30 (null) in protocol witness for Handler.handle(context:input:) in conformance AnyHandler<A, B, C> ()
#31 0x0000000100ea563d in LoggerMiddleware.handle<A>(context:input:next:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Networking/Http/Middlewares/LoggerMiddleware.swift:37
#32 (null) in protocol witness for Middleware.handle<A>(context:input:next:) in conformance LoggerMiddleware<A, B> ()
#33 (null) in implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) ()
#34 (null) in partial apply for implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) ()
#35 0x0000000100e8c62d in AnyMiddleware.handle<A>(context:input:next:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/AnyMiddleware.swift:36
#36 0x0000000100e8ddc9 in ComposedHandler.handle(context:input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/ComposedHandler.swift:27
#37 (null) in protocol witness for Handler.handle(context:input:) in conformance ComposedHandler<A, B, C> ()
#38 (null) in implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) ()
#39 (null) in partial apply for implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) ()
#40 0x0000000100e8ba61 in AnyHandler.handle(context:input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/AnyHandler.swift:18
#41 0x0000000100e8ea05 in MiddlewareStep.handle<A>(context:input:next:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/MiddlewareStep.swift:45
#42 (null) in protocol witness for Middleware.handle<A>(context:input:next:) in conformance MiddlewareStep<A, B, C> ()
#43 (null) in implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) ()
#44 (null) in partial apply for implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) ()
#45 0x0000000100e8c62d in AnyMiddleware.handle<A>(context:input:next:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/AnyMiddleware.swift:36
#46 0x0000000100e8ddc9 in ComposedHandler.handle(context:input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/ComposedHandler.swift:27
#47 (null) in protocol witness for Handler.handle(context:input:) in conformance ComposedHandler<A, B, C> ()
#48 (null) in implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) ()
#49 (null) in partial apply for implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) ()
#50 0x0000000100e8ba61 in AnyHandler.handle(context:input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/AnyHandler.swift:18
#51 (null) in protocol witness for Handler.handle(context:input:) in conformance AnyHandler<A, B, C> ()
#52 0x0000000100e94811 in FinalizeStepHandler.handle(context:input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/Steps/FinalizeStep.swift:34
#53 (null) in protocol witness for Handler.handle(context:input:) in conformance FinalizeStepHandler<A, B> ()
#54 (null) in implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) ()
#55 (null) in partial apply for implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) ()
#56 0x0000000100e8ba61 in AnyHandler.handle(context:input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/AnyHandler.swift:18
#57 (null) in protocol witness for Handler.handle(context:input:) in conformance AnyHandler<A, B, C> ()
#58 0x0000000100e75b79 in RetryerMiddleware.tryRequest<A>(token:errorType:partitionId:context:input:next:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/aws-sdk-swift/AWSClientRuntime/Sources/Middlewares/RetryerMiddleware.swift:58
#59 0x0000000100e757e5 in RetryerMiddleware.handle<A>(context:input:next:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/aws-sdk-swift/AWSClientRuntime/Sources/Middlewares/RetryerMiddleware.swift:35
#60 (null) in protocol witness for Middleware.handle<A>(context:input:next:) in conformance RetryerMiddleware<A, B> ()
#61 (null) in implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) ()
#62 (null) in partial apply for implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) ()
#63 0x0000000100e8c62d in AnyMiddleware.handle<A>(context:input:next:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/AnyMiddleware.swift:36
#64 0x0000000100e8ddc9 in ComposedHandler.handle(context:input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/ComposedHandler.swift:27
#65 (null) in protocol witness for Handler.handle(context:input:) in conformance ComposedHandler<A, B, C> ()
#66 (null) in implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) ()
#67 (null) in partial apply for implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) ()
#68 0x0000000100e8ba61 in AnyHandler.handle(context:input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/AnyHandler.swift:18
#69 (null) in protocol witness for Handler.handle(context:input:) in conformance AnyHandler<A, B, C> ()
#70 0x0000000100ea2ac1 in ContentLengthMiddleware.handle<A>(context:input:next:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Networking/Http/Middlewares/ContentLengthMiddleware.swift:33
#71 (null) in protocol witness for Middleware.handle<A>(context:input:next:) in conformance ContentLengthMiddleware<A> ()
#72 (null) in implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) ()
#73 (null) in partial apply for implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) ()
#74 0x0000000100e8c62d in AnyMiddleware.handle<A>(context:input:next:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/AnyMiddleware.swift:36
#75 0x0000000100e8ddc9 in ComposedHandler.handle(context:input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/ComposedHandler.swift:27
#76 (null) in protocol witness for Handler.handle(context:input:) in conformance ComposedHandler<A, B, C> ()
#77 (null) in implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) ()
#78 (null) in partial apply for implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) ()
#79 0x0000000100e8ba61 in AnyHandler.handle(context:input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/AnyHandler.swift:18
#80 0x0000000100e8ea05 in MiddlewareStep.handle<A>(context:input:next:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/MiddlewareStep.swift:45
#81 (null) in protocol witness for Middleware.handle<A>(context:input:next:) in conformance MiddlewareStep<A, B, C> ()
#82 (null) in implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) ()
#83 (null) in partial apply for implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) ()
#84 0x0000000100e8c62d in AnyMiddleware.handle<A>(context:input:next:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/AnyMiddleware.swift:36
#85 0x0000000100e8ddc9 in ComposedHandler.handle(context:input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/ComposedHandler.swift:27
#86 (null) in protocol witness for Handler.handle(context:input:) in conformance ComposedHandler<A, B, C> ()
#87 (null) in implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) ()
#88 (null) in partial apply for implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) ()
#89 0x0000000100e8ba61 in AnyHandler.handle(context:input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/AnyHandler.swift:18
#90 (null) in protocol witness for Handler.handle(context:input:) in conformance AnyHandler<A, B, C> ()
#91 0x0000000100e933a5 in BuildStepHandler.handle(context:input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/Steps/BuildStep.swift:33
#92 (null) in protocol witness for Handler.handle(context:input:) in conformance BuildStepHandler<A, B> ()
#93 (null) in implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) ()
#94 (null) in partial apply for implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) ()
#95 0x0000000100e8ba61 in AnyHandler.handle(context:input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/AnyHandler.swift:18
#96 (null) in protocol witness for Handler.handle(context:input:) in conformance AnyHandler<A, B, C> ()
#97 0x00000001013ab10d in EndpointResolverMiddleware.handle<A>(context:input:next:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/aws-sdk-swift/release/AWSAccessAnalyzer/EndpointResolver.swift:125
#98 (null) in protocol witness for Middleware.handle<A>(context:input:next:) in conformance EndpointResolverMiddleware<A, B> ()
#99 (null) in implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) ()
#100    (null) in partial apply for implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) ()
#101    0x0000000100e8c62d in AnyMiddleware.handle<A>(context:input:next:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/AnyMiddleware.swift:36
#102    0x0000000100e8ddc9 in ComposedHandler.handle(context:input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/ComposedHandler.swift:27
#103    (null) in protocol witness for Handler.handle(context:input:) in conformance ComposedHandler<A, B, C> ()
#104    (null) in implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) ()
#105    (null) in partial apply for implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) ()
#106    0x0000000100e8ba61 in AnyHandler.handle(context:input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/AnyHandler.swift:18
#107    (null) in protocol witness for Handler.handle(context:input:) in conformance AnyHandler<A, B, C> ()
#108    0x0000000100e78ee5 in UserAgentMiddleware.handle<A>(context:input:next:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/aws-sdk-swift/AWSClientRuntime/Sources/Middlewares/UserAgentMiddleware.swift:33
#109    (null) in protocol witness for Middleware.handle<A>(context:input:next:) in conformance UserAgentMiddleware<A> ()
#110    (null) in implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) ()
#111    (null) in partial apply for implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) ()
#112    0x0000000100e8c62d in AnyMiddleware.handle<A>(context:input:next:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/AnyMiddleware.swift:36
#113    0x0000000100e8ddc9 in ComposedHandler.handle(context:input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/ComposedHandler.swift:27
#114    (null) in protocol witness for Handler.handle(context:input:) in conformance ComposedHandler<A, B, C> ()
#115    (null) in implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) ()
#116    (null) in partial apply for implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) ()
#117    0x0000000100e8ba61 in AnyHandler.handle(context:input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/AnyHandler.swift:18
#118    0x0000000100e8ea05 in MiddlewareStep.handle<A>(context:input:next:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/MiddlewareStep.swift:45
#119    (null) in protocol witness for Middleware.handle<A>(context:input:next:) in conformance MiddlewareStep<A, B, C> ()
#120    (null) in implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) ()
#121    (null) in partial apply for implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) ()
#122    0x0000000100e8c62d in AnyMiddleware.handle<A>(context:input:next:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/AnyMiddleware.swift:36
#123    0x0000000100e8ddc9 in ComposedHandler.handle(context:input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/ComposedHandler.swift:27
#124    (null) in protocol witness for Handler.handle(context:input:) in conformance ComposedHandler<A, B, C> ()
#125    (null) in implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) ()
#126    (null) in partial apply for implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) ()
#127    0x0000000100e8ba61 in AnyHandler.handle(context:input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/AnyHandler.swift:18
#128    (null) in protocol witness for Handler.handle(context:input:) in conformance AnyHandler<A, B, C> ()
#129    0x0000000100e952cd in SerializeStepHandler.handle(context:input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/Steps/SerializeStep.swift:34
#130    (null) in protocol witness for Handler.handle(context:input:) in conformance SerializeStepHandler<A, B, C> ()
#131    (null) in implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) ()
#132    (null) in partial apply for implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) ()
#133    0x0000000100e8ba61 in AnyHandler.handle(context:input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/AnyHandler.swift:18
#134    (null) in protocol witness for Handler.handle(context:input:) in conformance AnyHandler<A, B, C> ()
#135    0x0000000100ea3ea1 in ContentTypeMiddleware.handle<A>(context:input:next:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Networking/Http/Middlewares/ContentTypeMiddleware.swift:27
#136    (null) in protocol witness for Middleware.handle<A>(context:input:next:) in conformance ContentTypeMiddleware<A, B> ()
#137    (null) in implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) ()
#138    (null) in partial apply for implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) ()
#139    0x0000000100e8c62d in AnyMiddleware.handle<A>(context:input:next:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/AnyMiddleware.swift:36
#140    0x0000000100e8ddc9 in ComposedHandler.handle(context:input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/ComposedHandler.swift:27
#141    (null) in protocol witness for Handler.handle(context:input:) in conformance ComposedHandler<A, B, C> ()
#142    (null) in implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) ()
#143    (null) in partial apply for implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) ()
#144    0x0000000100e8ba61 in AnyHandler.handle(context:input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/AnyHandler.swift:18
#145    (null) in protocol witness for Handler.handle(context:input:) in conformance AnyHandler<A, B, C> ()
#146    0x0000000100ea8899 in SerializableBodyMiddleware.handle<A>(context:input:next:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Networking/Http/Middlewares/SerializableBodyMiddleware.swift:29
#147    (null) in protocol witness for Middleware.handle<A>(context:input:next:) in conformance SerializableBodyMiddleware<A, B> ()
#148    (null) in implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) ()
#149    (null) in partial apply for implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) ()
#150    0x0000000100e8c62d in AnyMiddleware.handle<A>(context:input:next:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/AnyMiddleware.swift:36
#151    0x0000000100e8ddc9 in ComposedHandler.handle(context:input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/ComposedHandler.swift:27
#152    (null) in protocol witness for Handler.handle(context:input:) in conformance ComposedHandler<A, B, C> ()
#153    (null) in implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) ()
#154    (null) in partial apply for implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) ()
#155    0x0000000100e8ba61 in AnyHandler.handle(context:input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/AnyHandler.swift:18
#156    (null) in protocol witness for Handler.handle(context:input:) in conformance AnyHandler<A, B, C> ()
#157    0x0000000100e79965 in XAmzTargetMiddleware.handle<A>(context:input:next:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/aws-sdk-swift/AWSClientRuntime/Sources/Middlewares/XAmzTargetMiddleware.swift:25
#158    (null) in protocol witness for Middleware.handle<A>(context:input:next:) in conformance XAmzTargetMiddleware<A, B> ()
#159    (null) in implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) ()
#160    (null) in partial apply for implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) ()
#161    0x0000000100e8c62d in AnyMiddleware.handle<A>(context:input:next:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/AnyMiddleware.swift:36
#162    0x0000000100e8ddc9 in ComposedHandler.handle(context:input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/ComposedHandler.swift:27
#163    (null) in protocol witness for Handler.handle(context:input:) in conformance ComposedHandler<A, B, C> ()
#164    (null) in implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) ()
#165    (null) in partial apply for implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) ()
#166    0x0000000100e8ba61 in AnyHandler.handle(context:input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/AnyHandler.swift:18
#167    0x0000000100e8ea05 in MiddlewareStep.handle<A>(context:input:next:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/MiddlewareStep.swift:45
#168    (null) in protocol witness for Middleware.handle<A>(context:input:next:) in conformance MiddlewareStep<A, B, C> ()
#169    (null) in implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) ()
#170    (null) in partial apply for implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) ()
#171    0x0000000100e8c62d in AnyMiddleware.handle<A>(context:input:next:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/AnyMiddleware.swift:36
#172    0x0000000100e8ddc9 in ComposedHandler.handle(context:input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/ComposedHandler.swift:27
#173    (null) in protocol witness for Handler.handle(context:input:) in conformance ComposedHandler<A, B, C> ()
#174    (null) in implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) ()
#175    (null) in partial apply for implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) ()
#176    0x0000000100e8ba61 in AnyHandler.handle(context:input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/AnyHandler.swift:18
#177    (null) in protocol witness for Handler.handle(context:input:) in conformance AnyHandler<A, B, C> ()
#178    0x0000000100e94cf1 in InitializeStepHandler.handle(context:input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/Steps/InitializeStep.swift:36
#179    (null) in protocol witness for Handler.handle(context:input:) in conformance InitializeStepHandler<A, B, C> ()
#180    (null) in implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) ()
#181    (null) in partial apply for implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) ()
#182    0x0000000100e8ba61 in AnyHandler.handle(context:input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/AnyHandler.swift:18
#183    (null) in protocol witness for Handler.handle(context:input:) in conformance AnyHandler<A, B, C> ()
#184    0x0000000100ea9005 in URLHostMiddleware.handle<A>(context:input:next:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Networking/Http/Middlewares/URLHostMiddleware.swift:36
#185    (null) in protocol witness for Middleware.handle<A>(context:input:next:) in conformance URLHostMiddleware<A, B> ()
#186    (null) in implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) ()
#187    (null) in partial apply for implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) ()
#188    0x0000000100e8c62d in AnyMiddleware.handle<A>(context:input:next:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/AnyMiddleware.swift:36
#189    0x0000000100e8ddc9 in ComposedHandler.handle(context:input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/ComposedHandler.swift:27
#190    (null) in protocol witness for Handler.handle(context:input:) in conformance ComposedHandler<A, B, C> ()
#191    (null) in implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) ()
#192    (null) in partial apply for implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) ()
#193    0x0000000100e8ba61 in AnyHandler.handle(context:input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/AnyHandler.swift:18
#194    (null) in protocol witness for Handler.handle(context:input:) in conformance AnyHandler<A, B, C> ()
#195    0x0000000100ea9c41 in URLPathMiddleware.handle<A>(context:input:next:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Networking/Http/Middlewares/URLPathMiddleware.swift:36
#196    (null) in protocol witness for Middleware.handle<A>(context:input:next:) in conformance URLPathMiddleware<A, B, C> ()
#197    (null) in implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) ()
#198    (null) in partial apply for implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) ()
#199    0x0000000100e8c62d in AnyMiddleware.handle<A>(context:input:next:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/AnyMiddleware.swift:36
#200    0x0000000100e8ddc9 in ComposedHandler.handle(context:input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/ComposedHandler.swift:27
#201    (null) in protocol witness for Handler.handle(context:input:) in conformance ComposedHandler<A, B, C> ()
#202    (null) in implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) ()
#203    (null) in partial apply for implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) ()
#204    0x0000000100e8ba61 in AnyHandler.handle(context:input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/AnyHandler.swift:18
#205    0x0000000100e8ea05 in MiddlewareStep.handle<A>(context:input:next:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/MiddlewareStep.swift:45
#206    (null) in protocol witness for Middleware.handle<A>(context:input:next:) in conformance MiddlewareStep<A, B, C> ()
#207    (null) in implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) ()
#208    (null) in partial apply for implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) ()
#209    0x0000000100e8c62d in AnyMiddleware.handle<A>(context:input:next:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/AnyMiddleware.swift:36
#210    0x0000000100e8ddc9 in ComposedHandler.handle(context:input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/ComposedHandler.swift:27
#211    (null) in protocol witness for Handler.handle(context:input:) in conformance ComposedHandler<A, B, C> ()
#212    (null) in implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) ()
#213    (null) in partial apply for implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) ()
#214    0x0000000100e8ba61 in AnyHandler.handle(context:input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/AnyHandler.swift:18
#215    0x0000000100e907fd in OperationStack.handleMiddleware<A>(context:input:next:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/smithy-swift/Packages/ClientRuntime/Sources/Middleware/OperationStack.swift:42
#216    0x0000000101366305 in CognitoIdentityProviderClient.revokeToken(input:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/aws-sdk-swift/release/AWSCognitoIdentityProvider/CognitoIdentityProviderClient.swift:2937
#217    0x00000001010f07c5 in RevokeToken.execute(withDispatcher:environment:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/amplify-swift/AmplifyPlugins/Auth/Sources/AWSCognitoAuthPlugin/Actions/SignOut/RevokeToken.swift:19
#218    (null) in protocol witness for Action.execute(withDispatcher:environment:) in conformance RevokeToken ()
#219    0x00000001012d5b4d in closure #1 in closure #1 in static ConcurrentEffectExecutor.execute(_:dispatchingTo:environment:) at /Users/****/Library/Developer/Xcode/DerivedData/****/SourcePackages/checkouts/amplify-swift/AmplifyPlugins/Auth/Sources/AWSCognitoAuthPlugin/StateMachine/hierarchical-state-machine-swift/ConcurrentEffectExecutor.swift:18
#220    (null) in partial apply for closure #1 in closure #1 in static ConcurrentEffectExecutor.execute(_:dispatchingTo:environment:) ()
#221    (null) in specialized thunk for @escaping @callee_guaranteed @Sendable @async () -> (@out A) ()
#222    (null) in partial apply for specialized thunk for @escaping @callee_guaranteed @Sendable @async () -> (@out A) ()
#223    (null) in completeTaskWithClosure(swift::AsyncContext*, swift::SwiftError*) ()



### Is this a regression?

Yes

### Regression additional context

Was not occurring pre-version 2

### Device

iPhone 11, iPhone 13

### iOS Version

iOS 16

### Specific to simulators

_No response_

### Additional context

_No response_
atierian commented 1 year ago

Thanks for opening this issue @AndyMeagher. Can you please provide the full crash report(s)? They contain information that will help us find the root cause of the crash. Thanks!

AndyMeagher commented 1 year ago

@atierian Thank you for reaching out so quickly. Truly any clues / info about what is going on would help tremendously. There are a good number of reports, but here is an example of one:

Incident Identifier: CF525E3E-46F4-4609-9D42-00DA58DEF3BC
Hardware Model:      iPhone13,1
Process:             **** [2935]
Path:                /private/var/containers/Bundle/Application/353944D8-ECCE-4031-8D8C-5A0839881BF7/****.app/****
Identifier:          com.****.****
Version:             1.3.5 (1)
AppStoreTools:       14C17
AppVariant:          1:iPhone13,1:15
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd [1]
Coalition:           com.****.**** [1173]

Date/Time:           2023-06-27 01:24:15.7550 -0700
Launch Time:         2023-06-27 01:20:33.7828 -0700
OS Version:          iPhone OS 16.5.1 (20F75)
Release Type:        User
Baseband Version:    3.70.01
Report Version:      104

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Codes: 0x0000000000000001, 0x0000000000000000
VM Region Info: 0 is not in any region.  Bytes before following region: 4374085632
      REGION TYPE                 START - END      [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      __TEXT                   104b74000-104b78000 [   16K] r-x/r-x SM=COW  ...****
Termination Reason: SIGNAL 11 Segmentation fault: 11
Terminating Process: exc handler [2935]

Triggered by Thread:  1

Thread 0 name:
Thread 0:
0   libsystem_kernel.dylib          0x00000001f04d7c84 mach_msg2_trap + 8
1   libsystem_kernel.dylib          0x00000001f04eab54 mach_msg2_internal + 80 (mach_msg.c:201)
2   libsystem_kernel.dylib          0x00000001f04eae2c mach_msg_overwrite + 540 (mach_msg.c:0)
3   libsystem_kernel.dylib          0x00000001f04d81c8 mach_msg + 24 (mach_msg.c:323)
4   CoreFoundation                  0x00000001b160c024 __CFRunLoopServiceMachPort + 160 (CFRunLoop.c:2622)
5   CoreFoundation                  0x00000001b160d250 __CFRunLoopRun + 1208 (CFRunLoop.c:3005)
6   CoreFoundation                  0x00000001b16123ec CFRunLoopRunSpecific + 612 (CFRunLoop.c:3418)
7   GraphicsServices                0x00000001ecaaf35c GSEventRunModal + 164 (GSEvent.c:2196)
8   UIKitCore                       0x00000001b399f6e8 -[UIApplication _run] + 888 (UIApplication.m:3782)
9   UIKitCore                       0x00000001b399f34c UIApplicationMain + 340 (UIApplication.m:5372)
10  ****                    0x0000000104b7a9dc main + 68 (AppDelegate.swift:24)
11  dyld                            0x00000001d0aeadec start + 2220 (dyldMain.cpp:1165)

Thread 1 Crashed:
0   ****                    0x0000000104e8af14 aws_http_stream_activate + 0 (request_response.c:1037)
1   ****                    0x0000000104de1a4c closure #1 in CRTClientEngine.execute(request:) + 56 (CRTClientEngine.swift:97)
2   ****                    0x0000000104de1a4c specialized closure #1 in withCheckedThrowingContinuation<A>(function:_:) + 164 (<compiler-generated>:0)
3   ****                    0x0000000104de1a4c specialized closure #1 in withUnsafeThrowingContinuation<A>(_:) + 164 (<compiler-generated>:0)
4   ****                    0x0000000104de1a4c specialized withUnsafeThrowingContinuation<A>(_:) + 200 (<compiler-generated>:0)
5   ****                    0x0000000104de1a4c specialized withCheckedThrowingContinuation<A>(function:_:) + 200 (<compiler-generated>:0)
6   ****                    0x0000000104de1a4c CRTClientEngine.execute(request:) + 716 (CRTClientEngine.swift:94)
7   ****                    0x0000000104de2629 protocol witness for HttpClientEngine.execute(request:) in conformance CRTClientEngine + 1 (<compiler-generated>:0)
8   ****                    0x0000000104df2ba5 ClientHandler.handle(context:input:) + 1 (SdkHttpClient.swift:37)
9   ****                    0x0000000104df2d6d protocol witness for Handler.handle(context:input:) in conformance ClientHandler<A> + 1 (<compiler-generated>:0)
10  ****                    0x0000000104dd3991 implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) + 1 (<compiler-generated>:0)
11  ****                    0x0000000104dd3df5 partial apply for implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) + 1 (<compiler-generated>:0)
12  ****                    0x0000000104dd3a61 AnyHandler.handle(context:input:) + 1 (AnyHandler.swift:18)
13  ****                    0x0000000104dd3e41 protocol witness for Handler.handle(context:input:) in conformance AnyHandler<A, B, C> + 1
14  ****                    0x0000000104ddb8e9 DeserializeStepHandler.handle(context:input:) + 1 (DeserializeStep.swift:35)
15  ****                    0x0000000104ddba45 protocol witness for Handler.handle(context:input:) in conformance DeserializeStepHandler<A, B> + 1 (<compiler-generated>:0)
16  ****                    0x0000000104dd3991 implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) + 1 (<compiler-generated>:0)
17  ****                    0x0000000104dd3df5 partial apply for implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) + 1 (<compiler-generated>:0)
18  ****                    0x0000000104dd3a61 AnyHandler.handle(context:input:) + 1 (AnyHandler.swift:18)
19  ****                    0x0000000104dd3e41 protocol witness for Handler.handle(context:input:) in conformance AnyHandler<A, B, C> + 1
20  ****                    0x0000000104dec56d DeserializeMiddleware.handle<A>(context:input:next:) + 1 (DeserializeMiddleware.swift:18)
21  ****                    0x0000000104decad1 protocol witness for Middleware.handle<A>(context:input:next:) in conformance DeserializeMiddleware<A, B> + 1 (<compiler-generated>:0)
22  ****                    0x0000000104dd41e9 implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) + 1 (<compiler-generated>:0)
23  ****                    0x0000000104dd4bc1 partial apply for implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) + 1
24  ****                    0x0000000104dd462d AnyMiddleware.handle<A>(context:input:next:) + 1 (AnyMiddleware.swift:36)
25  ****                    0x0000000104dd5dc9 ComposedHandler.handle(context:input:) + 1 (ComposedHandler.swift:27)
26  ****                    0x0000000104dd5f8d protocol witness for Handler.handle(context:input:) in conformance ComposedHandler<A, B, C> + 1 (<compiler-generated>:0)
27  ****                    0x0000000104dd3991 implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) + 1 (<compiler-generated>:0)
28  ****                    0x0000000104dd3df5 partial apply for implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) + 1 (<compiler-generated>:0)
29  ****                    0x0000000104dd3a61 AnyHandler.handle(context:input:) + 1 (AnyHandler.swift:18)
30  ****                    0x0000000104dd3e41 protocol witness for Handler.handle(context:input:) in conformance AnyHandler<A, B, C> + 1
31  ****                    0x0000000104ded63d LoggerMiddleware.handle<A>(context:input:next:) + 1 (LoggerMiddleware.swift:37)
32  ****                    0x0000000104dedaf1 protocol witness for Middleware.handle<A>(context:input:next:) in conformance LoggerMiddleware<A, B> + 1 (<compiler-generated>:0)
33  ****                    0x0000000104dd41e9 implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) + 1 (<compiler-generated>:0)
34  ****                    0x0000000104dd4bc1 partial apply for implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) + 1
35  ****                    0x0000000104dd462d AnyMiddleware.handle<A>(context:input:next:) + 1 (AnyMiddleware.swift:36)
36  ****                    0x0000000104dd5dc9 ComposedHandler.handle(context:input:) + 1 (ComposedHandler.swift:27)
37  ****                    0x0000000104dd5f8d protocol witness for Handler.handle(context:input:) in conformance ComposedHandler<A, B, C> + 1 (<compiler-generated>:0)
38  ****                    0x0000000104dd3991 implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) + 1 (<compiler-generated>:0)
39  ****                    0x0000000104dd3df5 partial apply for implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) + 1 (<compiler-generated>:0)
40  ****                    0x0000000104dd3a61 AnyHandler.handle(context:input:) + 1 (AnyHandler.swift:18)
41  ****                    0x0000000104dd6a05 MiddlewareStep.handle<A>(context:input:next:) + 1 (MiddlewareStep.swift:45)
42  ****                    0x0000000104dd6ecd protocol witness for Middleware.handle<A>(context:input:next:) in conformance MiddlewareStep<A, B, C> + 1 (<compiler-generated>:0)
43  ****                    0x0000000104dd41e9 implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) + 1 (<compiler-generated>:0)
44  ****                    0x0000000104dd4bc1 partial apply for implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) + 1
45  ****                    0x0000000104dd462d AnyMiddleware.handle<A>(context:input:next:) + 1 (AnyMiddleware.swift:36)
46  ****                    0x0000000104dd5dc9 ComposedHandler.handle(context:input:) + 1 (ComposedHandler.swift:27)
47  ****                    0x0000000104dd5f8d protocol witness for Handler.handle(context:input:) in conformance ComposedHandler<A, B, C> + 1 (<compiler-generated>:0)
48  ****                    0x0000000104dd3991 implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) + 1 (<compiler-generated>:0)
49  ****                    0x0000000104dd3df5 partial apply for implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) + 1 (<compiler-generated>:0)
50  ****                    0x0000000104dd3a61 AnyHandler.handle(context:input:) + 1 (AnyHandler.swift:18)
51  ****                    0x0000000104dd3e41 protocol witness for Handler.handle(context:input:) in conformance AnyHandler<A, B, C> + 1
52  ****                    0x0000000104ddc811 FinalizeStepHandler.handle(context:input:) + 1 (FinalizeStep.swift:34)
53  ****                    0x0000000104ddc929 protocol witness for Handler.handle(context:input:) in conformance FinalizeStepHandler<A, B> + 1 (<compiler-generated>:0)
54  ****                    0x0000000104dd3991 implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) + 1 (<compiler-generated>:0)
55  ****                    0x0000000104dd3df5 partial apply for implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) + 1 (<compiler-generated>:0)
56  ****                    0x0000000104dd3a61 AnyHandler.handle(context:input:) + 1 (AnyHandler.swift:18)
57  ****                    0x0000000104dd3e41 protocol witness for Handler.handle(context:input:) in conformance AnyHandler<A, B, C> + 1
58  ****                    0x0000000104dbdb79 RetryerMiddleware.tryRequest<A>(token:errorType:partitionId:context:input:next:) + 1 (RetryerMiddleware.swift:58)
59  ****                    0x0000000104dbd7e5 RetryerMiddleware.handle<A>(context:input:next:) + 1 (RetryerMiddleware.swift:35)
60  ****                    0x0000000104dbe205 protocol witness for Middleware.handle<A>(context:input:next:) in conformance RetryerMiddleware<A, B> + 1 (<compiler-generated>:0)
61  ****                    0x0000000104dd41e9 implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) + 1 (<compiler-generated>:0)
62  ****                    0x0000000104dd4bc1 partial apply for implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) + 1
63  ****                    0x0000000104dd462d AnyMiddleware.handle<A>(context:input:next:) + 1 (AnyMiddleware.swift:36)
64  ****                    0x0000000104dd5dc9 ComposedHandler.handle(context:input:) + 1 (ComposedHandler.swift:27)
65  ****                    0x0000000104dd5f8d protocol witness for Handler.handle(context:input:) in conformance ComposedHandler<A, B, C> + 1 (<compiler-generated>:0)
66  ****                    0x0000000104dd3991 implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) + 1 (<compiler-generated>:0)
67  ****                    0x0000000104dd3df5 partial apply for implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) + 1 (<compiler-generated>:0)
68  ****                    0x0000000104dd3a61 AnyHandler.handle(context:input:) + 1 (AnyHandler.swift:18)
69  ****                    0x0000000104dd3e41 protocol witness for Handler.handle(context:input:) in conformance AnyHandler<A, B, C> + 1
70  ****                    0x0000000104deaac1 ContentLengthMiddleware.handle<A>(context:input:next:) + 1 (ContentLengthMiddleware.swift:33)
71  ****                    0x0000000104deac5d protocol witness for Middleware.handle<A>(context:input:next:) in conformance ContentLengthMiddleware<A> + 1 (<compiler-generated>:0)
72  ****                    0x0000000104dd41e9 implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) + 1 (<compiler-generated>:0)
73  ****                    0x0000000104dd4bc1 partial apply for implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) + 1
74  ****                    0x0000000104dd462d AnyMiddleware.handle<A>(context:input:next:) + 1 (AnyMiddleware.swift:36)
75  ****                    0x0000000104dd5dc9 ComposedHandler.handle(context:input:) + 1 (ComposedHandler.swift:27)
76  ****                    0x0000000104dd5f8d protocol witness for Handler.handle(context:input:) in conformance ComposedHandler<A, B, C> + 1 (<compiler-generated>:0)
77  ****                    0x0000000104dd3991 implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) + 1 (<compiler-generated>:0)
78  ****                    0x0000000104dd3df5 partial apply for implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) + 1 (<compiler-generated>:0)
79  ****                    0x0000000104dd3a61 AnyHandler.handle(context:input:) + 1 (AnyHandler.swift:18)
80  ****                    0x0000000104dd6a05 MiddlewareStep.handle<A>(context:input:next:) + 1 (MiddlewareStep.swift:45)
81  ****                    0x0000000104dd6ecd protocol witness for Middleware.handle<A>(context:input:next:) in conformance MiddlewareStep<A, B, C> + 1 (<compiler-generated>:0)
82  ****                    0x0000000104dd41e9 implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) + 1 (<compiler-generated>:0)
83  ****                    0x0000000104dd4bc1 partial apply for implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) + 1
84  ****                    0x0000000104dd462d AnyMiddleware.handle<A>(context:input:next:) + 1 (AnyMiddleware.swift:36)
85  ****                    0x0000000104dd5dc9 ComposedHandler.handle(context:input:) + 1 (ComposedHandler.swift:27)
86  ****                    0x0000000104dd5f8d protocol witness for Handler.handle(context:input:) in conformance ComposedHandler<A, B, C> + 1 (<compiler-generated>:0)
87  ****                    0x0000000104dd3991 implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) + 1 (<compiler-generated>:0)
88  ****                    0x0000000104dd3df5 partial apply for implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) + 1 (<compiler-generated>:0)
89  ****                    0x0000000104dd3a61 AnyHandler.handle(context:input:) + 1 (AnyHandler.swift:18)
90  ****                    0x0000000104dd3e41 protocol witness for Handler.handle(context:input:) in conformance AnyHandler<A, B, C> + 1
91  ****                    0x0000000104ddb3a5 BuildStepHandler.handle(context:input:) + 1 (BuildStep.swift:33)
92  ****                    0x0000000104ddb50d protocol witness for Handler.handle(context:input:) in conformance BuildStepHandler<A, B> + 1 (<compiler-generated>:0)
93  ****                    0x0000000104dd3991 implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) + 1 (<compiler-generated>:0)
94  ****                    0x0000000104dd3df5 partial apply for implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) + 1 (<compiler-generated>:0)
95  ****                    0x0000000104dd3a61 AnyHandler.handle(context:input:) + 1 (AnyHandler.swift:18)
96  ****                    0x0000000104dd3e41 protocol witness for Handler.handle(context:input:) in conformance AnyHandler<A, B, C> + 1
97  ****                    0x00000001054e4ab9 EndpointResolverMiddleware.handle<A>(context:input:next:) + 1 (EndpointResolver.swift:125)
98  ****                    0x00000001054e4c85 protocol witness for Middleware.handle<A>(context:input:next:) in conformance EndpointResolverMiddleware<A, B> + 1 (<compiler-generated>:0)
99  ****                    0x0000000104dd41e9 implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) + 1 (<compiler-generated>:0)
100 ****                    0x0000000104dd4bc1 partial apply for implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) + 1
101 ****                    0x0000000104dd462d AnyMiddleware.handle<A>(context:input:next:) + 1 (AnyMiddleware.swift:36)
102 ****                    0x0000000104dd5dc9 ComposedHandler.handle(context:input:) + 1 (ComposedHandler.swift:27)
103 ****                    0x0000000104dd5f8d protocol witness for Handler.handle(context:input:) in conformance ComposedHandler<A, B, C> + 1 (<compiler-generated>:0)
104 ****                    0x0000000104dd3991 implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) + 1 (<compiler-generated>:0)
105 ****                    0x0000000104dd3df5 partial apply for implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) + 1 (<compiler-generated>:0)
106 ****                    0x0000000104dd3a61 AnyHandler.handle(context:input:) + 1 (AnyHandler.swift:18)
107 ****                    0x0000000104dd3e41 protocol witness for Handler.handle(context:input:) in conformance AnyHandler<A, B, C> + 1
108 ****                    0x0000000104dc0ee5 UserAgentMiddleware.handle<A>(context:input:next:) + 1 (UserAgentMiddleware.swift:33)
109 ****                    0x0000000104dc108d protocol witness for Middleware.handle<A>(context:input:next:) in conformance UserAgentMiddleware<A> + 1 (<compiler-generated>:0)
110 ****                    0x0000000104dd41e9 implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) + 1 (<compiler-generated>:0)
111 ****                    0x0000000104dd4bc1 partial apply for implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) + 1
112 ****                    0x0000000104dd462d AnyMiddleware.handle<A>(context:input:next:) + 1 (AnyMiddleware.swift:36)
113 ****                    0x0000000104dd5dc9 ComposedHandler.handle(context:input:) + 1 (ComposedHandler.swift:27)
114 ****                    0x0000000104dd5f8d protocol witness for Handler.handle(context:input:) in conformance ComposedHandler<A, B, C> + 1 (<compiler-generated>:0)
115 ****                    0x0000000104dd3991 implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) + 1 (<compiler-generated>:0)
116 ****                    0x0000000104dd3df5 partial apply for implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) + 1 (<compiler-generated>:0)
117 ****                    0x0000000104dd3a61 AnyHandler.handle(context:input:) + 1 (AnyHandler.swift:18)
118 ****                    0x0000000104dd6a05 MiddlewareStep.handle<A>(context:input:next:) + 1 (MiddlewareStep.swift:45)
119 ****                    0x0000000104dd6ecd protocol witness for Middleware.handle<A>(context:input:next:) in conformance MiddlewareStep<A, B, C> + 1 (<compiler-generated>:0)
120 ****                    0x0000000104dd41e9 implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) + 1 (<compiler-generated>:0)
121 ****                    0x0000000104dd4bc1 partial apply for implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) + 1
122 ****                    0x0000000104dd462d AnyMiddleware.handle<A>(context:input:next:) + 1 (AnyMiddleware.swift:36)
123 ****                    0x0000000104dd5dc9 ComposedHandler.handle(context:input:) + 1 (ComposedHandler.swift:27)
124 ****                    0x0000000104dd5f8d protocol witness for Handler.handle(context:input:) in conformance ComposedHandler<A, B, C> + 1 (<compiler-generated>:0)
125 ****                    0x0000000104dd3991 implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) + 1 (<compiler-generated>:0)
126 ****                    0x0000000104dd3df5 partial apply for implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) + 1 (<compiler-generated>:0)
127 ****                    0x0000000104dd3a61 AnyHandler.handle(context:input:) + 1 (AnyHandler.swift:18)
128 ****                    0x0000000104dd3e41 protocol witness for Handler.handle(context:input:) in conformance AnyHandler<A, B, C> + 1
129 ****                    0x0000000104ddd2cd SerializeStepHandler.handle(context:input:) + 1 (SerializeStep.swift:34)
130 ****                    0x0000000104ddd3f1 protocol witness for Handler.handle(context:input:) in conformance SerializeStepHandler<A, B, C> + 1 (<compiler-generated>:0)
131 ****                    0x0000000104dd3991 implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) + 1 (<compiler-generated>:0)
132 ****                    0x0000000104dd3df5 partial apply for implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) + 1 (<compiler-generated>:0)
133 ****                    0x0000000104dd3a61 AnyHandler.handle(context:input:) + 1 (AnyHandler.swift:18)
134 ****                    0x0000000104dd3e41 protocol witness for Handler.handle(context:input:) in conformance AnyHandler<A, B, C> + 1
135 ****                    0x0000000104debea1 ContentTypeMiddleware.handle<A>(context:input:next:) + 1 (ContentTypeMiddleware.swift:27)
136 ****                    0x0000000104dec00d protocol witness for Middleware.handle<A>(context:input:next:) in conformance ContentTypeMiddleware<A, B> + 1 (<compiler-generated>:0)
137 ****                    0x0000000104dd41e9 implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) + 1 (<compiler-generated>:0)
138 ****                    0x0000000104dd4bc1 partial apply for implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) + 1
139 ****                    0x0000000104dd462d AnyMiddleware.handle<A>(context:input:next:) + 1 (AnyMiddleware.swift:36)
140 ****                    0x0000000104dd5dc9 ComposedHandler.handle(context:input:) + 1 (ComposedHandler.swift:27)
141 ****                    0x0000000104dd5f8d protocol witness for Handler.handle(context:input:) in conformance ComposedHandler<A, B, C> + 1 (<compiler-generated>:0)
142 ****                    0x0000000104dd3991 implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) + 1 (<compiler-generated>:0)
143 ****                    0x0000000104dd3df5 partial apply for implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) + 1 (<compiler-generated>:0)
144 ****                    0x0000000104dd3a61 AnyHandler.handle(context:input:) + 1 (AnyHandler.swift:18)
145 ****                    0x0000000104dd3e41 protocol witness for Handler.handle(context:input:) in conformance AnyHandler<A, B, C> + 1
146 ****                    0x0000000104df0899 SerializableBodyMiddleware.handle<A>(context:input:next:) + 1 (SerializableBodyMiddleware.swift:29)
147 ****                    0x0000000104df09f9 protocol witness for Middleware.handle<A>(context:input:next:) in conformance SerializableBodyMiddleware<A, B> + 1 (<compiler-generated>:0)
148 ****                    0x0000000104dd41e9 implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) + 1 (<compiler-generated>:0)
149 ****                    0x0000000104dd4bc1 partial apply for implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) + 1
150 ****                    0x0000000104dd462d AnyMiddleware.handle<A>(context:input:next:) + 1 (AnyMiddleware.swift:36)
151 ****                    0x0000000104dd5dc9 ComposedHandler.handle(context:input:) + 1 (ComposedHandler.swift:27)
152 ****                    0x0000000104dd5f8d protocol witness for Handler.handle(context:input:) in conformance ComposedHandler<A, B, C> + 1 (<compiler-generated>:0)
153 ****                    0x0000000104dd3991 implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) + 1 (<compiler-generated>:0)
154 ****                    0x0000000104dd3df5 partial apply for implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) + 1 (<compiler-generated>:0)
155 ****                    0x0000000104dd3a61 AnyHandler.handle(context:input:) + 1 (AnyHandler.swift:18)
156 ****                    0x0000000104dd3e41 protocol witness for Handler.handle(context:input:) in conformance AnyHandler<A, B, C> + 1
157 ****                    0x0000000104dc1965 XAmzTargetMiddleware.handle<A>(context:input:next:) + 1 (XAmzTargetMiddleware.swift:25)
158 ****                    0x0000000104dc1add protocol witness for Middleware.handle<A>(context:input:next:) in conformance XAmzTargetMiddleware<A, B> + 1 (<compiler-generated>:0)
159 ****                    0x0000000104dd41e9 implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) + 1 (<compiler-generated>:0)
160 ****                    0x0000000104dd4bc1 partial apply for implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) + 1
161 ****                    0x0000000104dd462d AnyMiddleware.handle<A>(context:input:next:) + 1 (AnyMiddleware.swift:36)
162 ****                    0x0000000104dd5dc9 ComposedHandler.handle(context:input:) + 1 (ComposedHandler.swift:27)
163 ****                    0x0000000104dd5f8d protocol witness for Handler.handle(context:input:) in conformance ComposedHandler<A, B, C> + 1 (<compiler-generated>:0)
164 ****                    0x0000000104dd3991 implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) + 1 (<compiler-generated>:0)
165 ****                    0x0000000104dd3df5 partial apply for implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) + 1 (<compiler-generated>:0)
166 ****                    0x0000000104dd3a61 AnyHandler.handle(context:input:) + 1 (AnyHandler.swift:18)
167 ****                    0x0000000104dd6a05 MiddlewareStep.handle<A>(context:input:next:) + 1 (MiddlewareStep.swift:45)
168 ****                    0x0000000104dd6ecd protocol witness for Middleware.handle<A>(context:input:next:) in conformance MiddlewareStep<A, B, C> + 1 (<compiler-generated>:0)
169 ****                    0x0000000104dd41e9 implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) + 1 (<compiler-generated>:0)
170 ****                    0x0000000104dd4bc1 partial apply for implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) + 1
171 ****                    0x0000000104dd462d AnyMiddleware.handle<A>(context:input:next:) + 1 (AnyMiddleware.swift:36)
172 ****                    0x0000000104dd5dc9 ComposedHandler.handle(context:input:) + 1 (ComposedHandler.swift:27)
173 ****                    0x0000000104dd5f8d protocol witness for Handler.handle(context:input:) in conformance ComposedHandler<A, B, C> + 1 (<compiler-generated>:0)
174 ****                    0x0000000104dd3991 implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) + 1 (<compiler-generated>:0)
175 ****                    0x0000000104dd3df5 partial apply for implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) + 1 (<compiler-generated>:0)
176 ****                    0x0000000104dd3a61 AnyHandler.handle(context:input:) + 1 (AnyHandler.swift:18)
177 ****                    0x0000000104dd3e41 protocol witness for Handler.handle(context:input:) in conformance AnyHandler<A, B, C> + 1
178 ****                    0x0000000104ddccf1 InitializeStepHandler.handle(context:input:) + 1 (InitializeStep.swift:36)
179 ****                    0x0000000104ddceed protocol witness for Handler.handle(context:input:) in conformance InitializeStepHandler<A, B, C> + 1 (<compiler-generated>:0)
180 ****                    0x0000000104dd3991 implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) + 1 (<compiler-generated>:0)
181 ****                    0x0000000104dd3df5 partial apply for implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) + 1 (<compiler-generated>:0)
182 ****                    0x0000000104dd3a61 AnyHandler.handle(context:input:) + 1 (AnyHandler.swift:18)
183 ****                    0x0000000104dd3e41 protocol witness for Handler.handle(context:input:) in conformance AnyHandler<A, B, C> + 1
184 ****                    0x0000000104df1005 URLHostMiddleware.handle<A>(context:input:next:) + 1 (URLHostMiddleware.swift:36)
185 ****                    0x0000000104df118d protocol witness for Middleware.handle<A>(context:input:next:) in conformance URLHostMiddleware<A, B> + 1 (<compiler-generated>:0)
186 ****                    0x0000000104dd41e9 implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) + 1 (<compiler-generated>:0)
187 ****                    0x0000000104dd4bc1 partial apply for implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) + 1
188 ****                    0x0000000104dd462d AnyMiddleware.handle<A>(context:input:next:) + 1 (AnyMiddleware.swift:36)
189 ****                    0x0000000104dd5dc9 ComposedHandler.handle(context:input:) + 1 (ComposedHandler.swift:27)
190 ****                    0x0000000104dd5f8d protocol witness for Handler.handle(context:input:) in conformance ComposedHandler<A, B, C> + 1 (<compiler-generated>:0)
191 ****                    0x0000000104dd3991 implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) + 1 (<compiler-generated>:0)
192 ****                    0x0000000104dd3df5 partial apply for implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) + 1 (<compiler-generated>:0)
193 ****                    0x0000000104dd3a61 AnyHandler.handle(context:input:) + 1 (AnyHandler.swift:18)
194 ****                    0x0000000104dd3e41 protocol witness for Handler.handle(context:input:) in conformance AnyHandler<A, B, C> + 1
195 ****                    0x0000000104df1c41 URLPathMiddleware.handle<A>(context:input:next:) + 1 (URLPathMiddleware.swift:36)
196 ****                    0x0000000104df1de1 protocol witness for Middleware.handle<A>(context:input:next:) in conformance URLPathMiddleware<A, B, C> + 1 (<compiler-generated>:0)
197 ****                    0x0000000104dd41e9 implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) + 1 (<compiler-generated>:0)
198 ****                    0x0000000104dd4bc1 partial apply for implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) + 1
199 ****                    0x0000000104dd462d AnyMiddleware.handle<A>(context:input:next:) + 1 (AnyMiddleware.swift:36)
200 ****                    0x0000000104dd5dc9 ComposedHandler.handle(context:input:) + 1 (ComposedHandler.swift:27)
201 ****                    0x0000000104dd5f8d protocol witness for Handler.handle(context:input:) in conformance ComposedHandler<A, B, C> + 1 (<compiler-generated>:0)
202 ****                    0x0000000104dd3991 implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) + 1 (<compiler-generated>:0)
203 ****                    0x0000000104dd3df5 partial apply for implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) + 1 (<compiler-generated>:0)
204 ****                    0x0000000104dd3a61 AnyHandler.handle(context:input:) + 1 (AnyHandler.swift:18)
205 ****                    0x0000000104dd6a05 MiddlewareStep.handle<A>(context:input:next:) + 1 (MiddlewareStep.swift:45)
206 ****                    0x0000000104dd6ecd protocol witness for Middleware.handle<A>(context:input:next:) in conformance MiddlewareStep<A, B, C> + 1 (<compiler-generated>:0)
207 ****                    0x0000000104dd41e9 implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) + 1 (<compiler-generated>:0)
208 ****                    0x0000000104dd4bc1 partial apply for implicit closure #2 in implicit closure #1 in AnyMiddleware.init<A>(_:) + 1
209 ****                    0x0000000104dd462d AnyMiddleware.handle<A>(context:input:next:) + 1 (AnyMiddleware.swift:36)
210 ****                    0x0000000104dd5dc9 ComposedHandler.handle(context:input:) + 1 (ComposedHandler.swift:27)
211 ****                    0x0000000104dd5f8d protocol witness for Handler.handle(context:input:) in conformance ComposedHandler<A, B, C> + 1 (<compiler-generated>:0)
212 ****                    0x0000000104dd3991 implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) + 1 (<compiler-generated>:0)
213 ****                    0x0000000104dd3df5 partial apply for implicit closure #2 in implicit closure #1 in AnyHandler.init<A>(_:) + 1 (<compiler-generated>:0)
214 ****                    0x0000000104dd3a61 AnyHandler.handle(context:input:) + 1 (AnyHandler.swift:18)
215 ****                    0x0000000104dd87fd OperationStack.handleMiddleware<A>(context:input:next:) + 1 (OperationStack.swift:42)
216 ****                    0x00000001054c5165 CognitoIdentityClient.getCredentialsForIdentity(input:) + 1 (CognitoIdentityClient.swift:424)
217 ****                    0x0000000104ff0e9d specialized FetchAuthAWSCredentials.execute(withDispatcher:environment:) + 1 (FetchAuthAWSCredentials.swift:21)
218 ****                    0x0000000104ff0549 protocol witness for Action.execute(withDispatcher:environment:) in conformance FetchAuthAWSCredentials + 1 (<compiler-generated>:0)
219 ****                    0x000000010521db4d closure #1 in closure #1 in static ConcurrentEffectExecutor.execute(_:dispatchingTo:environment:) + 1 (ConcurrentEffectExecutor.swift:18)
220 ****                    0x000000010505883d partial apply for closure #1 in closure #1 in static ConcurrentEffectExecutor.execute(_:dispatchingTo:environment:) + 1 (<compiler-generated>:0)
221 ****                    0x000000010521dc05 specialized thunk for @escaping @callee_guaranteed @Sendable @async () -> (@out A) + 1 (<compiler-generated>:0)
222 ****                    0x0000000104fec0b9 partial apply for specialized thunk for @escaping @callee_guaranteed @Sendable @async () -> (@out A) + 1 (<compiler-generated>:0)
223 libswift_Concurrency.dylib      0x00000001bb959dd9 completeTaskWithClosure(swift::AsyncContext*, swift::SwiftError*) + 1 (Task.cpp:496)

Thread 2 name:
Thread 2:
0   libsystem_kernel.dylib          0x00000001f04d7c84 mach_msg2_trap + 8
1   libsystem_kernel.dylib          0x00000001f04eab54 mach_msg2_internal + 80 (mach_msg.c:201)
2   libsystem_kernel.dylib          0x00000001f04eae2c mach_msg_overwrite + 540 (mach_msg.c:0)
3   libsystem_kernel.dylib          0x00000001f04d81c8 mach_msg + 24 (mach_msg.c:323)
4   CoreFoundation                  0x00000001b160c024 __CFRunLoopServiceMachPort + 160 (CFRunLoop.c:2622)
5   CoreFoundation                  0x00000001b160d250 __CFRunLoopRun + 1208 (CFRunLoop.c:3005)
6   CoreFoundation                  0x00000001b16123ec CFRunLoopRunSpecific + 612 (CFRunLoop.c:3418)
7   Foundation                      0x00000001ab89afd4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212 (NSRunLoop.m:373)
8   Foundation                      0x00000001ab89aebc -[NSRunLoop(NSRunLoop) runUntilDate:] + 64 (NSRunLoop.m:420)
9   UIKitCore                       0x00000001b3ad23fc -[UIEventFetcher threadMain] + 416 (UIEventFetcher.m:1376)
10  Foundation                      0x00000001ab8b4544 __NSThread__start__ + 716 (NSThread.m:963)
11  libsystem_pthread.dylib         0x000000021131d6b8 _pthread_start + 148 (pthread.c:893)
12  libsystem_pthread.dylib         0x000000021131cb88 thread_start + 8

Thread 3:
0   libsystem_pthread.dylib         0x000000021131cb74 start_wqthread + 0

Thread 4:
0   libsystem_pthread.dylib         0x000000021131cb74 start_wqthread + 0

Thread 5:
0   libsystem_pthread.dylib         0x000000021131cb74 start_wqthread + 0

Thread 6 name:
Thread 6:
0   GoogleUtilities                 0x0000000106a284dc -[GULNetwork hasUploadInProgress] + 0 (GULNetwork.m:241)
1   ****                    0x0000000105704d34 -[APMMeasurement isNetworkReadyForRequest] + 32
2   ****                    0x0000000105704098 -[APMMeasurement uploadData] + 268
3   ****                    0x0000000105703a08 __32-[APMMeasurement updateSchedule]_block_invoke_2 + 36
4   ****                    0x000000010572b13c __51-[APMScheduler scheduleOnWorkerQueueBlockID:block:]_block_invoke + 44
5   libdispatch.dylib               0x00000001b8a61320 _dispatch_call_block_and_release + 32 (init.c:1518)
6   libdispatch.dylib               0x00000001b8a62eac _dispatch_client_callout + 20 (object.m:560)
7   libdispatch.dylib               0x00000001b8a6a534 _dispatch_lane_serial_drain + 668 (queue.c:3885)
8   libdispatch.dylib               0x00000001b8a6b0a4 _dispatch_lane_invoke + 384 (queue.c:3976)
9   libdispatch.dylib               0x00000001b8a75cdc _dispatch_workloop_worker_thread + 648 (queue.c:6507)
10  libsystem_pthread.dylib         0x000000021131cddc _pthread_wqthread + 288 (pthread.c:2618)
11  libsystem_pthread.dylib         0x000000021131cb7c start_wqthread + 8

Thread 7:
0   StoreKit                        0x00000001d5be5814 type metadata accessor for SKLogger + 0 (<compiler-generated>:0)
1   StoreKit                        0x00000001d5c20d28 closure #2 in LaunchObserverManager.().init() + 284 (LaunchObserverManager.swift:54)
2   libswift_Concurrency.dylib      0x00000001bb959e41 completeTaskAndRelease(swift::AsyncContext*, swift::SwiftError*) + 1 (Task.cpp:480)

Thread 8:
0   libsystem_pthread.dylib         0x000000021131cb74 start_wqthread + 0

Thread 9:
0   libsystem_pthread.dylib         0x000000021131cb74 start_wqthread + 0

Thread 10:
0   libsystem_pthread.dylib         0x000000021131cb74 start_wqthread + 0

Thread 11:
0   libsystem_pthread.dylib         0x000000021131cb74 start_wqthread + 0

Thread 12:
0   libsystem_pthread.dylib         0x000000021131cb74 start_wqthread + 0

Thread 13:
0   libsystem_kernel.dylib          0x00000001f04d7c84 mach_msg2_trap + 8
1   libsystem_kernel.dylib          0x00000001f04eab54 mach_msg2_internal + 80 (mach_msg.c:201)
2   libsystem_kernel.dylib          0x00000001f04eae2c mach_msg_overwrite + 540 (mach_msg.c:0)
3   libsystem_kernel.dylib          0x00000001f04d81c8 mach_msg + 24 (mach_msg.c:323)
4   ****                    0x00000001056189fc exception_server_thread + 328 (PLCrashMachExceptionServer.m:664)
5   libsystem_pthread.dylib         0x000000021131d6b8 _pthread_start + 148 (pthread.c:893)
6   libsystem_pthread.dylib         0x000000021131cb88 thread_start + 8

Thread 14:
0   libsystem_kernel.dylib          0x00000001f04d8558 __psynch_cvwait + 8
1   libsystem_pthread.dylib         0x0000000211324078 _pthread_cond_wait + 1232 (pthread_cond.c:862)
2   ****                    0x0000000104e5583c aws_condition_variable_wait + 12 (condition_variable.c:74)
3   ****                    0x0000000104e4d274 aws_condition_variable_wait_pred + 56 (condition_variable.c:16)
4   ****                    0x0000000104e53164 s_background_thread_writer + 140 (log_channel.c:144)
5   ****                    0x0000000104e56570 thread_fn + 300 (thread.c:137)
6   libsystem_pthread.dylib         0x000000021131d6b8 _pthread_start + 148 (pthread.c:893)
7   libsystem_pthread.dylib         0x000000021131cb88 thread_start + 8

Thread 15:
0   libsystem_kernel.dylib          0x00000001f04d95bc kevent + 8
1   ****                    0x0000000104e5bf68 s_event_thread_main + 408 (kqueue_event_loop.c:854)
2   ****                    0x0000000104e56570 thread_fn + 300 (thread.c:137)
3   libsystem_pthread.dylib         0x000000021131d6b8 _pthread_start + 148 (pthread.c:893)
4   libsystem_pthread.dylib         0x000000021131cb88 thread_start + 8

Thread 16:
0   libsystem_kernel.dylib          0x00000001f04d95bc kevent + 8
1   libsystem_info.dylib            0x00000001bfbb6328 _mdns_search_ex + 1268 (mdns_module.c:1923)
2   libsystem_info.dylib            0x00000001bfbb5838 mdns_addrinfo + 360 (mdns_module.c:811)
3   libsystem_info.dylib            0x00000001bfbb7fd8 search_addrinfo + 176 (search_module.c:805)
4   libsystem_info.dylib            0x00000001bfbab290 si_addrinfo + 1184 (si_getaddrinfo.c:1597)
5   libsystem_info.dylib            0x00000001bfba8a6c getaddrinfo + 168 (libinfo.c:2473)
6   ****                    0x0000000104e66890 aws_default_dns_resolve + 192 (host_resolver.c:43)
7   ****                    0x0000000104e64238 resolver_thread_fn + 456 (host_resolver.c:1006)
8   ****                    0x0000000104e56570 thread_fn + 300 (thread.c:137)
9   libsystem_pthread.dylib         0x000000021131d6b8 _pthread_start + 148 (pthread.c:893)
10  libsystem_pthread.dylib         0x000000021131cb88 thread_start + 8

Thread 17 name:
Thread 17:
0   libsystem_kernel.dylib          0x00000001f04d7c84 mach_msg2_trap + 8
1   libsystem_kernel.dylib          0x00000001f04eab54 mach_msg2_internal + 80 (mach_msg.c:201)
2   libsystem_kernel.dylib          0x00000001f04eae2c mach_msg_overwrite + 540 (mach_msg.c:0)
3   libsystem_kernel.dylib          0x00000001f04d81c8 mach_msg + 24 (mach_msg.c:323)
4   CoreFoundation                  0x00000001b160c024 __CFRunLoopServiceMachPort + 160 (CFRunLoop.c:2622)
5   CoreFoundation                  0x00000001b160d250 __CFRunLoopRun + 1208 (CFRunLoop.c:3005)
6   CoreFoundation                  0x00000001b16123ec CFRunLoopRunSpecific + 612 (CFRunLoop.c:3418)
7   CFNetwork                       0x00000001b27fd580 +[__CFN_CoreSchedulingSetRunnable _run:] + 392 (CoreSchedulingSet.mm:1562)
8   Foundation                      0x00000001ab8b4544 __NSThread__start__ + 716 (NSThread.m:963)
9   libsystem_pthread.dylib         0x000000021131d6b8 _pthread_start + 148 (pthread.c:893)
10  libsystem_pthread.dylib         0x000000021131cb88 thread_start + 8

Thread 18:
0   libsystem_kernel.dylib          0x00000001f04d95bc kevent + 8
1   libsystem_info.dylib            0x00000001bfbb6328 _mdns_search_ex + 1268 (mdns_module.c:1923)
2   libsystem_info.dylib            0x00000001bfbb5838 mdns_addrinfo + 360 (mdns_module.c:811)
3   libsystem_info.dylib            0x00000001bfbb7fd8 search_addrinfo + 176 (search_module.c:805)
4   libsystem_info.dylib            0x00000001bfbab290 si_addrinfo + 1184 (si_getaddrinfo.c:1597)
5   libsystem_info.dylib            0x00000001bfba8a6c getaddrinfo + 168 (libinfo.c:2473)
6   ****                    0x0000000104e66890 aws_default_dns_resolve + 192 (host_resolver.c:43)
7   ****                    0x0000000104e64238 resolver_thread_fn + 456 (host_resolver.c:1006)
8   ****                    0x0000000104e56570 thread_fn + 300 (thread.c:137)
9   libsystem_pthread.dylib         0x000000021131d6b8 _pthread_start + 148 (pthread.c:893)
10  libsystem_pthread.dylib         0x000000021131cb88 thread_start + 8

Thread 1 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x0000000200000003   x2: 0x000000015dd00000   x3: 0x000000015dd3a4a0
    x4: 0x0000000000000240   x5: 0x000000015dd3a4a0   x6: 0x0000000000000028   x7: 0x0000000104de2904
    x8: 0x0000000104e392a4   x9: 0x0000000200000003  x10: 0x0000000000000003  x11: 0x0000000000179f41
   x12: 0x000000015dd03fc4  x13: 0x0000000000000027  x14: 0x000000015dd00000  x15: 0x000000008891cf04
   x16: 0x00000001ab686350  x17: 0x0000000000000000  x18: 0x0000000000000000  x19: 0x000000016102f110
   x20: 0x00000002823e3080  x21: 0x0000000105d3ba90  x22: 0x000000016102f030  x23: 0x0000000162037b10
   x24: 0x000000016102f270  x25: 0x000000020953d530  x26: 0x00000002800bfde0  x27: 0x000000016102f040
   x28: 0x00000002811bca20   fp: 0x000000016b39ee50   lr: 0x0000000104de1a4c
    sp: 0x000000016b39edb0   pc: 0x0000000104e8af14 cpsr: 0x60001000
   esr: 0x92000006 (Data Abort) byte read Translation fault

Binary Images:
        0x104b74000 -         0x105b8bfff **** arm64  <e19e44b574503bab907f603dbdbfb86d> /private/var/containers/Bundle/Application/353944D8-ECCE-4031-8D8C-5A0839881BF7/****.app/****
        0x10619c000 -         0x10628bfff Alamofire arm64  <828ed2ade4eb3d67a90ca41a095c28f5> /private/var/containers/Bundle/Application/353944D8-ECCE-4031-8D8C-5A0839881BF7/****.app/Frameworks/Alamofire.framework/Alamofire
        0x10646c000 -         0x106473fff FirebaseCoreDiagnostics arm64  <cab24bb9308e3e9588da774270b7f83b> /private/var/containers/Bundle/Application/353944D8-ECCE-4031-8D8C-5A0839881BF7/****.app/Frameworks/FirebaseCoreDiagnostics.framework/FirebaseCoreDiagnostics
        0x106514000 -         0x106543fff AlamofireImage arm64  <d73d5c4e1dc0368195af00a744ac8da0> /private/var/containers/Bundle/Application/353944D8-ECCE-4031-8D8C-5A0839881BF7/****.app/Frameworks/AlamofireImage.framework/AlamofireImage
        0x1065b0000 -         0x10660bfff Apollo arm64  <387f6fa06dbc3b0da5da6ad84193a2d4> /private/var/containers/Bundle/Application/353944D8-ECCE-4031-8D8C-5A0839881BF7/****.app/Frameworks/Apollo.framework/Apollo
        0x1066e8000 -         0x10674ffff Contentful arm64  <77cd0f5b536c37228bfd5f5bed8389e0> /private/var/containers/Bundle/Application/353944D8-ECCE-4031-8D8C-5A0839881BF7/****.app/Frameworks/Contentful.framework/Contentful
        0x10687c000 -         0x10689ffff ContentfulRichTextRenderer arm64  <98dea67818cb3224b8b0f2e4c5006bc2> /private/var/containers/Bundle/Application/353944D8-ECCE-4031-8D8C-5A0839881BF7/****.app/Frameworks/ContentfulRichTextRenderer.framework/ContentfulRichTextRenderer
        0x106910000 -         0x10691ffff FBLPromises arm64  <c61315124d373352b7c74378d946c81b> /private/var/containers/Bundle/Application/353944D8-ECCE-4031-8D8C-5A0839881BF7/****.app/Frameworks/FBLPromises.framework/FBLPromises
        0x106944000 -         0x106953fff FirebaseCore arm64  <58e58ae86fcb3be89d0c4de4ce05b407> /private/var/containers/Bundle/Application/353944D8-ECCE-4031-8D8C-5A0839881BF7/****.app/Frameworks/FirebaseCore.framework/FirebaseCore
        0x106978000 -         0x10698ffff FirebaseInstallations arm64  <535868b7770f3728ab081063c45c83fd> /private/var/containers/Bundle/Application/353944D8-ECCE-4031-8D8C-5A0839881BF7/****.app/Frameworks/FirebaseInstallations.framework/FirebaseInstallations
        0x1069c0000 -         0x1069dffff GoogleDataTransport arm64  <2b878094e60032dab209f3547677aa25> /private/var/containers/Bundle/Application/353944D8-ECCE-4031-8D8C-5A0839881BF7/****.app/Frameworks/GoogleDataTransport.framework/GoogleDataTransport
        0x106a1c000 -         0x106a37fff GoogleUtilities arm64  <b9d9e623d20838138c51e5eea9bacfa8> /private/var/containers/Bundle/Application/353944D8-ECCE-4031-8D8C-5A0839881BF7/****.app/Frameworks/GoogleUtilities.framework/GoogleUtilities
        0x106a6c000 -         0x106a8bfff MailchimpSDK arm64  <a0ffa21e2a2437a6a174baf51f567026> /private/var/containers/Bundle/Application/353944D8-ECCE-4031-8D8C-5A0839881BF7/****.app/Frameworks/MailchimpSDK.framework/MailchimpSDK
        0x106aa8000 -         0x106c0ffff RevenueCat arm64  <0c298118943633adb45642c991ef7d5b> /private/var/containers/Bundle/Application/353944D8-ECCE-4031-8D8C-5A0839881BF7/****.app/Frameworks/RevenueCat.framework/RevenueCat
        0x106f60000 -         0x106f7ffff SwiftyJSON arm64  <71b2e8029c1e3b12b2a2d6eb17e6e128> /private/var/containers/Bundle/Application/353944D8-ECCE-4031-8D8C-5A0839881BF7/****.app/Frameworks/SwiftyJSON.framework/SwiftyJSON
        0x106fb8000 -         0x106fbffff nanopb arm64  <fce057ff167334919cc1b1127d8b4a38> /private/var/containers/Bundle/Application/353944D8-ECCE-4031-8D8C-5A0839881BF7/****.app/Frameworks/nanopb.framework/nanopb
        0x108d8c000 -         0x108d97fff libobjc-trampolines.dylib arm64e  <695a8449aae838b6851cced0b1176f03> /private/preboot/Cryptexes/OS/usr/lib/libobjc-trampolines.dylib
        0x108e3c000 -         0x108e4ffff GAXClient arm64e  <4b02f071524f355e95a419c5a5d20dec> /System/Library/AccessibilityBundles/GAXClient.bundle/GAXClient
        0x1ab859000 -         0x1ac136fff Foundation arm64e  <6e76dc9611af3b2eb71e215f9cc6e822> /System/Library/Frameworks/Foundation.framework/Foundation
        0x1b1593000 -         0x1b197afff CoreFoundation arm64e  <4230c12242e8383bbeecee7b61f8bb61> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
        0x1b25a4000 -         0x1b296ffff CFNetwork arm64e  <6aafe7c4f1c43020ad1670591c86d7b0> /System/Library/Frameworks/CFNetwork.framework/CFNetwork
        0x1b3602000 -         0x1b4e26fff UIKitCore arm64e  <b3834960244b34e49ea0ca4bb44ef0f3> /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore
        0x1b8a5f000 -         0x1b8aa5fff libdispatch.dylib arm64e  <bb347f0ef21c360782e6c8d750fdbf8c> /usr/lib/system/libdispatch.dylib
        0x1bb911000 -         0x1bb96cffb libswift_Concurrency.dylib arm64e  <265f5f8dc650318eb5b81a6a0532d653> /usr/lib/swift/libswift_Concurrency.dylib
        0x1bfba6000 -         0x1bfbccffb libsystem_info.dylib arm64e  <e77a0b3173f8327087dfc980343cfc56> /usr/lib/system/libsystem_info.dylib
        0x1d0ad5000 -         0x1d0b5aa23 dyld arm64e  <6987370ac3853135a27f6731706bcbd8> /usr/lib/dyld
        0x1d5b72000 -         0x1d5c82fff StoreKit arm64e  <f130bd35f201326fbb8c3e154cd5c65f> /System/Library/Frameworks/StoreKit.framework/StoreKit
        0x1ecaae000 -         0x1ecab6fff GraphicsServices arm64e  <e830ad84d6123b6b8de7ea61a786d132> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
        0x1f04d7000 -         0x1f050eff7 libsystem_kernel.dylib arm64e  <75da6452934e3f80b181d47074378e83> /usr/lib/system/libsystem_kernel.dylib
        0x21131c000 -         0x211327ff3 libsystem_pthread.dylib arm64e  <56698309210a313797d414e4604b1117> /usr/lib/system/libsystem_pthread.dylib

EOF
atierian commented 1 year ago

Thanks, that's very helpful. We'll investigate and get back to you with any updates or questions.

atierian commented 1 year ago

Hey @AndyMeagher, I just wanted to let you know that we're still investigating.

In the meantime, I recommend you update to the most recent version (currently 2.12.0) of Amplify Swift to see if it resolves your issue. There have been a number of improvements since 2.8.1, including to areas where it looks like this crash may be originating.

atierian commented 1 year ago

Quick update: I'm not able to reproduce the crash. The area that is crashing here (Common Runtime) has gotten multiple fixes and improvements since Amplify Swift v2.8.1. I recommend updating to Amplify Swift 2.12.0 and seeing if that resolves your issue. Alternatively, if you find a reproducible test case, please share that and we can investigate further.

Thanks!

AndyMeagher commented 1 year ago

Quick update: I'm not able to reproduce the crash. The area that is crashing here (Common Runtime) has gotten multiple fixes and improvements since Amplify Swift v2.8.1. I recommend updating to Amplify Swift 2.12.0 and seeing if that resolves your issue. Alternatively, if you find a reproducible test case, please share that and we can investigate further.

Thanks!

Thank you for trying!

I will update and see if that fixes it 🙏🏻