#21212 new defect
Copying URL from guest to host causes the VM to crash (SharedClipboard)
回報者: | Francesco Bucciantini | 負責人: | |
---|---|---|---|
元件: | clipboard | 版本: | VirtualBox-7.0.2 |
關鍵字: | 副本: | francesco.bucciantini.adecco@… | |
Guest type: | Windows | Host type: | Linux |
描述
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:
附加檔案 (5)
更動歷史 (12)
2 年 前 由 編輯
comment:1 2 年 前 由 編輯
This is the forum post opened as a reference: https://forums.virtualbox.org/viewtopic.php?f=7&t=107612&p=526671
comment:2 2 年 前 由 編輯
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
comment:3 2 年 前 由 編輯
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
2 年 前 由 編輯
comment:4 21 月 前 由 編輯
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 21 月 前 由 編輯
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
comment:6 21 月 前 由 編輯
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 21 月 前 由 編輯
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
Screenshot of the URL I was trying to copy when the crash occurred