VirtualBox

12 年 前 建立

11 年 前 結束

#11792 closed defect (fixed)

Shared Clipboard --> Cannot copy and paste from one Guest to another Guest (2nd time) -> fixed in releases after May 29 2013 (4.2.x and later)

回報者: Quickbooks Office 負責人:
元件: clipboard 版本: VirtualBox 4.2.12
關鍵字: 副本: quickbooks.office@…
Guest type: all Host type: all

描述

Shared Clipboard --> Cannot copy and paste from one Guest to another Guest.

It only works the first time. Then it stops working.

Both guests here are Fedora 18.

Host is Fedora 18.

If you want to copy a second time, you need to first paste it to the host, and then copy again from the host, and paste it to the second guest.

附加檔案 (10)

firstGuest.log (3.4 KB ) - 11 年 前, 由 Quickbooks Office 新增
SecondGuest.log (4.5 KB ) - 11 年 前, 由 Quickbooks Office 新增
firstGuestRun2.log (6.5 KB ) - 11 年 前, 由 Quickbooks Office 新增
secondGuestRun2.log (8.4 KB ) - 11 年 前, 由 Quickbooks Office 新增
FirstGuestHost-2013-05-26-19-48-41.log (102.1 KB ) - 11 年 前, 由 Quickbooks Office 新增
secondGuestHost-2013-05-26-19-48-41.log (94.2 KB ) - 11 年 前, 由 Quickbooks Office 新增
firstClipboardRun3.log (7.6 KB ) - 11 年 前, 由 Quickbooks Office 新增
secondClipboardRun3.log (13.9 KB ) - 11 年 前, 由 Quickbooks Office 新增
firstGuestHostrun3-2013-05-27-13-13-15.log (104.4 KB ) - 11 年 前, 由 Quickbooks Office 新增
secondGuestHostrun3-2013-05-27-13-13-15.log (96.8 KB ) - 11 年 前, 由 Quickbooks Office 新增

下載所有附檔: .zip

更動歷史 (29)

comment:1 12 年 前Michael Thayer 編輯

It would be great if you could try to debug this a bit. We have guidelines on a wiki page<1>. Feel free to point out any possible improvements to the debugging guidelines!

<1> https://www.alldomusa.eu.org/wiki/X11Clipboard

comment:2 12 年 前Quickbooks Office 編輯

[user9@localhost ~]$ ps -Af | grep VBoxClient
user9     2267  2215  0 00:35 pts/0    00:00:00 grep --color=auto VBoxClient

The "--clipboard" is not there?

VBoxClient is at the end of the line? Shouldn't it be before "--color=auto"?

[user9@localhost ~]$ VBOX_RELEASE_LOG_DEST=file=/tmp/clipboard.log VBOX_RELEASE_LOG=+all.e.l.f VBoxClient -d --clipboard
bash: VBoxClient: command not found...
[user9@localhost ~]$ 

Then it says command not found?

comment:3 12 年 前Michael Thayer 編輯

That looks to me as though you are executing those commands on the host, or on a guest without Additions installed.

回覆:  3 comment:4 12 年 前Quickbooks Office 編輯

Replying to michael:

That looks to me as though you are executing those commands on the host, or on a guest without Additions installed.

yes I executed those commands on the host.

I will try again on the guests in a couple of days.

sorry about that.

11 年 前Quickbooks Office 編輯

附檔: 新增 firstGuest.log

11 年 前Quickbooks Office 編輯

附檔: 新增 SecondGuest.log

comment:5 11 年 前Quickbooks Office 編輯

  1. Copy "testcopy1" from first guest.
  2. Pastes "testcopy1" to second guest. (Correct)
  1. Copy "testcopy2" from first guest.
  2. Pastes "testcopy1" to second guest. (Wrong. It should paste "testcopy2" not "testcopy1")

Note this is same for Windows guests also (not just linux guests).

comment:6 11 年 前Quickbooks Office 編輯

I messed up.

I put

[user@localhost ~]$ VBOX_RELEASE_LOG=+shared_clipboard.e.l.f

instead of

[user@localhost ~]$ VBOX_RELEASE_LOG=+shared_clipboard.e.l.f VirtualBox

Attaching new log files (Run2).

11 年 前Quickbooks Office 編輯

附檔: 新增 firstGuestRun2.log

11 年 前Quickbooks Office 編輯

附檔: 新增 secondGuestRun2.log

11 年 前Quickbooks Office 編輯

11 年 前Quickbooks Office 編輯

comment:7 11 年 前Quickbooks Office 編輯

  1. Copy "testCopy1Run2" from First Guest.
  2. Pastes "testCopy1Run2" to Second Guest. (Correct)

  1. Copy "testCopy2Run2" from First Guest.
  2. Pastes "testCopy1Run2" to Second Guest. (Wrong. It should paste "testCopy2Run2")
  3. Pastes "testCopy2Run2" to Host. (Correct)

comment:8 11 年 前Michael Thayer 編輯

How nice. When we announce new clipboard data, the X toolkit checkes whether we already own the clipboard and suppresses the announcement if we do. Would you care to give this build a try? It is trunk (4.2.51) as I saw from the log that you were already running that.

http://www.alldomusa.eu.org/download/testcase/VirtualBox-4.2.51-86034-Linux_amd64.run

回覆:  8 comment:9 11 年 前Quickbooks Office 編輯

Replying to michael:

How nice. When we announce new clipboard data, the X toolkit checkes whether we already own the clipboard and suppresses the announcement if we do. Would you care to give this build a try? It is trunk (4.2.51) as I saw from the log that you were already running that.

http://www.alldomusa.eu.org/download/testcase/VirtualBox-4.2.51-86034-Linux_amd64.run

Thank you for the updated build.

Your fix works. You probably have to press copy twice the first time, but after that copy and paste works fine. So thank you.

comment:10 11 年 前Michael Thayer 編輯

Since I have debugged this this far, would you be interested to elaborate about that "press copy twice the first time"? And thanks for confirming that the fix works otherwise.

11 年 前Quickbooks Office 編輯

附檔: 新增 firstClipboardRun3.log

11 年 前Quickbooks Office 編輯

11 年 前Quickbooks Office 編輯

11 年 前Quickbooks Office 編輯

回覆:  10 comment:11 11 年 前Quickbooks Office 編輯

Replying to michael:

Since I have debugged this this far, would you be interested to elaborate about that "press copy twice the first time"? And thanks for confirming that the fix works otherwise.


  1. Press copy "testCopy1Run3" in First Guest.
  2. Nothing pastes to Second Guest. (Wrong) (clipboard is empty for Second Guest?)
  3. Pastes "testCopy1Run3" to Host. (Correct)

  1. Press copy again on "testCopy1Run3" in First Guest.
  2. Pastes "testCopy1Run3" to Second Guest. (Correct)

  1. Press copy on "testCopy2Run3" in First Guest.
  2. Pastes "testCopy2Run3" to Second Guest. (Correct)

  1. Press copy on "testCopy3Run3" in First Guest.
  2. Pastes "testCopy3Run3" to Second Guest. (Correct)

comment:12 11 年 前Michael Thayer 編輯

Interesting. Would you be able to get log files for that? Thank you.

回覆:  12 comment:13 11 年 前Quickbooks Office 編輯

Replying to michael:

Interesting. Would you be able to get log files for that? Thank you.

I posted the log files before the last comment :)

PS. I stopped logging after step 7 (but I can confirm step 8 and 9 works fine):


Inside guest 1:

https://www.alldomusa.eu.org/attachment/ticket/11792/firstClipboardRun3.log


Guest 1 log from host:

https://www.alldomusa.eu.org/attachment/ticket/11792/firstGuestHostrun3-2013-05-27-13-13-15.log


Inside guest 2:

https://www.alldomusa.eu.org/attachment/ticket/11792/secondClipboardRun3.log


Guest 2 log from host:

https://www.alldomusa.eu.org/attachment/ticket/11792/secondGuestHostrun3-2013-05-27-13-13-15.log


comment:14 11 年 前Michael Thayer 編輯

Excuse me, I did not see them. Thank you, I will take a look!

comment:15 11 年 前Michael Thayer 編輯

Please give this build a try. It seems that the Xt toolkit does not cope well with several operations on the clipboard in parallel, and now the other virtual machine is sending out two "new data" announcements on those occasions when the toolkit doesn't suppress the announcement. I could prevent that of course, but I preferred to keep the code simple. Which revealed this problem.

http://www.alldomusa.eu.org/download/testcase/VirtualBox-4.2.51-86055-Linux_amd64.run

回覆:  15 comment:16 11 年 前Quickbooks Office 編輯

Replying to michael:

Please give this build a try. It seems that the Xt toolkit does not cope well with several operations on the clipboard in parallel, and now the other virtual machine is sending out two "new data" announcements on those occasions when the toolkit doesn't suppress the announcement. I could prevent that of course, but I preferred to keep the code simple. Which revealed this problem.

http://www.alldomusa.eu.org/download/testcase/VirtualBox-4.2.51-86055-Linux_amd64.run

It works perfectly with the latest test build (4.2.51-86055). Thank you. Much appreciated.

最後由 Quickbooks Office 編輯於 11 年 前 (上一筆) (差異)

comment:17 11 年 前Michael Thayer 編輯

摘要: Shared Clipboard --> Cannot copy and paste from one Guest to another Guest (2nd time)Shared Clipboard --> Cannot copy and paste from one Guest to another Guest (2nd time) -> fixed in releases after May 29 2003 (4.2.x and later)

Thanks for the confirmation.

comment:18 11 年 前Michael Thayer 編輯

摘要: Shared Clipboard --> Cannot copy and paste from one Guest to another Guest (2nd time) -> fixed in releases after May 29 2003 (4.2.x and later)Shared Clipboard --> Cannot copy and paste from one Guest to another Guest (2nd time) -> fixed in releases after May 29 2013 (4.2.x and later)

comment:19 11 年 前Frank Mehnert 編輯

狀態: newclosed
處理結果: fixed

Fix is part of 4.2.14.

注意: 瀏覽 TracTickets 來幫助您使用待辦事項功能

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette