-
-
Notifications
You must be signed in to change notification settings - Fork 591
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
Window tracking not working after upgrade to v0.12.0 #787
Comments
Just to be clear, as per this doc: https://docs.activitywatch.net/en/latest/updating.html#macos It wasn't in the accessibility list any more, so i didn't just tick it, I added it in, and then restarted AW but still not populating the window bucket. |
What makes you think this isn't fixed by the workarounds in #334? Looks like a similar issue to me. One of these days I'm buying a Macbook to get rid of these macOS issues once and for all. |
Thanks for your reply. A lot of the early issues in #334 was actually me having problems with it before. But that was before you started bundling it as a .dwg and whatnot. There is a post reply where I got it working by giving it the permissions - #334 (comment) That hasn't worked this time. I have just re-read #334 and tried giving it "full file system" (with a close, restart and test) and then "developer tools" permissions but it hasn't done anything to fix the window bucket being empty. Strangely that does seem to have just changed what it sees my computer as. Before it was .local and now its .net: The afk .net version is now collecting data, and the window .net bucket has not collected anything. I also tried removing and readding the accessibility now that it has these two other extra permissions, but no improvement. |
Wow, that's pretty bad. The hostname change is probably not related though, more likely to be your computer taking a transient hostname from a router or something (it's pretty annoying). I saw that you were early in that other issue, Have you tried configuring aw-watcher-window to use the old What do the logs say? |
I had the same issue, but launching ActivityWatch using Terminal helped: #334 (comment) |
I seem to have the same problem. Windows watcher stopped working correctly after the v0.12.0 upgrade The #334 (comment) method worked partially. As in, few windows started to report the title and name, but the rest did not. The apps inside the Automation section in privacy seem to be related but I've no idea on how I could add more apps manually to the list. Opening some apps would give me a popup asking permission for Terminal to control the app, which seem to add it the list but I don't get that for every other app (Emacs for example) #785 might be related here Checking the logs it seems there are some permission error
But I already have ActivityWatch and aw-qt from the bundle in the accessibility list as mentioned in the #334 comment
This seems to work without error, but then the window titles are not reported unfortunately (which is a deal breaker for me) Edit: |
I'm seeing the same behaviour after upgrade to v0.12.0. AFK watcher is working fine, window watcher has empty buckets. The comment linked at #334 above does not appear to be the issue in my instance. I see similar errors in the window watcher log.
|
This will be fixed soon, see: #334 (comment) |
All issues mentioned here should have been fixed in the just released v0.12.1. Please let me know if I can close this issue. |
From all I've heard from users, this issue has been resolved in v0.12.1. Thanks for reporting! |
Unfortunately, v0.12.1 didn't work for me.
But it seems that the afk-watcher-window is not running as seen from the ps output
Running it manually would give the following error:
Changing the method to jxa also doesn't work with the following logs
I'm on macOS Big Sur (v11.6.1) Any help is appreciated! Thanks :) Edit: I also get an error pop-up, that I hadn't noticed before, everytime activitywatch opens up. There's no error in the details. But it's consistently crashing |
Seems to be a case of https://stackoverflow.com/questions/68353353/crash-on-dyld-library-not-loaded-usr-lib-swift-libswift-concurrency-dylib-run I'll look into it, and I opened #801 to track the issue. Thanks for reporting! |
Ok I just tried upgrading again, to v0.12.1. The window tracker is working, but the window titles are not populating. I've tried:
Nothing has kickstarted it being able to see the window titles. I'm not using any commandline to run it, i just open the app. (So far I've not had to resort to this in previous versions either). Any ideas? (Thanks so much for going above and beyond with buying an entire macbook just to solve these issues) |
I had the same problem as @rtpHarry but in my case I didn't particularly care about my historical data (I only use AW to get myself a nice pretty activty and timeline image (btw would be nice to have export features for those so i can stop screenshotting them instead!) so I deleted all the databases in the data folder and restarted AW. After that I had window titles working again. I can understand if you want to avoid removing your historical data, however, and so instead you might temporarily rename the folder and relaunch AW to see if that sovles your problem. If it does it's possibly the DB is corrupt in some way and maybe you can hold onto your old db in hopes that a hotfix is pushed that repairs the database? Not sure tho, mostly speculating based on my experience with the same issue. |
I've deleted the db and restarted. A couple of window titles are being populated but not most of them: Also tried closing down aw, removing from accessibility, adding, reloading aw, and no improvement: Not seeing anything to note in the
or the
|
actually i misspoke there, from further testing it is getting the window titles except for Google Chrome. I've tried closing and reopening that but that hasn't made any difference. Is there some other step for browser tab support? |
I've just tried installing the Chrome browser extension. There is a bucket now for web-chrome which is populating the tab information, but from reading the docs it seems that just the raw url should work without this, and at the moment the main window watcher bucket is not populating anything in the title still. @BelKed thanks for the tip, I've just tried that tab but don't have any options for editing it? I tried unlocking the padlock, and dragging AW onto the window, but it didn't do anything, and there is no + - buttons in this section of the panel. |
This still isn't working for me, and despite being the ticket creator, I don't have a way to reopen it. @ErikBjare should I start a new ticket? |
@rtpHarry From some clues in your comments it seems like you might have changed the aw-watcher-window config while trying to fix this pre-v0.12.0 (the empty If so, you should delete or edit the config so it uses the new default "swift" strategy for fetching window titles. |
I tried the following and it hasn't fixed the issue:
Checking the latest modified log in the aw-watcher-window dir it says:
|
Alright, just downloaded Chrome and reproduced. Should have just done so sooner, sorry! Might be fixed by ActivityWatch/aw-watcher-window#69 |
Hi,
macos BigSur version 11.7.6 |
From the errors I can see that we are using functions in the code that are supporting macOS 12 and higher. By the way, why are you building ActivityWatch from source? The pre-built binaries doesn't work? |
Window tracking is not working on my mac from binaries, I was building it in an effort to troubleshoot hence the error logs sharing |
Would you mind installing the latest version of ActivityWatch If you run it, the Then, you could run the following command in Terminal to start
|
Note that I only have the CommandLineTools installed ( |
Thanks! There's already an open issue for this problem: |
I am on the latest ActivityWatch version.
I have searched the issues of this repo and believe that this is not a duplicate.
OS name and version: macOS Monterey 12.5.1
ActivityWatch version: 0.12.0
Describe the bug
Since upgrading my aw-watcher-window bucket is empty.
I'm trying to refresh my memory from a year ago. I remember the titles use to go blank after an update, but this time its just totally empty.
The AFK tracker is populating ok.
I've gone into system preferences > security and permissions > accessibility and added in the AW executable in the Applications folder. (Is there any other category it wants to have?)
I've closed the app, and confirmed that the localhost server is no longer there, so I don't think its still running in the background. After reopening it, still no improvement.
There are some links to various issues but they don't seem to cover this.
To Reproduce
Expected behavior
Documentation
Additional context
The text was updated successfully, but these errors were encountered: