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

throttle_process() used with bogus pid #3

Open
petterreinholdtsen opened this issue Apr 14, 2016 · 0 comments
Open

throttle_process() used with bogus pid #3

petterreinholdtsen opened this issue Apr 14, 2016 · 0 comments

Comments

@petterreinholdtsen
Copy link

When I try to run appfab, I get repeated messages like this:

Traceback (most recent call last):
File "appfap.py", line 40, in on_active_window_changed
throttle_process(pid)
File "appfap.py", line 10, in throttle_process
f.write(str(pid))
IOError: [Errno 3] No such process

I tracked it down, and the cause is a bogus pid being used, and it originates from this call in the code:

windows_pids = [w.get_pid() for w in screen.get_windows()]

The array contain pids followed by 149, 0 and 14696, none of which represent pids in the system. Did Wnck change behaviour?

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

1 participant