bk138 / droidVNC-NG

VNC server app for Android that does not require root privileges.
GNU General Public License v2.0
1.39k stars 201 forks source link

Mouse clicks freeze connection for 1 second each and are not sent (Android 10) #213

Closed RayKoopa closed 5 months ago

RayKoopa commented 5 months ago

Describe the bug Client is a PC using a mouse. Left- or right-clicking or using the mouse wheel in the VNC view completely freezes screen updates for exactly 1 second before they return, and the click is not executed.

The clicks/freezes can be stacked (e.g. attempting to double click freezes for 1 second, refreshes 1 frame, then freezes for another second).

Key presses / shortcuts are submitted and executed as expected.

To Reproduce

  1. Start droidVNC-NG, enable/allow all required permissions as guided by the app.
  2. Connect to droidVNC with VNC client from PC.
  3. Click anywhere with any mouse button or scroll the mouse wheel - for every input, the screen freezes for 1 second.

Expected Behavior The screen does not freeze, and the click is executed as a touch input on the server.

Logs/Backtraces Please let me know which logs to retrieve (and how if not trivial, basic adb knowledge available), willing to provide any info as requested.

Your environment:

Additional context

bk138 commented 5 months ago

Thanks for reporting! Are you able to provide logcat output? That's the only way to know what's happening.

RayKoopa commented 5 months ago

Thanks for the fast reply!

But just as I got to log the clicks, they started to work as intended... :-)

I've done the following changes inbetween preparing the phone for a clean logcat capture:

I have a feeling that the restart alone was enough. Maybe the previous installation of TeamViewer QS (which I uninstalled before the device restart) meddled with it?

If this problem ever occurs again, I'll comment on this issue and attach the logs as requested, and/or determine which change of the above exactly fixed it.

bk138 commented 5 months ago

Yeah do so! (love these self-closing issues ;-) )