xcodebuild exited with code '65' and signal 'null' - selenium

Hello I am having issues in launching ios real device for testing.
My xcode version: 11.2.1 (11B500)
Appium Version : 1.13.0 (1.13.0.20190505.6)
These are my capabilities:
deviceSerialNumber: F71SVVQ2HG7F
[Xcode] identifier: bfda036179b938524f01eff8c673de3388a07fcc
[Xcode] deviceClass: iPhone
[Xcode] deviceName: iPhone 7
[Xcode] deviceIdentifier: bfda036179b938524f01eff8c673de3388a07fcc
[Xcode] productVersion: 13.1.1
[Xcode] buildVersion: 17A854
[Xcode] deviceSoftwareVersion: 13.1.1 (17A854)
[Xcode] deviceArchitecture: arm64
[Xcode] deviceTotalCapacity: 26495004672
[Xcode] deviceAvailableCapacity: 9949319168
[Xcode] deviceIsTransient: NO
[Xcode] ignored: NO
[Xcode] deviceIsBusy: NO
[Xcode] deviceIsPaired: YES
[Xcode] deviceIsActivated: YES
[Xcode] deviceActivationState: Activated
[Xcode] isPasscodeLocked: NO
[Xcode] deviceType:
[Xcode] supportedDeviceFamilies: (
[Xcode] 1
[Xcode] )
[Xcode] applications: (null)
[Xcode] provisioningProfiles: (null)
[Xcode] hasInternalSupport: NO
[Xcode] hasWritableSystem: NO
[Xcode] isSupportedOS: YES
[Xcode] bootArgs: (null)
[Xcode] nextBootArgs: (null)
[Xcode] connected: YES
[Xcode] isWirelessEnabled: NO
[Xcode] connectionType: direct
[Xcode] hostname: iPhone-7.local.
[Xcode] bonjourServiceName: d0:c5:f3:d7:01:46#fe80::d2c5:f3ff:fed7:146._apple-mobdev2._tcp.local.
[Xcode] activeProxiedDevice: (null)
[Xcode] } (13.1.1 (17A854))
This says xcode needs provisioning profile whereas I have set the certificates and profiles in the xode...
[Xcode] Testing failed:
[Xcode] "WebDriverAgentRunner" requires a provisioning profile. Select a provisioning profile in the Signing & Capabilities editor.
[Xcode] No signing certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID "BNL4VQ2576" with a private key was found.
[Xcode] WebDriverAgentRunner:
[Xcode] WebDriverAgentRunner-Runner.app encountered an error (Failed to install or launch the test runner. (Underlying error: The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file. The file doesn’t exist. (Underlying error: The operation couldn’t be completed. No such file or directory)))
[Xcode] ** TEST EXECUTE FAILED **
[Xcode]
[Xcode]
[Xcode] Testing started on 'iPhone 7'
[Xcode]
[XCUITest] xcodebuild exited with code '65' and signal 'null'
[XCUITest] Launching WebDriverAgent on the device
[XCUITest] Carthage found: '/usr/local/bin/carthage'
[XCUITest] Killing running processes 'xcodebuild.*bfda036179b938524f01eff8c673de3388a07fcc, iproxy 8100' for the device bfda036179b938524f01eff8c673de3388a07fcc...
[XCUITest] 'pgrep -nif xcodebuild.*bfda036179b938524f01eff8c673de3388a07fcc' didn't detect any matching processes. Return code: 1
This says the folder is not present. I manually opened the directory and there is no folder there. I don't know how to get that folder.
[Xcode] 2019-11-22 16:17:12.722 xcodebuild[37042:259128] Error Domain=NSCocoaErrorDomain Code=260 "The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/ahmsam/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app, NSUnderlyingError=0x7fdfc6b5e4c0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}

You need to setup WDA by following Full Manual configuration in http://appium.io/docs/en/drivers/ios-xcuitest-real-devices/#full-manual-configuration
(If you skipped any of the steps, WDA won't work)
Update the product bundle identifier with the custom one you added com.companyName.WebDriverAgentRunner
open WebDriverAgent.xcodeproj from /path/where/installed/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent in Xcode
Project -> Build

Related

Crash tool fails to load the vmcore file with error : Segmentation fault

I'm new to kernel debugging, I'm trying to analyze the vmcore file using crash tool on RHEL 7. I'm trying to open the dump with below command.
crash /lib/debug/lib/modules/3.10.0-1160.80.1.el7.x86_64/vmlinux vmcore
but tools fails to load the vmcore with below error:
WARNING: kernel relocated [460MB]: patching 87472 gdb minimal_symbol values
crash: page excluded: kernel virtual address: ffffffffffffffff type: "possible"
WARNING: cannot read cpu_possible_map
crash: page excluded: kernel virtual address: ffffffffffffffff type: "present"
WARNING: cannot read cpu_present_map
crash: page excluded: kernel virtual address: ffffffffffffffff type: "online"
WARNING: cannot read cpu_online_map
crash: page excluded: kernel virtual address: ffffffffffffffff type: "active"
WARNING: cannot read cpu_active_map
WARNING: kernel version inconsistency between vmlinux and dumpfile
crash: page excluded: kernel virtual address: ffffffffffffffff type: "cpu_present_map"
crash: page excluded: kernel virtual address: ffffffffffffffff type: "cpu_present_map"
crash: cannot determine thread return address
WARNING: cannot determine pgdat list for this kernel/architecture
please wait... (gathering kmem slab cache data)
crash: invalid kernel virtual address: 1c type: "kmem_cache objsize/object_size"
Segmentation fault (core dumped)
I'm not sure this the vmcore file issue or crash tool issue. Can someone please help resolve this issue.
Thanks in advance

applesimutils --list returns empty list [] after MacOS Mojave and Xcode 11.3 update

Describe the bug
After upgrading my MacOS from High Sierra to Mojave and Xcode from 10.x to 11.3, I'm no longer able to run the Detox test.. It gives me this error below about not having iOS simulators.
**DetoxRuntimeError: Failed to find a device by UDID = "7C50BE35-0CDE-413A-A08D-784E98C61010" and by type = "iPhone 11 Pro"
HINT: Run 'applesimutils --list' to list your supported devices. It is advised only to specify a device type, e.g., "iPhone Xʀ" and avoid explicit search by OS version.
at SimulatorDriver._queryDevices (../node_modules/detox/src/devices/drivers/SimulatorDriver.js:224:13)**
So I ran applesimutils --list command and received empty list like below.
[
]
But if I run xcrun simctl list devices then I get the list of devices pertaining to iOS 13.3
To Reproduce
[Yes] I have tested this issue on the latest Detox release and it still reproduces
Provide the steps necessary to reproduce the issue. If you are seeing a regression, try to provide the last known version where the issue did not reproduce.
Upgrade MacOS from High Sierra to Mojave and Xcode from 10.x to 11.3 (latest)
Run "detox text"
Got this error
DetoxRuntimeError: Failed to find a device by UDID = "7C50BE35-0CDE-413A-A08D-784E98C61010" and by type = "iPhone 11 Pro"
HINT: Run 'applesimutils --list' to list your supported devices. It is advised only to specify a device type, e.g., "iPhone Xʀ" and avoid explicit search by OS version.
at SimulatorDriver._queryDevices (../node_modules/detox/src/devices/drivers/SimulatorDriver.js:224:13)
Ran applesimutils --list command. Received an empty list
[
]
But if I run xcrun simctl list devices then I get the list of devices pertaining to iOS 13.3. I even changed my package.json to reflect the latest migration guide link below and included the device object - https://github.com/wix/Detox/blob/master/docs/Guide.Migration.md
This is how my package.json looks like
"detox": {
"configurations": {
"ios.sim.debug": {
"type": "ios.simulator",
"binaryPath": "build/native/QuickSightiOS-2.0.2096.d.d.app",
"build": "xcodebuild -project ios/quicksight-react-native-mobile-tests.xcodeproj -scheme quicksight-react-native-mobile-tests -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build",
"device": {
"type": "iPhone 11 Pro",
"id": "7C50BE35-0CDE-413A-A08D-784E98C61010"
}
}
},
"test-runner": "jest"
},`
I went to this website https://github.com/wix/AppleSimulatorUtils and reran the applesimutils commands again..
brew tap wix/brew
brew install applesimutils
After running the 2nd command above, i got this error
**4c32759b84a9:QuicksightReactNativeMobileTests kondurc$ brew install applesimutils
Updating Homebrew...
Error: applesimutils: /usr/local/Homebrew/Library/Taps/wix/homebrew-brew/applesimutils.rb:4: syntax error, unexpected <<, expecting end
<<<<<<< HEAD
^~
/usr/local/Homebrew/Library/Taps/wix/homebrew-brew/applesimutils.rb:18: syntax error, unexpected ===, expecting end
^~~
/usr/local/Homebrew/Library/Taps/wix/homebrew-brew/applesimutils.rb:24: syntax error, unexpected >>, expecting end
Detox Instruments 1.9.9...
^~
/usr/local/Homebrew/Library/Taps/wix/homebrew-brew/applesimutils.rb:24: unexpected fraction part after numeric literal
Detox Instruments 1.9.9876**
Expected behavior
I would expect applesimutils --list command to show the list of simulators supported and eventually my detox test to run successfully instead of complaining about failing to find the device type.
Environment (please complete the following information):
- Detox: 14.9.2
- React Native: 0.60.4
- Node: v10.15.1
- Device: iPhone 11 Pro (simulator)
- Xcode: 11.3
- iOS: 13.3
- macOS: Mojave
Device and Verbose Detox Logs
4c32759b84a9:QuicksightReactNativeMobileTests kondurc$ detox test --loglevel trace
detox[63893] INFO: [test.js] configuration="ios.sim.debug" loglevel="trace" reportSpecs=true DETOX_START_TIMESTAMP=1578349653101 node_modules/.bin/jest --config e2e/config.json '--testNamePattern=^((?!:android:).)*$' --maxWorkers 1 "e2e"
detox[63894] INFO: [DetoxServer.js] server listening on localhost:50258...
detox[63894] DEBUG: [AsyncWebSocket.js/WEBSOCKET_OPEN] opened web socket to: ws://localhost:50258
detox[63894] TRACE: [AsyncWebSocket.js/WEBSOCKET_SEND] {"type":"login","params":{"sessionId":"6d94b773-5329-fab7-89ae-add64e14cdec","role":"tester"},"messageId":0}
detox[63894] DEBUG: [DetoxServer.js/LOGIN] role=tester, sessionId=6d94b773-5329-fab7-89ae-add64e14cdec
detox[63894] DEBUG: [DetoxServer.js/LOGIN_SUCCESS] role=tester, sessionId=6d94b773-5329-fab7-89ae-add64e14cdec
detox[63894] TRACE: [AsyncWebSocket.js/WEBSOCKET_MESSAGE] {"type":"loginSuccess","params":{"sessionId":"6d94b773-5329-fab7-89ae-add64e14cdec","role":"tester"},"messageId":0}
detox[63894] DEBUG: [exec.js/EXEC_CMD, #0] applesimutils --list --byId 7C50BE35-0CDE-413A-A08D-784E98C61010 --byType "iPhone 11 Pro"
detox[63894] TRACE: [exec.js/EXEC_SUCCESS, #0] [
]
detox[63894] ERROR: [DetoxExportWrapper.js/DETOX_INIT_ERROR]
DetoxRuntimeError: Failed to find a device by UDID = "7C50BE35-0CDE-413A-A08D-784E98C61010" and by type = "iPhone 11 Pro"
HINT: Run 'applesimutils --list' to list your supported devices. It is advised only to specify a device type, e.g., "iPhone Xʀ" and avoid explicit search by OS version.
at SimulatorDriver._queryDevices (/Users/kondurc/Desktop/quicksightmobiletests/src/QuicksightReactNativeMobileTests/node_modules/detox/src/devices/drivers/SimulatorDriver.js:224:13)
at process._tickCallback (internal/process/next_tick.js:68:7)
detox[63894] TRACE: [ArtifactsManager.js/LIFECYCLE] artifactsManager.onAfterAll()
detox[63894] DEBUG: [DetoxServer.js/DISCONNECT] role=tester, sessionId=6d94b773-5329-fab7-89ae-add64e14cdec
detox[63894] DEBUG: [DetoxServer.js/WS_CLOSE] Detox server connections terminated gracefully
FAIL e2e/specs/signinWithADUserTests.spec.js
Sign In using Enterprise AD User - Reader role
✕ Should verify app is launched and Sign In button is available (4ms)
✕ Should Sign In with valid AD user from a reader group (15ms)
✕ Should enter Settings View Page (2ms)
✕ Should Sign Out (1ms)
● Sign In using Enterprise AD User - Reader role › Should verify app is launched and Sign In button is available
DetoxRuntimeError: Failed to find a device by UDID = "7C50BE35-0CDE-413A-A08D-784E98C61010" and by type = "iPhone 11 Pro"
HINT: Run 'applesimutils --list' to list your supported devices. It is advised only to specify a device type, e.g., "iPhone Xʀ" and avoid explicit search by OS version.
at SimulatorDriver._queryDevices (../node_modules/detox/src/devices/drivers/SimulatorDriver.js:224:13)
● Sign In using Enterprise AD User - Reader role › Should verify app is launched and Sign In button is available
ReferenceError: device is not defined
7 | describe('Sign In using Enterprise AD User - Reader role', () => {
8 | beforeEach(async () => {
> 9 | await device.launchApp();
| ^
10 | });
11 |
12 | it('Should verify app is launched and Sign In button is available', async () => {
at device (specs/signinWithADUserTests.spec.js:9:11)
at tryCatch (../node_modules/#babel/runtime/node_modules/regenerator-runtime/runtime.js:45:40)
at Generator.invoke [as _invoke] (../node_modules/#babel/runtime/node_modules/regenerator-runtime/runtime.js:271:22)
at Generator.prototype.(anonymous function) [as next] (../node_modules/#babel/runtime/node_modules/regenerator-runtime/runtime.js:97:21)
at tryCatch (../node_modules/#babel/runtime/node_modules/regenerator-runtime/runtime.js:45:40)
at invoke (../node_modules/#babel/runtime/node_modules/regenerator-runtime/runtime.js:135:20)
at ../node_modules/#babel/runtime/node_modules/regenerator-runtime/runtime.js:170:11
at callInvokeWithMethodAndArg (../node_modules/#babel/runtime/node_modules/regenerator-runtime/runtime.js:169:16)
at AsyncIterator.enqueue (../node_modules/#babel/runtime/node_modules/regenerator-runtime/runtime.js:192:13)
at AsyncIterator.prototype.(anonymous function) [as next] (../node_modules/#babel/runtime/node_modules/regenerator-runtime/runtime.js:97:21)
at Object.<anonymous>.exports.async (../node_modules/#babel/runtime/node_modules/regenerator-runtime/runtime.js:216:14)
at Object._callee (specs/signinWithADUserTests.spec.js:8:14)
As stated in the readme:
https://github.com/wix/AppleSimulatorUtils#troubleshooting
If Homebrew complains about a conflict in the wix/brew tap, run brew untap wix/brew && brew tap wix/brew and try installing again
Then upgrade applesimutils normally.

Unknown server-side error occurred for Unknown device or simulator when UUID exists

I have migrated settings of my iMac to another iMac and when I tried to run iOS test on current iMac, error occurs which says
'OpenQA.Selenium.WebDriverException : An unknown server-side error occurred while processing the command. Original error: Unknown device or simulator UDID: 'A379B193-5472-4D39-BF00-AFEAB29858E7'
However Simulator with above UUID exists
I tried reading appium logs but have not found anything conclusive. Please see logs below:
[HTTP] --> POST /wd/hub/session
[HTTP] {"desiredCapabilities":{"deviceName":"iPhone 8 Plus","platformName":"iOS","automationName":"XCUITest","browserName":"Safari","udid":"A379B193-5472-4D39-BF00-AFEAB29858E7","autoDismissAlerts":true,"simpleIsVisibleCheck":true},"capabilities":{"firstMatch":[{"platformName":"iOS","browserName":"Safari"}]}}
[debug] [W3C] Calling AppiumDriver.createSession() with args: [{"deviceName":"iPhone 8 Plus","platformName":"iOS","automationName":"XCUITest","browserName":"Safari","udid":"A379B193-5472-4D39-BF00-AFEAB29858E7","autoDismissAlerts":true,"simpleIsVisibleCheck":true},null,{"firstMatch":[{"platformName":"iOS","browserName":"Safari"}]}]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1562150024125 (14:33:44 GMT+0400 (Gulf Standard Time))
[Appium] Could not parse W3C capabilities: 'deviceName' can't be blank
[Appium] Trying to fix W3C capabilities by merging them with JSONWP caps
[BaseDriver] The capabilities ["deviceName","automationName","udid","autoDismissAlerts","simpleIsVisibleCheck"] are not standard capabilities and should have an extension prefix
[Appium] Creating new XCUITestDriver (v2.94.2) session
[Appium] Capabilities:
[Appium] deviceName: iPhone 8 Plus
[Appium] automationName: XCUITest
[Appium] udid: A379B193-5472-4D39-BF00-AFEAB29858E7
[Appium] autoDismissAlerts: true
[Appium] simpleIsVisibleCheck: true
[Appium] platformName: iOS
[Appium] browserName: Safari
[debug] [BaseDriver] W3C capabilities {"alwaysMatch":{"appium:dev... and MJSONWP desired capabilities {"deviceName":"iPhone 8 Plu... were provided
[debug] [BaseDriver] Creating session with W3C capabilities: {"alwaysMatch":{"appium:dev...
[BaseDriver] Session created with session id: 50086b20-bb82-4899-818b-b169422707c3
[debug] [XCUITest] Current user: 'ayushgoel'
[debug] [XCUITest] Xcode version set to '10.2.1' (tools v10.2.1.0.1.1554506761)
[debug] [XCUITest] iOS SDK Version set to '12.2'
[debug] [BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1562150024191 (14:33:44 GMT+0400 (Gulf Standard Time))
[debug] [XCUITest] Available devices:
[XCUITest] Error: Unknown device or simulator UDID: 'A379B193-5472-4D39-BF00-AFEAB29858E7'
[XCUITest] at XCUITestDriver.determineDevice$ (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:693:17)
[XCUITest] at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
[XCUITest] at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
[XCUITest] at GeneratorFunctionPrototype.prototype.<computed> [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
[XCUITest] at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
[debug] [XCUITest] Not clearing log files. Use `clearSystemFiles` capability to turn on.
[debug] [BaseDriver] Event 'newSessionStarted' logged at 1562150024370 (14:33:44 GMT+0400 (Gulf Standard Time))
[debug] [W3C] Encountered internal error running command: Error: Unknown device or simulator UDID: 'A379B193-5472-4D39-BF00-AFEAB29858E7'
[debug] [W3C] at XCUITestDriver.determineDevice$ (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:693:17)
[debug] [W3C] at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
[debug] [W3C] at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
[debug] [W3C] at GeneratorFunctionPrototype.prototype.<computed> [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
[debug] [W3C] at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
[HTTP] <-- POST /wd/hub/session 500 246 ms - 1197
Test is running of previous iMac and there is no difference. Please help me where I am doing wrong.

Kurento media server error (GLib-CRITICAL)

KMS crashed with following error message:
(kurento-media-server:6421): GLib-CRITICAL **: g_error_free: assertion 'error != NULL' failed
^[[31;1mSegmentation fault^[[0m (thread ^[[33;1m140303257732864^[[0m, pid ^[[33;1m24975^[[0m)
GLib-GIO-CRITICAL **: g_socket_send_message: assertion 'G_IS_SOCKET (socket)' failed
Enviroment:
Version: 6.6.1
Found modules:
Module: 'core' version '6.6.1'
Module: 'elements' version '6.6.1'
Module: 'filters' version '6.6.1'
Server specs:
CPU: 2.4 Ghz
RAM: 30 Gb
There was 10-15 viewers and 4-6 presenters at this moment.
Hope this details will help to understand issue, thx.

GStreamer in Virtualbox: libva info: va_openDriver() returns -1

I am using GStreamer 1.2.4 in a Virtualbox 5.0.4.
When I start a simple pipeline (like videotestsrc ! autovideosink), I am getting an error about problems with graphical hardware acceleration (va_openDriver() returns -1).
How can I make GStreamer work in a virtualbox?
gst-launch-1.0 videotestsrc ! autovideosink
Setting pipeline to PAUSED ...
libva info: VA-API version 0.35.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/vboxvideo_drv_video.so
libva info: va_openDriver() returns -1
libva error: va_getDriverName() failed with unknown libva error,driver_name=(null) <--