#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)
更動歷史 (29)
comment:2 12 年 前 由 編輯
[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?
跟進: 4 comment:3 12 年 前 由 編輯
That looks to me as though you are executing those commands on the host, or on a guest without Additions installed.
comment:4 12 年 前 由 編輯
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 年 前 由 編輯
附檔: | 新增 firstGuest.log |
---|
11 年 前 由 編輯
附檔: | 新增 SecondGuest.log |
---|
comment:5 11 年 前 由 編輯
- Copy "testcopy1" from first guest.
- Pastes "testcopy1" to second guest. (Correct)
- Copy "testcopy2" from first guest.
- 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 年 前 由 編輯
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 年 前 由 編輯
附檔: | 新增 firstGuestRun2.log |
---|
11 年 前 由 編輯
附檔: | 新增 secondGuestRun2.log |
---|
11 年 前 由 編輯
11 年 前 由 編輯
comment:7 11 年 前 由 編輯
- Copy "testCopy1Run2" from First Guest.
- Pastes "testCopy1Run2" to Second Guest. (Correct)
- Copy "testCopy2Run2" from First Guest.
- Pastes "testCopy1Run2" to Second Guest. (Wrong. It should paste "testCopy2Run2")
- Pastes "testCopy2Run2" to Host. (Correct)
跟進: 9 comment:8 11 年 前 由 編輯
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
comment:9 11 年 前 由 編輯
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.
跟進: 11 comment:10 11 年 前 由 編輯
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 年 前 由 編輯
附檔: | 新增 firstClipboardRun3.log |
---|
11 年 前 由 編輯
附檔: | 新增 secondClipboardRun3.log |
---|
11 年 前 由 編輯
11 年 前 由 編輯
comment:11 11 年 前 由 編輯
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.
- Press copy "testCopy1Run3" in First Guest.
- Nothing pastes to Second Guest. (Wrong) (clipboard is empty for Second Guest?)
- Pastes "testCopy1Run3" to Host. (Correct)
- Press copy again on "testCopy1Run3" in First Guest.
- Pastes "testCopy1Run3" to Second Guest. (Correct)
- Press copy on "testCopy2Run3" in First Guest.
- Pastes "testCopy2Run3" to Second Guest. (Correct)
- Press copy on "testCopy3Run3" in First Guest.
- Pastes "testCopy3Run3" to Second Guest. (Correct)
comment:13 11 年 前 由 編輯
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
跟進: 16 comment:15 11 年 前 由 編輯
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
comment:16 11 年 前 由 編輯
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.
comment:17 11 年 前 由 編輯
摘要: | 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 年 前 由 編輯
摘要: | 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) |
---|
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