Skip to content

Instantly share code, notes, and snippets.

@khanhdodang
Last active January 3, 2019 04:52
Show Gist options
  • Save khanhdodang/dcceac9fbfb34407b16b513dae1013b0 to your computer and use it in GitHub Desktop.
Save khanhdodang/dcceac9fbfb34407b16b513dae1013b0 to your computer and use it in GitHub Desktop.
From Client Response:
{
"value": {
"message": "An unknown server-side error occurred while processing the command. Original error: -[NSTaggedPointerString fb_lastSnapshot]: unrecognized selector sent to instance 0xa000000303030354\n\n(\n\t0 CoreFoundation 0x000000018e4711d0 <redacted> + 148\n\t1 libobjc.A.dylib 0x000000018cea855c objc_exception_throw + 56\n\t2 CoreFoundation 0x000000018e478268 <redacted> + 0\n\t3 CoreFoundation 0x000000018e475270 <redacted> + 916\n\t4 CoreFoundation 0x000000018e36e80c _CF_forwarding_prep_0 + 92\n\t5 WebDriverAgentLib 0x0000000101d5abc4 -[FBBaseGestureItem hitpointWithElement:positionOffset:error:] + 100\n\t6 WebDriverAgentLib 0x0000000101d456a8 -[FBAppiumGestureItem coordinatesWithOptions:error:] + 868\n\t7 WebDriverAgentLib 0x0000000101d45044 -[FBAppiumGestureItem initWithActionItem:application:atPosition:offset:error:] + 292\n\t8 WebDriverAgentLib 0x0000000101d45b90 -[FBPressItem initWithActionItem:application:atPosition:offset:error:] + 124\n\t9 WebDriverAgentLib 0x0000000101d46e2c -[FBAppiumActionsSynthesizer eventPathsWithAction:error:] + 636\n\t10 WebDriverAgentLib 0x0000000101d476b4 -[FBAppiumActionsSynthesizer synthesizeWithError:] + 572\n\t11 WebDriverAgentLib 0x0000000101d5d294 -[XCUIApplication(FBTouchAction) fb_performActionsWithSynthesizerType:actions:elementCache:error:] + 156\n\t12 WebDriverAgentLib 0x0000000101d5d370 -[XCUIApplication(FBTouchAction) fb_performAppiumTouchActions:elementCache:error:] + 116\n\t13 WebDriverAgentLib 0x0000000101d5dcec +[FBTouchActionCommands handlePerformAppiumTouchActions:] + 264\n\t14 WebDriverAgentLib 0x0000000101d53350 -[FBRoute_TargetAction mountRequest:intoResponse:] + 132\n\t15 WebDriverAgentLib 0x0000000101d48bb0 __37-[FBWebServer registerRouteHandlers:]_block_invoke + 364\n\t16 RoutingHTTPServer 0x0000000101e463cc -[RoutingHTTPServer handleRoute:withRequest:response:] + 144\n\t17 RoutingHTTPServer 0x0000000101e46b80 __72-[RoutingHTTPServer routeMethod:withPath:parameters:request:connection:]_block_invoke + 44\n\t18 libdispatch.dylib 0x000000018d2fa1bc <redacted> + 16\n\t19 libdispatch.dylib 0x000000018d30b084 <redacted> + 320\n\t20 libdispatch.dylib 0x000000018d2fa1bc <redacted> + 16\n\t21 libdispatch.dylib 0x000000018d2fed68 _dispatch_main_queue_callback_4CF + 1000\n\t22 CoreFoundation 0x000000018e41e810 <redacted> + 12\n\t23 CoreFoundation 0x000000018e41c3fc <redacted> + 1660\n\t24 CoreFoundation 0x000000018e34a2b8 CFRunLoopRunSpecific + 444\n\t25 Foundation 0x000000018ee8726c <redacted> + 304\n\t26 WebDriverAgentLib 0x0000000101d47e04 -[FBWebServer startServing] + 320\n\t27 WebDriverAgentRunner 0x0000000101d0bc20 -[UITestingUITests testRunner] + 148\n\t28 CoreFoundation 0x000000018e477150 <redacted> + 144\n\t29 CoreFoundation 0x000000018e369eac <redacted> + 284\n\t30 XCTest 0x000000010020a654 __24-[XCTestCase invokeTest]_block_invoke.275 + 48\n\t31 XCTest 0x000000010020a404 __24-[XCTestCase invokeTest]_block_invoke + 680\n\t32 XCTest 0x00000001002509d8 -[XCUITestContext performInScope:] + 208\n\t33 XCTest 0x000000010020a14c -[XCTestCase invokeTest] + 136\n\t34 XCTest 0x000000010020b224 __26-[XCTestCase performTest:]_block_invoke.382 + 48\n\t35 XCTest 0x0000000100255a78 +[XCTContext runInContextForTestCase:block:] + 164\n\t36 XCTest 0x000000010020ac20 -[XCTestCase performTest:] + 596\n\t37 XCTest 0x0000000100206e14 __27-[XCTestSuite performTest:]_block_invoke + 288\n\t38 XCTest 0x000000010020683c -[XCTestSuite _performProtectedSectionForTest:testSection:] + 44\n\t39 XCTest 0x0000000100206a4c -[XCTestSuite performTest:] + 236\n\t40 XCTest 0x0000000100206e14 __27-[XCTestSuite performTest:]_block_invoke + 288\n\t41 XCTest 0x000000010020683c -[XCTestSuite _performProtectedSectionForTest:testSection:] + 44\n\t42 XCTest 0x0000000100206a4c -[XCTestSuite performTest:] + 236\n\t43 XCTest 0x0000000100206e14 __27-[XCTestSuite performTest:]_block_invoke + 288\n\t44 XCTest 0x000000010020683c -[XCTestSuite _performProtectedSectionForTest:testSection:] + 44\n\t45 XCTest 0x0000000100206a4c -[XCTestSuite performTest:] + 236\n\t46 XCTest 0x000000010025f484 __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke + 44\n\t47 XCTest 0x0000000100219994 -[XCTestObservationCenter _observeTestExecutionForBlock:] + 420\n\t48 XCTest 0x000000010025f300 -[XCTTestRunSession runTestsAndReturnError:] + 292\n\t49 XCTest 0x00000001001f63d4 -[XCTestDriver runTestsAndReturnError:] + 312\n\t50 XCTest 0x0000000100254c20 _XCTestMain + 620\n\t51 CoreFoundation 0x000000018e41ea44 <redacted> + 20\n\t52 CoreFoundation 0x000000018e41e240 <redacted> + 288\n\t53 CoreFoundation 0x000000018e41c094 <redacted> + 788\n\t54 CoreFoundation 0x000000018e34a2b8 CFRunLoopRunSpecific + 444\n\t55 GraphicsServices 0x000000018fdfe198 GSEventRunModal + 180\n\t56 UIKit 0x000000019438a7fc <redacted> + 684\n\t57 UIKit 0x0000000194385534 UIApplicationMain + 208\n\t58 WebDriverAgentRunner-Runner 0x0000000100078444 WebDriverAgentRunner-Runner + 33860\n\t59 libdyld.dylib 0x000000018d32d5b8 <redacted> + 4\n)"
},
"status": 13,
"sessionId": "5bf2e1de-4c0d-432f-bc72-76042e94dc51"
}
From Appium Log:
[HTTP] --> POST /wd/hub/session/5bf2e1de-4c0d-432f-bc72-76042e94dc51/touch/perform
[HTTP] {"actions":[{"action":"press","options":{"element":"5000","pressure":1}},{"action":"wait","options":{"ms":100}},{"action":"release","options":{}}]}
[debug] [MJSONWP] Calling AppiumDriver.performTouch() with args: [[{"action":"press","options":{"element":"5000","pressure":1}},{"action":"wait","options":{"ms":100}},{"action":"release","options":{}}],"5bf2e1de-4c0d-432f-bc72-76042e94dc51"]
[debug] [XCUITest] Executing command 'performTouch'
[debug] [XCUITest] Received the following touch action: press(options={"element":"5000","pressure":1})-wait(options={"ms":100})-release(options={})
[debug] [JSONWP Proxy] Proxying [POST /wda/touch/perform] to [POST http://localhost:49405/session/E3256FC8-DD79-430D-88F0-4E36386E5D8F/wda/touch/perform] with body: {"actions":[{"action":"press","options":{"element":"5000","pressure":1}},{"action":"wait","options":{"ms":100}},{"action":"release","options":{}}]}
[debug] [JSONWP Proxy] Got response with status 200: {"value":"-[NSTaggedPointerString fb_lastSnapshot]: unrecognized selector sent to instance 0xa000000303030354\n\n(\n\t0 CoreFoundation 0x000000018e4711d0 <redacted> + 148\n\t1 libobjc.A.dylib 0x000000018cea855c objc_exception_throw + 56\n\t2 CoreFoundation 0x000000018e478268 <redacted> + 0\n\t3 CoreFoundation 0x000000018e475270 <redacted> + 916\n\t4 CoreFoundation 0x000000018e36e80c _CF_forwarding_prep_0 + 92\n\t5 WebDriverAgentLib 0x0000000101d5abc4 -[FBBaseGestureItem hitpointWithElement:positionOffset:error:] + 100\n\t6 WebDriverAgentLib 0x0000000101d456a8 -[FBAppiumGestureItem coordinatesWithOptions:error:] + 868\n\t7 WebDriverAgentLib 0x0000000101d45044 -[FBAppiumGestureItem initWithActionItem:application:atPosition:offset:error:] + 292\n\t8 WebDriverAgentLib 0x0000000101d45b90 -[FBPressItem initWithActionItem:...
[debug] [MJSONWP] Matched JSONWP error code 13 to UnknownError
[debug] [MJSONWP] Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: -[NSTaggedPointerString fb_lastSnapshot]: unrecognized selector sent to instance 0xa000000303030354
[debug] [MJSONWP]
[debug] [MJSONWP] (
[debug] [MJSONWP] 0 CoreFoundation 0x000000018e4711d0 <redacted> + 148
[debug] [MJSONWP] 1 libobjc.A.dylib 0x000000018cea855c objc_exception_throw + 56
[debug] [MJSONWP] 2 CoreFoundation 0x000000018e478268 <redacted> + 0
[debug] [MJSONWP] 3 CoreFoundation 0x000000018e475270 <redacted> + 916
[debug] [MJSONWP] 4 CoreFoundation 0x000000018e36e80c _CF_forwarding_prep_0 + 92
[debug] [MJSONWP] 5 WebDriverAgentLib 0x0000000101d5abc4 -[FBBaseGestureItem hitpointWithElement:positionOffset:error:] + 100
[debug] [MJSONWP] 6 WebDriverAgentLib 0x0000000101d456a8 -[FBAppiumGestureItem coordinatesWithOptions:error:] + 868
[debug] [MJSONWP] 7 WebDriverAgentLib 0x0000000101d45044 -[FBAppiumGestureItem initWithActionItem:application:atPosition:offset:error:] + 292
[debug] [MJSONWP] 8 WebDriverAgentLib 0x0000000101d45b90 -[FBPressItem initWithActionItem:application:atPosition:offset:error:] + 124
[debug] [MJSONWP] 9 WebDriverAgentLib 0x0000000101d46e2c -[FBAppiumActionsSynthesizer eventPathsWithAction:error:] + 636
[debug] [MJSONWP] 10 WebDriverAgentLib 0x0000000101d476b4 -[FBAppiumActionsSynthesizer synthesizeWithError:] + 572
[debug] [MJSONWP] 11 WebDriverAgentLib 0x0000000101d5d294 -[XCUIApplication(FBTouchAction) fb_performActionsWithSynthesizerType:actions:elementCache:error:] + 156
[debug] [MJSONWP] 12 WebDriverAgentLib 0x0000000101d5d370 -[XCUIApplication(FBTouchAction) fb_performAppiumTouchActions:elementCache:error:] + 116
[debug] [MJSONWP] 13 WebDriverAgentLib 0x0000000101d5dcec +[FBTouchActionCommands handlePerformAppiumTouchActions:] + 264
[debug] [MJSONWP] 14 WebDriverAgentLib 0x0000000101d53350 -[FBRoute_TargetAction mountRequest:intoResponse:] + 132
[debug] [MJSONWP] 15 WebDriverAgentLib 0x0000000101d48bb0 __37-[FBWebServer registerRouteHandlers:]_block_invoke + 364
[debug] [MJSONWP] 16 RoutingHTTPServer 0x0000000101e463cc -[RoutingHTTPServer handleRoute:withRequest:response:] + 144
[debug] [MJSONWP] 17 RoutingHTTPServer 0x0000000101e46b80 __72-[RoutingHTTPServer routeMethod:withPath:parameters:request:connection:]_block_invoke + 44
[debug] [MJSONWP] 18 libdispatch.dylib 0x000000018d2fa1bc <redacted> + 16
[debug] [MJSONWP] 19 libdispatch.dylib 0x000000018d30b084 <redacted> + 320
[debug] [MJSONWP] 20 libdispatch.dylib 0x000000018d2fa1bc <redacted> + 16
[debug] [MJSONWP] 21 libdispatch.dylib 0x000000018d2fed68 _dispatch_main_queue_callback_4CF + 1000
[debug] [MJSONWP] 22 CoreFoundation 0x000000018e41e810 <redacted> + 12
[debug] [MJSONWP] 23 CoreFoundation 0x000000018e41c3fc <redacted> + 1660
[debug] [MJSONWP] 24 CoreFoundation 0x000000018e34a2b8 CFRunLoopRunSpecific + 444
[debug] [MJSONWP] 25 Foundation 0x000000018ee8726c <redacted> + 304
[debug] [MJSONWP] 26 WebDriverAgentLib 0x0000000101d47e04 -[FBWebServer startServing] + 320
[debug] [MJSONWP] 27 WebDriverAgentRunner 0x0000000101d0bc20 -[UITestingUITests testRunner] + 148
[debug] [MJSONWP] 28 CoreFoundation 0x000000018e477150 <redacted> + 144
[debug] [MJSONWP] 29 CoreFoundation 0x000000018e369eac <redacted> + 284
[debug] [MJSONWP] 30 XCTest 0x000000010020a654 __24-[XCTestCase invokeTest]_block_invoke.275 + 48
[debug] [MJSONWP] 31 XCTest 0x000000010020a404 __24-[XCTestCase invokeTest]_block_invoke + 680
[debug] [MJSONWP] 32 XCTest 0x00000001002509d8 -[XCUITestContext performInScope:] + 208
[debug] [MJSONWP] 33 XCTest 0x000000010020a14c -[XCTestCase invokeTest] + 136
[debug] [MJSONWP] 34 XCTest 0x000000010020b224 __26-[XCTestCase performTest:]_block_invoke.382 + 48
[debug] [MJSONWP] 35 XCTest 0x0000000100255a78 +[XCTContext runInContextForTestCase:block:] + 164
[debug] [MJSONWP] 36 XCTest 0x000000010020ac20 -[XCTestCase performTest:] + 596
[debug] [MJSONWP] 37 XCTest 0x0000000100206e14 __27-[XCTestSuite performTest:]_block_invoke + 288
[debug] [MJSONWP] 38 XCTest 0x000000010020683c -[XCTestSuite _performProtectedSectionForTest:testSection:] + 44
[debug] [MJSONWP] 39 XCTest 0x0000000100206a4c -[XCTestSuite performTest:] + 236
[debug] [MJSONWP] 40 XCTest 0x0000000100206e14 __27-[XCTestSuite performTest:]_block_invoke + 288
[debug] [MJSONWP] 41 XCTest 0x000000010020683c -[XCTestSuite _performProtectedSectionForTest:testSection:] + 44
[debug] [MJSONWP] 42 XCTest 0x0000000100206a4c -[XCTestSuite performTest:] + 236
[debug] [MJSONWP] 43 XCTest 0x0000000100206e14 __27-[XCTestSuite performTest:]_block_invoke + 288
[debug] [MJSONWP] 44 XCTest 0x000000010020683c -[XCTestSuite _performProtectedSectionForTest:testSection:] + 44
[debug] [MJSONWP] 45 XCTest 0x0000000100206a4c -[XCTestSuite performTest:] + 236
[debug] [MJSONWP] 46 XCTest 0x000000010025f484 __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke + 44
[debug] [MJSONWP] 47 XCTest 0x0000000100219994 -[XCTestObservationCenter _observeTestExecutionForBlock:] + 420
[debug] [MJSONWP] 48 XCTest 0x000000010025f300 -[XCTTestRunSession runTestsAndReturnError:] + 292
[debug] [MJSONWP] 49 XCTest 0x00000001001f63d4 -[XCTestDriver runTestsAndReturnError:] + 312
[debug] [MJSONWP] 50 XCTest 0x0000000100254c20 _XCTestMain + 620
[debug] [MJSONWP] 51 CoreFoundation 0x000000018e41ea44 <redacted> + 20
[debug] [MJSONWP] 52 CoreFoundation 0x000000018e41e240 <redacted> + 288
[debug] [MJSONWP] 53 CoreFoundation 0x000000018e41c094 <redacted> + 788
[debug] [MJSONWP] 54 CoreFoundation 0x000000018e34a2b8 CFRunLoopRunSpecific + 444
[debug] [MJSONWP] 55 GraphicsServices 0x000000018fdfe198 GSEventRunModal + 180
[debug] [MJSONWP] 56 UIKit 0x000000019438a7fc <redacted> + 684
[debug] [MJSONWP] 57 UIKit 0x0000000194385534 UIApplicationMain + 208
[debug] [MJSONWP] 58 WebDriverAgentRunner-Runner 0x0000000100078444 WebDriverAgentRunner-Runner + 33860
[debug] [MJSONWP] 59 libdyld.dylib 0x000000018d32d5b8 <redacted> + 4
[debug] [MJSONWP] )
[debug] [MJSONWP] at errorFromMJSONWPStatusCode (..appium/node_modules/appium-base-driver/lib/protocol/errors.js:789:10)
[debug] [MJSONWP] at ProxyRequestError.getActualError (..appium/node_modules/appium-base-driver/lib/protocol/errors.js:683:14)
[debug] [MJSONWP] at JWProxy.command$ (..appium-base-driver/lib/jsonwp-proxy/proxy.js:236:19)
[debug] [MJSONWP] at tryCatch (..appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
[debug] [MJSONWP] at GeneratorFunctionPrototype.invoke [as _invoke] (..appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
[debug] [MJSONWP] at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (..appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
[debug] [MJSONWP] at GeneratorFunctionPrototype.invoke (..appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment