Coreaudiod memory leak

Hey so I have a memory leak with coreaudiod and sometimes windowserver when I put my mac to sleep


memory on coreaudiod can reach 20 gb (I only have 16gb of ram, so it's using the ssd :( )


with this post comes my etrecheck report and the reading from the leaks command



MacBook Pro 14″, macOS 12.5

Posted on Jul 29, 2022 1:34 AM

Reply
Question marked as Top-ranking reply

Posted on Aug 1, 2022 7:30 AM

The leaked memory is high but not 5GB, it is about 180MB.



File /etc/sysctl.conf exists but not expected


Do you have any idea why this file would exist?

It may be nothing, but it is unusual.



Running app: ~/Library/Caches/Cleanup At Startup/CrossOver CD Helper.app/Contents/MacOS/CrossOver CD Helper


CrossOver is an application to allow some windows applications to be run on an intel mac. This may not be doing anything, but it's odd to see it in an Apple Silicon mac.



You still have Perian!

This was extremely useful back in the day, but it has been deprecated by its developers many years ago (almost a decade)... I highly suspect that this may be causing the problem.


Go to System Preferences, control-click Perian and choose Delete (or Uninstall, or similar wording); then restart your mac.

Any changes?



17 replies
Question marked as Top-ranking reply

Aug 1, 2022 7:30 AM in response to Space1920

The leaked memory is high but not 5GB, it is about 180MB.



File /etc/sysctl.conf exists but not expected


Do you have any idea why this file would exist?

It may be nothing, but it is unusual.



Running app: ~/Library/Caches/Cleanup At Startup/CrossOver CD Helper.app/Contents/MacOS/CrossOver CD Helper


CrossOver is an application to allow some windows applications to be run on an intel mac. This may not be doing anything, but it's odd to see it in an Apple Silicon mac.



You still have Perian!

This was extremely useful back in the day, but it has been deprecated by its developers many years ago (almost a decade)... I highly suspect that this may be causing the problem.


Go to System Preferences, control-click Perian and choose Delete (or Uninstall, or similar wording); then restart your mac.

Any changes?



Jul 29, 2022 2:39 AM in response to Space1920

Cleanmymac claims another victim :-(


Logiciel antivirus: Apple et CleanMyMac


Follow their instructions for completely removing this thing.


And never ever install any programs that claim to "clean", "speed up" or "optmize" your mac.

Their effect is foremost to separate you from your money.

Some, like this one, are known to have damaging effects.


If the issues persist after removing this ****, please post a new report.




Jul 29, 2022 6:13 AM in response to Space1920

Space1920 wrote:

so NoMachine is an alternative to the Microsoft Remote desktop feature that allows to plug usb device remotely.

And on the audio side of things I have the App Sound Control by staticz and BlackHole16ch to do screen recording on OBS.

And that's all, the curious thing is that the memory leak only happen when i put my macbook to sleep
when i log out i usually check and i'm around 200 or 400 mb of ram used by coreaudiod and when i come back 2 hours later it jumps to around 5gb

coreaudiod is just a system process that manages audio. The cause is most likely one of those sound hacks that you mentioned above. And if that is being routed through USB, then perhaps NoMachine could be involved too.


Your EtreCheck report doesn't show any memory problems. Maybe run it after it has been sleeping for two hours. The one report you posted got corrupted somehow. If you want to post another one, do it differently. Maybe run it in English instead.


EtreCheck has an Analytics feature that will show you what is happening during sleep. Analytics is available, but limited, in free mode. It is primarily a feature of the paid Power User feature.

Jul 29, 2022 3:55 AM in response to Space1920

Let's back up, for a minute.


The report indicates a pretty minor thing, about 200KB (that is kilobytes, not megabytes), which is insignificant compared to 5 Gigabytes of use.


By this, it seems that while coreaudiod is using a big amount of RAM, a memory leak, if it exists, may be located elsewhere.


Can you tell us more about what tools may be using coreaudio? It looks to me that a possible bug is in application software, not the coreaudio itself - otherwise, not only the report might show this, but it would be expected that a lot of users would be suffering from it.

Jul 29, 2022 1:50 AM in response to Space1920

Q - disk3s1s1 - Macintosh HD [Instantanà © APFS]

494.38 Go (Partagà © - 15.42 Go utilisà ©s, 85.06 Go disponsible, 80.76 Go libre)


A - It is suggested to keep at least 15%  to 20% of the Drive Total Capacity as Empty Space for good operations of the computer and for additional updates to Monterey to download, expand and install.


A This computer is now reaching the Bottom end of Available Empty Space for good operating conditions


Q - Logiciel antivirus: Apple et CleanMyMac


A - Any Third Party Applications that will interfere with the normal operation of the OS,  is an invitation for disaster and comprising the Operating System


Certain Applications maybe available on the Apple Apps Store - this only means the Developer is prepared to pay Apple a portion on each sale. What the Application may do to the computer is up to the User to check this out before purchase


Any of the below should be removed as per Developers Instructions


This will include CleanMyMac 


Suggest the user reads some of the may posting specific to this application and arrive that their own conclusions.


Further, even after ( if the uses does remove the CMM ) - the damages done to this computer may remain.


It is suggested to Reinstall the Operating System via the Recovery Mode for Apple Silicon which should replace any corrupted or removed elements that were inflicted by CMM


There has been sufficient advise offered for the User ( you ) to make an informed and educated choice what the next course of action is required.


The suggestions have been put forth on a volunteer basis, in good faith and in the best interests of the computer.

Jul 29, 2022 4:18 AM in response to Luis Sequeira1

Thee are a number of Kernel Extensions installed and none of them I am familiar with.


One of them has the Legacy designation



[Pas engagà ©e] nxaudio.kext - com.nomachine.driver.nxau (4.1 - SDK 10.8)

[Pas engagà ©e] nxtun.kext - com.nomachine.driver.nxtun (4.1)

[Pas engagà ©e] nxusbproxy.kext - com.nomachine.driver.nxusbproxy (3.0 - SDK 10.11)

[Pas engagà ©e] nxusbvic_11.0.kext - com.nomachine.driver.nxusbvic (3.0 - SDK 10.16)

[Pas engagà ©e] nxusbvhci_10.11.kext - com.nomachine.driver.nxusbvusb (3.0 - SDK 10.11)

[Pas engagà ©e] nxusbvhci_10.9.kext - com.nomachine.driver.vusb (3.0 - SDK 10.9)

[Pas engagà ©e] nxfs.kext - com.nomachine.kext.nxfs (NoMachine Disk Adapter 4.1.b1 - SDK 10.6)

[Pas engagà ©e] nxusb-legacy_10.8-10.10.kext - com.nomachine.kext.nxusb-legacy_10.8-10.10 (9.2 - SDK 10.7)



Aug 1, 2022 3:29 PM in response to Luis Sequeira1

Luis Sequeira1 wrote:

The leaked memory is high but not 5GB, it is about 180MB.

It's higher than that...


Top Processes Snapshot by Memory:

Process (count) RAM usage (Source - Location)

coreaudiod 3.15 GB (Apple)


I've seen this problem reported many other places. I suspect the cause is one or more 3rd party apps that aren't using the APIs properly. But beyond that, I have no idea.

Jul 29, 2022 5:14 AM in response to Owl-53

so NoMachine is an alternative to the Microsoft Remote desktop feature that allows to plug usb device remotely.


And on the audio side of things I have the App Sound Control by staticz and BlackHole16ch to do screen recording on OBS.


And that's all, the curious thing is that the memory leak only happen when i put my macbook to sleep

when i log out i usually check and i'm around 200 or 400 mb of ram used by coreaudiod and when i come back 2 hours later it jumps to around 5gb



Jul 29, 2022 6:35 AM in response to etresoft

Just a little addition, or two:

regarding the “corruption”, we often see this when reports in Latin languages (usually French) are posted. As far as I can tell, Etrecheck correctly uses Unicode but somewhere in the process the text is wrongly interpreted as isolatin 1 or something like that. When it gets posted all the accented characters like à, é, and so on appear as those garbled things.


regarding running Etrecheck in English: one can do that without changing the whole system language: go System Preferences->Language & Region, click on Apps, and Etrecheck there.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Coreaudiod memory leak

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