-
-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Input works, display frozen #105
Comments
Yeah, it could be the same issue as in #92. Are you using termux too? Does it happen randomly or every time? |
I use Termux. But it doesn't work if I am connecting to a Linux computer either. Btw, it happens everytime after I leave AVNC in the background for a few minutes. |
Can you tell me a bit more about your setup?
If I can reproduce it locally, that would be really helpful.
Does the pointer/arrow moves when you click around, or is it frozen too? |
Host: Ubuntu 22.04.1 LTS (Termux) Special setup:
I don't really understand the question. Anyway, the cursor on screen moved around and the mouse input to the vnc also respects the local cusor position. In short, it is just the display frozen. Again, same as #92, this never happened in VNC Viewer by RealVNC Limited. I use AVNC simply it looks nicer and is open-source. :) Do not hesitate to ask if there are more questions :) |
I was trying to rule out any graphics related issue. AVNC uses OpenGL ES to render the framebuffer received from server. It also draws the pointer icon, mostly an arrow, on current pointer position. When you tap on the screen, trying to send a click to remote server, AVNC will update the pointer position to where you tapped, and will redraw the icon on new position. When display is frozen, if tapping on screen moves the pointer without updating rest of the stuff, than it means that rendering is working correctly, just the framebuffer is not being updated. |
Btw, this bug I am facing isn't related to the Android 13 update. It occurs on Android 10 and 12 as well. So, it pretty much isn't a problem about the Android version. |
Thanks. |
I think a visualization of the issue would help. That's why I screen recorded a session with touches shown: before.mp4after.mp4before.mp4: Before leaving AVNC in background Hope this helps so AVNC will get better and better. |
Thanks, that's really helpful. |
Confirming I got this problem sometime. |
I will try to reproduce this locally by setting up Termux on my Android 12 device. @tuanpham-dev using https://github.com/tuanpham-dev/termux-ubuntu should be enough to get started, right? |
@gujjwal00 - Yes, it should. You also need to disable |
@gujjwal00 I use proot-distro with XFCE on Ubuntu 22.04.1. Andronix, termux-ubuntu and similar projects should work too. |
@gujjwal00 Run
using ADB. This takes effect until next reboot. |
@babaric-dev Yeah, I saw that option when skimming through Termux repo and issues related to Android 12. |
Is anyone except me able to reproduce the issue? |
I was able to setup Ubuntu with Termux, and I can reproduce it successfully. Can you try disabling any battery optimizations for AVNC? |
I think it works!!! But disabling battery optimizations would drain battery(?) |
Btw, how does VNC Viewer by RealVNC Limited work without disabling battery optimizations? (may be hard to answer since it isn't open source) |
So here is what I have found so far: I haven't yet figured out why only tigervnc shows this behavior.
Normally, yes! But in this specific case you are unlikely to notice any difference:
Does it show a sticky notification in Android status bar during connection? That may explain why it is not suspended. |
Just downloaded VNC Viewer to test it. Apparently, it actually reconnects after being in background for a few minutes. Steps:
It asks for your password. Btw, I am not able to enable notifications for the app (I am on Android 13 and notifications are disabled by default). So I cannot answer your question about the notification. |
AVNC also does this, but only when app's process is killed by Android to reclaim memory. When user switches back to AVNC, it will reconnect to the server. Here, app seems to suspended instead of being killed.
No problem, thanks for testing VNC Viewer. So there are two possible workarounds I can think of:
|
|
I usually tab back to termux and the problem is solved |
I've also had this/#92 happen to me a couple of times now. I've only noticed it when connecting to TigerVNC under Termux on the same device, not when connecting to my Mac1, but that's probably because I'm more likely to switch out of AVNC in that case (looking things up, switching back to Termux to install packages, etc.). The last time it happened, I was able to shut down the VNC/X11 server using a keyboard shortcut, but AVNC didn't notice the server going away and switch to the 'Disconnected' screen, even though Footnotes
|
Hi all, I have been implementing several fixes/workarounds to resolve this issue:
With the 3rd option, you don't need to disable battery optimizations for AVNC. |
I do some multitasking on my phone. It got 8GB of RAM, a fairly new chip and it runs smoothly. However, in AVNC, after I leave the app and visit a few minutes later, the display freezes while mouse clicks and keyboard input works. May be related to #92 except it occurs even when RAM usage is around 50%.
The text was updated successfully, but these errors were encountered: