VirtualBox

Opened 5 years ago

Last modified 4 years ago

#18927 assigned defect

VBoxClient clipboard fails to copy rich text from guest to host

Reported by: philip Owned by: pentagonik
Component: clipboard Version: VirtualBox 6.0.12
Keywords: Cc:
Guest type: Linux Host type: Mac OS X

Description

A variant of this bug is back in 6.0 (I tested 6.0.10 and 6.0.12):

https://www.virtualbox.org/ticket/15782

https://www.virtualbox.org/ticket/16242

Rich text (e.g., something from a web page) does not copy from guest to host; but plain text does. Expected behavior is for it to copy as plain text.

The workaround is to paste rich text into a simple text file within the guest, re-select said (what is now) plain text, then copy that to the host.

The silver lining here is copying rich text does not completely break clipboard functionality as it did in the previous bugs (thus requiring killing VBoxClient).

Change History (15)

in reply to:  description comment:1 by Socratis, 5 years ago

Replying to philip:

A variant of this bug is back in 6.0 (I tested 6.0.10 and 6.0.12):

This is not a variant of the previous bugs, this *is* the same bug, a duplicate of #16242.

The silver lining here is copying rich text does not completely break clipboard functionality as it did in the previous bugs (thus requiring killing VBoxClient).

The problem was "temporarily" resolved by not allow copying RTF/HTML text, thus preventing the crash. A proper solution has yet to be implemented.

comment:2 by philip, 4 years ago

Thank you, although this began working fine; as bug #15782 was closed as a result of the fix. I did not re-experience this bug until after upgrading to 6.x. In other words, copy-n-paste was working fine; as if the fancy text was being stripped into plain text.

Version 0, edited 4 years ago by philip (next)

comment:3 by pentagonik, 4 years ago

Just tried to reproduce the behavior using latest VirtualBox 6.0.14 with according 6.0.14 Guest Additions. For me this works as it should -- tested with LibreOffice Writer and Firefox running on the guest with some rich text data. The data then gets transferred to the host as plain text data as it should.

Can you please repeat your test with 6.0.14 + Additions? Thanks!

comment:4 by pentagonik, 4 years ago

Owner: set to pentagonik
Status: newassigned

comment:5 by philip, 4 years ago

Thank you @pentagonik; I use 6.0.14 (guest additions also) and still suffer from this problem.

How exactly might I debug this? Also, should I upgrade to 6.1.0 (released yesterday) and work from there or should we figure out the problem/fix for 6.0.x?

comment:6 by pentagonik, 4 years ago

Does this only affect your Mac host, or can you retry it on a different host, e.g. Linux?

comment:7 by philip, 4 years ago

Sorry @pentagonik, I only have a macOS host available. Is there something I can do to help debug this on macOS 10.14.4? I suspect it's a macOS host specific problem.

comment:8 by philip, 4 years ago

For the record, 6.1.2 does not fix this.

comment:9 by Peter Meiser, 4 years ago

Copy&Paste from Firefox or Thunderbird in a Ubuntu 18.04 guest to a macOS host doesn't work.

Workaround for Firefox 73.0.1 is the copy plain text addon, but I couldn't find any addon for Thunderbird 68.4.1.

comment:10 by philip, 4 years ago

Nice Firefox workaround @meiser1979, thanks.

An update: upgrading from 6.1.2->6.1.4 completely breaks copy-n-paste for me; not even plain text works. This is after updating app/guest/extensions to 6.1.4 and restarting. Downgrading everything to 6.1.2 works fine.

In other words, I recommend users not upgrade to 6.1.4.

in reply to:  10 comment:11 by Frank Batschulat (Oracle), 4 years ago

Replying to philip:

An update: upgrading from 6.1.2->6.1.4 completely breaks copy-n-paste for me; not even plain text works. This is after updating app/guest/extensions to 6.1.4 and restarting. Downgrading everything to 6.1.2 works fine.


This is bug #19336 see there for test builds with the fix.

comment:12 by philip, 4 years ago

Thanks @fbatschu.

I'm in the process of figuring out how to downgrade from 6.1 to 5.2 (I'm certain one of the 5.2 versions works fine for mac; just need to find the latest one that does); I'll report back here once found, as a suggested workaround.

comment:13 by bird, 4 years ago

I've reproduced the problem and hopefully fixed it. (Also added support for actually putting/getting the HTML variant of the data being copied on/from the mac clipboard. So, I got markup copied from OpenOffice on the mac host into libre office in side the ubuntu 18.04 guest.)

Fix will be included in the next release (soon).

comment:14 by Peter Meiser, 4 years ago

Firefox and Thunderbird copy'n'paste between Ubuntu 18.04 guest and macOS 10.13.6 host works fine with 6.1.6. Many thanks!!!

Last edited 4 years ago by Peter Meiser (previous) (diff)

comment:15 by philip, 4 years ago

Nice, I also happily confirm that this is fixed! Thanks @bird!

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use