Unexpected system behavior with 'getifaddrs'

On iOS beta, monitoring network usage using the getifaddrs API sporadically causes system volume spikes. This happens even though the application does not interact with any audio-related code. The issue persists across different polling intervals (e.g., 0.05s to 1s) and only occurs when invoking getifaddrs. Replacing the API calls with mock data eliminates the problem, suggesting a potential issue with getifaddrs in the beta environment.

The application updates UI elements based on network activity, but the volume spikes occur independently of UI or other observable app behavior.

Steps to Reproduce:

  1. Create an app that monitors network usage using the getifaddrs API.
  2. Fetch network statistics on a timer (e.g., every 0.05 seconds).
  3. Observe system behavior while running the app on iOS beta.
  4. Note sporadic volume spikes during app runtime.

Expected Result: Polling network usage with getifaddrs should not affect system volume or other unrelated resources.

Actual Result: System volume spikes occasionally when network statistics are retrieved using getifaddrs.

iOS 18.2 Beta, Tested on physical device ( iPhone 15 Pro )

Answered by DTS Engineer in 814620022

It sounds like your goal is to file a bug. If so, see Bug Reporting: How and Why? for advice on how to do that.

Please post your bug number, just for the record.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

It sounds like your goal is to file a bug. If so, see Bug Reporting: How and Why? for advice on how to do that.

Please post your bug number, just for the record.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Unexpected system behavior with 'getifaddrs'
 
 
Q