-
Notifications
You must be signed in to change notification settings - Fork 5
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
Stops working randomly #12
Comments
Hello! Maybe try to run this manually with logging If it works with a manual run and the problem exists only within
Your system is probably using systemd, so this might work:
It posted "afk" which means the program didn't crash. So there was a problem getting the window data, maybe Hyprland didn't return it in some conditions. |
A also see this happening, with both standalone and bundled versions. I noticed the following:
|
I can confirm what @jopereira reports:
Restarting aw-awatcher resolves it. When using systemd, here's a dirty workaround to limit the impact of the issue (restart awatcher every hour unconditionally):
|
I'm reading your reports here, but I can't reproduce it, unfortunately. Please, add more information about your environment and how you run the program. |
Here you go: Hardware Information:
Software Information:
In extensions, I see a 6 behind the name of https://github.com/flexagoon/focused-window-dbus, not sure if that is the version.
I also get vastly wrong usage times in the overview of the web interface. |
Just wanted to let you know that I've now built awatcher from source (all worked like a charm) and disabled some of the other watchers. I've now been running that debug build for 2 weeks and have not been able to reproduce the issue since. I will continue to debug and try to pinpoint it. Here's the changes I made: luisgerhorst@26d2f2e - However, it could also be just a coincidence at this point... |
@luisgerhorst thanks, I'm looking at your changes and I don't see anything that could prevent the aforementioned symptoms, so maybe a coincidence indeed. Having it consistently reproduced would certainly help solving it once and for all. |
I've been using @luisgerhorst's fork since May 3, and the problem has not happened since then. |
@luisgerhorst why could it be? E.g. why have you added timeouts in a couple places, and removed the reconnect attempts for Gnome watchers? |
I also noticed this issue and there seems to be two issues at play:
|
I have now cleaned up my initial mess (luisgerhorst@7af01ca), and will cont. to bisect it. Just takes some time as I need multiple days to be sure it's still fixed for each version. |
@zbw8388 wrote:
If this is true, maybe we should further bisect what in run_iteration fails to return?
Great! |
If you use Gnome and given the symptoms, it means that DBus call to timeout(watcher_type.sleep_time(&client.config), watcher.run_iteration(&client)).await @luisgerhorst Your change looks good and universal to hopefully exclude similar problems in this and other watchers. It's simple and free to try anyway. I can commit the change in a few days for |
I have released the possible fix for the perceived Gnome issue https://github.com/2e3s/awatcher/releases/tag/v0.2.7
@zbw8388 I think this is another possible problem, which is related to X11 (otherwise X11 window watcher wouldn't start). Not sure what you mean by wayland apps though. If you'll notice such a buggy behaviour on the newest version, please, open an issue with a description. |
Thanks! I'm testing it and will report back if I observe any issues. |
Running Archlinux + Hyprland.
I'm using bundled awatcher and starting it like:
It starts well and runs at first, then randomly it crashes. I don't have a log or something unfortunately, if you can guide me how to get it I can provide that.
Example:
as you can see I was not AFK and was on meet but all of a sudden awatcher stops recording. Weird thing is the server works all the time, I can access localhost:5600 all the time.
This is an example of random day, it happens almost every day.
The text was updated successfully, but these errors were encountered: