Watcher stuck/dead?

I’m on Ubuntu 18.04 LTS. I’ve started some hours ago the tracker, but it reports only 16 mins of activity. Looking at the timeline I see:


So it seems aw-watcher-window has stopped reporting. Any hints on how to diagnose this further?

First, check if the aw-watcher-window process is running.
If it’s not, try to start it again.
If you can’t start it again, start it from the console so you get log output, that will give you a hint of what’s wrong with it.

You’re right, the aw-watcher-windows is not running:

$ pfind aw-
user     20338  0.0  0.0  13064   732 ?        S    sep15   0:00 /home/user/opt/activitywatch/aw-server/aw-server
user     20339  0.0  0.3 144844 24668 ?        S    sep15   0:53 /home/user/opt/activitywatch/aw-server/aw-server
user     20341  0.0  0.0  13064   788 ?        S    sep15   0:00 /home/user/opt/activitywatch/aw-watcher-afk/aw-watcher-afk
user     20344  0.1  0.2 342580 16764 ?        Sl   sep15   3:19 /home/user/opt/activitywatch/aw-watcher-afk/aw-watcher-afk

I’ve launched it from the command line, we’ll see if there’s some log of note.