VirtualBox

Opened 18 months ago

Last modified 11 months ago

#21212 new defect

Copying URL from guest to host causes the VM to crash (SharedClipboard)

Reported by: Francesco Bucciantini Owned by:
Component: clipboard Version: VirtualBox-7.0.2
Keywords: Cc: francesco.bucciantini.adecco@…
Guest type: Windows Host type: Linux

Description

Host OS: Fedora Linux 36 x64 X11 (Xorg) kernel 5.19.16 Guest OS: Windows XP Professional x86 (with Microsoft Premier Extended Support Updates 'till July 2019) Bug: Copying URL from guest to host causes the VM to crash

Bug Description: When Shared Clipboard is enabled, it's possible to copy text from guest to host and vice versa, however when "particular" things like URL and other particularly formatted texts are copied (like from Chrome etc) those fail to be converted properly and therefore cannot be pasted to the host. On top of that, this might lead the guest to crash, which of course is bad.

To highlight the relevant portion of the logs, I'd say that this should give a pretty good insight:

08:37:22.815753 Shared Clipboard: Signalling host about guest clipboard data failed with VERR_NOT_FOUND
08:37:22.816014 Shared Clipboard: Signalling host about guest clipboard data failed with VERR_NOT_FOUND
08:37:22.816241 Shared Clipboard: Signalling host about guest clipboard data failed with VERR_NOT_FOUND
08:37:22.816442 Shared Clipboard: Signalling host about guest clipboard data failed with VERR_NOT_FOUND
08:37:22.816727 Shared Clipboard: Signalling host about guest clipboard data failed with VERR_NOT_FOUND
08:37:22.816894 Shared Clipboard: Signalling host about guest clipboard data failed with VERR_NOT_FOUND
08:37:52.813496 Shared Clipboard: Requesting data in format 0x1 for X11 host failed with VERR_TIMEOUT
08:37:52.813528 Shared Clipboard: Converting VBox formats 'UNICODETEXT' to 'UTF8_STRING' for X11 (idxFmtX11=1, fmtX11=3, atomTarget='UTF8_STRING') failed, rc=VERR_TIMEOUT
08:38:22.814024 Shared Clipboard: Error reading host clipboard data from X11, rc=VERR_TIMEOUT
08:38:22.814071 Shared Clipboard: Reading host clipboard data failed with VERR_TIMEOUT
08:38:22.814101 Shared Clipboard: Requesting data in format 0x1 for X11 host failed with VERR_TIMEOUT
08:38:22.814156 Shared Clipboard: Converting VBox formats 'UNICODETEXT' to 'UTF8_STRING' for X11 (idxFmtX11=1, fmtX11=3, atomTarget='UTF8_STRING') failed, rc=VERR_TIMEOUT
08:38:22.814179 Shared Clipboard: Converting X11 format 'UTF8_STRING' (idxFmtX11=1) to VBox format 0x1 failed, rc=VERR_NO_DATA

To put this into context, I was trying to copy the following URL from Chrome Canary via an RDP session from a Windows XP VM:

Attachments (5)

Screenshot from 2022-10-28 17-15-05.png (71.6 KB ) - added by Francesco Bucciantini 18 months ago.
Screenshot of the URL I was trying to copy when the crash occurred
WindowsEmbedded-2022-10-28-16-46-10.log (142.6 KB ) - added by Francesco Bucciantini 18 months ago.
Full Log 'till the crash
WindowsEmbedded-2022-12-16-16-48-27.zip (35.4 KB ) - added by Francesco Bucciantini 17 months ago.
Virtualbox 7.0.5 r154733 Crash Logs
WindowsEmbedded-2023-02-05-10-11-50.zip (23.7 KB ) - added by Francesco Bucciantini 15 months ago.
WindowsEmbedded-2023-06-14-11-43-57.zip (24.2 KB ) - added by Francesco Bucciantini 11 months ago.
Virtualbox 7.0.97 r157070 crash logs

Download all attachments as: .zip

Change History (12)

by Francesco Bucciantini, 18 months ago

Screenshot of the URL I was trying to copy when the crash occurred

by Francesco Bucciantini, 18 months ago

Full Log 'till the crash

comment:1 by Francesco Bucciantini, 18 months ago

This is the forum post opened as a reference: https://forums.virtualbox.org/viewtopic.php?f=7&t=107612&p=526671

comment:2 by Francesco Bucciantini, 17 months ago

Fast forward to the 16th of December and Virtualbox 7.0.5 r154733 and the issue is still there.

Host OS: Fedora Linux 37 x64 X11 (Xorg) kernel 6.0.11 Guest OS: Windows XP Professional x86 (with Microsoft Premier Extended Support Updates 'till July 2019) VirtualBox Version: 7.0.5 r154733 Extensions: 7.0.5 r154733

I've just got a VM to crash with:

79:46:18.092408 Shared Clipboard: Signalling host about guest clipboard data failed with VERR_NOT_FOUND
79:46:18.092563 Shared Clipboard: Signalling host about guest clipboard data failed with VERR_NOT_FOUND
79:46:18.092682 Shared Clipboard: Signalling host about guest clipboard data failed with VERR_NOT_FOUND
79:46:18.092874 Shared Clipboard: Signalling host about guest clipboard data failed with VERR_NOT_FOUND
79:46:18.093031 Shared Clipboard: Signalling host about guest clipboard data failed with VERR_NOT_FOUND
79:46:18.093196 Shared Clipboard: Signalling host about guest clipboard data failed with VERR_NOT_FOUND
79:46:18.093354 Shared Clipboard: Signalling host about guest clipboard data failed with VERR_NOT_FOUND
79:46:18.093513 Shared Clipboard: Signalling host about guest clipboard data failed with VERR_NOT_FOUND
79:46:18.093703 Shared Clipboard: Signalling host about guest clipboard data failed with VERR_NOT_FOUND
79:46:18.093914 Shared Clipboard: Signalling host about guest clipboard data failed with VERR_NOT_FOUND
79:46:18.094075 Shared Clipboard: Signalling host about guest clipboard data failed with VERR_NOT_FOUND
79:46:18.094241 Shared Clipboard: Signalling host about guest clipboard data failed with VERR_NOT_FOUND
79:46:48.081934 Shared Clipboard: Requesting data in format 0x1 for X11 host failed with VERR_TIMEOUT
79:46:48.081991 Shared Clipboard: Converting VBox formats 'UNICODETEXT' to 'UTF8_STRING' for X11 (idxFmtX11=1, fmtX11=3, atomTarget='UTF8_STRING') failed, rc=VERR_TIMEOUT
79:47:18.082828 Shared Clipboard: Error reading host clipboard data from X11, rc=VERR_TIMEOUT
79:47:18.082858 Shared Clipboard: Reading host clipboard data failed with VERR_TIMEOUT
79:47:18.083301 Shared Clipboard: Requesting data in format 0x1 for X11 host failed with VERR_TIMEOUT
79:47:18.083338 Shared Clipboard: Signalling host about guest clipboard data failed with VERR_NOT_FOUND
79:47:18.083365 Shared Clipboard: Converting VBox formats 'UNICODETEXT' to 'UTF8_STRING' for X11 (idxFmtX11=1, fmtX11=3, atomTarget='UTF8_STRING') failed, rc=VERR_TIMEOUT
79:47:18.083385 Shared Clipboard: Converting X11 format 'UTF8_STRING' (idxFmtX11=1) to VBox format 0x1 failed, rc=VERR_NO_DATA
Last edited 17 months ago by Francesco Bucciantini (previous) (diff)

by Francesco Bucciantini, 17 months ago

Virtualbox 7.0.5 r154733 Crash Logs

comment:3 by Francesco Bucciantini, 15 months ago

A brief update on the topic given that it's been a while since October 2022. I tested the same scenario with a new version of Virtualbox, Fedora and the linux kernel and the issue is still there:

Host OS: Fedora Linux 37 x64 X11 (Xorg) kernel 6.1.9
Guest OS: Windows XP Professional x86 (with Microsoft Premier Extended Support Updates 'till July 2019)
VirtualBox Version: 7.0.7 r155584
Extensions: 7.0.7 r155584

The important bits leading to the crash:

00:48:18.360246 Shared Clipboard: Requesting data in format 0x1 for X11 host failed with VERR_NO_DATA
00:48:18.360297 Shared Clipboard: Converting VBox formats 'UNICODETEXT' to 'UTF8_STRING' for X11 (idxFmtX11=1, fmtX11=3, atomTarget='UTF8_STRING') failed, rc=VERR_NO_DATA
00:50:04.683011 VMMDev: Guest Log: VBOXNP: DLL loaded.
00:50:56.977375 VMMDev: Guest Log: VBOXNP: DLL unloaded.
00:50:58.955986 VMMDev: Guest Log: VBOXNP: DLL loaded.
00:51:52.499313 VMMDev: Guest Log: VBOXNP: DLL unloaded.
00:54:39.565386 Shared Clipboard: Requesting data in format 0x1 for X11 host failed with VERR_TIMEOUT
00:54:39.565443 Shared Clipboard: Converting VBox formats 'UNICODETEXT' to 'UTF8_STRING' for X11 (idxFmtX11=1, fmtX11=3, atomTarget='UTF8_STRING') failed, rc=VERR_TIMEOUT
00:55:09.569730 Shared Clipboard: Requesting data in format 0x1 for X11 host failed with VERR_TIMEOUT
00:55:09.569752 Shared Clipboard: Converting VBox formats 'UNICODETEXT' to 'UTF8_STRING' for X11 (idxFmtX11=1, fmtX11=3, atomTarget='UTF8_STRING') failed, rc=VERR_TIMEOUT
00:55:09.575317 Shared Clipboard: Signalling host about guest clipboard data failed with VERR_NOT_FOUND
00:55:39.575623 Shared Clipboard: Requesting data in format 0x1 for X11 host failed with VERR_TIMEOUT
00:55:39.575657 Shared Clipboard: Converting VBox formats 'UNICODETEXT' to 'UTF8_STRING' for X11 (idxFmtX11=1, fmtX11=3, atomTarget='UTF8_STRING') failed, rc=VERR_TIMEOUT
00:56:09.578115 Shared Clipboard: Requesting data in format 0x1 for X11 host failed with VERR_TIMEOUT
00:56:09.578158 Shared Clipboard: Converting VBox formats 'UNICODETEXT' to 'UTF8_STRING' for X11 (idxFmtX11=1, fmtX11=3, atomTarget='UTF8_STRING') failed, rc=VERR_TIMEOUT
00:56:09.583929 Shared Clipboard: Signalling host about guest clipboard data failed with VERR_NOT_FOUND
00:56:09.584371 Shared Clipboard: Signalling host about guest clipboard data failed with VERR_NOT_FOUND
00:56:09.584811 Shared Clipboard: Signalling host about guest clipboard data failed with VERR_NOT_FOUND

Full Logs: https://forums.virtualbox.org/download/file.php?id=49078

by Francesco Bucciantini, 15 months ago

comment:4 by Francesco Bucciantini, 11 months ago

Hi there, this bug has been reproduced and confirmed by Bushido on the forum as well, here: https://forums.virtualbox.org/viewtopic.php?t=109369&sid=a0764c79237b02a00804b8039f983556

He's using Ubuntu 22.04.2 LTS with Windows 10 Home 21H2 and Virtualbox 6.1.38. Looks like the issue was there in version 6.x as well.

Here are his logs:

Log1: https://forums.virtualbox.org/download/file.php?id=49906

Log2: https://forums.virtualbox.org/download/file.php?id=49916

Log3: https://forums.virtualbox.org/download/file.php?id=49927

comment:5 by Francesco Bucciantini, 11 months ago

I just had another crash today when I tried to copy a URL from Chrome Canary 116 in the VM and paste it into Slack on Linux.

OS: Fedora 38 Virtualbox version: 7.0.97 r157070

Log: https://forums.virtualbox.org/download/file.php?id=50080

by Francesco Bucciantini, 11 months ago

Virtualbox 7.0.97 r157070 crash logs

comment:6 by Francesco Bucciantini, 11 months ago

According to the mods of the forum:

Scottogus:

some apps don't "copy" to the clipboard in the normal sense by shoving a bunch of text out, but instead push out a pointer to the text to be copied, and the source and destination apps communicate directly to transfer the data.

mpack:

The source app would usually be rather complex and capable of rendering data in lots of ways [...] if it's much more than a simple text editor then it probably isn't compatible. It doesn't matter if you consider the text to be unformatted - it's the nature of the editor that matters, not the nature of the text. [...] The app exposes a COM interface through which the receiving app can negotiate to have the data rendered in any way it prefers. There is almost zero chance that this can be made transparent to some random app running in a different OS on a different PC.

comment:7 by Francesco Bucciantini, 11 months ago

This is, again, what led to the crash:

03:02:07.774055 Shared Clipboard: Requesting data in format 0x1 for X11 host failed with VERR_TIMEOUT
03:02:07.774089 Shared Clipboard: Converting VBox formats 'UNICODETEXT' to 'UTF8_STRING' for X11 (idxFmtX11=1, fmtX11=3, atomTarget='UTF8_STRING') failed, rc=VERR_TIMEOUT
03:02:37.774656 Shared Clipboard: Requesting data in format 0x1 for X11 host failed with VERR_TIMEOUT
03:02:37.774687 Shared Clipboard: Converting VBox formats 'UNICODETEXT' to 'UTF8_STRING' for X11 (idxFmtX11=1, fmtX11=3, atomTarget='UTF8_STRING') failed, rc=VERR_TIMEOUT
03:03:07.775011 Shared Clipboard: Requesting data in format 0x1 for X11 host failed with VERR_TIMEOUT
03:03:07.775050 Shared Clipboard: Converting VBox formats 'UNICODETEXT' to 'STRING' for X11 (idxFmtX11=4, fmtX11=2, atomTarget='STRING') failed, rc=VERR_TIMEOUT
03:03:37.775298 Shared Clipboard: Requesting data in format 0x1 for X11 host failed with VERR_TIMEOUT
03:03:37.775322 Shared Clipboard: Converting VBox formats 'UNICODETEXT' to 'TEXT' for X11 (idxFmtX11=5, fmtX11=2, atomTarget='TEXT') failed, rc=VERR_TIMEOUT
03:04:07.775676 Shared Clipboard: Requesting data in format 0x1 for X11 host failed with VERR_TIMEOUT
03:04:07.775725 Shared Clipboard: Converting VBox formats 'UNICODETEXT' to 'text/plain' for X11 (idxFmtX11=6, fmtX11=2, atomTarget='text/plain') failed, rc=VERR_TIMEOUT
03:04:07.780861 Shared Clipboard: Signalling host about guest clipboard data failed with VERR_NOT_FOUND
03:04:07.781170 Shared Clipboard: Signalling host about guest clipboard data failed with VERR_NOT_FOUND
03:04:07.781458 Shared Clipboard: Signalling host about guest clipboard data failed with VERR_NOT_FOUND
03:04:07.781864 Shared Clipboard: Signalling host about guest clipboard data failed with VERR_NOT_FOUND
03:04:07.782069 Shared Clipboard: Signalling host about guest clipboard data failed with VERR_NOT_FOUND
03:04:37.799219 Shared Clipboard: Requesting data in format 0x1 for X11 host failed with VERR_TIMEOUT
03:04:37.799244 Shared Clipboard: Converting VBox formats 'UNICODETEXT' to 'UTF8_STRING' for X11 (idxFmtX11=1, fmtX11=3, atomTarget='UTF8_STRING') failed, rc=VERR_TIMEOUT
03:05:07.799509 Shared Clipboard: Error reading host clipboard data from X11, rc=VERR_TIMEOUT
03:05:07.799537 Shared Clipboard: Reading host clipboard data failed with VERR_TIMEOUT
03:05:07.799543 Shared Clipboard: Requesting data in format 0x1 for X11 host failed with VERR_TIMEOUT
03:05:07.799558 Shared Clipboard: Converting VBox formats 'UNICODETEXT' to 'UTF8_STRING' for X11 (idxFmtX11=1, fmtX11=3, atomTarget='UTF8_STRING') failed, rc=VERR_TIMEOUT
03:05:07.799567 Shared Clipboard: Converting X11 format 'UTF8_STRING' (idxFmtX11=1) to VBox format 0x1 failed, rc=VERR_NO_DATA
03:05:07.799772 Shared Clipboard: Signalling host about guest clipboard data failed with VERR_NOT_FOUND
03:05:37.799989 Shared Clipboard: Requesting data in format 0x1 for X11 host failed with VERR_TIMEOUT
03:05:37.799989 Shared Clipboard: Converting VBox formats 'UNICODETEXT' to 'UTF8_STRING' for X11 (idxFmtX11=1, fmtX11=3, atomTarget='UTF8_STRING') failed, rc=VERR_TIMEOUT
03:05:37.799989 Shared Clipboard: Error reading host clipboard data from X11, rc=VERR_TIMEOUT
03:05:37.799989 Shared Clipboard: Reading host clipboard data failed with VERR_TIMEOUT
03:05:37.799989 Shared Clipboard: Converting X11 format 'UTF8_STRING' (idxFmtX11=1) to VBox format 0x1 failed, rc=VERR_NO_DATA
03:05:37.799989 Shared Clipboard: Signalling host about guest clipboard data failed with VERR_NOT_FOUND
03:06:07.801179 Shared Clipboard: Error reading host clipboard data from X11, rc=VERR_TIMEOUT
03:06:07.801230 Shared Clipboard: Reading host clipboard data failed with VERR_TIMEOUT
03:06:07.801260 Shared Clipboard: Requesting data in format 0x1 for X11 host failed with VERR_TIMEOUT
03:06:07.801276 Shared Clipboard: Converting VBox formats 'UNICODETEXT' to 'UTF8_STRING' for X11 (idxFmtX11=1, fmtX11=3, atomTarget='UTF8_STRING') failed, rc=VERR_TIMEOUT
03:06:07.801328 Shared Clipboard: Converting X11 format 'UTF8_STRING' (idxFmtX11=1) to VBox format 0x1 failed, rc=VERR_NO_DATA
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use