VirtualBox

Ticket #20786 (new defect)

Opened 8 months ago

Last modified 5 months ago

Strange audio related VM lockups

Reported by: li200 Owned by:
Component: audio Version: VirtualBox 6.1.32
Keywords: Cc:
Guest type: all Host type: Linux

Description

I am experiencing lockups related to audio playback in VirtualBox. To clarify, lockup means that Virtualbox locks up, not the guest; pressing the reset button in virtualbox does nothing. The window will not close unless I issue a "killall VirtualBoxVM", but the UI remains mostly responsive. This has been happening since around 6.1.24. 6.1.22 is the latest version that works fine. On the host, I am using ALSA without pulseaudio. I normally use a very customized asoundrc file, but even without my special ALSA configs, the issue still occurs.

On a WinXP guest, I am experiencing a complete freeze when attempting to move the volume slider and sometimes audio playback causes a freeze.

On a Ubuntu 16.04 guest (kernel 4.4), audio playback happens too fast/slow sporadically. When this happens, I see lines like these in dmesg on the guest. [ 9.025442] snd_intel8x0 0000:00:05.0: intel8x0_measure_ac97_clock: measured 55894 usecs (2880 samples) [ 9.025446] snd_intel8x0 0000:00:05.0: clocking to 44715 When that value (44715) is below 48k, audio is slow. When above, it's fast. Rebooting the VM seems to randomly change this "clocking to ..." value. Also, occasionally, after a long audio playback session with google chrome + youtube the VirtualBox instance will hang on shutdown (VM guest shuts down, but window remains open).

Attachments

logs.zip Download (48.2 KB) - added by li200 8 months ago.
A zip containing 2 log files. WinXP is the Windows XP VM, temp is the Ubuntu 16.04 VM.

Change History

Changed 8 months ago by li200

A zip containing 2 log files. WinXP is the Windows XP VM, temp is the Ubuntu 16.04 VM.

comment:1 Changed 7 months ago by Willie

I had the same problem. Fixed it by upgrading alsa-lib and alsa-utils to the latest version, 1.2.5.1

comment:2 Changed 7 months ago by li200

When you say "fixed", do you mean the sound playback speed issue or the intermittent lock-up issue, or both? Also, are you upgrading the ALSA packages on the host or the guest, or both? Thanks.

comment:3 Changed 5 months ago by Willie

Fixed the lockups, didn't have a playback speed issue. And I only updated the host alsa packages.

comment:4 Changed 5 months ago by li200

Makes sense. I think if you are using Windows guests or a linux guest with a newer kernel, you won't have playback speed issues. I think newer linux kernels seem to hardcode the clock value as a workaround for specific PCI ids (including the VBox audio device id), rather than measuring it on boot.

Anyhow, I'm on Linux Mint (based on Ubuntu), which makes it hard to upgrade the ALSA packages without building them manually, which then creates a mess of broken dependencies. I hope there exists a fix/workaround on the VirtualBox side, since 6.1.22 works perfectly fine. I also tried 6.1.34 today, and it seems like the issue still occurs.

Last edited 5 months ago by li200 (previous) (diff)
Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use