{"id":3917,"date":"2014-03-30T06:23:41","date_gmt":"2014-03-30T06:23:41","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/memory-warning-and-crashes-but-no-leaks-collection-of-common-programming-errors\/"},"modified":"2014-03-30T06:23:41","modified_gmt":"2014-03-30T06:23:41","slug":"memory-warning-and-crashes-but-no-leaks-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/memory-warning-and-crashes-but-no-leaks-collection-of-common-programming-errors\/","title":{"rendered":"Memory warning and crashes, but no leaks-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m creating an app based on storyboard, where each of the views has quite a lot of large images. The app crashes (not a lot, it usually crashes after 10-15 minutes of intensive use) after having displayed a few memory warning. I&#8217;ve checked instruments, and it&#8217;s not reporting any single memory leak. Also, the allocation seems to be reasonable (I&#8217;ve only got 1 or 2 peaks in the game when I load some very xib containing very big images &#8211; around 8mo for the iPad retina version). I don&#8217;t really have any objects I can release when I receive a memory warning, as all the stuff from the previous view has already been deallocated.<\/p>\n<p>I&#8217;ve seen that similar problem, but it seems to be related to a specific line of code, which is not my case : iOS &#8211; App crashing after Memory Warning &#8211; Instruments showing no leaks<\/p>\n<p>Is there a way to force xcode to clean the images that are cached? Otherwise, what can I do to prevent these crashes?<\/p>\n<p>Thanks for your help !<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m creating an app based on storyboard, where each of the views has quite a lot of large images. The app crashes (not a lot, it usually crashes after 10-15 minutes of intensive use) after having displayed a few memory warning. I&#8217;ve checked instruments, and it&#8217;s not reporting any single memory leak. Also, the allocation [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3917","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3917","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=3917"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3917\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3917"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3917"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3917"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}