Connect headset causes freeze

Discussions related to using VirtualBox on Windows hosts.
bertje
Posts: 58
Joined: 4. Nov 2010, 09:49
Primary OS: MS Windows 10
VBox Version: OSE other
Guest OSses: Ubuntu/MATE/Server 16.04, 18.04, 20.04, 21.04, 22.04, 23.10, Windows XP/7/10/11

Re: Connect headset causes freeze

Post by bertje »

Please find attached the full logs of Ubuntu guest freeze with only one HDMI Iliama 1920x1080 monitor connected type PLX2483H with build-in speakers. (All other video connectors like Displayport disconnected)
The Windows 10 host audio was Sennheiser SC260 USB headset and freeze started immediately after turning on FireFace 802 USB 2.0 audio interface.

VBox.log

Code: Select all

00:00:39.837442 Audio: Device '{0.0.1.00000000}.{964f05d0-5fa9-45ca-babe-eee2769c1c24}' has changed state to 'active'
00:00:39.837463 Audio: Device configuration of driver 'DSoundAudio' has changed
00:00:39.904286 Audio: Found 7 devices for driver 'DSoundAudio'
00:00:39.904295 Audio: Device 'Primary Sound Driver':
00:00:39.904298 Audio:   Usage           = Output
00:00:39.904301 Audio:   Flags           = DEFAULT
00:00:39.904303 Audio:   Input channels  = 0
00:00:39.904306 Audio:   Output channels = 2
00:00:39.904308 Audio: Device 'Speakers (Sennheiser SC260)':
00:00:39.904311 Audio:   Usage           = Output
00:00:39.904313 Audio:   Flags           = NONE
00:00:39.904316 Audio:   Input channels  = 0
00:00:39.904318 Audio:   Output channels = 2
00:00:39.904320 Audio: Device 'Realtek Digital Output (Realtek(R) Audio)':
00:00:39.904323 Audio:   Usage           = Output
00:00:39.904325 Audio:   Flags           = NONE
00:00:39.904327 Audio:   Input channels  = 0
00:00:39.904330 Audio:   Output channels = 2
00:00:39.904333 Audio: Device 'PLX2483H (NVIDIA High Definition Audio)':
00:00:39.904335 Audio:   Usage           = Output
00:00:39.904338 Audio:   Flags           = NONE
00:00:39.904340 Audio:   Input channels  = 0
00:00:39.904342 Audio:   Output channels = 2
00:00:39.904345 Audio: Device 'Primary Sound Capture Driver':
00:00:39.904349 Audio:   Usage           = Input
00:00:39.904354 Audio:   Flags           = NONE
00:00:39.904357 Audio:   Input channels  = 2
00:00:39.904359 Audio:   Output channels = 0
00:00:39.904361 Audio: Device 'Microphone (Sennheiser SC260)':
00:00:39.904364 Audio:   Usage           = Input
00:00:39.904366 Audio:   Flags           = NONE
00:00:39.904368 Audio:   Input channels  = 2
00:00:39.904371 Audio:   Output channels = 0
00:00:39.904373 Audio: Device 'Analog (1+2) (RME Fireface 802)':
00:00:39.904376 Audio:   Usage           = Input
00:00:39.904378 Audio:   Flags           = NONE
00:00:39.904380 Audio:   Input channels  = 2
00:00:39.904383 Audio:   Output channels = 0
00:00:39.907552 Audio: Device '{0.0.0.00000000}.{5e851de5-f155-48e8-8d6b-412533aec36a}' has changed state to 'active'

<== No further output
Attachments
UbuntuGuestFreezeVirtualBoxHDMIOnly.zip
(40.33 KiB) Downloaded 11 times
Last edited by bertje on 13. May 2021, 16:51, edited 1 time in total.
bertje
Posts: 58
Joined: 4. Nov 2010, 09:49
Primary OS: MS Windows 10
VBox Version: OSE other
Guest OSses: Ubuntu/MATE/Server 16.04, 18.04, 20.04, 21.04, 22.04, 23.10, Windows XP/7/10/11

Re: Connect headset causes freeze

Post by bertje »

Another test with attached the full logs of Ubuntu guest freeze with only one Samsung LC34H890WJU monitor connected via DisplayPort. (No other video ports connected)
Sennheiser SC260 USB headset disconnected.
Realtek Digital Audio (motherboard) was selected as Windows 10 host audio when turning on Fireface 802 USB audio interface.

Additionally: Ubuntu guest was playing a Youtube video when turning on the Fireface audio interface. Then the Ubuntu guest immediately freezes.

Sample frequencies: 48kHz Windows 10 host = Realtek on-board SPDIFF via toshlink cable
Ubuntu guest uses default /etc/pulse/daemon.conf. Maybe it was playing 44.1kHz by default and needs to switch to 48kHz? I'm not sure.

VBox.logs

Code: Select all

00:00:50.085261 Audio: Found 5 devices for driver 'DSoundAudio'
00:00:50.085271 Audio: Device 'Primary Sound Driver':
00:00:50.085273 Audio:   Usage           = Output
00:00:50.085276 Audio:   Flags           = DEFAULT
00:00:50.085279 Audio:   Input channels  = 0
00:00:50.085281 Audio:   Output channels = 2
00:00:50.085283 Audio: Device 'Realtek Digital Output (Realtek(R) Audio)':
00:00:50.085286 Audio:   Usage           = Output
00:00:50.085288 Audio:   Flags           = NONE
00:00:50.085291 Audio:   Input channels  = 0
00:00:50.085293 Audio:   Output channels = 2
00:00:50.085295 Audio: Device 'C34H89x (NVIDIA High Definition Audio)':
00:00:50.085301 Audio:   Usage           = Output
00:00:50.085305 Audio:   Flags           = NONE
00:00:50.085307 Audio:   Input channels  = 0
00:00:50.085310 Audio:   Output channels = 2
00:00:50.085312 Audio: Device 'Primary Sound Capture Driver':
00:00:50.085314 Audio:   Usage           = Input
00:00:50.085317 Audio:   Flags           = NONE
00:00:50.085319 Audio:   Input channels  = 2
00:00:50.085321 Audio:   Output channels = 0
00:00:50.085323 Audio: Device 'Analog (1+2) (RME Fireface 802)':
00:00:50.085326 Audio:   Usage           = Input
00:00:50.085328 Audio:   Flags           = NONE
00:00:50.085330 Audio:   Input channels  = 2
00:00:50.085332 Audio:   Output channels = 0
00:00:50.094446 Audio: Device '{0.0.0.00000000}.{5e851de5-f155-48e8-8d6b-412533aec36a}' has changed state to 'active'

<== No further output
Attachments
UbuntuGuestFreezeVirtualBoxDisplayPortOnly.zip
(40.24 KiB) Downloaded 11 times
fth0
Volunteer
Posts: 5668
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Connect headset causes freeze

Post by fth0 »

Ok, it looks like the monitor is not important. Although, who knows, since both monitors are audio sinks.

I'd suggest to first update VirtualBox to the current version 6.1.22 (I don't expect any effect on the problems), then choose a reproducible problem (e.g. adding the Fireface 802 USB audio interface), reproduce it and create a ticket in the Bugtracker.

Note that there have been significant audio-related changes between VirtualBox versions 6.1.18 and 6.1.20/22. If you want to try out other sequences of events that may be easier to reproduce by VirtualBox developers without a Fireface 802 USB audio interface, stay with the current version.

I noticed that the Fireface 802 USB audio interface is recognized as a two-channel audio input just before the freeze. What happens if you enable audio input in the VM configuration?
bertje
Posts: 58
Joined: 4. Nov 2010, 09:49
Primary OS: MS Windows 10
VBox Version: OSE other
Guest OSses: Ubuntu/MATE/Server 16.04, 18.04, 20.04, 21.04, 22.04, 23.10, Windows XP/7/10/11

Re: Connect headset causes freeze

Post by bertje »

Ok, it looks like the monitor is not important. Although, who knows, since both monitors are audio sinks.
You're right. I did not realize it, but audio cannot be disabled for both monitors. (Iliama has audio output as speakers and Samsung has a 3.5mm audio out jack)
I'd suggest to first update VirtualBox to the current version 6.1.22 (I don't expect any effect on the problems)
I encountered these problems even before 6.1.18, but I did not save the exact versions of VirtualBox.
I could not find relevant audio changes in the changelog between 6.1.20 (which I'm currently using) and 6.1.22: https://www.virtualbox.org/wiki/Changelog
If you want to try out other sequences of events that may be easier to reproduce by VirtualBox developers without a Fireface 802 USB audio interface, stay with the current version.
Ok, I'll leave it up to the developers as I need some guidance what I can try for them.
I noticed that the Fireface 802 USB audio interface is recognized as a two-channel audio input just before the freeze.
The RME Fireface 802 audio interface has a wide range of inputs and outputs. https://www.rme-audio.de/fireface-802.html It is probably routed as 2 channels (stereo) to the Windows 10 host.
What happens if you enable audio input in the VM configuration?
It also freezes with audio input enabled in the VM (guest).

What I discovered now is that I was able to boot the Ubuntu guest, not playing any audio, then power-on the Fireface 802 and I was able to keep the system running a couple of times. (Not noticed any freezes yet)
I also tried to play a Youtube video in the guest and close firefox, wait 10 seconds and then turn on the Fireface 802 and the guest did not freeze. That's new for me.

So it looks like when the guest audio is in use, the guest may freeze when changing audio interfaces... This can also happen after a host sleep (like the behavior I have after 30 minutes not using the host). I think that's relevant information.

I've created a new ticket #20364 (new defect) https://www.virtualbox.org/ticket/20364#propertyform.
fth0
Volunteer
Posts: 5668
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Connect headset causes freeze

Post by fth0 »

bertje wrote:I could not find relevant audio changes in the changelog between 6.1.20 (which I'm currently using) and 6.1.22
I know that there were no audio-related changes for VirtualBox 6.1.22, and when writing "stay with the current version" I meant 6.1.22. The rationale is that (VirtualBox) developers usually are not interested in previous versions of a software when searching for bugs.
bertje
Posts: 58
Joined: 4. Nov 2010, 09:49
Primary OS: MS Windows 10
VBox Version: OSE other
Guest OSses: Ubuntu/MATE/Server 16.04, 18.04, 20.04, 21.04, 22.04, 23.10, Windows XP/7/10/11

Re: Connect headset causes freeze

Post by bertje »

Ok now it is clear. Also reproducible with 6.1.22 and I've updated the ticket.
bertje
Posts: 58
Joined: 4. Nov 2010, 09:49
Primary OS: MS Windows 10
VBox Version: OSE other
Guest OSses: Ubuntu/MATE/Server 16.04, 18.04, 20.04, 21.04, 22.04, 23.10, Windows XP/7/10/11

Re: Connect headset causes freeze

Post by bertje »

This issue is related to viewtopic.php?f=6&t=93705 and it looks like all VirtualBox versions 6.x.x are affected.
In the meantime I used VMWare Professional for a couple of weeks without any issues, so the guest freezes are not related to hardware.
bertje
Posts: 58
Joined: 4. Nov 2010, 09:49
Primary OS: MS Windows 10
VBox Version: OSE other
Guest OSses: Ubuntu/MATE/Server 16.04, 18.04, 20.04, 21.04, 22.04, 23.10, Windows XP/7/10/11

Re: Connect headset causes freeze

Post by bertje »

Any news on the random guest freezes?
fth0
Volunteer
Posts: 5668
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Connect headset causes freeze

Post by fth0 »

Not yet. If there was a VirtualBox test version (6.1.23?) with audio-related changes coming along, would you be willing to test it?
bertje
Posts: 58
Joined: 4. Nov 2010, 09:49
Primary OS: MS Windows 10
VBox Version: OSE other
Guest OSses: Ubuntu/MATE/Server 16.04, 18.04, 20.04, 21.04, 22.04, 23.10, Windows XP/7/10/11

Re: Connect headset causes freeze

Post by bertje »

fth0 wrote:Not yet. If there was a VirtualBox test version (6.1.23?) with audio-related changes coming along, would you be willing to test it?
Yes, I'm available for testing. Thanks!
fth0
Volunteer
Posts: 5668
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Connect headset causes freeze

Post by fth0 »

Well, here it comes! :)

VirtualBox test build(s) for audio problems

On the VirtualBox test builds page, you'll find the VirtualBox stable branch test build 6.1.23r145004 (or newer). The audio functionality underwent extensive changes, and the VirtualBox developers are interested in getting positive as well as negative feedback regarding audio playback and recording. Please mention the host OS, the guest OS, the Host Audio Driver and the Audio Controller (from the VM configuration in Settings > Audio), and describe any misbehavior as detailed as possible. Thanks in advance.
bertje
Posts: 58
Joined: 4. Nov 2010, 09:49
Primary OS: MS Windows 10
VBox Version: OSE other
Guest OSses: Ubuntu/MATE/Server 16.04, 18.04, 20.04, 21.04, 22.04, 23.10, Windows XP/7/10/11

Re: Connect headset causes freeze

Post by bertje »

fth0 wrote:Well, here it comes! :)
Thanks for your notification. I've download the test version and provide feedback ASAP. Stay tuned.
bertje
Posts: 58
Joined: 4. Nov 2010, 09:49
Primary OS: MS Windows 10
VBox Version: OSE other
Guest OSses: Ubuntu/MATE/Server 16.04, 18.04, 20.04, 21.04, 22.04, 23.10, Windows XP/7/10/11

Re: Connect headset causes freeze

Post by bertje »

@fth0, Good news: I could not reproduce a freezing Ubuntu Guest on different Ubuntu Guests and different audio inputs. I used the Windows host version VirtualBox-6.1.23-145004-Win.exe.
I also noticed that VLC can now play video's in full screen without audio stuttering and voice / audio seems to be in sync. That's an amazing improvement!

Host OS: Windows 10 21H1
Guest OS: Ubuntu 18.04, 20.04.2, 21.04, Windows 10
Host Audio Driver: Windows DirectSound (all)
Audio Controller (from the VM configuration in Settings > Audio): Intel HD Audio and ICH AC97 both works now.

Note: I did not update the guest additions.

I'll continue using this version in upcoming days. I'll get back to you as soon as I encounter a problem. Big thanks to the developers so far. :wink:
Post Reply