Both Apple Mail and Safari have started quitting silently in the background when hidden, where “hidden” can mean:
- the app is hidden,
- a different app is in full screen mode, or
- the machine goes to sleep.
It appears to happen very near the 5 minute mark.
It doesn’t happen if the app has visible windows. But, like a furtive pet, as soon as it thinks I’m not looking, away it goes.
It appears to be a quit, not a crash; there is no crash alert, and no crash log in Diagnostic Reports in Console. I suspect the apps are doing this intentionally to save resources. It may also apply to other Apple apps; I haven’t investigated.
While this might be a case of “feature, not bug!,” it’s a pain for me. Mail launches slowly enough that relaunching it is a pain, and I also rely on it applying filters in the background when I’m away from the laptop in order to keep my inbox tidy when looking at message on my phone. As for Safari, it occasionally loses valuable state in open web pages — the position I’d scrolled to in an article, for example.
These lines from the system log seem potentially relevant, but they appear to only be cleaning up the app’s caches:
default 13:32:30.182353-0600 deleted Updating configuration of monitor <RBSProcessMonitorConfiguration| id:M4184-13039 qos:17 predicates:[<RBSProcessPredicate <RBSProcessBundleIdentifierPredicate "com.apple.mail">>] descriptor:<RBSProcessStateDescriptor| values:5> events:0x0>
default 13:32:30.183182-0600 runningboardd Received termination request from [daemon<com.apple.cache_delete(502)>:4184] on <RBSProcessPredicate <RBSProcessBundleIdentifierPredicate "com.apple.mail">> with context <RBSTerminateContext| code:0xBADDD15C explanation:CacheDeleteAppContainerCaches requesting termination assertion for com.apple.mail reportType:None maxTerminationResistance:NonInteractive attrs:[
<RBSPreventLaunchLimitation| <RBSProcessPredicate <RBSProcessBundleIdentifierPredicate "com.apple.mail">>>
]>
default 13:32:30.687185-0600 runningboardd Acquiring assertion targeting system from originator [daemon<com.apple.cache_delete(502)>:4184] with description <RBSAssertionDescriptor| "CacheDeleteAppContainerCaches requesting termination assertion for com.apple.mail" ID:362-4184-657504 target:system attributes:[
<RBSPreventLaunchLimitation| <RBSProcessPredicate <RBSProcessBundleIdentifierPredicate "com.apple.mail">>>
]>
default 13:32:30.687778-0600 runningboardd Executing termination request for: <RBSProcessPredicate <RBSProcessBundleIdentifierPredicate "com.apple.mail">>
default 13:32:30.690107-0600 deleted got termination assertion for: com.apple.mail
default 13:32:30.728913-0600 deleted 362 com.apple.mail purging cache, self.lastKnownCacheSize: 4096 at Wed Jan 5 13:32:30 2022
default 13:32:30.730783-0600 deleted 398 clearCaches result: 4096 for com.apple.mail on <private>
Anybody know what’s happening? Is there any way to disable this?
This is on macOS 12.0.1, 16” 2019 MBP. I suspect it started about the time of my Monterey upgrade.