Skip to content
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

Mouse control becomes unstable after long use #95

Open
spjohnst opened this issue Mar 26, 2021 · 9 comments
Open

Mouse control becomes unstable after long use #95

spjohnst opened this issue Mar 26, 2021 · 9 comments
Labels
bug-report Unverified bug report

Comments

@spjohnst
Copy link

Bug report

What you were trying to do (and why)

Use the mouse to control another device; selecting text in particular is difficult when this happens.

What happened (include any debug output)

It is difficult to control the mouse; it starts jumping more than it should and makes using teleport almost impossible.

What you expected to happen

Smooth mouse control—like soon after restarting the application.

Step-by-step reproduction instructions

Simply wait—it takes a few days to appear as an issue.

Environment information

Server (Mac with keyboard and pointing device)

  • Device: MacBook Pro, 15" 2017
  • macOS version: 11.2.2 (20D80)
  • Teleport version: 1.3.3

Client (Mac being remotely controlled)

  • Device: iMac 2013
  • macOS version: 10.15.7 (19H524)
  • Teleport version: 1.3.3
@spjohnst spjohnst added the bug-report Unverified bug report label Mar 26, 2021
@stanger
Copy link

stanger commented Apr 19, 2021

I frequently run into another extended-use related issue. After about 24 hours of use the teleport application will start hanging on the client machines after moving focus over to that machine. The mouse and keyboard will still work, but the Application will not respond and it is not possible to move focus back to the server machine until the Teleport app either starts responding again or the application is terminated.

I operate in a three machine configuration with a 2019 MacBook Pro as the server machine flanked by a 2020 27" iMac and a 2015 27" iMac.

EDIT
I was running a build from January 5th, not the build in HomeBrew. I have switched over to that build and will amend this if I run into the issue again or in a couple days if nothing crops up.

@tomads
Copy link

tomads commented Apr 21, 2021

I had a similar problem. Scrolling between different screens on the client became quite jerky after a while.
As a workaround, I now use an AppleScript that restarts Teleport with the help of the app 'EventScripts' every time, the client wakes up from sleep mode.
Since then everything works fine for a longer period of time.

Maybe this will help until there might be a fix for this problem.

Greetings

Tom

@briantully
Copy link

I've been having this same issue!!! It's been happening for months, maybe once a week, and the only thing that resolves it is to force reboot my secondary/client machine. I've been trying to debug this for weeks, but sadly none of my Mac's logs give any hint that there's an issue when the freeze occurs. Again it's the very same issue that is described here, where on wake from sleep when I teleport over to the client machine my host machine shows the bezel that it is controlling the secondary machine. However on the secondary machine everything is "frozen" other than the mouse cursor. I can move the mouse cursor but clicking on windows does nothing. The keyboard doesn't work so I can't use the force quit keyboard shortcut. Once thing I've noticed is that the menu bar clock usually also freezes, indicating the time of when the freeze occurred. For example, my host machine will say 11:45pm whereas the frozen client machine will say 11:40pm indicating that the freeze occurred 5 minutes ago. Again, even though I can move the cursor i cannot click anything to change focus and the keyboard is unresponsive.
The only solution is to force reboot the client machine by holding down the power button.
@tomads any chance you can share your AppleScript via gist or some other method?

@tomads
Copy link

tomads commented Jun 22, 2022

Here`s the script:

tell application "Finder"
try
tell application "teleport" to quit
repeat
tell application "System Events"
if "teleport" is not in (name of application processes) then exit repeat
end tell
do shell script "sleep 0.5"
end repeat
delay 5
tell application "teleport" to activate
end try
end tell

Enjoy.

Tom

@briantully
Copy link

Thanks so much @tomads ! The Applescript/Eventscript combination has really improved my secondary machine's stability. It's been a full week without it freezing and me having to force reboot the computer.

I'm still experimenting with Eventscript to figure out what the best "event" should be used to trigger the teleport restart Applescript. So far I've settled on "Screen password unlocked" on my primary machine (with keyboard/mouse) and "Screensaver stopped" and "Screen did wake" on my secondary/client machine.

One odd thing that happens periodically is that when the Eventscript runs on both host and client machines, teleport on the host machine will do its restart, but then quit after the client machine does its teleport restart (triggered by Eventscript). Does this happen for you as well?

@tomads
Copy link

tomads commented Jun 29, 2022 via email

@briantully
Copy link

Thanks. Sorry to be a nag, but there are several sleep related events within Eventscripts. Do you know if you have it set to "Computer wakes" or "Screen did wake"? Thanks again :)

@tomads
Copy link

tomads commented Oct 11, 2022 via email

@TheFou
Copy link

TheFou commented Feb 16, 2023

Hi,
Just to add my voice, same issue here, more and more unstable over time on the slave computer.
No memory leak or excessive CPU activity though... I will monitor closely to find a clue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-report Unverified bug report
Projects
None yet
Development

No branches or pull requests

5 participants