-
-
Notifications
You must be signed in to change notification settings - Fork 577
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-server-rust & aw-watcher-window: Persistent fatal error "unexpected end of hex escape" #815
Comments
Hi there! |
Yikes! The logfile size issue is fixed in: ActivityWatch/aw-core#114 The underlying encoding issue on the aw-server-rust side does not yet have a fix. |
@johan-bjareholt Could you take a look at this encoding issue? |
Thanks for the log size fix! Are there alpha or nightly builds with this fix I could use? I tried the build at the bottom of this page, but it seems like the log file fix isn't included in it, as log files can still grow to 100+ MB after a while. |
@ErikBjare Are we sure if the encoding issue actually is on the aw-server-rust side? Or could it be in aw-watcher-window? Regardless, we need to define how we require utf chars to be escaped in aw-server. For example, do we allow utf-16 or do we only intend to support utf-8, and which components use what today? This could potentially also be an issue in aw-watcher-web. |
If I recall correctly, I had some issues with escaping in the code migrating from the aw-server-python database to the aw-server-rust db, but I don't recall how I fixed it. Could be a hint. |
@ErikBjare Found the aw-server-rust issue and PR, what I did was just drop the events completely because they contained invalid UTF-8 ActivityWatch/aw-server-rust#173 ActivityWatch/aw-server-rust#162 IMO, the more right way would probably be to only delete the invalid chars, but if I recall correctly I attempted to do that but it was quite hard so I gave up. EDIT: Here's the mentioning of it being hard to implement ActivityWatch/aw-server-rust#173 (comment) |
In the meantime, I figured out a workaround to restore the functionality of my window watcher: I backed up and deleted the folder named |
Describe the bug
The ActivityWatch web UI silently stops updating data, and logs with huge filesizes are created.
The issue persists after you close the explorer.exe window, restart ActivityWatch, and even through rebooting the computer.
To Reproduce
Repro steps are my best guess from looking at the logs, given that I can't re-trigger the bug without somehow fixing it first:
1719158 (100) - 𝕎𝕚𝕟𝕥𝕖𝕣❄️メイキング
AppData\Local\activitywatch\activitywatch\Logs\aw-watcher-window
andAppData\Local\activitywatch\Logs\aw-server-rust
explodeExpected behavior
Either keep tracking and reporting data as usual, or fail loudly with an error telling me that the window watcher has stopped working.
Documentation
Snippet from logs. It's the same messages repeated thousands of times.
aw-server_2022-10-26T14-22-29+0800.log
aw-watcher-window_2022-10-26T14-22-29.log
Additional context
These were fun to discover.
The text was updated successfully, but these errors were encountered: