VirtualBox

Opened 6 years ago

Last modified 6 years ago

#17273 new defect

5.1.24 regression: Windows 10 guest microphone stops working after high host CPU load

Reported by: ocecaco Owned by:
Component: audio Version: VirtualBox 5.1.24
Keywords: microphone Cc:
Guest type: Windows Host type: all

Description

In VirtualBox 5.1.24, when the host CPU usage gets very high (i.e., close to 100% on all cores), then the microphone in a Windows 10 guest stops receiving sound. Note that it continues to receive no sound even after the high host CPU usage has stopped. The microphone works just fine before the high CPU load in the host. This issue does not occur in VirtualBox 5.1.22, and therefore appears to be a regression (the changelog mentions audio-related changes for better Windows 10 support, so it would make sense).

This issue occurs with both a Linux host (Ubuntu xenial) and a Windows 10 host. The guest was Windows 10 in both cases.

Steps to reproduce this issue:

  1. Create an up-to-date Windows 10 guest using Intel HDA as the sound device. The host can be either Windows or Linux since the issue occurs with both. The host should be using VirtualBox 5.1.24.
  2. In the guest, right-click the audio icon next to the clock and choose Recording Devices. This shows a volume meter for the microphone. Check to see that the microphone works before proceeding. Do not switch to another tab in the window during the test since that seems to reinitialize the microphone "connection."
  3. In the host, cause a high CPU load. I did this by running 5 instances of a simple Python script that calculates Fibonacci numbers (attached).
  4. After about 10-20 seconds, the volume meter either doesn't respond anymore or stays stuck on a particular volume. Killing/waiting for the Python scripts to terminate doesn't cause the volume meter to start working again. Only switching to another tab and back seems to reinitialize the microphone and fixes the issue temporarily. In 5.1.22, the volume meter never freezes.

It is also possible to test using the Voice Recorder, there I noticed that only a static noise is received after several seconds of high host CPU usage. The easiest way to reproduce, however, is to use the Recording Devices panel.

I have tested using VirtualBox 5.2.0 as well, and the same issue exists there. However, 5.1.24 is the earliest version that has this issue.

Attachments (1)

fib.py (94 bytes ) - added by ocecaco 6 years ago.
Fibonacci number calculation used in host to cause high CPU usage

Download all attachments as: .zip

Change History (12)

by ocecaco, 6 years ago

Attachment: fib.py added

Fibonacci number calculation used in host to cause high CPU usage

comment:1 by ocecaco, 6 years ago

I tried to reproduce on a different computer, and in step 3 I had to run more of the scripts to cause the bug to occur, in that case about 12 instances of it. It is not clear to me what caused the difference.

comment:2 by Pi Guy, 6 years ago

+1. Replicated on Mac OS High sierra, and El Capitan host with windows 7 VM, virtualbox 5.1.28, CoreAudio host audio driver, IntelHdAudio Audio Controller

Last edited 6 years ago by Pi Guy (previous) (diff)

comment:3 by pentagonik, 6 years ago

Does the issue still persist with the latest version of VirtualBox?

comment:4 by Pi Guy, 6 years ago

On Version 5.2.2 r119230 (Qt5.6.3) on MacOS (with same details as my other comment), no the same issue occurs.

comment:5 by pentagonik, 6 years ago

So the bug is still there?

comment:6 by Pi Guy, 6 years ago

Sorry for slow reply.

Yes the bug is still thereon the version i tested

comment:7 by pentagonik, 6 years ago

Please have a try with the latest 5.2 test build 120822, which is located here: Testbuilds. Thank you!

comment:8 by Pi Guy, 6 years ago

Does this include Mac OS X 5.2.x revision 120866?

comment:9 by pentagonik, 6 years ago

Yes, it does -- revision 120822 or any newer one.

comment:10 by Pi Guy, 6 years ago

I have not had this bug happen to me on that build, macos 120866. However , i have noticed that there is a delay between me speaking into the microphone and the virtual machine registering a sound. (checked using the 'Listen to this device ' option in the sound settings on windows 7)

comment:11 by Pi Guy, 6 years ago

Is any investigation still being done on this? It would suck to see this bug persist

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use