Opened 12 years ago
Last modified 5 years ago
#9786 new defect
USB devices freeze VM instances and VB main window under certain conditions
Reported by: | Mark S Klopf | Owned by: | |
---|---|---|---|
Component: | USB | Version: | VirtualBox 4.1.4 |
Keywords: | Cc: | ||
Guest type: | Windows | Host type: | Windows |
Description (last modified by )
In one certain instance I have found that any tested usb Headsets will freeze the VM and the VirtualBox windows. Since the latest upgrade when connecting a USB headset (I have tried 3), upon opening any program that would use the headset the VM will freeze. It will also make the main VirtualBox windw freeze to where you cannot shut down that VM or open new ones. I have tried with a soft phone, voice recognition and sound recorder. All produce the same effect.
- open a Windows VM on a Windows host
- attach a USB headset
- start Windows sound recorder
next clicking on anything shaould freeze the VM indefinitely This was tested with Win 7 Ult. X64 host and Win 7 Pro X64 guest
Attachments (2)
Change History (27)
comment:1 by , 12 years ago
comment:2 by , 12 years ago
Attaching the same device to a Windows 7 x64 guest on an Ubuntu Linux x64 host, running VirtualBox 4.1.6 r74713, is less desastrous. The device sort of works - it plays the test audio, but the USB audio driver locks up after a few times. The host is not affected and the VM window remains fully operational.
Using the same USB device with a Windows 7 x32 host and guest also results in a disastrous freeze, with an occasional blue screen.
USB audio devices also seem to be troublesome with USB-over-Ethernet, and may also result in the machine using the device freezing. This may be a timing issue, and may be related to the issue in VirtualBox.
comment:3 by , 12 years ago
When i plug into guest os my USB AUDIO (Creative SB Play) guest os freeze (crash). And in host system process VB dont kill, only reboot host. I try guest os Win 7 64 - freeze (crash)... I try guest os Win XP - freeze (crash)... I try reinstall host system - freeze (crash)... In Debian (guest os) - not freeze, but i dont install drv for USB AUDIO. I think crash guest os when os uses device (drv install), because first plug (in Win 7) not freeze antil os install drv.
comment:7 by , 11 years ago
Dear Developers, It’s a pity that you treat this problem in this way – more than a year has passed! Without solving this problem we can’t get two and more fully-featured working places from one PC. Let me to remind you that VMWare doesn’t have such a problem, but changing for it is postponed because of inconvenience of the "preconnection" of USB devices in it. But this is for the time being. I hope that you will solve the problem or reply anything regarding it.
comment:9 by , 11 years ago
I am experiencing the same issue. The guest OS locks up, and if you attempt to change any settings or reset the guest OS, the VirtualBox application locks up with high CPU usage and the process can not be ended via task manager. Host PC must be reset
Version 4.2.4 r81684 Host - Windows 7 Enterprise SP1 32bit Guest - Windows XP SP3 Headset Plantronics C-Media USB headset
comment:10 by , 11 years ago
Addendum to above post. I have downgraded VirtualBox to version 4.0.16 r75491 and the USB headset works without locking up the PC.
Version 4.0.16 r75491
Host - Windows 7 Enterprise SP1 32bit
Guest - Windows XP SP3
Headset 4Plantronics C-Media USB
comment:11 by , 11 years ago
I have the problem when i have connected USB devices to windows 7 64bit Professional that i cannot shutdown the machine. I have to power off.
Also when copying large files > 8 GB the system tends to freez.
comment:12 by , 11 years ago
comment:13 by , 11 years ago
Confirmed on Windows 7 64 bit host with Windows 7 32 bit guest. Exactly the same behavior when trying to attach any of the two devices:
- Logitech QuickCam
- Novation Scarlet 2i2
Guest seems to install drivers, then hangs, then I try to detach the USB and entire virtual machine hangs. I forcibly close it, but it is still in processes eating about 25% CPU and I cannot kill it nor from Task Manager, nor from Sysinternals Procexp. The only way is to restart the host.
comment:14 by , 9 years ago
Having the same issue here while trying to connect usb webcam. Using Debian as a host, VM is Windows 7 x64. VirtualBox version is 4.3.18 r96516.
comment:15 by , 9 years ago
Still the same problem in 4.3.22 and 4.3.22.
Virtualbox won't start with USB audio card attached, detach it, it starts, attach it again and virtualbox is taking up 20% CPU.
comment:16 by , 7 years ago
This is still broken in VB 5.1.22 r115126, Windows 8.1 64Bit.
If a USB audio (e.g. headset/speaker) is inserted into a USB 1.0/2.0/3.0 host controller -> instant freeze.
Any update on this would be great. One thing is that it does not work, but a complete freeze seems a bit odd.
It would also indicate that it ends up in a loop somewhere in the USB code.
comment:17 by , 7 years ago
This is still broken in VB 5.1.26 r117224 (Qt5.6.2).
Operating System: Windows 10 Pro 64-bit Version 1703 (OS Build 15063.483)
Motherboard: ASUS Z170-Deluxe
USB Audio Device: astro A50
comment:18 by , 7 years ago
I concur, still broken in 5.1.26 Host OS = Arch Linux (64bit) latest stable kernel as of this post. Guest = Windows 7 Professional 64bit
Guest locks up and crashes when try to disconnect USB i-phone. dmesg:
usb 4-3: reset high-speed USB device number 3 using ehci-pci ipheth 4-3:4.2: Apple iPhone USB Ethernet device attached USBDevIo--1[4396]: segfault at e8 ip 00007fa17d7983aa sp 00007f9f37ffee80 error 4 in VBoxDD.so[7fa17d6eb000+197000]
comment:19 by , 7 years ago
I can confirm this is still broken on 5.1.28 r117968.
Steps to recreate.
Host is running 64 bit Linux Mint 18.2 with cinnamon desktop on an 8 core AMD FX 8350 (16 vcores) with 16GB ram. Guest is 64 bit Linux Mint 18.2 cinnamon desktop.
The guest has 6 cpu cores assigned and 6GB Ram on a PIIX3 chipset with I/O APIC enabled. Hardware virtualization options are enabled (default interface). 128MB video memory with 3d acceleration. Pulseaudio driver with ICH AC97 controller selected.
The USB controller is enabled with a USB 2.0 EHCI controller selected. I have detected a Plantronics GameCom 780/788 headset which is plugged in to the host on a USB 2.0 port and have added that to the filter list. It is initially left unselected (not mounted).
1) Start the VM. The machine runs correctly.
2) Log in. I get the desktop and can use the machine without errors and with no time restrictions.
3) Open the guest systems sound settings application. I can see default devices.
4) From the guest machines device menu select the usb option and mount the plantronics device.
At this point I see the plantronics device appear in the guests sound settings window after which the guest machine becomes unresponsive and never recovers. Attempting to shut down or power off the virtual machine fails. The only ways I can get rid of the VM are to reboot the host machine or use "kill -9" as root on all vbox processes.
comment:20 by , 6 years ago
I am also facing this issue with 5.2.14.
Tested on 2 Windows 10 Hosts with Windows 7 Guests
When I plug a USB headset into the host the Windows guests freeze and have to be killed. Also tested using 2 different headsets. One Plantronics and one Jabra. Ubuntu guest appears to be fine and do not lockup
The last entry in the VBox.log is always Audio: Host audio device configuration has changed
It is fine if I start the guest while the headset is connected to the host but as soon it is physically removed and reinserted the windows 7 guests freeze. Also some time happens after the Windows host is unlocked after a period of being locked. I gues because the usb device is suspended and then "woken up"
Note the USB headset is never attached to the guests
I have now downgraded to 5.2.6 where the issue doesn't exist and also audio input works (separate issue)
comment:21 by , 6 years ago
@iamtomb Could you please supply the verbose VBox.log file as shown here: https://www.virtualbox.org/wiki/AudioDebug
Thank you!
by , 5 years ago
Attachment: | VBox.2.log added |
---|
follow-up: 23 comment:22 by , 5 years ago
I'm experiencing similar problems with 6.0.8.
It might be related to audio in combination with Remote Desktop issues.
Steps to reproduce:
- Windows 10 host with Windows 7 Enterprise 64-bit guest VM
- Jabra USB Headset connected to the host
- Guest VM with audio enabled and RDP enabled
- Play a sound in the guest VM (just opening file explorer and try renaming a file triggers it for me)
The result for me is a frozen guest VM. Trying to close the guest VM does not work, only killing it from host taskbar "Close Window" aborts the VM.
Disabling RDP in the VM settings, OR disabling audio in the VM settings, OR disconnecting my USB headset from the host prevent the problem from occurring.
I've attached VBox.log from the affected VM.
Notable log lines:
00:00:01.709971 VRDP: TCP server failed to bind to a port: default 3389, range [3389] 00:00:01.710064 VRDP: Failed to start VRDP-IN thread, rc = VERR_NET_ADDRESS_IN_USE 00:00:01.710556 VRDE: Warning: failed to launch VRDE server (VERR_NET_ADDRESS_IN_USE): VirtualBox Remote Desktop Extension server can't bind to the port(s): 3389
I also see lots of audio buffering lines, with AudioVRDE always at 0% complete
00:00:11.820644 Audio: Stream '[AudioVRDE] Front' is buffering (0% complete)
follow-up: 24 comment:23 by , 5 years ago
Replying to Rutger42:
Notable log lines:
00:00:01.710064 VRDP: Failed to start VRDP-IN thread, rc = VERR_NET_ADDRESS_IN_USE 00:00:01.710172 VRDP: TCP server closed. 00:00:01.710556 VRDE: Warning: failed to launch VRDE server (VERR_NET_ADDRESS_IN_USE): VirtualBox Remote Desktop Extension server can't bind to the port(s): 3389
That means that there's another RDP server running, your host's. The VirtualBox RDP (VRDP) server cannot start. That can be ultra-confusing for the audio, since you've enabled the audio through VRDP, but VRDP can't start.
follow-up: 25 comment:24 by , 5 years ago
Replying to socratis:
That means that there's another RDP server running, your host's. The VirtualBox RDP (VRDP) server cannot start. That can be ultra-confusing for the audio, since you've enabled the audio through VRDP, but VRDP can't start.
I agree. But when VRDP cannot start for whatever reason, VirtualBox should not try to stream the audio through it either. If it waits until the audio output succeeds it will wait forever. Maybe that's what is causes the freeze of the guest VM? Note it is not even possible to close the guest VM or save it's state when it's frozen.
comment:25 by , 5 years ago
Replying to Rutger42:
But when VRDP cannot start for whatever reason, VirtualBox should not try to stream the audio through it either. If it waits until the audio output succeeds it will wait forever.
I agree. That sounds like a legitimate bug. But at the same time, it's not the same bug as this ticket is covering, sounds like a different bug, no?
On the other hand you have the fact that if your USB audio device isn't connected, you don't have the problem, even if VRDP isn't able to start, which sounds that you need a combination of settings for this to show.
Maybe that's what is causes the freeze of the guest VM?
Sounds like it. Something is indeed getting confused and the whole thing comes to a screeching halt.
Looks like this may be related to #9780. I experience the same problem with VirtualBox 4.1.6 r74713, running on a Windows 7 x64 host and running a Windows 7 x64 guest.
When the USB device is attached, the guest OS shows the USB audio device in the device manager, but it does not show up in the audio settings. After removing and reinstalling the driver it shows up in the audio settings. When I try to "Test" the audio device, the USB activity indicator lights up and the guest freezes. The VBox main window freezes as well. Trying to detach the USB device or powerdown/savestate the VM freezes the VM window also. I can kill the main window and VBoxSVC, but I can not kill the VM process. Unplugging the USB device from the host does not make a difference. The only way to recover from this situation seems to be to reboot the host.
This particular device identifies itself as C-Media Electronics Inc. USB Multimedia Audio Device.