question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AFK and window watcher suddenly stopped logging

See original GitHub issue

I have no idea what caused this, but they both stopped logging on the same day.

My last window event was at 2018-01-19T07:47:07.749000+00:00 (+7s duration) and my last AFK event was at 2018-01-19T17:23:51.631000+00:00 (+7min duration).

The logs for aw-watcher-afk show nothing weird (just a bunch of “Became AFK”/“No longer AFK” messages), but the aw-watcher-window looks a bit weird at least.

2018-01-17 16:09:10 [INFO ]: Running watcher with poll time 1.0 seconds  (aw_watcher_window.main:35)
2018-01-17 16:09:10 [INFO ]: aw-watcher-window has started  (aw_watcher_window.main:44)
2018-01-17 16:09:20 [INFO ]: Connection to aw-server established  (aw_client.client:281)
2018-01-17 16:09:20 [INFO ]: Loaded 11 failed requests from queuefile  (aw_client.client:266)
2018-01-20 17:48:22 [WARNING]: Failed to send request to aw-server, will queue requests until connection is available.  (aw_client.client:305)
2018-01-20 17:48:43 [INFO ]: Connection to aw-server established  (aw_client.client:281)
2018-01-20 17:48:43 [INFO ]: Loaded 55285 failed requests from queuefile  (aw_client.client:266)

I find it weird that all those failed requests were loaded from the queuefile yet the log doesn’t say anything events not getting through to the server? Perhaps something that should have ended up in the log didn’t? (Such as a thread crash)

The 2018-01-20 17:48 messages were around the time when I noticed and then restarted aw-server. I then shortly after restarted aw-watcher-window which probably lead to all the events being lost because they did not get sent after restart. Probably an issue in the failed request queue that needs fixing.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
ErikBjarecommented, Mar 12, 2018

Been running master + the persist-queue PR for aw-client for a while now and the issue persists. However, with the persist-queue PR I can now at least manually restart the watchers (causing the queue to empty at a good pace) without losing any data, so that’s nice.

1reaction
johan-bjareholtcommented, Jan 26, 2018

By looking at the RequestQueue in aw-client I can easily see a couple of possible race conditions, we should probably take a look at the implementation again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AFK not being detected - Support - ActivityWatch Forum
I have a problem where ActivityWatch never detects that my system is idle. So my active time on teh Window tab is listed...
Read more >
HUD Layout no longer prevents AFK/logout : r/ffxiv - Reddit
I open Remote Desktop and tap the screen once, no longer afk. ... Now I just found out that I can't even log...
Read more >
How to Go AFK in GTA V Online and Not Get Kicked
The method to go AFK without getting kicked is not a complex one. All that you need to do is watch TV, as...
Read more >
Best Auto Clickers, Macro Tools and Key Pressers for Roblox
I show you how to use auto clickers, macro creators, macro recorders and key pressers that will work for not only Roblox games...
Read more >
My computer keeps logging me out after inactivity. How do I ...
2) Display timeout has been moved to Settings > System > Power & Sleep > Additional Power Settings, on active Power Plan choose...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found