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

Error shows after running for a day constantly #25

Open
yratof opened this issue Sep 7, 2017 · 6 comments
Open

Error shows after running for a day constantly #25

yratof opened this issue Sep 7, 2017 · 6 comments

Comments

@yratof
Copy link

yratof commented Sep 7, 2017

This error shows up when leaving the computer inactive overnight – might be useful to note:

IndexError: list index out of range
/Users/igatnas/Projects/activitywatch/venv/lib/python3.6/site-packages/aw_watcher_window/printAppTitle.scpt: execution error: git: 'pull && hub checkout develop && hub pull (git)"' is not a git command. See 'git --help'. (1)
2017-09-07 09:57:36 [ERROR]: Exception thrown while trying to get active window: list index out of range  (aw_watcher_window.main:69)
Traceback (most recent call last):
  File "/Users/igatnas/Projects/activitywatch/venv/lib/python3.6/site-packages/aw_watcher_window/main.py", line 66, in heartbeat_loop
    current_window = get_current_window()
  File "/Users/igatnas/Projects/activitywatch/venv/lib/python3.6/site-packages/aw_watcher_window/lib.py", line 46, in get_current_window
    return get_current_window_macos()
  File "/Users/igatnas/Projects/activitywatch/venv/lib/python3.6/site-packages/aw_watcher_window/lib.py", line 23, in get_current_window_macos
    title = macos.getTitle(info)
  File "/Users/igatnas/Projects/activitywatch/venv/lib/python3.6/site-packages/aw_watcher_window/macos.py", line 17, in getTitle
    return info.split('","')[1][:-1]
IndexError: list index out of range
@yratof
Copy link
Author

yratof commented Sep 7, 2017

There are no logs for this time, presume that the error stopped that. But the url was a wordpress admin for a site I'm working on – using Chrome Version 60.0.3112.113

@ErikBjare
Copy link
Member

ErikBjare commented Sep 7, 2017

  1. I'm kind of confused about the second line, why is git mentioned there?
  2. Are you able to replicate?
  3. Did the watcher crash or did it keep running after the error?

@ErikBjare
Copy link
Member

This error could be mitigated if #14 is solved.

@yratof
Copy link
Author

yratof commented Sep 7, 2017

Well, looking at the terminal again, it's happened about 50 times in the last few hours, but then resolves:

IndexError: list index out of range
sh: -c: line 1: syntax error: unexpected end of file (2)n3.6/site-packages/aw_watcher_window/printAppTitle.scpt: execution error: sh: -c: line 0: unexpected EOF while looking for matching `''
2017-09-07 13:31:11 [ERROR]: Exception thrown while trying to get active window: list index out of range  (aw_watcher_window.main:69)
Traceback (most recent call last):
  File "/Users/fancynamehere/Projects/activitywatch/venv/lib/python3.6/site-packages/aw_watcher_window/main.py", line 66, in heartbeat_loop
    current_window = get_current_window()
  File "/Users/fancynamehere/Projects/activitywatch/venv/lib/python3.6/site-packages/aw_watcher_window/lib.py", line 46, in get_current_window
    return get_current_window_macos()
  File "/Users/fancynamehere/Projects/activitywatch/venv/lib/python3.6/site-packages/aw_watcher_window/lib.py", line 23, in get_current_window_macos
    title = macos.getTitle(info)
  File "/Users/fancynamehere/Projects/activitywatch/venv/lib/python3.6/site-packages/aw_watcher_window/macos.py", line 17, in getTitle
    return info.split('","')[1][:-1]
IndexError: list index out of range
sh: -c: line 1: syntax error: unexpected end of file (2)n3.6/site-packages/aw_watcher_window/printAppTitle.scpt: execution error: sh: -c: line 0: unexpected EOF while looking for matching `''
2017-09-07 13:31:11 [ERROR]: Exception thrown while trying to get active window: list index out of range  (aw_watcher_window.main:69)
Traceback (most recent call last):
  File "/Users/fancynamehere/Projects/activitywatch/venv/lib/python3.6/site-packages/aw_watcher_window/main.py", line 66, in heartbeat_loop
    current_window = get_current_window()
  File "/Users/fancynamehere/Projects/activitywatch/venv/lib/python3.6/site-packages/aw_watcher_window/lib.py", line 46, in get_current_window
    return get_current_window_macos()
  File "/Users/fancynamehere/Projects/activitywatch/venv/lib/python3.6/site-packages/aw_watcher_window/lib.py", line 23, in get_current_window_macos
    title = macos.getTitle(info)
  File "/Users/fancynamehere/Projects/activitywatch/venv/lib/python3.6/site-packages/aw_watcher_window/macos.py", line 17, in getTitle
    return info.split('","')[1][:-1]
IndexError: list index out of range
sh: -c: line 1: syntax error: unexpected end of file (2)n3.6/site-packages/aw_watcher_window/printAppTitle.scpt: execution error: sh: -c: line 0: unexpected EOF while looking for matching `''
2017-09-07 13:31:11 [ERROR]: Exception thrown while trying to get active window: list index out of range  (aw_watcher_window.main:69)
Traceback (most recent call last):
  File "/Users/fancynamehere/Projects/activitywatch/venv/lib/python3.6/site-packages/aw_watcher_window/main.py", line 66, in heartbeat_loop
    current_window = get_current_window()
  File "/Users/fancynamehere/Projects/activitywatch/venv/lib/python3.6/site-packages/aw_watcher_window/lib.py", line 46, in get_current_window
    return get_current_window_macos()
  File "/Users/fancynamehere/Projects/activitywatch/venv/lib/python3.6/site-packages/aw_watcher_window/lib.py", line 23, in get_current_window_macos
    title = macos.getTitle(info)
  File "/Users/fancynamehere/Projects/activitywatch/venv/lib/python3.6/site-packages/aw_watcher_window/macos.py", line 17, in getTitle
    return info.split('","')[1][:-1]
IndexError: list index out of range
sh: -c: line 1: syntax error: unexpected end of file (2)n3.6/site-packages/aw_watcher_window/printAppTitle.scpt: execution error: sh: -c: line 0: unexpected EOF while looking for matching `''
2017-09-07 13:31:11 [ERROR]: Exception thrown while trying to get active window: list index out of range  (aw_watcher_window.main:69)
Traceback (most recent call last):
  File "/Users/fancynamehere/Projects/activitywatch/venv/lib/python3.6/site-packages/aw_watcher_window/main.py", line 66, in heartbeat_loop
    current_window = get_current_window()
  File "/Users/fancynamehere/Projects/activitywatch/venv/lib/python3.6/site-packages/aw_watcher_window/lib.py", line 46, in get_current_window
    return get_current_window_macos()
  File "/Users/fancynamehere/Projects/activitywatch/venv/lib/python3.6/site-packages/aw_watcher_window/lib.py", line 23, in get_current_window_macos
    title = macos.getTitle(info)
  File "/Users/fancynamehere/Projects/activitywatch/venv/lib/python3.6/site-packages/aw_watcher_window/macos.py", line 17, in getTitle
    return info.split('","')[1][:-1]
IndexError: list index out of range

@ErikBjare
Copy link
Member

Alright, won't be able to fix this right now but thanks for reporting.

@vilos
Copy link

vilos commented May 18, 2018

I've got similar problem with printAppTitle.scpt recently, probably also when I left my machine running overnight:

2018-05-18 10:10:30 [ERROR]: Exception thrown while trying to get active window: list index out of range  (aw_watcher_window.main:69)
/Users/user/venv/activitywatch/lib/python3.5/site-packages/aw_watcher_window/printAppTitle.scpt:0:13: script error: A real number can't go after this identifier. (-2740)
Traceback (most recent call last):
  File "/Users/user/venv/activitywatch/lib/python3.5/site-packages/aw_watcher_window/main.py", line 66, in heartbeat_loop
    current_window = get_current_window()
  File "/Users/user/venv/activitywatch/lib/python3.5/site-packages/aw_watcher_window/lib.py", line 46, in get_current_window
    return get_current_window_macos()
  File "/Users/user/venv/activitywatch/lib/python3.5/site-packages/aw_watcher_window/lib.py", line 23, in get_current_window_macos
    title = macos.getTitle(info)
  File "/Users/user/venv/activitywatch/lib/python3.5/site-packages/aw_watcher_window/macos.py", line 17, in getTitle
    return info.split('","')[1][:-1]
IndexError: list index out of range

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

No branches or pull requests

3 participants