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

An Ability to receive events for an application after restart the application #264

Closed
varp opened this issue Sep 22, 2020 · 4 comments
Closed
Assignees
Labels
Milestone

Comments

@varp
Copy link
Contributor

varp commented Sep 22, 2020

  • Version: 2.6.4
  • macOS: 10.15.6

When an application was started before Phoenix's start, I receive events (ex. 'windowDidOpen') as expected.
When I restart the application, I lose the ability to receive further events for the application. In Phoenix's logs appears: Error: Could not get process identifier for accessibility element (null). (-25201).
I think, at the moment when the application starts, some Phoenix logic can not properly acquire permissions from tccd and therefore attach observer for AX events.

If I restart Phoenix, I get back the ability to receive events for the application.

@kasper
Copy link
Owner

kasper commented Sep 22, 2020

@varp Hey! I’m sorry to hear about that! Does this happen with all apps for you or some particular app?

@varp
Copy link
Contributor Author

varp commented Oct 21, 2020

@kasper Sorry for the delay. At the moment of the issue, I was working with the VS Code. Since then, because of lack of time, no made tests with other apps. Will come back, with more information ASAP.

@kasper
Copy link
Owner

kasper commented Oct 21, 2020

@varp Thanks!

@kasper kasper self-assigned this Mar 21, 2021
@kasper kasper added the bug label Mar 21, 2021
@kasper kasper added this to the 2.6.7 milestone Mar 21, 2021
@kasper
Copy link
Owner

kasper commented Mar 21, 2021

@varp Thanks for reporting this! The root cause for this was actually a pretty substantial issue. Phoenix was trying to register the window events too early for newly launched apps. This should now be fixed.

@kasper kasper closed this as completed Mar 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants