{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/AsyncDisplayKit/issues/1512","repository_url":"https://api.github.com/repos/facebook/AsyncDisplayKit","labels_url":"https://api.github.com/repos/facebook/AsyncDisplayKit/issues/1512/labels{/name}","comments_url":"https://api.github.com/repos/facebook/AsyncDisplayKit/issues/1512/comments","events_url":"https://api.github.com/repos/facebook/AsyncDisplayKit/issues/1512/events","html_url":"https://github.com/facebook/AsyncDisplayKit/issues/1512","id":147554627,"number":1512,"title":"[ASCellNode] Assertion on cell deallocation due visibility not being cleared","user":{"login":"tomizimobile","id":7967500,"avatar_url":"https://avatars.githubusercontent.com/u/7967500?v=3","gravatar_id":"","url":"https://api.github.com/users/tomizimobile","html_url":"https://github.com/tomizimobile","followers_url":"https://api.github.com/users/tomizimobile/followers","following_url":"https://api.github.com/users/tomizimobile/following{/other_user}","gists_url":"https://api.github.com/users/tomizimobile/gists{/gist_id}","starred_url":"https://api.github.com/users/tomizimobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomizimobile/subscriptions","organizations_url":"https://api.github.com/users/tomizimobile/orgs","repos_url":"https://api.github.com/users/tomizimobile/repos","events_url":"https://api.github.com/users/tomizimobile/events{/privacy}","received_events_url":"https://api.github.com/users/tomizimobile/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/AsyncDisplayKit/labels/ASCellNode","name":"ASCellNode","color":"d4c5f9"},{"url":"https://api.github.com/repos/facebook/AsyncDisplayKit/labels/bug%20(P2)","name":"bug (P2)","color":"f15d71"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/facebook/AsyncDisplayKit/milestones/17","html_url":"https://github.com/facebook/AsyncDisplayKit/milestones/1.9.8","labels_url":"https://api.github.com/repos/facebook/AsyncDisplayKit/milestones/17/labels","id":1613535,"number":17,"title":"1.9.8","description":null,"creator":{"login":"appleguy","id":565251,"avatar_url":"https://avatars.githubusercontent.com/u/565251?v=3","gravatar_id":"","url":"https://api.github.com/users/appleguy","html_url":"https://github.com/appleguy","followers_url":"https://api.github.com/users/appleguy/followers","following_url":"https://api.github.com/users/appleguy/following{/other_user}","gists_url":"https://api.github.com/users/appleguy/gists{/gist_id}","starred_url":"https://api.github.com/users/appleguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appleguy/subscriptions","organizations_url":"https://api.github.com/users/appleguy/orgs","repos_url":"https://api.github.com/users/appleguy/repos","events_url":"https://api.github.com/users/appleguy/events{/privacy}","received_events_url":"https://api.github.com/users/appleguy/received_events","type":"User","site_admin":false},"open_issues":15,"closed_issues":63,"state":"open","created_at":"2016-02-29T22:36:28Z","updated_at":"2016-04-12T07:51:44Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-04-11T21:04:32Z","updated_at":"2016-04-12T12:50:04Z","closed_at":null,"body":"Using my trusty test project (https://github.com/tomizimobile/ASDKSearchIssue) on the latest master (a6e66fa5d758d6675ddee982c128762e8a86a31a) I've managed to track down and find an issue with cell deallocation under a very specific circumstance, similar to https://github.com/facebook/AsyncDisplayKit/issues/1436. What I've found is when the tableView is deallocated when there's a section header only partially visible at the bottom of the table, it will crash. To reproduce, just go into the details page of the test project until you see a layout as described, and go back before scrolling. The test project generates random data each time the search view controller is loaded.\r\n\r\nHere's a screenshot of an example layout that will cause a crash:\r\n\r\n![screen shot 2016-04-11 at 4 57 09 pm](https://cloud.githubusercontent.com/assets/7967500/14442336/239f22ae-0007-11e6-8920-1fc2bc7c8278.png)"},"comment":{"url":"https://api.github.com/repos/facebook/AsyncDisplayKit/issues/comments/208889152","html_url":"https://github.com/facebook/AsyncDisplayKit/issues/1512#issuecomment-208889152","issue_url":"https://api.github.com/repos/facebook/AsyncDisplayKit/issues/1512","id":208889152,"user":{"login":"tomizimobile","id":7967500,"avatar_url":"https://avatars.githubusercontent.com/u/7967500?v=3","gravatar_id":"","url":"https://api.github.com/users/tomizimobile","html_url":"https://github.com/tomizimobile","followers_url":"https://api.github.com/users/tomizimobile/followers","following_url":"https://api.github.com/users/tomizimobile/following{/other_user}","gists_url":"https://api.github.com/users/tomizimobile/gists{/gist_id}","starred_url":"https://api.github.com/users/tomizimobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomizimobile/subscriptions","organizations_url":"https://api.github.com/users/tomizimobile/orgs","repos_url":"https://api.github.com/users/tomizimobile/repos","events_url":"https://api.github.com/users/tomizimobile/events{/privacy}","received_events_url":"https://api.github.com/users/tomizimobile/received_events","type":"User","site_admin":false},"created_at":"2016-04-12T12:50:04Z","updated_at":"2016-04-12T12:50:04Z","body":"@appleguy Maybe you're using an older version of that sample project? The app now starts with a screen that just has a button to push a view controller. To reproduce I would just go back and forth until the UI is set up like that, it happens pretty quickly. I did forget to mention this was on an iPhone 6 - I'm sure with other devices, the UI layout might be harder to get randomly, so maybe playing around with hardcoding the data could yield this UI."}}