Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save xiangyu-sun/e286a147950a112ab778c4066cd5b05c to your computer and use it in GitHub Desktop.
Save xiangyu-sun/e286a147950a112ab778c4066cd5b05c to your computer and use it in GitHub Desktop.
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x525548)
frame #0: 0x0000000134011b9c libswiftCore.dylib`swift_retain + 40
frame #1: 0x0000000287a09f14 AnalyticsTesting`outlined init with copy of AppEvent at <compiler-generated>:0
* frame #2: 0x0000000287a04c68 AnalyticsTesting`AppEventServiceMock.handle(event=storeImpression, self=0x00000002f88aa120) at AppEventServiceMock.swift:27:24
frame #3: 0x0000000287a0e3f4 AnalyticsTesting`protocol witness for AppEventServiceProtocol.handle(event:) in conformance AppEventServiceMock at <compiler-generated>:0
frame #4: 0x0000000106827614 MyModule`FeedImpressionManager.sendImpressionEvent(impressionData=Discovery.FeedImpressionData @ 0x000000016b5ebde0, self=0x00000002d8bd9b10) at FeedImpressionManager.swift:311:28
frame #5: 0x0000000106815be4 MyModule`protocol witness for ImpressionDataManagerProtocol.sendImpressionEvent(for:) in conformance FeedImpressionManager at <compiler-generated>:0
frame #6: 0x0000000118bd7668 MyOtherModule`ImpressionManager.startTimer(impressionData=Discovery.FeedImpressionData @ 0x000000016b5edbc0, scheduled=false, self=0x000000030b59d220) at ImpressionManager.swift:91:34
frame #7: 0x0000000118bd5b54 MyOtherModule`ImpressionManager.manageTimer(impressions=4 values, scheduled=false, self=0x000000030b59d220) at ImpressionManager.swift:79:12
frame #8: 0x0000000118bdf6b8 MyOtherModule`protocol witness for ImpressionManagerProtocol.manageTimer(for:scheduled:) in conformance ImpressionManager<A> at <compiler-generated>:0
frame #9: 0x000000028809c7d8 MyOtherModuleTesting`ImpressionManagerMock.manageTimerTest(impressions=4 values, self=0x00000002f8972950) at ImpressionManagerMock.swift:58:28
frame #10: 0x0000000291dd3f90 MyModuleTests`closure #1 in closure #1 in FeedImpressionTests.testImpressionEventTracked(self=0x0000000284be92c0) at FeedImpressionTests.swift:85:32
frame #11: 0x0000000291e38094 MyModuleTests`partial apply for closure #1 in closure #1 in FeedImpressionTests.testImpressionEventTracked() at <compiler-generated>:0
frame #12: 0x0000000288d71e0c Quick`closure #1 in Example.run(self=0x00000002c3f64da0, closure=0x0000000291e3807c MyModuleTests`partial apply forwarder for closure #1 () -> () in closure #1 () -> () in MyModuleTests.FeedImpressionTests.testImpressionEventTracked() -> () at <compiler-generated>, name="FeedImpression, stores eligibles for impression, should trigger impression events", callsite=0x00000002c242b0c0) at Example.swift:84:21
frame #13: 0x0000000288d72db4 Quick`thunk for @escaping @callee_guaranteed () -> () at <compiler-generated>:0
frame #14: 0x0000000288d736ec Quick`thunk for @escaping @callee_guaranteed () -> (@out ()) at <compiler-generated>:0
frame #15: 0x0000000288d72db4 Quick`thunk for @escaping @callee_guaranteed () -> () at <compiler-generated>:0
frame #16: 0x0000000288d7ff48 Quick`closure #1 in ExampleHooks.appendBefore(_0=0x00000002f6625b40, closure=0x0000000291e3ccbc MyModuleTests`partial apply forwarder for closure #1 () -> () in closure #1 () -> () in MyModuleTests.FeedImpressionTests.spec() -> () at <compiler-generated>) at ExampleHooks.swift:18:13
frame #17: 0x0000000288d739b8 Quick`thunk for @escaping @callee_guaranteed (@in_guaranteed ExampleMetadata, @in_guaranteed @escaping @callee_guaranteed @substituted <A> () -> (@out A) for <()>) -> (@out ()) at <compiler-generated>:0
frame #18: 0x0000000288d73dec Quick`closure #1 in closure #2 in Example.run(wrapper=0x0000000288d76464 Quick`partial apply forwarder for reabstraction thunk helper from @escaping @callee_guaranteed (@in_guaranteed Quick.ExampleMetadata, @in_guaranteed @escaping @callee_guaranteed @substituted <A> () -> (@out A) for <()>) -> (@out ()) to @escaping @callee_guaranteed (@guaranteed Quick.ExampleMetadata, @guaranteed @escaping @callee_guaranteed () -> ()) -> () at <compiler-generated>, exampleMetadata=0x00000002f6625b40, closure=0x0000000288d7641c Quick`partial apply forwarder for reabstraction thunk helper from @escaping @callee_guaranteed () -> (@out ()) to @escaping @callee_guaranteed () -> () at <compiler-generated>) at Example.swift:118:22
frame #19: 0x0000000288d736ec Quick`thunk for @escaping @callee_guaranteed () -> (@out ()) at <compiler-generated>:0
frame #20: 0x0000000288d72db4 Quick`thunk for @escaping @callee_guaranteed () -> () at <compiler-generated>:0
frame #21: 0x0000000288d815a0 Quick`closure #1 in ExampleHooks.appendAfter(_0=0x00000002f6625b40, closure=0x0000000291e3cd00 MyModuleTests`partial apply forwarder for closure #2 () -> () in closure #1 () -> () in MyModuleTests.FeedImpressionTests.spec() -> () at <compiler-generated>) at ExampleHooks.swift:31:13
frame #22: 0x0000000288d739b8 Quick`thunk for @escaping @callee_guaranteed (@in_guaranteed ExampleMetadata, @in_guaranteed @escaping @callee_guaranteed @substituted <A> () -> (@out A) for <()>) -> (@out ()) at <compiler-generated>:0
frame #23: 0x0000000288d73dec Quick`closure #1 in closure #2 in Example.run(wrapper=0x0000000288d76464 Quick`partial apply forwarder for reabstraction thunk helper from @escaping @callee_guaranteed (@in_guaranteed Quick.ExampleMetadata, @in_guaranteed @escaping @callee_guaranteed @substituted <A> () -> (@out A) for <()>) -> (@out ()) to @escaping @callee_guaranteed (@guaranteed Quick.ExampleMetadata, @guaranteed @escaping @callee_guaranteed () -> ()) -> () at <compiler-generated>, exampleMetadata=0x00000002f6625b40, closure=0x0000000288d7641c Quick`partial apply forwarder for reabstraction thunk helper from @escaping @callee_guaranteed () -> (@out ()) to @escaping @callee_guaranteed () -> () at <compiler-generated>) at Example.swift:118:22
frame #24: 0x0000000288d70c70 Quick`Example.run(self=0x00000002c3f64da0) at Example.swift:120:9
frame #25: 0x0000000288d73f08 Quick`@objc Example.run() at <compiler-generated>:0
frame #26: 0x0000000288d5c5d0 Quick`__60+[QuickSpec addInstanceMethodForExample:classSelectorNames:]_block_invoke(.block_descriptor=0x00000002c5f07350, self=0x0000000284b367c0) at QuickSpec.m:115:9
frame #27: 0x000000011521c6c0 CoreFoundation`__invoking___ + 144
frame #28: 0x0000000115219a44 CoreFoundation`-[NSInvocation invoke] + 276
frame #29: 0x0000000281111414 XCTestCore`+[XCTFailableInvocation invokeStandardConventionInvocation:completion:] + 64
frame #30: 0x00000002811113cc XCTestCore`__90+[XCTFailableInvocation invokeInvocation:withTestMethodConvention:lastObservedErrorIssue:]_block_invoke_3 + 24
frame #31: 0x0000000281110e04 XCTestCore`__81+[XCTFailableInvocation invokeWithAsynchronousWait:lastObservedErrorIssue:block:]_block_invoke + 296
frame #32: 0x00000002810d88a8 XCTestCore`__49+[XCTSwiftErrorObservation observeErrorsInBlock:]_block_invoke + 40
frame #33: 0x0000000286fbc91c libXCTestSwiftSupport.dylib`function signature specialization <Arg[1] = [Closure Propagated : reabstraction thunk helper from @callee_unowned @convention(block) (@unowned @callee_unowned @convention(block) () -> ()) -> () to @escaping @callee_guaranteed (@unowned @callee_guaranteed () -> ()) -> (), Argument Types : [@callee_unowned @convention(block) (@unowned @callee_unowned @convention(block) () -> ()) -> ()]> of closure #1 () -> () in static __C.XCTSwiftErrorObservation._observeErrors(in: (() -> ()) -> ()) -> () -> Swift.Optional<XCTest.XCTIssue> + 156
frame #34: 0x0000000286fbca10 libXCTestSwiftSupport.dylib`function signature specialization <Arg[5] = [Closure Propagated : reabstraction thunk helper from @callee_unowned @convention(block) (@unowned @callee_unowned @convention(block) () -> ()) -> () to @escaping @callee_guaranteed (@unowned @callee_guaranteed () -> ()) -> (), Argument Types : [@callee_unowned @convention(block) (@unowned @callee_unowned @convention(block) () -> ()) -> ()]> of function signature specialization <Arg[2] = [Closure Propagated : closure #1 () -> () in static (extension in XCTest):__C.XCTSwiftErrorObservation.(_observeErrors in _B0397D3B80CBC8D7FB9A5B33AB2A74B8)(in: (() -> ()) -> ()) -> () -> Swift.Optional<XCTest.XCTIssue>, Argument Types : [@callee_guaranteed (@unowned @callee_guaranteed () -> ()) -> ()]> of generic specialization <Swift.Optional<XCTest.LocalErrorTracker>, ()> of Swift.TaskLocal.withValue<τ_0_0>(_: τ_0_0, operation: () throws -> τ_1_0, file: Swift.String, line: Swift.UInt) throws -> τ_1_0 + 140
frame #35: 0x0000000286fbc778 libXCTestSwiftSupport.dylib`function signature specialization <Arg[0] = [Closure Propagated : reabstraction thunk helper from @callee_unowned @convention(block) (@unowned @callee_unowned @convention(block) () -> ()) -> () to @escaping @callee_guaranteed (@unowned @callee_guaranteed () -> ()) -> (), Argument Types : [@callee_unowned @convention(block) (@unowned @callee_unowned @convention(block) () -> ()) -> ()]> of static __C.XCTSwiftErrorObservation._observeErrors(in: (() -> ()) -> ()) -> () -> Swift.Optional<XCTest.XCTIssue> + 784
frame #36: 0x0000000286fbcaec libXCTestSwiftSupport.dylib`@objc static __C.XCTSwiftErrorObservation._observeErrors(in: (() -> ()) -> ()) -> () -> Swift.Optional<XCTest.XCTIssue> + 48
frame #37: 0x00000002810d87cc XCTestCore`+[XCTSwiftErrorObservation observeErrorsInBlock:] + 160
frame #38: 0x0000000281110c14 XCTestCore`+[XCTFailableInvocation invokeWithAsynchronousWait:lastObservedErrorIssue:block:] + 184
frame #39: 0x000000028111118c XCTestCore`+[XCTFailableInvocation invokeInvocation:withTestMethodConvention:lastObservedErrorIssue:] + 252
frame #40: 0x0000000281111484 XCTestCore`+[XCTFailableInvocation invokeInvocation:lastObservedErrorIssue:] + 68
frame #41: 0x00000002811017b8 XCTestCore`__24-[XCTestCase invokeTest]_block_invoke.78 + 96
frame #42: 0x00000002810d1b8c XCTestCore`-[XCTestCase(XCTIssueHandling) _caughtUnhandledDeveloperExceptionPermittingControlFlowInterruptions:caughtInterruptionException:whileExecutingBlock:] + 160
frame #43: 0x00000002811013fc XCTestCore`-[XCTestCase invokeTest] + 684
frame #44: 0x0000000281102874 XCTestCore`__26-[XCTestCase performTest:]_block_invoke.118 + 32
frame #45: 0x00000002810d1b8c XCTestCore`-[XCTestCase(XCTIssueHandling) _caughtUnhandledDeveloperExceptionPermittingControlFlowInterruptions:caughtInterruptionException:whileExecutingBlock:] + 160
frame #46: 0x00000002811023dc XCTestCore`__26-[XCTestCase performTest:]_block_invoke.109 + 456
frame #47: 0x00000002810eaeb0 XCTestCore`+[XCTContext _runInChildOfContext:forTestCase:markAsReportingBase:block:] + 172
frame #48: 0x00000002810eaddc XCTestCore`+[XCTContext runInContextForTestCase:markAsReportingBase:block:] + 140
frame #49: 0x0000000281102074 XCTestCore`-[XCTestCase performTest:] + 248
frame #50: 0x00000002810c1ae8 XCTestCore`-[XCTest runTest] + 44
frame #51: 0x00000002810ed708 XCTestCore`-[XCTestSuite runTestBasedOnRepetitionPolicy:testRun:] + 64
frame #52: 0x00000002810ed5ec XCTestCore`__27-[XCTestSuite performTest:]_block_invoke + 160
frame #53: 0x00000002810ed13c XCTestCore`__59-[XCTestSuite _performProtectedSectionForTest:testSection:]_block_invoke + 40
frame #54: 0x00000002810eaeb0 XCTestCore`+[XCTContext _runInChildOfContext:forTestCase:markAsReportingBase:block:] + 172
frame #55: 0x00000002810eaddc XCTestCore`+[XCTContext runInContextForTestCase:markAsReportingBase:block:] + 140
frame #56: 0x00000002810ed0e4 XCTestCore`-[XCTestSuite _performProtectedSectionForTest:testSection:] + 152
frame #57: 0x00000002810ed318 XCTestCore`-[XCTestSuite performTest:] + 188
frame #58: 0x00000002810c1ae8 XCTestCore`-[XCTest runTest] + 44
frame #59: 0x00000002810ed708 XCTestCore`-[XCTestSuite runTestBasedOnRepetitionPolicy:testRun:] + 64
frame #60: 0x00000002810ed5ec XCTestCore`__27-[XCTestSuite performTest:]_block_invoke + 160
frame #61: 0x00000002810ed13c XCTestCore`__59-[XCTestSuite _performProtectedSectionForTest:testSection:]_block_invoke + 40
frame #62: 0x00000002810eaeb0 XCTestCore`+[XCTContext _runInChildOfContext:forTestCase:markAsReportingBase:block:] + 172
frame #63: 0x00000002810eaddc XCTestCore`+[XCTContext runInContextForTestCase:markAsReportingBase:block:] + 140
frame #64: 0x00000002810ed0e4 XCTestCore`-[XCTestSuite _performProtectedSectionForTest:testSection:] + 152
frame #65: 0x00000002810ed318 XCTestCore`-[XCTestSuite performTest:] + 188
frame #66: 0x00000002810c1ae8 XCTestCore`-[XCTest runTest] + 44
frame #67: 0x00000002810ed708 XCTestCore`-[XCTestSuite runTestBasedOnRepetitionPolicy:testRun:] + 64
frame #68: 0x00000002810ed5ec XCTestCore`__27-[XCTestSuite performTest:]_block_invoke + 160
frame #69: 0x00000002810ed13c XCTestCore`__59-[XCTestSuite _performProtectedSectionForTest:testSection:]_block_invoke + 40
frame #70: 0x00000002810eaeb0 XCTestCore`+[XCTContext _runInChildOfContext:forTestCase:markAsReportingBase:block:] + 172
frame #71: 0x00000002810eaddc XCTestCore`+[XCTContext runInContextForTestCase:markAsReportingBase:block:] + 140
frame #72: 0x00000002810ed0e4 XCTestCore`-[XCTestSuite _performProtectedSectionForTest:testSection:] + 152
frame #73: 0x00000002810ed318 XCTestCore`-[XCTestSuite performTest:] + 188
frame #74: 0x00000002810c1ae8 XCTestCore`-[XCTest runTest] + 44
frame #75: 0x00000002810c335c XCTestCore`__89-[XCTTestRunSession executeTestsWithIdentifiers:skippingTestsWithIdentifiers:completion:]_block_invoke + 100
frame #76: 0x00000002810eaeb0 XCTestCore`+[XCTContext _runInChildOfContext:forTestCase:markAsReportingBase:block:] + 172
frame #77: 0x00000002810eaddc XCTestCore`+[XCTContext runInContextForTestCase:markAsReportingBase:block:] + 140
frame #78: 0x00000002810c3258 XCTestCore`-[XCTTestRunSession executeTestsWithIdentifiers:skippingTestsWithIdentifiers:completion:] + 252
frame #79: 0x000000028111d260 XCTestCore`__72-[XCTExecutionWorker enqueueTestIdentifiersToRun:testIdentifiersToSkip:]_block_invoke_2 + 108
frame #80: 0x000000028111d380 XCTestCore`-[XCTExecutionWorker runWithError:] + 100
frame #81: 0x00000002810e83e0 XCTestCore`__25-[XCTestDriver _runTests]_block_invoke.188 + 52
frame #82: 0x00000002810cb48c XCTestCore`-[XCTestObservationCenter _observeTestExecutionForBlock:] + 256
frame #83: 0x00000002810e807c XCTestCore`-[XCTestDriver _runTests] + 1016
frame #84: 0x00000002810c1fd0 XCTestCore`_XCTestMain + 84
frame #85: 0x000000010fb434e8 libXCTestBundleInject.dylib`__RunTests_block_invoke_2 + 16
frame #86: 0x0000000115179a34 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 20
frame #87: 0x000000011517917c CoreFoundation`__CFRunLoopDoBlocks + 360
frame #88: 0x000000011517396c CoreFoundation`__CFRunLoopRun + 768
frame #89: 0x0000000115173254 CoreFoundation`CFRunLoopRunSpecific + 584
frame #90: 0x00000001384bbc9c GraphicsServices`GSEventRunModal + 160
frame #91: 0x000000014327eff0 UIKitCore`-[UIApplication _run] + 868
frame #92: 0x0000000143282f3c UIKitCore`UIApplicationMain + 124
frame #93: 0x00000001048883c0 MyModule`main at AppDelegate.swift:60:7
frame #94: 0x000000010fa59514 dyld_sim`start_sim + 20
frame #95: 0x000000010fb69f28 dyld`start + 2236
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment