title: Is it possible to debug "Terminated due to memory error"?
body: <p>In a certain (consistent) point when my app is running, I consistently get the xcode error message </p>
  
  <blockquote>
    <p>Terminated due to memory error.</p>
  </blockquote>
  
  <p>I cannot find the code causing the error, but I can tell what code is near the error (using breakpoints).</p>
  
  <p>The error is caused directly after returning a certain cell in my implemenation of the</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  </code></pre>
  
  <p><code>UITableViewDataSource</code> delegate method. I can confirm that it is returning a valid <code>UITableViewCell</code>, but I think that explaining and posting that entire method would be a waste of your time. However, I suspect it might be caused by a rapid, massive allocation of memory.</p>
  
  <p>It definitely says <code>Terminated due to memory error</code>, not memory pressure.</p>
  
  <p>I would like to know what is message really means. Also, is there any way to debug this message? No crash report is generated.</p>
  
  <p>I am using <strong>ARC</strong> and iOS 7.</p>