#8801 reopened defect
only printable Serial-Number allowed for the USB-filter
回報者: | BjoernC | 負責人: | |
---|---|---|---|
元件: | USB | 版本: | VirtualBox 4.0.6 |
關鍵字: | 副本: | ||
Guest type: | Windows | Host type: | Linux |
描述
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.
附加檔案 (4)
更動歷史 (18)
comment:3 14 年 前 由 編輯
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.
comment:4 14 年 前 由 編輯
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 14 年 前 由 編輯
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 13 年 前 由 編輯
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 11 年 前 由 編輯
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 11 年 前 由 編輯
If you can reproduce this, could you please post the relevant extract of the .vbox file like the commenter before you? Thanks.
comment:9 11 年 前 由 編輯
And the error message you get from VirtualBox. Text is sufficient, screen shot not needed.
comment:10 11 年 前 由 編輯
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:12 7 年 前 由 編輯
狀態: | closed → reopened |
---|---|
處理結果: | fixed |
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 7 年 前 由 編輯
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 7 年 前 由 編輯
<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