vmware / open-vm-tools

Official repository of VMware open-vm-tools project
http://sourceforge.net/projects/open-vm-tools/
2.26k stars 427 forks source link

After Disabling VMWare Drag-Drop -- Drag-Click @ Far-Left (or Top, or Right or Bottom) Will Freeze Temporarily #617

Open amiga-500 opened 2 years ago

amiga-500 commented 2 years ago

Describe the bug

Using Ubuntu 20.04.

After disabling the drag/drop feature of VMWare Workstation i notice when one attempts to click (or drag) when at the far left or far right corner of the desktop then everything freezes for maybe 1-2 seconds. Nothing crashes. Just a pause. The same thing happens at the very top and bottom. The areas where the task bar is not in the way.

To be clear, when i say a pause i mean that your mouse will move just fine during this key moment, but if u were say click-dragging on the desktop then the normal highlight outliner will not appear for 1-2 secs.

I believe vm-tools uses activity at these far edges to hint that a drag-drop from host/guest is happening.

When i re-enable drag/drop everything is fine again. Oddly enough there is a grey (or white) square at these edges when drag/drop (or simple click) at these edges. Its like VMWare uses a visual display to aid it when drag/dropping from guest to host or vice-versa. When drag/drop is disabled this square is no longer shown.

My guess is open-vm-tools is trying (and failing) to communicate to VMWare about drag/dropping but VMWare doesnt respond (since its disabled in VMWare workstation) so vm-tools times out.

I checked the logs e.g. syslog, journalctl, dmesg and nothing is logged.

Reproduction steps

  1. In WMare workstation or the like, just disable Drag/Dropping in the guest.
  2. While on the desktop, Left-Mouse drag-click at one of the far edges of the guest OS (i am using Ubuntu 20.04) while in full screen mode
  3. Normally, when you do a left-click mouse drag on the desktop you should see a highlight rectangle right away. But in this case there will be a noticeable pause (1-2secs) before this rectangle appears. This only happens when drag/dropping is disabled in VMWare.

Expected behavior

There shouldnt be a pause.

nirjoyhasanantor commented 1 year ago

Did you got any answer for this i am also stuck at this

nirjoyhasanantor commented 1 year ago

Hey I Have Found A Solution For That --> First Shutdown The VM If You Can Then Goto Edit->Preferences...->Input Then Disable Automatically grab and ungrab the mouse NOTE: This will stick your mouse in vm If you want ungrab the mouse from vm you can press CTRL + ALT and you can grab by clicking in the vm or you can press CTRL + G You Will Have Some Issue But We Can Use It Until They Fix This Problem

dkierner-dh commented 1 year ago

@amiga-500 Does this bug also appear for you under Xorg? If not, this could be related to the Open VM Tools drag-and-drop implementation under Wayland and therefore to issue #614 as well. I noticed, that the drag-and-drop response was laggy when reproducing #614, although I managed to freeze the UI. The system was still responsive and could be accessed via SSH. I also got no log output, when the UI hang.

LyubomirT commented 11 months ago

Hey I Have Found A Solution For That --> First Shutdown The VM If You Can Then Goto Edit->Preferences...->Input Then Disable Automatically grab and ungrab the mouse NOTE: This will stick your mouse in vm If you want ungrab the mouse from vm you can press CTRL + ALT and you can grab by clicking in the vm or you can press CTRL + G You Will Have Some Issue But We Can Use It Until They Fix This Problem

Thank you very much for this, @nirjoyhasanantor! Solved the problem for me.