Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

bluetoothaudiod crashes after Macbook updated to Catalina

I have MacBook (Retina, 12-inch, 2017) with 8 GB memory that some months ago updated to MacOS Catalina. Previously it worked very well with bluetooth audio, but with Catalina it crashes often. I was investigating a reason for that and found that it happens always when system needs additional memory and "memory pressure" in system monitor goes to yellow zone. Then I checked logs and what I see is that kernel kills bluetoothaudiod because it thinks it's idle.


default  12:55:08.373868+0300 kernel   memorystatus: killing_idle_process pid 61743 [bluetoothaudiod] jetsam_reason->osr_code: 9
default  12:55:08.374861+0300 mediaremoted   Client <MRDMediaRemoteClient 0x7fe671f3c730, bundleIdentifier = bluetoothaudiod, pid = 61743> invalidated.
default  12:55:08.375266+0300 mediaremoted   Removing client <MRDMediaRemoteClient 0x7fe671f3c730, bundleIdentifier = bluetoothaudiod, pid = 61743>
default  12:55:08.393661+0300 mediaremoted   [AVRoutingServer] Setting (null) to application picked routes for client <MRDMediaRemoteClient 0x7fe671f3c730, bundleIdentifier = bluetoothaudiod, pid = 61743>
default  12:55:08.384690+0300 bluetoothd  BTDClient XPC connection for process bluetoothaudiod (61743) is becoming invalidated
default  12:55:08.384799+0300 bluetoothd  Removing (<BTDClient: 0x7fd0cc5ae940>) for process bluetoothaudiod (61743)
error 12:55:08.583950+0300 coreaudiod  Unable to write all data (0 of 4096)
error 12:55:08.594568+0300 coreaudiod  Unable to write all data (0 of 4096)
error 12:55:08.605262+0300 coreaudiod  Unable to write all data (0 of 4096)
error 12:55:08.615864+0300 coreaudiod  Unable to write all data (0 of 4096)
error 12:55:08.626532+0300 coreaudiod  Unable to write all data (0 of 4096)


And this thing can happen with very small amount of opened applications, like Skype, Chrome, Music, and remote control. On Mojave I had even additionally docker running here, 2 IDE and many other apps and there was no any problems with killing bluetooth audio.


MacBook, macOS 10.15

Posted on Jan 22, 2020 2:21 AM

Reply
13 replies

Jan 22, 2020 3:05 AM in response to Virtustilus

Virtustilus Said:

"[...]On Mojave I had even additionally docker running here, 2 IDE and many other apps and there was no any problems with killing bluetooth audio."

-------


Did Ever Make a Time Machine backup of your Mac? Always create one prior to an update or upgrade, that way you can have something to restore your Mac to, should anything like this go wrong with the new install.

If you Did, then Go Here: Restore your Mac from a Time Machine Backup - Apple Support



If you Did Not, then Go about Reinstalling the macOS: You can Reinstall the macOS. Nothing would be deleted; it's just that all files will be reasserted to how they should be. So,...

A. First: Repair your Disk in Disk Utility. Then, ...

B. Reinstall your Mac - Mount your Disk for the Install. Then, Reinstall from Either One of There:

  • Recovery Mode - - Use: Command (⌘)-R to Reinstall the latest macOS that was installed on your Mac
  • USB Bootable Installer for Catalina Use this Code in Terminal on Another Mac: sudo /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume

Jan 28, 2020 8:52 PM in response to Virtustilus

I have similar problem, my Bluetooth audio (Sony headphones) gets disconnected from time to time and I found this thread. I can confirm that this only happens when I have memory pressure (Activity monitor show memory usage in yellow). For example, when I run memtester, I see that bluetoothaudiod is being killed, and I see message "memorystatus: killing_idle_process". This results into switching audio to speakers which is annoying.


To me it looks like this should be fixed by Apple, so we may need to submit a bug for that, but I am not sure what the process is, and how this works.


"bluetoothaudiod" is launchd process, so if you interested in tweaking "bluetoothaudiod", you can check this or launchd documentation. One of the interesting flags is `EnablePressuredExit` which is set to `true` in my case.

You can check config for it here: /System/Library/LaunchDaemons/com.apple.bluetoothaudiod.plist

However you cannot easily modify this, I think due to security restrictions, some tips are here. I didn't try this yet, as I don't have enough time for this now.


I have MacBook Pro Late 2013 with 8GB of RAM, using 10.15.2 Catalina.


P.S.: I am not an expert in Mac OS, just found this info and wanted to share, use it on your own risk:)

Feb 2, 2020 1:41 AM in response to tsultrim_d

tsultrim_d, good find! You found more than I managed!

After update to 10.15.3 I see that EnablePressuredExit still set to True, but now system doesn't kill it. I tried to fill additional memory by small python scripts. Before update bt audio was killed at about 5GB memory by single script, now I could take more than 20 GB by several scripts and everything was still working :)

Works fine now.

bluetoothaudiod crashes after Macbook updated to Catalina

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.