Skip to content
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

Category Builder keep showing "loading" #965

Closed
2 tasks done
JaydonZhao opened this issue Oct 11, 2023 · 5 comments
Closed
2 tasks done

Category Builder keep showing "loading" #965

JaydonZhao opened this issue Oct 11, 2023 · 5 comments

Comments

@JaydonZhao
Copy link

JaydonZhao commented Oct 11, 2023

  • I am on the latest ActivityWatch version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • windows11 22H2:
  • Version: v0.12.3b10:

Describe the bug

To Reproduce

Steps to reproduce the behavior, for example:
1. Go to 'Category Builder'
2. The page keeping showing "loading

Expected behavior

Documentation

Screenshot

image

Logs

Log of aw-watcher-window:

2023-10-12 02:19:00 [ERROR]: Exception thrown while trying to get active window (aw_watcher_window.main:124)
Traceback (most recent call last):
File "aw_watcher_window\main.py", line 106, in heartbeat_loop
File "aw_watcher_window\lib.py", line 65, in get_current_window
File "aw_watcher_window\lib.py", line 42, in get_current_window_windows
File "aw_watcher_window\windows.py", line 26, in get_app_name
File "aw_watcher_window\windows.py", line 15, in get_app_path
pywintypes.error: (5, 'OpenProcess', 'Access is denied.')

Lof of aw-server

2023-10-12 02:25:29 [WARNING]: Gap was of negative duration but could be safely merged (-306.503s). This message will only show once per batch. (aw_transform.flood:46)
2023-10-12 02:25:29 [WARNING]: Gap was of negative duration but could be safely merged (-2622.032s). This message will only show once per batch. (aw_transform.flood:46)
2023-10-12 02:25:29 [WARNING]: Gap was of negative duration but could be safely merged (-313.812s). This message will only show once per batch. (aw_transform.flood:46)
2023-10-12 02:25:29 [WARNING]: Gap was of negative duration but could be safely merged (-711.984s). This message will only show once per batch. (aw_transform.flood:46)
2023-10-12 02:25:29 [WARNING]: Gap was of negative duration but could be safely merged (-2099.711s). This message will only show once per batch. (aw_transform.flood:46)
2023-10-12 02:25:29 [WARNING]: Gap was of negative duration but could be safely merged (-113.681s). This message will only show once per batch. (aw_transform.flood:46)
2023-10-12 02:25:31 [INFO ]: 400 (127.0.0.1): �[31m�[1mPOST /api/0/query/ HTTP/1.1�[0m (flask:25)
2023-10-12 02:31:32 [WARNING]: Gap was of negative duration but could be safely merged (-286.389s). This message will only show once per batch. (aw_transform.flood:46)
2023-10-12 02:31:34 [WARNING]: Gap was of negative duration but could be safely merged (-286.389s). This message will only show once per batch. (aw_transform.flood:46)
2023-10-12 02:31:42 [INFO ]: 400 (127.0.0.1): �[31m�[1mPOST /api/0/query/ HTTP/1.1�[0m (flask:25)

Additional context

@github-actions
Copy link

Hi there!
As you're new to this repo, please make sure you've used an appropriate issue template and searched for duplicates (it helps us focus on actual development!). We'd also like to suggest that you read our contribution guidelines and our code of conduct.
Thanks a bunch for opening your first issue! 🙏

@JaydonZhao
Copy link
Author

Find another issue that is similar #905

@Qemuel8
Copy link

Qemuel8 commented Oct 17, 2023

this coment is a repost of the comment i wrote on issue #905

So the way i fixed this could also solve it for other.
-Go to category builder.
-Press Show Options.
-Select a different host name.

as i understand my issue was related to having an old watcher that i wasnt using and was deleted but was still showing in the list of hosts. Picking the new host solved the problem for me.

@JaydonZhao
Copy link
Author

@Qemuel8 It works for me! Thanks❤!!
Don't know why the default hostname is "unknow", but after I change it to my computer, it works!!

@ErikBjare
Copy link
Member

ErikBjare commented Nov 19, 2023

In ActivityWatch/aw-webui@fcbd586 I fixed it such that the default host is the one with the most recent data.

And in ActivityWatch/aw-webui@819c4e3 I fixed it such that it will never choose "unknown" (will always fail).

Thanks for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants