xamarin / Xamarin.Auth

Xamarin.Auth
Apache License 2.0
542 stars 350 forks source link

AX Exchange error: "Remote service does not respond to _accessibilityMachPort" #354

Open JanettHolst290490 opened 5 years ago

JanettHolst290490 commented 5 years ago

Xamarin.Auth Issue

Version

Steps to reproduce

In the PCL I create the authenticators as follows: AuthenticationState.AuthenticatorLevel2 = new OAuth2Authenticator( "[...]", null, "[...]", new Uri(authoriseUrl), new Uri(redirectUrl), new Uri(accessTokenUrl), null, true);

Present: _presenter.Login(AuthenticationState.Authenticator);

Expected behaviour

The console should not be spammed with errors.

Actual behaviour

The console is spammed with the following warning in debug mode - even after redirecting from the browser and pushing other controllers to the stack.

2018-12-07 13:13:06.400 AulaNative.iOS[5421:2652661] AX Exchange error: Error Domain=Accessibility Code=0 "Remote service does not respond to _accessibilityMachPort" UserInfo={NSLocalizedDescription=Remote service does not respond to _accessibilityMachPort} 2018-12-07 13:13:06.401 AulaNative.iOS[5421:2652661] AX Exchange error: Error Domain=Accessibility Code=0 "Remote service does not respond to _accessibilityMachPort" UserInfo={NSLocalizedDescription=Remote service does not respond to _accessibilityMachPort} 2018-12-07 13:13:06.401 AulaNative.iOS[5421:2652661] AX Exchange error: Error Domain=Accessibility Code=0 "Remote service does not respond to _accessibilityMachPort" UserInfo={NSLocalizedDescription=Remote service does not respond to _accessibilityMachPort} 2018-12-07 13:13:06.401 AulaNative.iOS[5421:2652661] AX Exchange error: Error Domain=Accessibility Code=0 "Remote service does not respond to _accessibilityMachPort" UserInfo={NSLocalizedDescription=Remote service does not respond to _accessibilityMachPort} 2018-12-07 13:13:06.402 AulaNative.iOS[5421:2652661] AX Exchange error: Error Domain=Accessibility Code=0 "Remote service does not respond to _accessibilityMachPort" UserInfo={NSLocalizedDescription=Remote service does not respond to _accessibilityMachPort} 2018-12-07 13:13:06.511 AulaNative.iOS[5421:2652661] AX Exchange error: Error Domain=Accessibility Code=0 "Remote service does not respond to _accessibilityMachPort" UserInfo={NSLocalizedDescription=Remote service does not respond to _accessibilityMachPort} 2018-12-07 13:13:06.511 AulaNative.iOS[5421:2652661] AX Exchange error: Error Domain=Accessibility Code=0 "Remote service does not respond to _accessibilityMachPort" UserInfo={NSLocalizedDescription=Remote service does not respond to _accessibilityMachPort} 2018-12-07 13:13:06.511 AulaNative.iOS[5421:2652661] AX Exchange error: Error Domain=Accessibility Code=0 "Remote service does not respond to _accessibilityMachPort" UserInfo={NSLocalizedDescription=Remote service does not respond to _accessibilityMachPort} 2018-12-07 13:13:06.512 AulaNative.iOS[5421:2652661] AX Exchange error: Error Domain=Accessibility Code=0 "Remote service does not respond to _accessibilityMachPort" UserInfo={NSLocalizedDescription=Remote service does not respond to _accessibilityMachPort} 2018-12-07 13:13:06.512 AulaNative.iOS[5421:2652661] AX Exchange error: Error Domain=Accessibility Code=0 "Remote service does not respond to _accessibilityMachPort" UserInfo={NSLocalizedDescription=Remote service does not respond to _accessibilityMachPort} 2018-12-07 13:13:06.512 AulaNative.iOS[5421:2652661] AX Exchange error: Error Domain=Accessibility Code=0 "Remote service does not respond to _accessibilityMachPort" UserInfo={NSLocalizedDescription=Remote service does not respond to _accessibilityMachPort} 2018-12-07 13:13:06.617 AulaNative.iOS[5421:2652661] AX Exchange error: Error Domain=Accessibility Code=0 "Remote service does not respond to _accessibilityMachPort" UserInfo={NSLocalizedDescription=Remote service does not respond to _accessibilityMachPort} 2018-12-07 13:13:06.617 AulaNative.iOS[5421:2652661] AX Exchange error: Error Domain=Accessibility Code=0 "Remote service does not respond to _accessibilityMachPort" UserInfo={NSLocalizedDescription=Remote service does not respond to _accessibilityMachPort} 2018-12-07 13:13:06.618 AulaNative.iOS[5421:2652661] AX Exchange error: Error Domain=Accessibility Code=0 "Remote service does not respond to _accessibilityMachPort" UserInfo={NSLocalizedDescription=Remote service does not respond to _accessibilityMachPort} 2018-12-07 13:13:06.618 AulaNative.iOS[5421:2652661] AX Exchange error: Error Domain=Accessibility Code=0 "Remote service does not respond to _accessibilityMachPort" UserInfo={NSLocalizedDescription=Remote service does not respond to _accessibilityMachPort} 2018-12-07 13:13:06.618 AulaNative.iOS[5421:2652661] AX Exchange error: Error Domain=Accessibility Code=0 "Remote service does not respond to _accessibilityMachPort" UserInfo={NSLocalizedDescription=Remote service does not respond to _accessibilityMachPort} ...

I think replacing navigationController?.pushViewController(passVC, animated: true) with present(passVC, animated: true, completion: nil) will fix the issue.

JanettHolst290490 commented 5 years ago

Let me add an additional observation. It only happens with a physical device - not the emulator. Im debugging on an IPhone X.

JanettHolst290490 commented 5 years ago

The functionality works just fine on both Android and IOS. Except on IOS it doesn't redirect when it fails. However, that might be unrelated. The debug spam continue after I have returned to the app and never stops again before I stop debugging.

jeremy-bridges commented 5 years ago

We see the same exception spamming our debug output. Doesn't seem to cause any problems in the application. Seeing it on iPads. Oddly, we are not using Xamarin.Auth. We reference the following Xamarin assemblies:

pamela032709 commented 5 years ago

I have the same issue. but auth is totally not working on ios only works on Android after the update . and I get the same console output

pamela032709 commented 5 years ago

Remote service does not respond to _accessibilityMachPort" UserInfo={NSLocalizedDescription=Remote service does not respond to _accessibilityMachPort} AX Exchange error: Error Domain=Accessibility Code=0 "

rogersillito commented 3 years ago

I'm seeing this too: iPad Pro, doesn't happen with simulators.

LakshmiVinukonda commented 3 years ago

I got it too,

AX Exchange error: Error Domain=Accessibility Code=0 "Remote service does not respond to _accessibilityMachPort" UserInfo={NSLocalizedDescription=Remote service does not respond to _accessibilityMachPort}

I see 100's of them in my application output

JanettHolst290490 commented 3 years ago

I think it's related to the keychain in the browser. When it suggests a username for you. We still have the issue. Years and projects later.

reddy4 commented 2 years ago

Above issue still happening, when I open PhotoLibrary in my iPad, please check log-info in below: ( OS Version 15.0 with Xamarin.iOS )

AX Exchange error: Error Domain=Accessibility Code=0 "Remote service does not respond to _accessibilityMachPort" UserInfo={NSLocalizedDescription=Remote service does not respond to _accessibilityMachPort} AX Exchange error: Error Domain=Accessibility Code=0 "Remote service does not respond to _accessibilityMachPort" UserInfo={NSLocalizedDescription=Remote service does not respond to _accessibilityMachPort} AX Exchange error: Error Domain=Accessibility Code=0 "Remote service does not respond to _accessibilityMachPort" UserInfo={NSLocalizedDescription=Remote service does not respond to _accessibilityMachPort} AX Exchange error: Error Domain=Accessibility Code=0 "Remote service does not respond to _accessibilityMachPort" UserInfo={NSLocalizedDescription=Remote service does not respond to _accessibilityMachPort} AX Exchange error: Error Domain=Accessibility Code=0 "Remote service does not respond to _accessibilityMachPort" UserInfo={NSLocalizedDescription=Remote service does not respond to _accessibilityMachPort} AX Exchange error: Error Domain=Accessibility Code=0 "Remote service does not respond to _accessibilityMachPort" UserInfo={NSLocalizedDescription=Remote service does not respond to _accessibilityMachPort} AX Exchange error: Error Domain=Accessibility Code=0 "Remote service does not respond to _accessibilityMachPort" UserInfo={NSLocalizedDescription=Remote service does not respond to _accessibilityMachPort} AX Exchange error: Error Domain=Accessibility Code=0 "Remote service does not respond to _accessibilityMachPort" UserInfo={NSLocalizedDescription=Remote service does not respond to _accessibilityMachPort} AX Exchange error: Error Domain=Accessibility Code=0 "Remote service does not respond to _accessibilityMachPort" UserInfo={NSLocalizedDescription=Remote service does not respond to _accessibilityMachPort} AX Exchange error: Error Domain=Accessibility Code=0 "Remote service does not respond to _accessibilityMachPort" UserInfo={NSLocalizedDescription=Remote service does not respond to _accessibilityMachPort}

I have below configuration:

Visual Studio Community 2019 for Mac Version 8.10.9 (build 3)

Apple Developer Tools Xcode 13.0 (19234)

Xamarin.iOS Version: 14.20.0.27 (Visual Studio Community) Hash: 2566861