VirtualBox

Ticket #4092 (closed defect: fixed)

Opened 6 months ago

Last modified 2 months ago

Using clipboard on guest locks host from using it -> fixed in 3.0.6

Reported by: caldo_de_cana Assigned to:
Priority: major Component: clipboard
Version: VirtualBox 3.0.4 Keywords:
Cc: Guest type: Linux
Host type: Mac OS X

Description

If I copy some text in the guest OS with ctrl+c (Ubuntu 8.10), I can paste it in the host OS with cmd+v (Mac OS X 10.5), as expected.

But sometimes when I copy some text in the host OS with cmd+c (after the clipboard has had some text copied into it by the guest OS), the text will not be copied to the clipboard (neither in the host nor the guest OS). To get the clipboard back I have to randomly copy some text in the guest and host OS until I get what I wanted. I have not been able to find an exact cause or minimal steps to reproduce.

Attachments

strace.out (53.1 kB) - added by kurtraschke on 2009-07-26 20:38:22.
Output from strace while "VBoxClient --clipboard -d" consumes 100% CPU
VBox.log.zip (7.7 kB) - added by kurtraschke on 2009-08-02 21:55:17.
gdb.txt (7.2 kB) - added by kurtraschke on 2009-08-02 21:56:02.

Change History

2009-05-25 14:20:34 changed by michael

It would be great if you could find a recipe for reproducing this so that we can test.

2009-07-16 03:13:15 changed by kurtraschke

Unfortunately I cannot contribute a recipe for reproducing this bug, but I can say that I am seeing the same problem with Mac OS X 10.5.7, VirtualBox 3.0.2, and an Xubuntu 9.04 guest. I have found that when the clipboard malfunctions, the VBoxClient --clipboard process on the guest starts consuming around 75% of the guest CPU, and VirtualBox starts consuming 102-105% of the host CPU.

Can VBoxClient be configured to run verbosely or with debugging information?

2009-07-16 13:54:25 changed by michael

kurtraschke: did you update the Guest Additions to version 3.0.2 as well? If you did and still see this issue then I will look at providing you with a version of VBoxClient that can run more verbosely.

2009-07-26 20:38:22 changed by kurtraschke

  • attachment strace.out added.

Output from strace while "VBoxClient --clipboard -d" consumes 100% CPU

2009-07-26 20:39:47 changed by kurtraschke

I have updated the Guest Additions to 3.0.2, and the issue persists. I have attached the output from a run of strace on VBoxClient --clipboard while the VBoxClient process was consuming full CPU.

2009-07-31 10:55:45 changed by michael

Sorry for the delay in getting back to you! Here are two test builds of the Additions, one which works on a 32bit (K/X)Ubuntu 9.04 guest, and one for a 64bit one. As usual, the builds should only be used for testing this particular problem (and the links will in fact expire in a week or so).

http://www.virtualbox.org/download/testcase/VBoxGuestAdditions-r50558-x86-Ubuntu-9.04.iso

and

http://www.virtualbox.org/download/testcase/VBoxGuestAdditions-r50558-amd64-Ubuntu-9.04.iso

If you install the right one of these, and run VBoxClient -d --clipboard with the following environment variables set:

VBOX_LOG_DEST=file
VBOX_LOG=all.e.l.l2.l3.f

it will produce a log file which should provide more information about what it is doing. Since these builds also include debugging symbols, you could also (if you have experience with that sort of thing) break in with a debugger when the programme gets stuck and get an all-threads backtrace and information about local variables ("info locals" in gdb IIRC) for both threads.

2009-08-02 21:55:17 changed by kurtraschke

  • attachment VBox.log.zip added.

2009-08-02 21:56:02 changed by kurtraschke

  • attachment gdb.txt added.

2009-08-02 22:02:50 changed by kurtraschke

I've attached logs from the debugging build of VBoxClient posted above. In this case, all I had to do in order to get VBoxClient to go into a loop was copy some text onto the guest clipboard.

2009-08-13 16:02:12 changed by michael

#4619 has been marked a duplicate of this.

(follow-up: ↓ 11 ) 2009-08-14 18:09:02 changed by michael

I believe I may have fixed this problem. If you would like to try out the updated version of the Guest Additions you can download them via the link below. This is a test build of the future VirtualBox 3.0.6 Additions. Obligatory disclaimer here.

http://www.virtualbox.org/download/testcase/VBoxGuestAdditions-r51082.iso

2009-08-18 20:09:53 changed by rct

I've experienced the problem of the host clipboard getting locked using a windows XPSP3 host with a linux guest (mandriva 2009.1, kde 4.2.4). Virtualbox version is 3.0.4. (Note: KDE's klipper seems to exacerbate the problem.)

Michael: Is the fix you've posted in VBoxGuestAdditions-r51082.iso likely to have any effect on window's hosts? Should I try it?

Thanks.

2009-08-24 14:35:00 changed by michael

#4792 has been marked a duplicate of this ticket.

rct: if you are seeing similar issues on a Windows host then the fix might help there too. It should basically prevent the Linux or Solaris guest from permanently grabbing the host clipboard under certain circumstances.

(in reply to: ↑ 8 ) 2009-09-03 11:12:35 changed by jnifoo

My original bug report was a duplicate of this one (http://www.virtualbox.org/ticket/4619)

Returning from holidays, want to test this fix, but unfortunately, the link is not working now. Any new build to test ?

http://www.virtualbox.org/download/testcase/VBoxGuestAdditions-r51082.iso

2009-09-03 11:27:06 changed by michael

  • version changed from VirtualBox 2.2.0 to VirtualBox 3.0.4.

You could try out the 3.0.6 Beta version, see http://forums.virtualbox.org/viewforum.php?f=15&start=0.

2009-09-03 12:16:02 changed by jnifoo

Ok, just installed the 3.0.6 and the last guest addons, and the problem was solved. Thanks for this fix.

2009-09-03 13:33:19 changed by michael

  • summary changed from Using clipboard on guest locks host from using it. to Using clipboard on guest locks host from using it -> fixed in 3.0.6.

Thanks for the feedback.

2009-09-10 08:29:54 changed by frank

  • status changed from new to closed.
  • resolution set to fixed.

2009-09-16 17:46:06 changed by Julian Mehnle

It seems you managed to isolate and fix this very long standing bug that has been annoying me to death since at least VirtualBox 2.0 with a Linux 2.6.26 guest on a Mac OS X 10.5 host. Great job and thank you!

© 2009 Sun Microsystems, Inc.
ContactPrivacy policy