{"id":36617,"date":"2022-07-28T16:36:52","date_gmt":"2022-07-28T20:36:52","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=36617"},"modified":"2022-07-28T16:36:52","modified_gmt":"2022-07-28T20:36:52","slug":"purgeable-mac-apps","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2022\/07\/28\/purgeable-mac-apps\/","title":{"rendered":"Purgeable Mac Apps"},"content":{"rendered":"<p><a href=\"https:\/\/bitsplitting.org\/2022\/06\/18\/purgeable-mac-apps\/\">Daniel Jalkut<\/a> (<a href=\"https:\/\/twitter.com\/danielpunkass\/status\/1538189430154047489\">tweet<\/a>):<\/p>\n<blockquote cite=\"https:\/\/bitsplitting.org\/2022\/06\/18\/purgeable-mac-apps\/\"><p>For months now, I have been scratching my head over a small but persistent number of &ldquo;crash reports&rdquo; affecting a few of my apps. The issue is most prevalent in <a href=\"https:\/\/redsweater.com\/marsedit\/\">MarsEdit<\/a>, where I have a handful of users who run into the issue multiple times per day.<\/p>\n<p>[&#8230;]<\/p>\n<p>Here we have a message asserting that MarsEdit <em>was terminated<\/em>, on purpose, and better still, it includes <em>an explanation<\/em>! As far as explanations go, &ldquo;CacheDeleteAppContainerCaches&rdquo; is not much of one, but it did give me something to go on. Searching for the term yielded pertinent results like <a href=\"https:\/\/apple.stackexchange.com\/questions\/434659\/apple-mail-and-safari-quit-silently-when-hidden\">this post<\/a> about Apple Mail and Safari &ldquo;suddenly quitting.&rdquo; Unfortunately, they all seem to be scratching their heads as much as I am.<\/p>\n<p>[&#8230;]<\/p>\n<p>With some tinkering, I was able to narrow down the reproduction steps to running the &ldquo;Free Up Purgeable Space&rdquo; action. It turns out this is invokes a system API responsible for trying to delete caches, etc., from a Mac. Normally the system only does this when disk space is critically low, but CleanMyMac gives you the option to exercise the behavior at any time.<\/p><\/blockquote>\n\n<p><a href=\"https:\/\/developer.apple.com\/forums\/thread\/707643?answerId=717746022#717746022\">Quinn<\/a>:<\/p>\n<blockquote cite=\"https:\/\/developer.apple.com\/forums\/thread\/707643?answerId=717746022#717746022\">\n<p>As you&rsquo;ve surmised, the exception code 0xbaddd15c (&lsquo;bad disc&rsquo;, which sounds worse than it is) seems to be related to our CacheDelete subsystem.<\/p>\n<p>[&#8230;]<\/p>\n<p>CacheDelete won&rsquo;t delete files out from underneath a running app so, if it needs to delete something, it terminates the app. It should only do that when the app is essentially invisible to the user.<\/p>\n<\/blockquote>\n\n<p>macOS really doesn&rsquo;t like it when the disk is almost full.<\/p>\n\n<p>Here&rsquo;s <a href=\"https:\/\/developer.apple.com\/documentation\/xcode\/understanding-the-exception-types-in-a-crash-report\">a list<\/a> of other such exception types.<\/p>\n\n<p>See also: <a href=\"https:\/\/eclecticlight.co\/2022\/06\/22\/whodunnit-the-housekeeper-that-killed-an-app\/\">Howard Oakley<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Daniel Jalkut (tweet): For months now, I have been scratching my head over a small but persistent number of &ldquo;crash reports&rdquo; affecting a few of my apps. The issue is most prevalent in MarsEdit, where I have a handful of users who run into the issue multiple times per day. [&#8230;] Here we have a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2022-07-28T20:36:55Z","apple_news_api_id":"94ef17a5-dbfa-457b-bdc0-b36bd6554f62","apple_news_api_modified_at":"2022-07-28T20:36:56Z","apple_news_api_revision":"AAAAAAAAAAD\/\/\/\/\/\/\/\/\/\/w==","apple_news_api_share_url":"https:\/\/apple.news\/AlO8Xpdv6RXu9wLNr1lVPYg","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4,2],"tags":[1829,30,2077,207,71,1473],"class_list":["post-36617","post","type-post","status-publish","format-standard","hentry","category-programming-category","category-technology","tag-cleanmymac","tag-mac","tag-macos-12","tag-marsedit","tag-programming","tag-xpc"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/36617","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=36617"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/36617\/revisions"}],"predecessor-version":[{"id":36618,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/36617\/revisions\/36618"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=36617"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=36617"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=36617"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}