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

fix: Use monitoredApplicationWithProcessIdentifier API to fetch application objects from PID #776

Closed
wants to merge 1 commit into from

Conversation

mykola-mokhnach
Copy link

Related to #774

Copy link
Member

@KazuCocoa KazuCocoa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No change... but this pr itself lgtm.

@@ -23,15 +23,6 @@

@implementation XCUIApplication (FBCompatibility)

+ (instancetype)fb_applicationWithPID:(pid_t)processID
{
if (0 == processID) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure this protection is not needed? What happens if the requested pid is 0?

@mykola-mokhnach
Copy link
Author

No change... but this pr itself lgtm.

Maybe then try to add logs after each line in the fb_activeApplicationWithDefaultBundleId method to precisely isolate the particular API call that creates the delay. Then we may try to find alternatives to it or find out what exactly creates the delay

@mykola-mokhnach
Copy link
Author

I am not 100% convinced to merge this PR especially taking into account it does not fix the original issue related to testmanagerd crashes.

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

Successfully merging this pull request may close these issues.

3 participants