{"id":3963,"date":"2014-03-30T06:44:27","date_gmt":"2014-03-30T06:44:27","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/using-instruments-allocation-with-an-ipad-app-collection-of-common-programming-errors\/"},"modified":"2014-03-30T06:44:27","modified_gmt":"2014-03-30T06:44:27","slug":"using-instruments-allocation-with-an-ipad-app-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/using-instruments-allocation-with-an-ipad-app-collection-of-common-programming-errors\/","title":{"rendered":"Using Instruments &#39;Allocation&#39; with an iPad App-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;ve got an issue with my iPad app. After running for approx. 15 minutes, it crashes with &#8220;Program received signal: &#8220;0&#8221;. showing in the log file. From Google, I&#8217;ve discovered this is probably a memory useage problem. In the Console log on the iPad there&#8217;s also a couple of memory warnings before the crash which seem to confirm this.<\/p>\n<p>I&#8217;ve run my app in Instruments (xcode &#8216;Run&#8217; -&gt; &#8216;Run with Performance Tool&#8217; -&gt; &#8216;Allocations&#8217;). This is where I start to get a bit confused. Instruments shows me &#8216;Live Bytes&#8217; and &#8216;Overall Bytes&#8217;. As I understand it, &#8216;Live Bytes&#8217; is the actual memory &#8216;footprint&#8217; of the app, and &#8216;Overall Bytes&#8217; is the total count of all the memory that&#8217;s been allocated and subsequently released. In my app, &#8216;Live Bytes&#8217; sits at approx. 1.5 MB, while &#8216;Overall Bytes&#8217; gradually rises to 500 MB at which point the app crashes.<\/p>\n<p>My question is how much memory is my app <strong>actually<\/strong> using? 500 MB certainly seems like a problem for an iPad, but 1.5 MB certainly doesn&#8217;t.<\/p>\n<p>Thanks<\/p>\n<p>Stuart<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve got an issue with my iPad app. After running for approx. 15 minutes, it crashes with &#8220;Program received signal: &#8220;0&#8221;. showing in the log file. From Google, I&#8217;ve discovered this is probably a memory useage problem. In the Console log on the iPad there&#8217;s also a couple of memory warnings before the crash which [&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-3963","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3963","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=3963"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3963\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3963"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3963"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3963"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}