In a certain (consistent) point when my app is running, I consistently get the xcode error message
Terminated due to memory error.
I got this error because I was adding full size photos to a collectionView cell sized 40x40. Read the 2 comments under the question from @matt. I had to scale down the images before adding them to the cell.