-
-
Notifications
You must be signed in to change notification settings - Fork 501
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
aw-watcher-window randomly crashes on swift strategy #986
Comments
Hi there! |
Would you mind trying the latest beta to see if the problem still exists there? :) |
Curious if this ever happened before you upgraded to |
After upgrading to 0.12.3b12 the problem seems to no longer occur (after more detailed checking, I found that the [macos] guards against missing notification data PR most likely fixed that bug). However, I don't know whether this is just me being overly suspicious but when using IntelliJ (I also have Activity Watcher plugin installed), I have a feeling that some data is not being recorded.
I'm sorry but I can't really confirm that, as I only started using AW on a daily basis after upgrading to Sonoma. |
Well, I just bumped into something similar. Lost all data since yesterday at ~15:35 (UTC+1h). No idea what went wrong, but running it from the terminal for now, so I can make sure I get log output if something happens. (output from the underlying swift script is not included in the logs...) Curiously enough, I had a window watcher running in parallel in testing mode (reporting to testing server), which didn't crash. Edit 2023-11-16: Turns out I was running v0.12.2b7, which could be the culprit, it might actually be fixed in later betas (explains why the separately running, more recent, aw-watcher-window didn't crash). |
I have the same issue on |
@theolundqvist Did it happen more than once for you? |
Yes quite often, not in the beginning, but now almost every day |
Wow, sorry about that. I hope you're having luck with the beta. |
I had another look at the log @jaqobb posted and noticed (not sure how I missed before):
However, in the latest version of the So, all betas released after 2023-2-22 should have the fix. It doesn't explain the crash I had on v0.12.2b7, but that was a one-off that has never happened since. |
@ErikBjare Ok! I have not had any crashes with the beta so far! |
Describe the bug
aw-watcher-window seems to be crashing at random intervals with no logs when run normally with swift strategy.
I tried running the watcher via terminal and different strategy (both jxa and applescript) and both seemed to work with no issues. I was not able, however, to run the watcher with different strategy via the menu bar.
It can easily get annoying when you don't receive a GUI error message on crash and thus have to constantly check whether the watcher is actually still running.
To Reproduce
Not sure how to consistently reproduce this issue. Sometimes the watcher can run for a few hours with no crashes just to crash 3 times in the next 10 minutes.
Expected behavior
aw-watcher-window to work all the time.
Documentation
Logs when the watcher is run via terminal with verbose setting enabled:
My guess is that the crash happens because of the error in the second to last line.
Additional context
The text was updated successfully, but these errors were encountered: