ActivityWatch / activitywatch

The best free and open-source automated time tracker. Cross-platform, extensible, privacy-focused.
https://activitywatch.net/
Mozilla Public License 2.0
12.03k stars 547 forks source link

Chrome extension stop working #737

Open amitamitamitamit opened 2 years ago

amitamitamitamit commented 2 years ago

Describe the bug

After some time that my browser stay open (sometimes it takes minutes, sometimes hours) the syncing between the chrome extension and the server stop working. when I am looking at the row data I see that the update was long ago although I am in the browser. after reset to the extension it getting solved. I check in the code and it seems like that the alarms and the tab listener not called anymore. I am using the regular executable (the python server).

To Reproduce

Just wait enough time to this issue to happen :)

Expected behavior

The extension continue to sync with the server.

github-actions[bot] commented 2 years ago

Hi there! As you're new to this repo, please make sure you've used an appropriate issue template and searched for duplicates (it helps us focus on actual development!). We'd also like to suggest that you read our contribution guidelines and our code of conduct. Thanks a bunch for opening your first issue! 🙏

ErikBjare commented 2 years ago

I have no idea what could cause this, and there is no way to reproduce the issue (works fine for me).

I guess it's possible that Chrome decides to cancel the timers due to energy savings or something? Not sure, need more info.

amitamitamitamit commented 2 years ago

Actually I manage to solve it by open the devs tools of the extension and just leave it open. Didn't investigate it further.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.