An unknown server-side error - iOS


#1

Hello,
I’m triyng to execute test on iOS device but I have this error:

    java.util.concurrent.ExecutionException: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: -[XCApplicationQuery elementSnapshotForDebugDescription]: unrecognized selector sent to instance 0x2821d05a0

(
	0   CoreFoundation                      0x00000001af8f1c44 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 1256516
	1   libobjc.A.dylib                     0x00000001af60c0c8 objc_exception_throw + 60
	2   CoreFoundation                      0x00000001af7effc0 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 200640
	3   CoreFoundation                      0x00000001af8f63d4 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 1274836
	4   CoreFoundation                      0x00000001af8f8570 _CF_forwarding_prep_0 + 96
	5   WebDriverAgentLib                   0x0000000106e34f7c -[XCUIElement(FBUtilities) fb_lastSnapshot] + 60
	6   WebDriverAgentLib                   0x0000000106e2cac0 -[XCUIElement(WebDriverAttributesForwarding) fb_snapshotForAttributeName:] + 732
	7   WebDriverAgentLib                   0x0000000106e2cce4 -[XCUIElement(WebDriverAttributesForwarding) forwardingTargetForSelector:] + 168
	8   CoreFoundation                      0x00000001af8f5f50 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 1273680
	9   CoreFoundation                      0x00000001af8f8570 _CF_forwarding_prep_0 + 96
	10  WebDriverAgentLib                   0x0000000106e5138c +[FBElementCommands handleGetWindowSize:] + 128
	11  WebDriverAgentLib                   0x0000000106e1f938 -[FBRoute_TargetAction mountRequest:intoResponse:] + 220
	12  WebDriverAgentLib                   0x0000000106e0eda4 __37-[FBWebServer registerRouteHandlers:]_block_invoke + 504
	13  RoutingHTTPServer                   0x0000000106f063cc -[RoutingHTTPServer handleRoute:withRequest:response:] + 144
	14  RoutingHTTPServer                   0x0000000106f06b80 __72-[RoutingHTTPServer routeMethod:withPath:parameters:request:connection:]_block_invoke + 44
	15  libdispatch.dylib                   0x00000001af59900c ED0789CD-8D80-39F4-9651-D8707D9C0337 + 12300
	16  libdispatch.dylib                   0x00000001af5a58e0 ED0789CD-8D80-39F4-9651-D8707D9C0337 + 63712
	17  libdispatch.dylib                   0x00000001af59900c ED0789CD-8D80-39F4-9651-D8707D9C0337 + 12300
	18  libdispatch.dylib                   0x00000001af5a4cd8 _dispatch_main_queue_callback_4CF + 968
	19  CoreFoundation                      0x00000001af86ce20 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 712224
	20  CoreFoundation                      0x00000001af867b7c 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 691068
	21  CoreFoundation                      0x00000001af867098 CFRunLoopRunSpecific + 480
	22  Foundation                          0x00000001afbac580 672CF0CB-4951-3B91-89DF-55E953AEA00F + 34176
	23  WebDriverAgentLib                   0x0000000106e0d858 -[FBWebServer startServing] + 428
	24  WebDriverAgentRunner                0x00000001057d7bd4 -[UITestingUITests testRunner] + 120
	25  CoreFoundation                      0x00000001af8f8724 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 1283876
	26  CoreFoundation                      0x00000001af7c1280 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 8832
	27  XCTest                              0x0000000104fa2950 __24-[XCTestCase invokeTest]_block_invoke_2.218 + 72
	28  XCTest                              0x000000010501635c -[XCTMemoryChecker _assertInvalidObjectsDeallocatedAfterScope:] + 76
	29  XCTest                              0x0000000104facdc8 -[XCTestCase assertInvalidObjectsDeallocatedAfterScope:] + 116
	30  XCTest                              0x0000000104fa28d4 __24-[XCTestCase invokeTest]_block_invoke.212 + 204
	31  XCTest                              0x0000000104ffb3b8 -[XCTestCase(Failures) performFailableBlock:testCaseRun:shouldInterruptTest:] + 72
	32  XCTest                              0x0000000104ffb2c8 -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 112
	33  XCTest                              0x0000000104fa233c __24-[XCTestCase invokeTest]_block_invoke + 1092
	34  XCTest                              0x0000000105002720 -[XCUITestContext performInScope:] + 136
	35  XCTest                              0x0000000104fa1e0c -[XCTestCase testContextPerformInScope:] + 188
	36  XCTest                              0x0000000104fa1ee4 -[XCTestCase invokeTest] + 156
	37  XCTest                              0x0000000104fa3cf0 __26-[XCTestCase performTest:]_block_invoke_2 + 48
	38  XCTest                              0x0000000104ffb3b8 -[XCTestCase(Failures) performFailableBlock:testCaseRun:shouldInterruptTest:] + 72
	39  XCTest                              0x0000000104ffb2c8 -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 112
	40  XCTest                              0x0000000104fa3c04 __26-[XCTestCase performTest:]_block_invoke.352 + 112
	41  XCTest                              0x000000010500ecf8 +[XCTContext runInContextForTestCase:block:] + 216
	42  XCTest                              0x0000000104fa33a0 -[XCTestCase performTest:] + 676
	43  XCTest                              0x0000000104fe78f0 -[XCTest runTest] + 64
	44  XCTest                              0x0000000104f9db68 __27-[XCTestSuite performTest:]_block_invoke + 284
	45  XCTest                              0x0000000104f9d3e0 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 76
	46  XCTest                              0x0000000104f9d6c4 -[XCTestSuite performTest:] + 344
	47  XCTest                              0x0000000104fe78f0 -[XCTest runTest] + 64
	48  XCTest                              0x0000000104f9db68 __27-[XCTestSuite performTest:]_block_invoke + 284
	49  XCTest                              0x0000000104f9d3e0 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 76
	50  XCTest                              0x0000000104f9d6c4 -[XCTestSuite performTest:] + 344
	51  XCTest                              0x0000000104fe78f0 -[XCTest runTest] + 64
	52  XCTest                              0x0000000104f9db68 __27-[XCTestSuite performTest:]_block_invoke + 284
	53  XCTest                              0x0000000104f9d3e0 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 76
	54  XCTest                              0x0000000104f9d6c4 -[XCTestSuite performTest:] + 344
	55  XCTest                              0x0000000104fe78f0 -[XCTest runTest] + 64
	56  XCTest                              0x0000000105021208 __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke + 180
	57  XCTest                              0x0000000105021314 __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke.84 + 116
	58  XCTest                              0x0000000104fb756c -[XCTestObservationCenter _observeTestExecutionForBlock:] + 520
	59  XCTest                              0x0000000105020fbc -[XCTTestRunSession runTestsAndReturnError:] + 624
	60  XCTest                              0x0000000104f81378 -[XCTestDriver runTestsAndReturnError:] + 444
	61  XCTest                              0x000000010500b080 _XCTestMain + 2404
	62  WebDriverAgentRunner-Runner         0x0000000104c678e8 -[_XCTRunnerAppDelegate applicationWillResignActive:] + 0
	63  WebDriverAgentRunner-Runner         0x0000000104c677f0 _XCTRunnerRunTests + 0
	64  CoreFoundation                      0x00000001af86d07c 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 712828
	65  CoreFoundation                      0x00000001af86c800 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 710656
	66  CoreFoundation                      0x00000001af867800 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 690176
	67  CoreFoundation                      0x00000001af867098 CFRunLoopRunSpecific + 480
	68  GraphicsServices                    0x00000001b99d1534 GSEventRunModal + 108
	69  UIKitCore                           0x00000001b39877ac UIApplicationMain + 1940
	70  WebDriverAgentRunner-Runner         0x0000000104c67ab4 main + 192
	71  libdyld.dylib                       0x00000001af6e6f30 0DC9A4BA-C3E8-3487-99DB-1B5C86597AF5 + 3888
)
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: 'MacBook-Air-di-F.local', ip: 'fe80:0:0:0:1cad:f6ca:5ae0:7188%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.1', java.version: '1.8.0_181'
Driver info: io.appium.java_client.ios.IOSDriver
Capabilities {appWaitActivity: *, automationName: XCUITest, browserName: , bundleId: com.ca.app, databaseEnabled: false, deviceId: 7768822F-8671-490A-8EE9-F64..., deviceName: C’s iPhone, javascriptEnabled: true, locationContextEnabled: false, networkConnectionEnabled: false, newCommandTimeout: 1800, platform: MAC, platformName: iOS, platformVersion: 13.1.2, realDeviceLogger: /Applications/Katalon Studi..., takesScreenshot: true, udid: 00008020-00140D5A3686002E, waitForAppScript: true;, wdaLocalPort: 54799, webStorageEnabled: false}
Session ID: edb9dfde-4a91-4ccf-a605-943f313540ce
	at com.kms.katalon.composer.components.impl.dialogs.ProgressMonitorDialogWithThread.runAndWait(ProgressMonitorDialogWithThread.java:49)
	at com.kms.katalon.composer.mobile.objectspy.components.MobileLocalAppComposite$12.run(MobileLocalAppComposite.java:474)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
Caused by: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: -[XCApplicationQuery elementSnapshotForDebugDescription]: unrecognized selector sent to instance 0x2821d05a0

(
	0   CoreFoundation                      0x00000001af8f1c44 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 1256516
	1   libobjc.A.dylib                     0x00000001af60c0c8 objc_exception_throw + 60
	2   CoreFoundation                      0x00000001af7effc0 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 200640
	3   CoreFoundation                      0x00000001af8f63d4 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 1274836
	4   CoreFoundation                      0x00000001af8f8570 _CF_forwarding_prep_0 + 96
	5   WebDriverAgentLib                   0x0000000106e34f7c -[XCUIElement(FBUtilities) fb_lastSnapshot] + 60
	6   WebDriverAgentLib                   0x0000000106e2cac0 -[XCUIElement(WebDriverAttributesForwarding) fb_snapshotForAttributeName:] + 732
	7   WebDriverAgentLib                   0x0000000106e2cce4 -[XCUIElement(WebDriverAttributesForwarding) forwardingTargetForSelector:] + 168
	8   CoreFoundation                      0x00000001af8f5f50 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 1273680
	9   CoreFoundation                      0x00000001af8f8570 _CF_forwarding_prep_0 + 96
	10  WebDriverAgentLib                   0x0000000106e5138c +[FBElementCommands handleGetWindowSize:] + 128
	11  WebDriverAgentLib                   0x0000000106e1f938 -[FBRoute_TargetAction mountRequest:intoResponse:] + 220
	12  WebDriverAgentLib                   0x0000000106e0eda4 __37-[FBWebServer registerRouteHandlers:]_block_invoke + 504
	13  RoutingHTTPServer                   0x0000000106f063cc -[RoutingHTTPServer handleRoute:withRequest:response:] + 144
	14  RoutingHTTPServer                   0x0000000106f06b80 __72-[RoutingHTTPServer routeMethod:withPath:parameters:request:connection:]_block_invoke + 44
	15  libdispatch.dylib                   0x00000001af59900c ED0789CD-8D80-39F4-9651-D8707D9C0337 + 12300
	16  libdispatch.dylib                   0x00000001af5a58e0 ED0789CD-8D80-39F4-9651-D8707D9C0337 + 63712
	17  libdispatch.dylib                   0x00000001af59900c ED0789CD-8D80-39F4-9651-D8707D9C0337 + 12300
	18  libdispatch.dylib                   0x00000001af5a4cd8 _dispatch_main_queue_callback_4CF + 968
	19  CoreFoundation                      0x00000001af86ce20 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 712224
	20  CoreFoundation                      0x00000001af867b7c 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 691068
	21  CoreFoundation                      0x00000001af867098 CFRunLoopRunSpecific + 480
	22  Foundation                          0x00000001afbac580 672CF0CB-4951-3B91-89DF-55E953AEA00F + 34176
	23  WebDriverAgentLib                   0x0000000106e0d858 -[FBWebServer startServing] + 428
	24  WebDriverAgentRunner                0x00000001057d7bd4 -[UITestingUITests testRunner] + 120
	25  CoreFoundation                      0x00000001af8f8724 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 1283876
	26  CoreFoundation                      0x00000001af7c1280 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 8832
	27  XCTest                              0x0000000104fa2950 __24-[XCTestCase invokeTest]_block_invoke_2.218 + 72
	28  XCTest                              0x000000010501635c -[XCTMemoryChecker _assertInvalidObjectsDeallocatedAfterScope:] + 76
	29  XCTest                              0x0000000104facdc8 -[XCTestCase assertInvalidObjectsDeallocatedAfterScope:] + 116
	30  XCTest                              0x0000000104fa28d4 __24-[XCTestCase invokeTest]_block_invoke.212 + 204
	31  XCTest                              0x0000000104ffb3b8 -[XCTestCase(Failures) performFailableBlock:testCaseRun:shouldInterruptTest:] + 72
	32  XCTest                              0x0000000104ffb2c8 -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 112
	33  XCTest                              0x0000000104fa233c __24-[XCTestCase invokeTest]_block_invoke + 1092
	34  XCTest                              0x0000000105002720 -[XCUITestContext performInScope:] + 136
	35  XCTest                              0x0000000104fa1e0c -[XCTestCase testContextPerformInScope:] + 188
	36  XCTest                              0x0000000104fa1ee4 -[XCTestCase invokeTest] + 156
	37  XCTest                              0x0000000104fa3cf0 __26-[XCTestCase performTest:]_block_invoke_2 + 48
	38  XCTest                              0x0000000104ffb3b8 -[XCTestCase(Failures) performFailableBlock:testCaseRun:shouldInterruptTest:] + 72
	39  XCTest                              0x0000000104ffb2c8 -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 112
	40  XCTest                              0x0000000104fa3c04 __26-[XCTestCase performTest:]_block_invoke.352 + 112
	41  XCTest                              0x000000010500ecf8 +[XCTContext runInContextForTestCase:block:] + 216
	42  XCTest                              0x0000000104fa33a0 -[XCTestCase performTest:] + 676
	43  XCTest                              0x0000000104fe78f0 -[XCTest runTest] + 64
	44  XCTest                              0x0000000104f9db68 __27-[XCTestSuite performTest:]_block_invoke + 284
	45  XCTest                              0x0000000104f9d3e0 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 76
	46  XCTest                              0x0000000104f9d6c4 -[XCTestSuite performTest:] + 344
	47  XCTest                              0x0000000104fe78f0 -[XCTest runTest] + 64
	48  XCTest                              0x0000000104f9db68 __27-[XCTestSuite performTest:]_block_invoke + 284
	49  XCTest                              0x0000000104f9d3e0 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 76
	50  XCTest                              0x0000000104f9d6c4 -[XCTestSuite performTest:] + 344
	51  XCTest                              0x0000000104fe78f0 -[XCTest runTest] + 64
	52  XCTest                              0x0000000104f9db68 __27-[XCTestSuite performTest:]_block_invoke + 284
	53  XCTest                              0x0000000104f9d3e0 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 76
	54  XCTest                              0x0000000104f9d6c4 -[XCTestSuite performTest:] + 344
	55  XCTest                              0x0000000104fe78f0 -[XCTest runTest] + 64
	56  XCTest                              0x0000000105021208 __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke + 180
	57  XCTest                              0x0000000105021314 __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke.84 + 116
	58  XCTest                              0x0000000104fb756c -[XCTestObservationCenter _observeTestExecutionForBlock:] + 520
	59  XCTest                              0x0000000105020fbc -[XCTTestRunSession runTestsAndReturnError:] + 624
	60  XCTest                              0x0000000104f81378 -[XCTestDriver runTestsAndReturnError:] + 444
	61  XCTest                              0x000000010500b080 _XCTestMain + 2404
	62  WebDriverAgentRunner-Runner         0x0000000104c678e8 -[_XCTRunnerAppDelegate applicationWillResignActive:] + 0
	63  WebDriverAgentRunner-Runner         0x0000000104c677f0 _XCTRunnerRunTests + 0
	64  CoreFoundation                      0x00000001af86d07c 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 712828
	65  CoreFoundation                      0x00000001af86c800 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 710656
	66  CoreFoundation                      0x00000001af867800 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 690176
	67  CoreFoundation                      0x00000001af867098 CFRunLoopRunSpecific + 480
	68  GraphicsServices                    0x00000001b99d1534 GSEventRunModal + 108
	69  UIKitCore                           0x00000001b39877ac UIApplicationMain + 1940
	70  WebDriverAgentRunner-Runner         0x0000000104c67ab4 main + 192
	71  libdyld.dylib                       0x00000001af6e6f30 0DC9A4BA-C3E8-3487-99DB-1B5C86597AF5 + 3888
)
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: 'MacBook-Air-di-F.local', ip: 'fe80:0:0:0:1cad:f6ca:5ae0:7188%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.1', java.version: '1.8.0_181'
Driver info: io.appium.java_client.ios.IOSDriver
Capabilities {appWaitActivity: *, automationName: XCUITest, browserName: , bundleId: com.ca.app, databaseEnabled: false, deviceId: 7768822F-8671-490A-8EE9-F64..., deviceName: C’s iPhone, javascriptEnabled: true, locationContextEnabled: false, networkConnectionEnabled: false, newCommandTimeout: 1800, platform: MAC, platformName: iOS, platformVersion: 13.1.2, realDeviceLogger: /Applications/Katalon Studi..., takesScreenshot: true, udid: 00008020-00140D5A3686002E, waitForAppScript: true;, wdaLocalPort: 54799, webStorageEnabled: false}
Session ID: edb9dfde-4a91-4ccf-a605-943f313540ce
	at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187)
	at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122)
	at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
	at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
	at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:239)
	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
	at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:46)
	at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
	at io.appium.java_client.ios.IOSDriver.execute(IOSDriver.java:1)
	at io.appium.java_client.HasSessionDetails.getSessionDetails(HasSessionDetails.java:39)
	at io.appium.java_client.HasSessionDetails.getSessionDetail(HasSessionDetails.java:56)
	at io.appium.java_client.HasSessionDetails.getPlatformName(HasSessionDetails.java:65)
	at io.appium.java_client.internal.JsonToMobileElementConverter.<init>(JsonToMobileElementConverter.java:49)
	at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:89)
	at io.appium.java_client.ios.IOSDriver.<init>(IOSDriver.java:85)
	at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:495)
	at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:479)
	at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startMobileDriver(MobileDriverFactory.java:339)
	at com.kms.katalon.composer.mobile.objectspy.dialog.MobileInspectorController.startExistingApp(MobileInspectorController.java:138)
	at com.kms.katalon.composer.mobile.objectspy.components.MobileLocalAppComposite$12$1.call(MobileLocalAppComposite.java:482)
	at com.kms.katalon.composer.components.impl.dialogs.ProgressMonitorDialogWithThread.startThreadAndWait(ProgressMonitorDialogWithThread.java:36)
	at com.kms.katalon.composer.components.impl.dialogs.ProgressMonitorDialogWithThread.runAndWait(ProgressMonitorDialogWithThread.java:48)
	... 2 more

OS: Catalina 10.15.1

Katalon: 7.0.5

Appium: 1.12.1


#4

solved with appium update at 1.15


#5

Out of curiosity, what version of Xcode are you using?

– Chris


#6

Xcode 11.2