Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Conversation

appleguy
Copy link
Contributor

So far unable to reproduce the reports of rows or items not being released.

@eanagel, @levi, @nguyenhuy, @ERussel — anyone plz help! I'm more than happy to finish testing & refining the fix that @eanagel has put up, but multiple attempts have never reproduced the issue. I've tried more with ASTableView than ASCollectionView, but in this example with ASCollectionView I still haven't seen the behavior. Here's a memory trace showing about 5 copies of the controller being pushed, scrolled, and popped with no leaks or obvious latent memory shown.

screen shot 2015-10-31 at 4 44 49 pm

So far unable to reproduce the reports of rows or items not being released.
@appleguy
Copy link
Contributor Author

Tried adding a reload button as well. Still can't get any leaks to show up, whether reloading a view that's scrolled down and then popping it off the stack, or reloading repeatedly while scrolling around...

…emory issues

No issues found.  Have not been able to create a leak either with the test itself
or scrolling / popping back view controlliers.
@nguyenhuy
Copy link
Contributor

I basically tried similar things to reproduce the leaks. But after reading @eanagel comment in #797, I think it could be possible that the number of leaked nodes after each reload/delete is small, but after a while the total number is material. I'm thinking about writing some test cases to assert whether backing stores are correctly removed from the working window.

appleguy added a commit that referenced this pull request Nov 5, 2015
Add "Push Another Copy" to ASViewController demo for memory testing.
@appleguy appleguy merged commit fd24314 into master Nov 5, 2015
@hannahmbanana hannahmbanana deleted the RangeTeardown branch July 11, 2016 02:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants