Skip to content

Instantly share code, notes, and snippets.

@djflux
Last active May 8, 2023 14:57
Show Gist options
  • Save djflux/08d9007e2146884e6df1741770de5105 to your computer and use it in GitHub Desktop.
Save djflux/08d9007e2146884e6df1741770de5105 to your computer and use it in GitHub Desktop.
DS1 audio dropout console logs MacBook Pro T2
DS1 audio errors
default 21:07:04.724255-0500 kernel + IOAudioEngine[<private>]::pauseAudioEngine()
default 21:07:04.726351-0500 kernel +-IOAudioEngine[<private>]::setState(0x2. oldState=0x1)
default 21:07:04.726613-0500 kernel + IOAudioStream[<private>]::removeClient(<private>)
error 21:07:04.726641-0500 coreaudiod HALS_IOA1Engine::EndWriting: got an error from the kernel trap, Error: 0xE00002D7
default 21:07:04.726632-0500 kernel +-IOAudioStream[<private>]::safeLogError kErrorLogDumpCounters mStreamErrorCountsUpdated=0
default 21:07:04.726736-0500 Music HALC_ProxyIOContext::IOWorkLoop: skipping cycle due to overload
default 21:07:04.726634-0500 kernel - IOAudioStream[<private>]::removeClient(<private>)
default 21:07:04.726639-0500 kernel +- IOAudioEngine[<private>]::decrementActiveUserClients() - 0 returns 0x0
default 21:07:04.726641-0500 kernel +- IOAudioEngine[<private>]::stopClient(<private>) returns 0x0
default 21:07:04.726645-0500 kernel +- IOAudioEngineUserClient[<private>]::setOnline(0)
default 21:07:04.726655-0500 kernel - IOAudioEngine[<private>]::pauseAudioEngine() returns 0x0
default 21:07:04.726658-0500 kernel + IOAudioEngine[<private>]::resumeAudioEngine()
default 21:07:04.726660-0500 kernel +-IOAudioEngine[<private>]::setState(0x3. oldState=0x2)
default 21:07:04.726665-0500 kernel send commandWakeup on resume for [<private>]
default 21:07:04.726667-0500 kernel - IOAudioEngine[<private>]::resumeAudioEngine() returns 0x0
default 21:07:04.727180-0500 kernel + IOAudioEngineUserClient::externalMethod, selector=0x3, arg0 0x0, arg1 0x0, arg2 0x0 arg3 0x0
default 21:07:04.727184-0500 kernel scalarInputCount=0x0 structureInputSize 0x0, scalarOutputCount 0x0, structureOutputSize 0x0
default 21:07:04.727188-0500 kernel + IOAudioEngineUserClient[<private>]::startClient() - 0
default 21:07:04.727190-0500 kernel audioEngine && !isInactive(). State = 3
default 21:07:04.727190-0500 kernel audioEngine->getState() != kIOAudioEnginePaused
default 21:07:04.727194-0500 kernel +- IOAudioEngineUserClient[<private>]::setOnline(1)
default 21:07:04.727195-0500 kernel !isOnline() setting online
default 21:07:04.727196-0500 kernel + IOAudioEngine[<private>]::startClient(<private>)
default 21:07:04.727199-0500 kernel + IOAudioEngine[<private>]::incrementActiveUserClients() - 0
default 21:07:04.727201-0500 kernel + IOAudioEngine[<private>]::startAudioEngine(state = 3)
default 21:07:04.727202-0500 kernel - IOAudioEngine[<private>]::stopEngineAtPosition(0,0)
default 21:07:04.727205-0500 kernel +- IOAudioEngine[<private>]::resetStatusBuffer()
default 21:07:04.729614-0500 kernel +-IOAudioEngine[<private>]::setState(0x1. oldState=0x3)
default 21:07:04.729624-0500 kernel - IOAudioEngine[<private>]::getTimerInterval()
default 21:07:04.729631-0500 kernel - IOAudioEngine[<private>]::startAudioEngine() returns 0x0
default 21:07:04.729633-0500 kernel - IOAudioEngine[<private>]::incrementActiveUserClients() - 1 returns 0
default 21:07:04.729635-0500 kernel - IOAudioEngine[<private>]::startClient(<private>) returns 0x0
default 21:07:04.729635-0500 kernel engine started
default 21:07:04.729636-0500 kernel bufferSet <private>
default 21:07:04.729639-0500 kernel output clientBuffer <private>
default 21:07:04.729640-0500 kernel + IOAudioStream[<private>]::addClient(<private>)
default 21:07:04.729643-0500 kernel - IOAudioStream[<private>]::addClient(<private>) returns 0x0
default 21:07:04.729644-0500 kernel - IOAudioEngineUserClient[<private>]::startClient() - 1 returns 0x0
default 21:07:04.729646-0500 kernel - IOAudioEngineUserClient::externalMethod returns 0x0
error 21:07:04.737695-0500 coreaudiod HALS_IOA1Engine::EndWriting: got an error from the kernel trap, Error: 0xE00002D7
default 21:07:04.737837-0500 Music HALC_ProxyIOContext::IOWorkLoop: skipping cycle due to overload
error 21:07:04.748869-0500 coreaudiod HALS_IOA1Engine::EndWriting: got an error from the kernel trap, Error: 0xE00002D7
default 21:07:04.749006-0500 Music HALC_ProxyIOContext::IOWorkLoop: skipping cycle due to overload
error 21:07:04.760000-0500 coreaudiod HALS_IOA1Engine::EndWriting: got an error from the kernel trap, Error: 0xE00002D7
default 21:07:04.760150-0500 Music HALC_ProxyIOContext::IOWorkLoop: skipping cycle due to overload
error 21:07:04.771111-0500 coreaudiod HALS_IOA1Engine::EndWriting: got an error from the kernel trap, Error: 0xE00002D7
default 21:07:04.771250-0500 Music HALC_ProxyIOContext::IOWorkLoop: skipping cycle due to overload
error 21:07:04.782196-0500 coreaudiod HALS_IOA1Engine::EndWriting: got an error from the kernel trap, Error: 0xE00002D7
default 21:07:04.782330-0500 Music HALC_ProxyIOContext::IOWorkLoop: skipping cycle due to overload
error 21:07:04.793312-0500 coreaudiod HALS_IOA1Engine::EndWriting: got an error from the kernel trap, Error: 0xE00002D7
default 21:07:04.793406-0500 Music HALC_ProxyIOContext::IOWorkLoop: skipping cycle due to overload
error 21:07:04.804387-0500 coreaudiod HALS_IOA1Engine::EndWriting: got an error from the kernel trap, Error: 0xE00002D7
default 21:07:04.804531-0500 Music HALC_ProxyIOContext::IOWorkLoop: skipping cycle due to overload
error 21:07:04.815470-0500 coreaudiod HALS_IOA1Engine::EndWriting: got an error from the kernel trap, Error: 0xE00002D7
default 21:07:04.815604-0500 Music HALC_ProxyIOContext::IOWorkLoop: skipping cycle due to overload
error 21:07:04.826555-0500 coreaudiod HALS_IOA1Engine::EndWriting: got an error from the kernel trap, Error: 0xE00002D7
default 21:07:04.826692-0500 Music HALC_ProxyIOContext::IOWorkLoop: skipping cycle due to overload
error 21:07:04.837635-0500 coreaudiod HALS_IOA1Engine::EndWriting: got an error from the kernel trap, Error: 0xE00002D7
default 21:07:04.837758-0500 Music HALC_ProxyIOContext::IOWorkLoop: skipping cycle due to overload
error 21:07:04.848721-0500 coreaudiod HALS_IOA1Engine::EndWriting: got an error from the kernel trap, Error: 0xE00002D7
default 21:07:04.848855-0500 Music HALC_ProxyIOContext::IOWorkLoop: skipping cycle due to overload
default 21:07:04.857903-0500 kernel USB Sound assertion (Resetting engine due to error returned in Read Handler) in /AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleUSBAudio/AppleUSBAudio-401.4/KEXT/AppleUSBAudioDevice.cpp at line 6644
error 21:07:04.859740-0500 coreaudiod HALS_IOA1Engine::EndWriting: got an error from the kernel trap, Error: 0xE00002D7
default 21:07:04.859838-0500 Music HALC_ProxyIOContext::IOWorkLoop: skipping cycle due to overload
error 21:07:04.870801-0500 coreaudiod HALS_IOA1Engine::EndWriting: got an error from the kernel trap, Error: 0xE00002D7
default 21:07:04.870923-0500 Music HALC_ProxyIOContext::IOWorkLoop: skipping cycle due to overload
error 21:07:04.881825-0500 coreaudiod HALS_IOA1Engine::EndWriting: got an error from the kernel trap, Error: 0xE00002D7
default 21:07:04.881922-0500 Music HALC_ProxyIOContext::IOWorkLoop: skipping cycle due to overload
error 21:07:04.892878-0500 coreaudiod HALS_IOA1Engine::EndWriting: got an error from the kernel trap, Error: 0xE00002D7
default 21:07:04.892973-0500 Music HALC_ProxyIOContext::IOWorkLoop: skipping cycle due to overload
error 21:07:04.903826-0500 coreaudiod HALS_IOA1Engine::EndWriting: got an error from the kernel trap, Error: 0xE00002D7
default 21:07:04.903923-0500 Music HALC_ProxyIOContext::IOWorkLoop: skipping cycle due to overload
error 21:07:04.914894-0500 coreaudiod HALS_IOA1Engine::EndWriting: got an error from the kernel trap, Error: 0xE00002D7
default 21:07:04.914988-0500 Music HALC_ProxyIOContext::IOWorkLoop: skipping cycle due to overload
error 21:07:04.925899-0500 coreaudiod HALS_IOA1Engine::EndWriting: got an error from the kernel trap, Error: 0xE00002D7
default 21:07:04.925997-0500 Music HALC_ProxyIOContext::IOWorkLoop: skipping cycle due to overload
error 21:07:04.936943-0500 coreaudiod HALS_IOA1Engine::EndWriting: got an error from the kernel trap, Error: 0xE00002D7
default 21:07:04.937040-0500 Music HALC_ProxyIOContext::IOWorkLoop: skipping cycle due to overload
error 21:07:04.947897-0500 coreaudiod HALS_IOA1Engine::EndWriting: got an error from the kernel trap, Error: 0xE00002D7
default 21:07:04.947993-0500 Music HALC_ProxyIOContext::IOWorkLoop: skipping cycle due to overload
error 21:07:04.958960-0500 coreaudiod HALS_IOA1Engine::EndWriting: got an error from the kernel trap, Error: 0xE00002D7
default 21:07:04.959053-0500 Music HALC_ProxyIOContext::IOWorkLoop: skipping cycle due to overload
error 21:07:04.969897-0500 coreaudiod HALS_IOA1Engine::EndWriting: got an error from the kernel trap, Error: 0xE00002D7
default 21:07:04.970052-0500 Music HALC_ProxyIOContext::IOWorkLoop: skipping cycle due to overload
error 21:07:04.980957-0500 coreaudiod HALS_IOA1Engine::EndWriting: got an error from the kernel trap, Error: 0xE00002D7
default 21:07:04.981053-0500 Music HALC_ProxyIOContext::IOWorkLoop: skipping cycle due to overload
error 21:07:04.991899-0500 coreaudiod HALS_IOA1Engine::EndWriting: got an error from the kernel trap, Error: 0xE00002D7
default 21:07:04.991995-0500 Music HALC_ProxyIOContext::IOWorkLoop: skipping cycle due to overload
error 21:07:05.002888-0500 coreaudiod HALS_IOA1Engine::EndWriting: got an error from the kernel trap, Error: 0xE00002D7
default 21:07:05.002979-0500 Music HALC_ProxyIOContext::IOWorkLoop: skipping cycle due to overload
error 21:07:05.013778-0500 coreaudiod HALS_IOA1Engine::EndWriting: got an error from the kernel trap, Error: 0xE00002D7
default 21:07:05.013839-0500 Music HALC_ProxyIOContext::IOWorkLoop: skipping cycle due to overload
error 21:07:05.024802-0500 coreaudiod HALS_IOA1Engine::EndWriting: got an error from the kernel trap, Error: 0xE00002D7
default 21:07:05.024919-0500 Music HALC_ProxyIOContext::IOWorkLoop: skipping cycle due to overload
error 21:07:05.035830-0500 coreaudiod HALS_IOA1Engine::EndWriting: got an error from the kernel trap, Error: 0xE00002D7
default 21:07:05.035926-0500 Music HALC_ProxyIOContext::IOWorkLoop: skipping cycle due to overload
error 21:07:05.046879-0500 coreaudiod HALS_IOA1Engine::EndWriting: got an error from the kernel trap, Error: 0xE00002D7
default 21:07:05.046976-0500 Music HALC_ProxyIOContext::IOWorkLoop: skipping cycle due to overload
error 21:07:05.057818-0500 coreaudiod HALS_IOA1Engine::EndWriting: got an error from the kernel trap, Error: 0xE00002D7
default 21:07:05.057914-0500 Music HALC_ProxyIOContext::IOWorkLoop: skipping cycle due to overload
error 21:07:05.068897-0500 coreaudiod HALS_IOA1Engine::EndWriting: got an error from the kernel trap, Error: 0xE00002D7
default 21:07:05.068995-0500 Music HALC_ProxyIOContext::IOWorkLoop: skipping cycle due to overload
error 21:07:05.079910-0500 coreaudiod HALS_IOA1Engine::EndWriting: got an error from the kernel trap, Error: 0xE00002D7
default 21:07:05.080013-0500 Music HALC_ProxyIOContext::IOWorkLoop: skipping cycle due to overload
error 21:07:05.090908-0500 coreaudiod HALS_IOA1Engine::EndWriting: got an error from the kernel trap, Error: 0xE00002D7
default 21:07:05.091003-0500 Music HALC_ProxyIOContext::IOWorkLoop: skipping cycle due to overload
default 21:07:05.102746-0500 coreaudiod Audio IO Overload inputs: '<private>' outputs: '<private>' cause: 'Unknown' prewarming: no recovering: no
default 21:07:05.102926-0500 coreaudiod CAReportingClient.mm:508 message {
HostApplicationDisplayID = "com.apple.Music";
cause = Unknown;
deadline = 2615019;
"input_device_source_list" = Unknown;
"input_device_transport_list" = USB;
"input_device_uid_list" = "AppleUSBAudioEngine:Denon DJ:DS1:000:1,2";
"io_buffer_size" = 512;
"io_cycle" = 1;
"is_prewarming" = 0;
"is_recovering" = 0;
"issue_type" = overload;
lateness = "-535";
"output_device_source_list" = Unknown;
"output_device_transport_list" = USB;
"output_device_uid_list" = "AppleUSBAudioEngine:Denon DJ:DS1:000:1,2";
}: (null)
@ardasatata
Copy link

@ardasatata I've tried connecting my Steinberg UR22 directly to my M1 pro (no usb dongles in between) and I still hear it. What seems to help is reducing memory load. For instance, i've noticed i hear a lot more crackling if docker is running as opposed to when its not.

Has anyone tried upgrading to the latest OS, did that help?

I'm in Ventura 13.1, doesn't help that much.
yep, you're right keeping the memory pressure low did help. I've reduced my IntelliJ Idea heap size to 3084 from 4096 and I hardly hear any crackling since then.
Screenshot 2023-01-16 at 00 44 37

I wonder why it doesn't happen on my 2016 intel MacBook pro with the same workload 😢

@nickmacavoy
Copy link

nickmacavoy commented Jan 15, 2023

@ardasatata I've tried connecting my Steinberg UR22 directly to my M1 pro (no usb dongles in between) and I still hear it. What seems to help is reducing memory load. For instance, i've noticed i hear a lot more crackling if docker is running as opposed to when its not.
Has anyone tried upgrading to the latest OS, did that help?

I'm in Ventura 13.1, doesn't help that much. yep, you're right keeping the memory pressure low did help. I've reduced my IntelliJ Idea heap size to 3084 from 4096 and I hardly hear any crackling since then. Screenshot 2023-01-16 at 00 44 37

I wonder why it doesn't happen on my 2016 intel MacBook pro with the same workload 😢

This is helpful @alifarooq0 and @ardasatata. My load is also in part attributable to Docker and IntelliJ (Rubymine / Webstorm), with other resources used by esbuild, postcss, Spotify, Mail, Slack plus various other non-development apps. I've long suspected file watching / IO usage as a cause?

My heap size for RubyMine is 1528MB. Looking at your screenshot above, I originally thought that any swap usage was an indicator for the crackling appeared, but I found cases where no swap was used and the crackling appeared.

@sercanov
Copy link

sercanov commented May 5, 2023

I've had this issue for years after the 2018 Macbook redesigns. I'm using Traktor Kontrol S2 Mk3 as a sound card for Adam Audio monitors. There's an Apple forum post but there's no conclusion.

@alifarooq0
Copy link

I know. sad. It's come a point where it's much easier to train my brain to ignore these popping sounds than to go on a hunt to find a solution for this.

@djflux
Copy link
Author

djflux commented May 5, 2023

The instance I posted about here was so bad my box was unusable. I eventually broke down and bought a mixer with a Serato interface built in (Rane Seventy). I still get the occasional drop out (once every hour or so if I’m DJing a long set) but barely noticeable. Still annoying that Apple won’t even acknowledge this problem’s existence 😔

@nickmacavoy
Copy link

I've sent a bunch of feedback within Feedback Assistance to help Apple remedy this – logs, ktraces, from many different instances and situations. I received a response from a person at Apple in February 2023 and sent them back some additional information.

I recommend you all submit New Feedback within Feedback Assistant to help push this along. Make sure that you include a ktrace while the stutters/drop-outs are happening as it'll give them as much information as possible to work with from the outset.

  1. Check if the problem still occurs. If so:
  2. Start a .ktrace capture file in Terminal.app before plugging in the device: sudo ktrace artrace -- -c
  3. Plug in the device.
  4. Try to reproduce the problem.
  5. Press control+C to stop the capture.
  6. Attach the .ktrace file to the feedback report. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment