Opened 14 years ago
Last modified 7 years ago
#8801 reopened defect
only printable Serial-Number allowed for the USB-filter
Reported by: | BjoernC | Owned by: | |
---|---|---|---|
Component: | USB | Version: | VirtualBox 4.0.6 |
Keywords: | Cc: | ||
Guest type: | Windows | Host type: | Linux |
Description
Hi, when i want to make an permanent filter for an USB-Device, which has none-printable characters, the whole VM will crash at the next startup. The failure which is shown, said that in line X a wrong value has been readed. For a workaround, the serial-number could be deleted and the VM will start. The USB-device was an ST-Link from STMicroelectronics.
Attachments (4)
Change History (18)
by , 14 years ago
comment:3 by , 14 years ago
Thanks. Are you sure that you are using VBox 4.0.6? Sorry for asking, but in 4.0.4 we fixed a related bug so I want to be sure.
by , 14 years ago
Attachment: | Vboxversion.png added |
---|
VBoxversion (screenshot taken of the helpmenue -> About)
comment:4 by , 14 years ago
Thanks. When this crash happens, which process crashes, the VM process (VirtualBox) or the VBoxSVC daemon? Could you provide me a Core_dump?
comment:5 by , 14 years ago
I've tried to generate the dumpfiles, but there are no entries. But the Problem ist not, that VBox crashes. The main Problem is, that VBox is not able to read the *.vbox file. The screenshot, which shows the error-message i will attach to this error report.
comment:6 by , 13 years ago
I am experiencing this problem with VirtualBox 4.0.12 on Xubuntu 9.10 x86 host.
I have a Compro VideoMate C200 USB video capture device, USB VID:PID 185B:0200. It seems to have garbage/binary/non-printable characters for its serial number. lsusb -vv shows a couple of garbage characters for the iSerial field.
The problem seems to be that VirtualBox writes the garbage/binary characters to the .vbox config file. Then when you next start the VirtualBox Manager, it refuses to start the VM. I got a similar error message to the original submitter, along with this text: "PCDATA invalid Char value 3."
Looking at the .vbox file for the VM, there is this line:
<DeviceFilter name="Compro VM C200 [0001]" active="true" vendorId="185b" productId="0200" revision="0001" manufacturer="Compro" product="VM C200" serialNumber="ò " remote="0"/>
(Note the serialNumber field contains garbage which may not reproduce properly. The invalid character shows as a little box with 00 03 in with the font I'm using here.)
After manually editing the .vbox file to remove the serialNumber field from that line, I could use the VM again.
comment:7 by , 11 years ago
I got the same error in VirtualBox v. 4.2.16 on Ubuntu after adding a USB device filter for an STLink/v2. There were strange looking character in the "serialNumber" field. After I manually deleted the affected lines from the .vbox file, the error would go away.
comment:8 by , 11 years ago
If you can reproduce this, could you please post the relevant extract of the .vbox file like the commenter before you? Thanks.
comment:9 by , 11 years ago
And the error message you get from VirtualBox. Text is sufficient, screen shot not needed.
comment:10 by , 11 years ago
I have tried and failed to reproduce this by modifying the serial number string read from a USB device on my Ubuntu 13.04 host in the debugger. VirtualBox accepts the string, but simply strips the problematic character when it writes out the .vbox file. If I manually modify the .vbox file to contain a  character in the string I do prevent VirtualBox from loading it; furthermore the character dropped from the string obviously prevents the filter from being useful. Nonetheless I would be interested to be able to reproduce your error.
comment:11 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Hopefully fixed in VBox 5.0.18.
comment:12 by , 7 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Hello, I have confirmation that this seems to be still an issue with 5.1.26, I'll provide new details when I get them
comment:13 by , 7 years ago
Still present in 5.1.26. After creating a filter for STM32 development board, VM is marked 'unavailable'. Removing the offending line from the .vbox file makes the VM available again/
comment:14 by , 7 years ago
<DeviceFilter name="STMicroelectronics STM32 STLink [0100]" active="true" vendorId="0483" productId="3748" revision="0100" manufacturer="STMicroelectronics" product="STM32 STLink" serialNumber="Rÿh qˆHU0 g" remote="0"/>
hexdump of the serialNumber only:
Graham, [08.09.17 09:54] 00000000 52 26 23 78 46 46 3b 68 06 71 26 23 78 38 38 3b |Rÿh.qˆ| 00000010 48 55 30 06 04 67 |HU0..g|
in this screenshot you can see the none-printable characters an how i had added this device to the filter