Skip to content

Instantly share code, notes, and snippets.

@zenangst
Created January 3, 2017 22:30
Show Gist options
  • Save zenangst/1a7662f81e4abb0071a1bc88493e9fac to your computer and use it in GitHub Desktop.
Save zenangst/1a7662f81e4abb0071a1bc88493e9fac to your computer and use it in GitHub Desktop.
(lldb) bt
* thread #1: tid = 0x2276c8, 0x000000011265c75a libswiftFoundation.dylib`static Foundation.IndexPath._unconditionallyBridgeFromObjectiveC (Swift.Optional<__ObjC.NSIndexPath>) -> Foundation.IndexPath + 42, queue = 'com.apple.main-thread', stop reason = EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)
* frame #0: 0x000000011265c75a libswiftFoundation.dylib`static Foundation.IndexPath._unconditionallyBridgeFromObjectiveC (Swift.Optional<__ObjC.NSIndexPath>) -> Foundation.IndexPath + 42
frame #1: 0x000000010f7c1028 Spots`@objc Delegate.tableView(UITableView, didEndDisplaying : UITableViewCell, forRowAt : IndexPath) -> () + 88 at Delegate+iOS+Extensions.swift:0
frame #2: 0x0000000110a43ba9 UIKit`-[UITableView _reuseTableViewCell:withIndexPath:didEndDisplaying:] + 294
frame #3: 0x0000000110a3fca4 UIKit`-[UITableView _updateVisibleCellsNow:isRecursive:] + 2410
frame #4: 0x0000000110a74f9f UIKit`-[UITableView _performWithCachedTraitCollection:] + 110
frame #5: 0x0000000110a5bfc8 UIKit`-[UITableView layoutSubviews] + 222
frame #6: 0x00000001109c5816 UIKit`-[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1237
frame #7: 0x000000010f51cc20 QuartzCore`-[CALayer layoutSublayers] + 146
frame #8: 0x000000010f510468 QuartzCore`CA::Layer::layout_if_needed(CA::Transaction*) + 366
frame #9: 0x00000001109b3888 UIKit`-[UIView(Hierarchy) layoutBelowIfNeeded] + 1509
frame #10: 0x000000010f7a94fe Spots`Composable<A where ...>.(index=0, compositeSpot=Spots.CompositeSpot @ 0x0000610000258008, size=(&size = (width = 960, height = 673)), width=960, height=0x00007fff51914558, self=0x000000010f89f940) -> ()).(closure #1) + 926 at Composable+iOS.swift:32
frame #11: 0x000000010f7a9b4b Spots`partial apply for Composable<A where ...>.(configure(inout Item, compositeSpots : [CompositeSpot]?) -> ()).(closure #1) + 139 at Composable+iOS.swift:0
frame #12: 0x000000010f7a9b8f Spots`thunk + 47 at Composable+iOS.swift:0
frame #13: 0x000000010f7a9c8c Spots`partial apply for thunk + 108 at Composable+iOS.swift:0
frame #14: 0x0000000112074395 libswiftCore.dylib`(extension in Swift):Swift.Sequence.forEach ((A.Iterator.Element) throws -> ()) throws -> () + 389
frame #15: 0x000000010f7a9091 Spots`Composable<A where ...>.configure(item=0x00007ffb2cb13678, compositeSpots=1 value, self=0x000000010f89f940) -> () + 1489 at Composable+iOS.swift:42
frame #16: 0x000000010f7d3720 Spots`protocol witness for Composable.configure(inout Item, compositeSpots : [CompositeSpot]?) -> () in conformance GridComposite + 80 at Composable+iOS.swift:0
frame #17: 0x000000010f826805 Spots`Spotable.(self=nil, index=1, completion=0x000000010f7cccc0 Spots`partial apply forwarder for reabstraction thunk helper <A where A: Spots.Gridable> from @callee_owned () -> () to @callee_owned (@in ()) -> (@out ()) at Gridable+Extensions.swift, item=Brick.Item @ 0x00007fff519153d8, animation=automatic) -> ()?) -> ()).(closure #1) + 5333 at Spotable+Mutation.swift:285
frame #18: 0x000000010f82922b Spots`partial apply for Spotable.(update(Item, index : Int, withAnimation : Animation, completion : () -> ()?) -> ()).(closure #1) + 1291 at Spotable+Mutation.swift:0
frame #19: 0x000000010f7c41aa Spots`static Dispatch.(closure=0x000000010f828d20 Spots`partial apply forwarder for (extension in Spots):Spots.Spotable.(update (Brick.Item, index : Swift.Int, withAnimation : Spots.Animation, completion : Swift.Optional<() -> ()>) -> ()).(closure #1) at Spotable+Mutation.swift) -> ()) -> ()).(closure #1) + 42 at GrandCentralDispatch.swift:57
frame #20: 0x000000010f7c4267 Spots`thunk + 39 at GrandCentralDispatch.swift:0
frame #21: 0x00000001129e7978 libdispatch.dylib`_dispatch_call_block_and_release + 12
frame #22: 0x0000000112a110cd libdispatch.dylib`_dispatch_client_callout + 8
frame #23: 0x00000001129f18a4 libdispatch.dylib`_dispatch_main_queue_callback_4CF + 406
frame #24: 0x00000001104a4629 CoreFoundation`__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
frame #25: 0x0000000110469b5d CoreFoundation`__CFRunLoopRun + 2205
frame #26: 0x0000000110469064 CoreFoundation`CFRunLoopRunSpecific + 420
frame #27: 0x000000011733ba6f GraphicsServices`GSEventRunModal + 161
frame #28: 0x0000000110902ef6 UIKit`UIApplicationMain + 159
frame #29: 0x000000010e2f8edf Dashboard`main + 111 at AppDelegate.swift:7
frame #30: 0x0000000112a5d749 libdyld.dylib`start + 1
(lldb) f 0
frame #0: 0x000000011265c75a libswiftFoundation.dylib`static Foundation.IndexPath._unconditionallyBridgeFromObjectiveC (Swift.Optional<__ObjC.NSIndexPath>) -> Foundation.IndexPath + 42
libswiftFoundation.dylib`static Foundation.IndexPath._unconditionallyBridgeFromObjectiveC (Swift.Optional<__ObjC.NSIndexPath>) -> Foundation.IndexPath:
-> 0x11265c75a <+42>: ud2
0x11265c75c <+44>: nopl (%rax)
libswiftFoundation.dylib`protocol witness for Swift._ObjectiveCBridgeable._bridgeToObjectiveC () -> A._ObjectiveCType in conformance Foundation.IndexPath : Swift._ObjectiveCBridgeable in Foundation:
0x11265c760 <+0>: pushq %rbp
0x11265c761 <+1>: movq %rsp, %rbp
(lldb) f 1
frame #1: 0x000000010f7c1028 Spots`@objc Delegate.tableView(UITableView, didEndDisplaying : UITableViewCell, forRowAt : IndexPath) -> () + 88 at Delegate+iOS+Extensions.swift:0
1 import UIKit
2
3 extension Delegate: UICollectionViewDelegate {
4
5 /// Asks the delegate for the size of the specified item’s cell.
6 ///
7 /// - parameter collectionView: The collection view object displaying the flow layout.
(lldb) f 2
frame #2: 0x0000000110a43ba9 UIKit`-[UITableView _reuseTableViewCell:withIndexPath:didEndDisplaying:] + 294
UIKit`-[UITableView _reuseTableViewCell:withIndexPath:didEndDisplaying:]:
0x110a43ba9 <+294>: movq %r15, %rdi
0x110a43bac <+297>: callq *0xcc47ae(%rip) ; (void *)0x000000010ff55d20: objc_release
0x110a43bb2 <+303>: movq 0xf7c36f(%rip), %rsi ; "_setNeedsSetup:"
0x110a43bb9 <+310>: movl $0x1, %edx
(lldb) f 3
frame #3: 0x0000000110a3fca4 UIKit`-[UITableView _updateVisibleCellsNow:isRecursive:] + 2410
UIKit`-[UITableView _updateVisibleCellsNow:isRecursive:]:
0x110a3fca4 <+2410>: movq %rbx, %rdi
0x110a3fca7 <+2413>: callq *0xcc86b3(%rip) ; (void *)0x000000010ff55d20: objc_release
0x110a3fcad <+2419>: incq %r13
0x110a3fcb0 <+2422>: jne 0x110a3fbd2 ; <+2200>
(lldb) f 4
frame #4: 0x0000000110a74f9f UIKit`-[UITableView _performWithCachedTraitCollection:] + 110
UIKit`-[UITableView _performWithCachedTraitCollection:]:
0x110a74f9f <+110>: movq %r12, %rdi
0x110a74fa2 <+113>: callq *%r13
0x110a74fa5 <+116>: movq (%rbx,%r15), %rdi
0x110a74fa9 <+120>: movq $0x0, (%rbx,%r15)
(lldb) f 5
frame #5: 0x0000000110a5bfc8 UIKit`-[UITableView layoutSubviews] + 222
UIKit`-[UITableView layoutSubviews]:
0x110a5bfc8 <+222>: movq -0x48(%rbp), %rdi
0x110a5bfcc <+226>: callq *0xcac38e(%rip) ; (void *)0x000000010ff55d20: objc_release
0x110a5bfd2 <+232>: movq %r14, %rdi
0x110a5bfd5 <+235>: callq 0x1114c311e ; symbol stub for: objc_autoreleasePoolPop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment