-
-
Notifications
You must be signed in to change notification settings - Fork 601
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
Negative time on Activity view #602
Comments
I've investigated this issue, it's because of the flood function. The duration get an insane negative value because the gap is negative, which when added results to the duration turns the duration negative. I'm very certain of this because my logs are stuffed with the following:
This is also breaking the UI overview as follows: This might be related to #239, could it be duplicate events that cause this? |
I can also confirm that there are many duplicate rows within the afkwatcher bucket:
There are 1516 unique rows within the events table for the afkwatcher. If looking for just non-distinct rows:
But removing the duplicaties did not seem to resolve the issue. |
Hi @ErikBjare I can verify that it's the afk watcher, I suspect it might be fixed with the 1ms addition. I see quite a a lot of duplicate AFK events that are overlapping, even with non-afk events. |
@kewde Thanks for the thorough research! (good point with the SQL queries) I don't think duplicate events can cause this per se, but they might be a symptom of the underlying problem (heartbeats not being applied correctly, or out of order). All occurrences of the "Gap was of negative duration" warning are really caused by a bug somewhere, but they are mostly harmless, so we haven't historically had the motivation to go after them (in hindsight, this may have been an oversight). I was just discussing something somewhat related in #626 (comment) |
Should really look into what you wrote @kewde. Perhaps you can help @johan-bjareholt? |
Problem is still occurring. aw-server-rust seems to have a bad time when it tries to merge afk events. The only fix I have found is to manually clean the sqlite db (delete duplicates, merge events), which is fastidious. I don't know if it is really linked to the rust server version or with the afk watcher. But, I am thinking of switching back to the python server because I never had this problem with it (though the web dashboard is really slow). |
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. |
I've never seen this before:
Running aw-server-rust (master branch). Tried toggling off AFK filtering and audible-as-active, but no difference.
Don't have time to investigate, but thought I'd at least report it.
The text was updated successfully, but these errors were encountered: