VirtualBox

Opened 13 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)

VM.png (70.3 KB ) - added by BjoernC 13 years ago.
in this screenshot you can see the none-printable characters an how i had added this device to the filter
usbhost.txt (1.8 KB ) - added by BjoernC 13 years ago.
The output of the command VBoxManage list usbhost
Vboxversion.png (12.9 KB ) - added by BjoernC 13 years ago.
VBoxversion (screenshot taken of the helpmenue -> About)
virtualBox.png (30.5 KB ) - added by BjoernC 13 years ago.
Main error-message of VBox

Download all attachments as: .zip

Change History (18)

by BjoernC, 13 years ago

Attachment: VM.png added

in this screenshot you can see the none-printable characters an how i had added this device to the filter

comment:1 by Frank Mehnert, 13 years ago

Can you add the output of VBoxManage list usbhost?

by BjoernC, 13 years ago

Attachment: usbhost.txt added

The output of the command VBoxManage list usbhost

comment:2 by BjoernC, 13 years ago

the output of the command, is added in the file: usbhost.txt

comment:3 by Frank Mehnert, 13 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 BjoernC, 13 years ago

Attachment: Vboxversion.png added

VBoxversion (screenshot taken of the helpmenue -> About)

comment:4 by Frank Mehnert, 13 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?

by BjoernC, 13 years ago

Attachment: virtualBox.png added

Main error-message of VBox

comment:5 by BjoernC, 13 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 Donuts, 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="&#xF2; " 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 pavel12, 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.

Last edited 11 years ago by pavel12 (previous) (diff)

comment:8 by Michael Thayer, 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 Michael Thayer, 11 years ago

And the error message you get from VirtualBox. Text is sufficient, screen shot not needed.

comment:10 by Michael Thayer, 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 &#x3 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 Frank Mehnert, 8 years ago

Resolution: fixed
Status: newclosed

Hopefully fixed in VBox 5.0.18.

comment:12 by LocutusOfBorg, 7 years ago

Resolution: fixed
Status: closedreopened

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 LocutusOfBorg, 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 LocutusOfBorg, 7 years ago

<DeviceFilter name="STMicroelectronics STM32 STLink [0100]" active="true" vendorId="0483" productId="3748" revision="0100" manufacturer="STMicroelectronics" product="STM32 STLink" serialNumber="R&#xFF;h q&#x88;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&#xFF;h.q&#x88;| 00000010 48 55 30 06 04 67 |HU0..g|

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use