-
-
Notifications
You must be signed in to change notification settings - Fork 594
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
Gap of Negative Duration could NOT be Fixed - AW Server stuck in loop without exiting #1125
Comments
Hi there! |
I will keep looking for more issues that are relevant to this issue to see if something fixes this. |
In Issue #907 someone also got the same "gap of negative duration could NOT be fixed" message, but then the aw server crashed, mine does not seem to crash. That had to do with some event missing the "title" key. |
I think this is the line where the logger displayes the negative duration: https://github.com/ActivityWatch/aw-core/blob/6a58ec59c16c57933fce7bad4453449168c83ebd/aw_transform/flood.py#L53 |
Does this also happen using |
@0xbrayo I think its the default activity watch server. I will try with the rust one later. |
Please do, I'll try to investigate what might be causing but it's hard without being able to reproduce it. |
@0xbrayo As far as I can tell the issue does not occur in |
Implies that the bug is somehow related to the implementation in the default python server. Check the logs for the rust server and see if there's any issues there about Negative duration |
Yes, it is mentioned multiple times in the logs
however there it seems like everything could be safetly merged. |
Im migrating to |
So I dont know if I should close the issue with that, or if it is kept open. As far as I understand activity watch wants to switch to the rust server anyways at some point. |
Keep it open. Might be useful if somebody else has the same issue. We'll
archive the repo if we finally ditch the python server.
…On Thu, 16 Jan 2025, 00:01 Caspar, ***@***.***> wrote:
So I dont know if I should close the issue with that, or if it is kept
open. As far as I understand activity watch wants to switch to the rust
server anyways at some point.
—
Reply to this email directly, view it on GitHub
<#1125 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AO6ENNIHDGXZOZ2Y4ZD2G3L2K3EA5AVCNFSM6AAAAABUW66GUSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKOJTHEZDKOBQGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I am somehow still getting the error, despite having now switched to aw-server-rust when making a query on that same week:
An improvement is that the server does not keep running after crashing. Maybe it is possible that the rust server used on the EDIT: No the commits that are checked out in these two repos are the same. |
By the way, is there any way to restart the activitywatch server after it crashed? Running |
I just double checked, yes, the aw-server-rust when checked out from the github repo, does indeed work without problems. |
I don't use
The latest version of the aw-server-rust does not have the same issue? |
It does not have the issue when I start it using |
Oh cool. Though building from source is not that difficult, just run `cargo
build --release` and use the binary at ./target/release/aw-server.
…On Fri, 17 Jan 2025, 11:32 Caspar, ***@***.***> wrote:
I just double checked, yes, the aw-server-rust when checked out from the
github repo, does indeed work without problems.
This also still works when importing my own settings.
The latest version of the aw-server-rust does not have the same issue?
It does not have the issue when I start it using cargo from where I
cloned the repo, however the issue does occur when I start activitywatch
with aw-qt or when it is started automaticially when I log in. I am using
the acvititywatch-bin package for arch linux. I will try to build
activitywatch from this repo from source and see if that solves it.
(possibly only after the exam phase which ends in 2 weeks)
—
Reply to this email directly, view it on GitHub
<#1125 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AO6ENNJ7J66JW3BNCUZZML32LC5ZHAVCNFSM6AAAAABUW66GUSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKOJXGY4TINJWGU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Describe the bug
Within one specific week I am getting:
the query will run out of time and the banner
AxiosError: timeout of 90000ms exceeded. See dev console (F12) and/or server logs for more info.
is displayed at the top of the webpage. However the activitywatch server will still continue to use 100% of one CPU core until manually stopped.
To Reproduce
I start the server
The server is running
I can change to the previous week, no problem
Note the cpu load on the right, the spike occurs when I change the week, but its okay, because the calculation is finished after some time.
Now if I change to the week before that the CPU load does not decrease
At some time a timeout message is displayed and a warning in the logs
But even though the request is supposed to time out, the CPU usage stays at 100%
Pressing Ctrl C does not do anything
But sending SIGTERM works
Expected behavior
Just seeing the stats of that week
Documentation
Logs:
aw-log-bug.log
Additional context
Maybe related to #239
The text was updated successfully, but these errors were encountered: