gujjwal00 / avnc

VNC Client for Android
GNU General Public License v3.0
678 stars 60 forks source link

Long connection and PC inactivity leads to disconnection #272

Open kyrtion opened 4 days ago

kyrtion commented 4 days ago
  1. OS: Windows 10 Pro - TightVNC | AVNC - Android

  2. Any Presentation without animation 1 slide in Microsoft Office, show it on screen as timetable. Late 2-3 hours will pass employees want to correct e.g. one employee will not be at work before one hour. Exit the presentation via VNC (PC), correct something and what we see in Android VNC: the frame has finally stopped.

Most likely: the frame is the same all the time, so decided to stop until there are different frames.

Log AVNC: https://pastebin.com/szJskSvN

kyrtion commented 3 days ago

Found issies: #105. Testing

UPD: Test is failed.

  1. Run PC and show presentation 1 slide, for example timetable staffs.
  2. Starting AVNC (latest) and connect only view to PC (TightVNC 2.8.59).
  3. Wait and dont touch devices (mouse, keyboard and etc).
  4. Late 1-2 hour and touch mouse, keyboard in PC. Checking frame in AVNC - frame really frozzen

Updated TightVNC to 2.8.89 and try testing...

UPD2: Test v2 is again failed. frame are frozzen Android used with Ethernet Cabel (device - tv). and second android - wi-fi. all are frozzen frame. only imputs workd

UPD3: Maybe problem is connect network? If connected to VNC, maybe work with lags

gujjwal00 commented 3 days ago

Thanks for all the tests you have done. As you have already found out, this is a known issue. I have been trying to fix this for a long time without much success. This bug is hard to reproduce, and I am still not able to pin down the root cause.

Can you please try disabling battery optimizations for AVNC, and see if that fixes the issue?

I plan to add a foreground service to AVNC (just like media players), which would hopefully avoid this issue in future.

kyrtion commented 3 days ago

Can you please try disabling battery optimizations for AVNC, and see if that fixes the issue?

I dont disabled battery optimization. When i have be time for tests, try and again test, ty for advices!