{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/AsyncDisplayKit/issues/896","labels_url":"https://api.github.com/repos/facebook/AsyncDisplayKit/issues/896/labels{/name}","comments_url":"https://api.github.com/repos/facebook/AsyncDisplayKit/issues/896/comments","events_url":"https://api.github.com/repos/facebook/AsyncDisplayKit/issues/896/events","html_url":"https://github.com/facebook/AsyncDisplayKit/issues/896","id":119541664,"number":896,"title":"[ASTableNode] Deallocation while inside of a collection view may cause UIKit error.","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/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/facebook/AsyncDisplayKit/labels/fix%20landed","name":"fix landed","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/facebook/AsyncDisplayKit/milestones/11","html_url":"https://github.com/facebook/AsyncDisplayKit/milestones/1.9.3","labels_url":"https://api.github.com/repos/facebook/AsyncDisplayKit/milestones/11/labels","id":1443360,"number":11,"title":"1.9.3","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":6,"closed_issues":2,"state":"open","created_at":"2015-12-04T03:24:51Z","updated_at":"2015-12-04T04:17:05Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2015-11-30T17:35:40Z","updated_at":"2015-12-04T13:51:39Z","closed_at":null,"body":"My setup: I have an `ASCollectionView` which contains an `ASCellNode`, which contains an `ASTableNode`. To set up the `ASTableNode`, i assign the `asyncDataSource` and `asyncDelegate` in `-didLoad` of the containing cell, since that's when I know the backing `ASTableView` is ready. Then I call `setNeedsLayout()` on the cell so it can lay out properly. The collection view is in a modally-presented view controller. The UI loads and lays out just fine - it's rough around the edges, but it's similar to the layout I'm using in my current project.\r\n\r\nThe issue is I get a crash in `-[ASCollectionView dealloc]` when dismissing the view controller. I've noticed that if I don't call `setNeedsLayout()` in `-didLoad`, the crash doesn't occur, but the cell isn't laid out properly. Is there a better way to set the `ASTableNode` `asyncDataSource` and `asyncDelegate`, or some other layout spec solution that gives me the layout I'm looking for?\r\n\r\nI've created a test project that demonstrates this: https://github.com/tomizimobile/ASDK_CollectionCellNode-TableNode-crash. It occurs using the latest release, 1.9.2."},"comment":{"url":"https://api.github.com/repos/facebook/AsyncDisplayKit/issues/comments/161972627","html_url":"https://github.com/facebook/AsyncDisplayKit/issues/896#issuecomment-161972627","issue_url":"https://api.github.com/repos/facebook/AsyncDisplayKit/issues/896","id":161972627,"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":"2015-12-04T13:51:38Z","updated_at":"2015-12-04T13:51:38Z","body":"@appleguy Fantastic! Master fixes that issue in my current project, as well as another workaround I had in place with some other `ASCellNode` objects that contain an `ASTableNode` that I just ran into yesterday."}}