TOCropViewController icon indicating copy to clipboard operation
TOCropViewController copied to clipboard

Permission denied portName:'com.apple.iphone.axserver

Open c7topher opened this issue 4 years ago • 13 comments

Error Code

[AXRuntimeCommon] AX Lookup problem - errorCode:1100 error:Permission denied portName:'com.apple.iphone.axserver' PID:6723 ( 0 AXRuntime 0x00000001af41e3a0 539C8041-A10E-3612-AAE6-420FCB339466 + 267168 1 AXRuntime 0x00000001af3e3164 _AXGetPortFromCache + 548 2 AXRuntime 0x00000001af3e459c AXUIElementPerformFencedActionWithValue + 392 3 UIKit 0x00000001dac71720 033842C5-1173-3112-ABCE-25D066CFFADB + 800544 4 libdispatch.dylib 0x0000000105e85e1c _dispatch_call_block_and_release + 32 5 libdispatch.dylib 0x0000000105e8727c _dispatch_client_callout + 20 6 libdispatch.dylib 0x0000000105e89af0 _dispatch_queue_override_invoke + 924 7 libdispatch.dylib 0x0000000105e98aa0 _dispatch_root_queue_drain + 356 8 libdispatch.dylib 0x0000000105e9940c _dispatch_worker_thread2 + 144 9 libsystem_pthread.dylib 0x00000001a49ff690 _pthread_wqthread + 216 10 libsystem_pthread.dylib 0x00000001a4a059e8 start_wqthread + 8 )

which is freezing up the application whenever I call dismiss on the cropper from delegate method func cropViewController(_ cropViewController: CropViewController, didCropToImage image: UIImage, withRect cropRect: CGRect, angle: Int) {

}

No solution found as of yet. Makes the library unusable.

Tested with xCode 11.3.1 And iPhone 11 Pro iOS 13.3

Tested with iPad Pro Simulator 12.2 and the issue does not occur. The library works as intended. Calling dismiss on the cropper view dismisses properly and doesn't freeze up the application

Tested with iPad Pro Simulator 13.3 and the issue does occur. It seems to be related to iOS 13.3

It appears for some reason the transition view isn't being dismissed which overlays the screen and prevents it from being tapped. So although the app isn't technically freezing the drop shadow is preventing any further action and can't be removed Screen Shot 2020-01-19 at 10 57 19 PM

Architecture/Process -> Navigation Controller -> Root View Controller -> Pushed View Controller -> Presented View Controller -> Presented Native UIImage Picker View Controller -> Got Image and Dismissed Picker -> In Completion of dismiss present Swift based CropViewController -> Crop Image and hit done -> Delegate method didCropToImage called -> Dismiss CropViewController

The next thing that happens is odd. The CropViewController gets dismissed but so does its parent and what is left behind is a transition view which covers the whole screen so no further actions can be taken

UPDATE: It seems to only affect view controllers that are presented "over current context". Presenting on a full screen viewcontroller works fine

c7topher avatar Jan 20 '20 04:01 c7topher

@ojseven Thanks for the extremely thorough bug report! I'm sorry you've been experiencing issues with it.

Hmm, so with that update, did you mean to say you modified the crop controller to change its modal presentation mode to "over current context" or is it the parent view controller in the background with that mode?

Hmm, truth be told, if it's an iOS 13 bug, I'm not sure how easy this is to fix.

TimOliver avatar Jan 27 '20 15:01 TimOliver

Has anybody found a solution to this problem?

I am getting a similar error:

AX Lookup problem - errorCode:1100 error:Permission denied portName:'com.apple.iphone.axserver' PID:481 (
	0   AXRuntime                           0x00000001b8d363a0 905DC921-AFE6-3398-A0CF-AC3372C35897 + 267168
	1   AXRuntime                           0x00000001b8cfb164 _AXGetPortFromCache + 548
	2   AXRuntime                           0x00000001b8cfc59c AXUIElementPerformFencedActionWithValue + 392
	3   UIKit                               0x00000001e45c96f8 F5079CB4-6E07-3DFE-81CA-B8667B73F64C + 800504
	4   libdispatch.dylib                   0x00000001013ede1c _dispatch_call_block_and_release + 32
	5   libdispatch.dylib                   0x00000001013ef27c _dispatch_client_callout + 20
	6   libdispatch.dylib                   0x00000001013f1af0 _dispatch_queue_override_invoke + 924
	7   libdispatch.dylib                   0x0000000101400aa0 _dispatch_root_queue_drain + 356
	8   libdispatch.dylib                   0x000000010140140c _dispatch_worker_thread2 + 144
	9   libsystem_pthread.dylib             0x00000001ae303690 _pthread_wqthread + 216
	10  libsystem_pthread.dylib             0x00000001ae3099e8 start_wqthread + 8
)

aymather avatar Jun 07 '20 16:06 aymather

Same problem as of 2020/06/11

mannerism avatar Jun 11 '20 01:06 mannerism

Thanks for the +1s folks, but unless someone can provide more information (Or ideally, a test app that reproduces this problem), there's not a lot that can be done here.

I've been able to replicate the breaking transition view when setting the presentation context to .overCurrentContext, but considering this view controller is hard coded to be .fullScreen, I'd say that that issue is out of scope. (And if it's not, it should ideally be tracked in a different issue).

I'm not convinced this is an issue that can be solved on the code level of this library. Considering we're on the cusp of iOS 14 now, I'm going to leave this issue as "pr requested", and if no one can reliably recreate the issue in a test app, I'm going to close the issue, and we can revisit it later if it becomes more widespread.

Thanks!

TimOliver avatar Jun 11 '20 06:06 TimOliver

I'm experiencing the same error when overlaying a view in SwiftUI on Beta 6. App functions just fine though.

wingovers avatar Sep 04 '20 22:09 wingovers

Having the same problem while loading the Flutter module screen in iOS app.

lovekeshsaxena avatar Nov 30 '20 18:11 lovekeshsaxena

Any updates on this issue?

iamrohitagg avatar Jun 21 '21 06:06 iamrohitagg

Any updates on this issue?

@iamrohitagg did you find a fix?

utkarshshendge avatar May 12 '22 12:05 utkarshshendge

我在WKWebView中遇到相同的问题[AXRuntimeCommon] AX Lookup problem - errorCode:1100 error:Permission denied portName:'com.apple.iphone.axserver' PID:13599

具体的信息: [UICollectionViewRecursion] cv == 0x1109a1000 Disabling recursion trigger logging 2022-08-01 10:24:34.054274+0800 Driver[13569:2481108] [UICollectionViewRecursion] cv == 0x1109a1000 Disabling recursion trigger logging 2022-08-01 10:24:34.071736+0800 Driver[13569:2481108] [UICollectionViewRecursion] cv == 0x1109a1000 Disabling recursion trigger logging 2022-08-01 10:24:34.483873+0800 Driver[13569:2483343] [AXRuntimeCommon] Unknown client: Driver 2022-08-01 10:24:34.663736+0800 Driver[13569:2481108] [Accessibility] WKContentView[@] set up: @ pid: @ MACH_PORT 278130176 2022-08-01 10:24:34.664115+0800 Driver[13569:2481108] [Accessibility] WKContentView[@] set up: @ pid: @ MACH_PORT 278413312 2022-08-01 10:24:34.664298+0800 Driver[13569:2481108] [Accessibility] WKContentView[@] set up: @ pid: @ MACH_PORT 319205376 2022-08-01 10:25:06.489208+0800 Driver[13569:2483700] [AXRuntimeCommon] AX Lookup problem - errorCode:1100 error:Permission denied portName:'com.apple.iphone.axserver' PID:13599 ( 0 AXRuntime 0x00000001a8b8fc24 638F11FF-7696-30F3-A29E-8ECB6147567D + 322596 1 AXRuntime 0x00000001a8b455dc _AXGetPortFromCache + 708 2 AXRuntime 0x00000001a8b46cec AXUIElementPerformFencedActionWithValue + 488 3 UIKit 0x00000001f3b90c70 89D9DA59-C6CA-39FF-AF87-AB9019F15DC6 + 932976 4 libdispatch.dylib 0x0000000103b3ca20 _dispatch_call_block_and_release + 32 5 libdispatch.dylib 0x0000000103b3e700 _dispatch_client_callout + 20 6 libdispatch.dylib 0x0000000103b4683c _dispatch_lane_serial_drain + 952 7 libdispatch.dylib 0x0000000103b47558 _dispatch_lane_invoke + 428 8 libdispatch.dylib 0x0000000103b53fa0 _dispatch_workloop_worker_thread + 916 9 libsystem_pthread.dylib 0x00000001f38711b0 _pthread_wqthread + 288 10 libsystem_pthread.dylib 0x00000001f3870f50 start_wqthread + 8 )

操作流程: 1、WKWebView完成初次夹在加载
2、长按WKWebView中图片、链接,弹出SFSafariViewController -> SFBrowerRemoteViewController(不进行任何操作) 3、点击空白处,SFSafariViewController关闭,出现上述AXRuntimeCommon问题。

MetaBBLv avatar Aug 01 '22 03:08 MetaBBLv

Any updates on this issue?

@iamrohitagg did you find a fix?

No

iamrohitagg avatar Aug 01 '22 12:08 iamrohitagg

I got the same error

App-Designer2 avatar Mar 04 '23 18:03 App-Designer2

it worked fine with ios 14.7.1, but on ios 16.3.1 i get the same error. can someone fix it?

SiposPtr avatar Mar 25 '23 20:03 SiposPtr

Has anybody found how to fix that?

mrbodich avatar Jun 16 '23 13:06 mrbodich