Did you find this article helpful?
Exceptionally high CPU Usage on Mac OS 10.14.6 Mojave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello
I am reporting a very high (100% of one core) level of CPU usage of the Spotify desktop client on Mac OS. Profiling Spotify with the Instruments tool in Xcode, it is clear this CPU usage is inside `AudioFileOpenURL` and more specifically, inside `UnixFile_DataSource::ReadBytes` in AudioToolbox. It's unclear whether this is an issue with Spotify's use of AudioToolbox or in AudioToolbox itself, but the issue just started recently, and I have not recently changed anything about Mac OS, so suspect it is on Spotify's side. No other applications encounter this error.
Below is the profile from this capture. I didn't include the callers as Spotify is not symbolicated, so the addresses are meaningless. The next caller up is a function somewhere in Spotify.
```
Weight Self Weight Symbol Name
44.30 s 100.0% 0 s AudioFileOpenURL
44.30 s 100.0% 0 s AudioFileObject::DoOpen(__CFURL const*, signed char, int)
44.30 s 100.0% 0 s AudioFileObject::Open(__CFURL const*, signed char, int)
44.30 s 100.0% 0 s FLACAudioFile::OpenFromDataSource()
44.30 s 100.0% 583.00 ms FLACAudioFile::ParseAudioFile()
43.52 s 98.2% 1.01 s Cached_DataSource::ReadBytes(unsigned short, long long, unsigned int, void*, unsigned int*)
42.27 s 95.4% 980.00 ms UnixFile_DataSource::ReadBytes(unsigned short, long long, unsigned int, void*, unsigned int*)
41.23 s 93.0% 41.23 s pread
54.00 ms 0.1% 54.00 ms UnixFile_DataSource::UFCurrentOffset(unsigned short, long long)
187.00 ms 0.4% 187.00 ms _platform_memmove$VARIANT$Haswell
52.00 ms 0.1% 52.00 ms pread
7.00 ms 0.0% 7.00 ms DYLD-STUB$$pread
1.00 ms 0.0% 0 s <Unknown Address>
1.00 ms 0.0% 1.00 ms UnixFile_DataSource::UFCurrentOffset(unsigned short, long long)
190.00 ms 0.4% 190.00 ms DYLD-STUB$$_platform_memmove
1.00 ms 0.0% 1.00 ms DYLD-STUB$$memcpy
```
Looking at the capture, it is clear that no other thread is doing much work.
This issue usually starts some time after the first song has started, e.g. it does not occur on first playback after restarting Spotify. Is it possible a recent update caused a bug with Spotify's interaction with AudioToolbox on MacOS?
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page