Shopify / FunctionalTableData

Declarative UITableViewDataSource implementation
MIT License
365 stars 30 forks source link

Crash in FTD #115

Closed jodyscho closed 5 years ago

jodyscho commented 6 years ago

I found this crash in our POS app store build. Couldn't get more info than this but this at least has filenames and line numbers that might help locate the problem.

Thread 11 Crashed:
0   libswiftCore.dylib                   0x0000000102b0e410 0x102884000 + 2663440
1   FunctionalTableData                  0x0000000101c836ec function signature specialization <Arg[4] = Dead> of FunctionalTableData.TableSectionChangeSet.(isRow in _9D04CC2439151915054CA13314D61D66)(new: (section: FunctionalTableData.TableSection, row: Swift.Int), equalTo: (section: FunctionalTableData.TableSection, row: Swift.Int)) -> Swift.Bool (TableSectionChangeSet.swift:164)
2   FunctionalTableData                  0x0000000101c7ea84 FunctionalTableData.TableSectionChangeSet.(compareRows in _9D04CC2439151915054CA13314D61D66)(newRows: inout Swift.Set<Swift.String>, oldRows: inout [Swift.String : Swift.Int], oldSectionIndex: Swift.Int, newSectionIndex: Swift.Int) -> () (TableSectionChangeSet.swift:0)
3   FunctionalTableData                  0x0000000101c7ce5c FunctionalTableData.TableSectionChangeSet.(calculateChanges in _9D04CC2439151915054CA13314D61D66)() -> () (TableSectionChangeSet.swift:137)
4   FunctionalTableData                  0x0000000101c8406c function signature specialization <Arg[0] = Owned To Guaranteed, Arg[1] = Owned To Guaranteed, Arg[2] = Owned To Guaranteed> of FunctionalTableData.TableSectionChangeSet.init(old: [FunctionalTableData.TableSection], new: [FunctionalTableData.TableSection], visibleIndexPaths: [Foundation.IndexPath]) -> FunctionalTableData.TableSectionChangeSet (TableSectionChangeSet.swift:76)
5   FunctionalTableData                  0x0000000101c7249c function signature specialization <Arg[0] = Owned To Guaranteed, Arg[3] = Owned To Guaranteed> of FunctionalTableData.FunctionalTableData.(doRenderAndDiff in _1CE3C8B4455DD2DC43A2D2D02278E711)(_: [FunctionalTableData.TableSection], animated: Swift.Bool, animations: FunctionalTableData.FunctionalTableData.TableAnimations, completion: () -> ()?) -> () (FunctionalTableData.swift:0)
6   FunctionalTableData                  0x0000000101c6b3d8 closure #1 () -> () in FunctionalTableData.FunctionalTableData.renderAndDiff(_: [FunctionalTableData.TableSection], animated: Swift.Bool, animations: FunctionalTableData.FunctionalTableData.TableAnimations, completion: () -> ()?) -> () (FunctionalTableData.swift:0)
7   FunctionalTableData                  0x0000000101c786e8 partial apply forwarder for closure #1 () -> () in FunctionalTableData.FunctionalTableData.renderAndDiff(_: [FunctionalTableData.TableSection], animated: Swift.Bool, animations: FunctionalTableData.FunctionalTableData.TableAnimations, completion: () -> ()?) -> () (FunctionalTableData.swift:0)
8   FunctionalTableData                  0x0000000101c525a4 reabstraction thunk helper from @escaping @callee_guaranteed () -> () to @escaping @callee_unowned @convention(block) () -> () (FunctionalCollectionData.swift:0)
9   Foundation                           0x00000001bf0dab6c __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 12
10  Foundation                           0x00000001befe2cc8 -[NSBlockOperation main] + 68
11  Foundation                           0x00000001befe219c -[__NSOperationInternal _start:] + 736
12  Foundation                           0x00000001bf0dca40 __NSOQSchedule_f + 268
13  libdispatch.dylib                    0x00000001be0866c8 _dispatch_call_block_and_release + 20
14  libdispatch.dylib                    0x00000001be087484 _dispatch_client_callout + 12
15  libdispatch.dylib                    0x00000001be02a874 _dispatch_continuation_pop$VARIANT$mp + 408
16  libdispatch.dylib                    0x00000001be029f3c _dispatch_async_redirect_invoke + 596
17  libdispatch.dylib                    0x00000001be036a60 _dispatch_root_queue_drain + 372
18  libdispatch.dylib                    0x00000001be037308 _dispatch_worker_thread2 + 124
19  libsystem_pthread.dylib              0x00000001be269190 _pthread_wqthread + 468
20  libsystem_pthread.dylib              0x00000001be26bd00 start_wqthread + 0
krbarnes commented 6 years ago

This should be fixed by Swift 4.2. There were a few optimizer bugs that caused problems in the 4.1 release.

ghost commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 3 days if no further activity occurs.