question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Signal 6 was raised (probably related to m1)

See original GitHub issue

What happened?

I have a simple test:

it('should show hello screen after tap', async () => {
    await waitFor(element(by.id('get-started')))
      .toBeVisible()
      .withTimeout(5000)
  })

but I am getting this error:

DetoxRuntimeError: The pending request #2 ("invoke") has been rejected due to the following error:

    The app has crashed, see the details below:

    Signal 6 was raised
    (
    	0   Detox                               0x0000000104a1b870 +[NSThread(DetoxUtils) dtx_demangledCallStackSymbols] + 44
    	1   Detox                               0x0000000104a1e560 __DTXHandleCrash + 492
    	2   Detox                               0x0000000104a1ec9c __DTXHandleSignal + 80
    	3   libsystem_platform.dylib            0x00000001cc0a5760 _sigtramp + 52
    	4   libsystem_pthread.dylib             0x00000001cc0b13c0 pthread_kill + 256
    	5   libsystem_c.dylib                   0x00000001801023f4 abort + 124
    	6   Foundation                          0x0000000180880f48 +[_NSPredicateUtilities _predicateSecurityAction] + 44
    	7   Foundation                          0x00000001807734dc -[NSFunctionExpression expressionValueWithObject:context:] + 912
    	8   Foundation                          0x000000018072c96c -[NSComparisonPredicate evaluateWithObject:substitutionVariables:] + 308
    	9   Detox                               0x0000000104a1fd58 __87+[UIView(DetoxMatchers) _dtx_appendViewsRecursivelyFromArray:passingPredicate:storage:]_block_invoke + 88
    	10  CoreFoundation                      0x0000000180365878 __NSARRAY_IS_CALLING_OUT_TO_A_BLOCK__ + 16
    	11  CoreFoundation                      0x00000001802ecae8 -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 192
    	12  Detox                               0x0000000104a1fc78 +[UIView(DetoxMatchers) _dtx_appendViewsRecursivelyFromArray:passingPredicate:storage:] + 192
    	13  Detox                               0x0000000104a1fe98 +[UIView(DetoxMatchers) dtx_findViewsInWindows:passingPredicate:] + 108
    	14  Detox                               0x0000000104a200bc +[UIView(DetoxMatchers) dtx_findViewsInKeySceneWindowsPassingPredicate:] + 156
    	15  Detox                               0x0000000104a3b308 Detox.Element.(views in _14E24C92C1353FEA1FC68E698CB917EF).getter : Swift.Array<__C.NSObject> + 248
    	16  Detox                               0x0000000104a3b620 Detox.Element.(view in _14E24C92C1353FEA1FC68E698CB917EF).getter : __C.NSObject + 56
    	17  Detox                               0x0000000104a3ce68 Detox.Element.isVisible(with: Swift.Optional<Swift.UInt>) throws -> Swift.Bool + 60
    	18  Detox                               0x0000000104a360a0 Detox.ToBeVisibleExpectation._evaluate() -> () + 140
    	19  Detox                               0x0000000104a31570 reabstraction thunk helper from @callee_guaranteed () -> () to @escaping @callee_guaranteed () -> () + 20
    	20  Detox                               0x0000000104a2f154 reabstraction thunk helper from @escaping @callee_guaranteed () -> () to @escaping @callee_unowned @convention(block) () -> () + 20
    	21  Detox                               0x0000000104a285e8 +[DTXAssertionHandler try:error:] + 64
    	22  Detox                               0x0000000104a355f8 Detox.Expectation.(evaluate_after in _E7BB8FEE5659AC091DC950A704D01F2D)(startDate: Foundation.Date, completionHandler: (Swift.Optional<Swift.Error>) -> ()) -> () + 516
    	23  Detox                               0x0000000104a35b98 closure #1 () -> () in Detox.Expectation.evaluate(completionHandler: (Swift.Optional<Swift.Error>) -> ()) -> () + 168
    	24  Detox                               0x0000000104a31570 reabstraction thunk helper from @callee_guaranteed () -> () to @escaping @callee_guaranteed () -> () + 20
    	25  Detox                               0x0000000104a2f154 reabstraction thunk helper from @escaping @callee_guaranteed () -> () to @escaping @callee_unowned @convention(block) () -> () + 20
    	26  Detox                               0x0000000104a285e8 +[DTXAssertionHandler try:error:] + 64
    	27  Detox                               0x0000000104a39994 function signature specialization <Arg[1] = Dead, Arg[2] = Owned To Guaranteed, Arg[3] = Owned To Guaranteed> of function signature specialization <Arg[1] = [Closure Propagated : closure #1 (Swift.Optional<Swift.Dictionary<Swift.String, Any>>, Swift.Optional<Swift.Error>) -> () in closure #2 () -> () in Detox.DetoxManager.webSocket(_: Detox.WebSocket, didReceiveAction: Swift.String, params: Swift.Dictionary<Swift.String, Any>, messageId: __C.NSNumber) -> (), Argument Types : [Detox.DetoxManager__C.NSNumber]> of static Detox.InvocationManager.invoke(dictionaryRepresentation: Swift.Dictionary<Swift.String, Any>, completionHandler: (Swift.Optional<Swift.Dictionary<Swift.String, Any>>, Swift.Optional<Swift.Error>) -> ()) -> () + 1892
    	28  Detox                               0x0000000104a52a8c partial apply forwarder for closure #2 () -> () in Detox.DetoxManager.webSocket(_: Detox.WebSocket, didReceiveAction: Swift.String, params: Swift.Dictionary<Swift.String, Any>, messageId: __C.NSNumber) -> () + 76
    	29  Detox                               0x0000000104a2f154 reabstraction thunk helper from @escaping @callee_guaranteed () -> () to @escaping @callee_unowned @convention(block) () -> () + 20
    	30  DetoxSync                           0x00000001048f5584 __36+[DTXSyncManager _tryIdleBlocksNow:]_block_invoke.128 + 188
    	31  libdispatch.dylib                   0x000000018010d244 _dispatch_call_block_and_release + 24
    	32  libdispatch.dylib                   0x000000018010ea98 _dispatch_client_callout + 16
    	33  libdispatch.dylib                   0x000000018011c41c _dispatch_main_queue_drain + 976
    	34  libdispatch.dylib                   0x000000018011c03c _dispatch_main_queue_callback_4CF + 40
    	35  CoreFoundation                      0x0000000180361c2c __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
    	36  CoreFoundation                      0x000000018035c0b0 __CFRunLoopRun + 2432
    	37  CoreFoundation                      0x000000018035b218 CFRunLoopRunSpecific + 572
    	38  GraphicsServices                    0x000000018c25f60c GSEventRunModal + 160
    	39  UIKitCore                           0x0000000184d88a98 -[UIApplication _run] + 992
    	40  DetoxSync                           0x00000001048f0890 __detox_sync_UIApplication_run + 384
    	41  UIKitCore                           0x0000000184d8d634 UIApplicationMain + 112
    	42  jigx                                0x00000001005a3138 main + 104
    	43  dyld                                0x0000000104655cd8 start_sim + 20
    	44  ???                                 0x000000010439d088 0x0 + 4365865096
    	45  ???                                 0x6967000000000000 0x0 + 7595039296583630848
    )

      15 |     await waitFor(element(by.id('get-started')))
      16 |       .toBeVisible()
    > 17 |       .withTimeout(5000)
         |        ^
      18 |   })
      19 |
      20 |   // it('should show world screen after tap', async () => {

      at _callee3$ (firstTest.e2e.js:17:8)
      at tryCatch (../../../node_modules/regenerator-runtime/runtime.js:63:40)

15:32:25.300 detox[59584] WARN:  at ../../node_modules/jest-cli/build/cli/index.js:253:15
 Jest did not exit one second after the test run has completed.

This usually means that there are asynchronous operations that weren't stopped in your tests. Consider running Jest with `--detectOpenHandles` to troubleshoot this issue.
15:32:25.563 detox[59583] ERROR: [cli.js] Command failed: jest --config e2e/config.json --testNamePattern '^((?!:android:).)*$' e2e

~/p/jigx/jigx/packages/mobile-app feat/detox *16 !1 ?1 ❯ detox -v                                                                      31s 15:32:25
15:34:24.937 detox[59765] ERROR: [cli.js] Not enough non-option arguments: got 0, need at least 1

This test is running OK for my colleague who is not on M1

What was the expected behaviour?

valid test

Was it tested on latest Detox?

  • I have tested this issue on the latest Detox release and it still reproduces.

Did your test throw out a timeout?

Help us reproduce this issue!

No response

In what environment did this happen?

Detox version: 19.6.9 React Native version: 0.68.1 Node version: v14.17.6 Device model: iPhone 11 Pro iOS version: 15.2 macOS version: 12.3.1 (21E258) Xcode version: 13.4 (13F17a) Test-runner (select one): jest-circus

Detox logs

Detox logs
yarn detox test --configuration ios --loglevel trace                         31s 15:20:39
15:20:56.209 detox[59301] INFO:  [test.js] DETOX_CONFIGURATION="ios" DETOX_LOGLEVEL="trace" DETOX_REPORT_SPECS=true DETOX_START_TIMESTAMP=1653312056204 DETOX_USE_CUSTOM_LOGGER=true jest --config e2e/config.json --testNamePattern '^((?!:android:).)*$' e2e
15:20:57.606 detox[59302] TRACE: [DETOX_CREATE] created a Detox instance with config:
{
  appsConfig: {
    default: {
      build: 'xcodebuild -workspace ios/jigx.xcworkspace -scheme jigx -sdk iphonesimulator -derivedDataPath ios/build -configuration Debug',
      type: 'ios.app',
      binaryPath: 'ios/build/Build/Products/Debug-iphonesimulator/jigx.app'
    }
  },
  artifactsConfig: {
    rootDir: 'artifacts/ios.2022-05-23 13-20-56Z',
    plugins: {
      log: {
        enabled: false,
        keepOnlyFailedTestsArtifacts: false
      },
      screenshot: {
        enabled: true,
        shouldTakeAutomaticSnapshots: false,
        keepOnlyFailedTestsArtifacts: false
      },
      video: {
        enabled: false,
        keepOnlyFailedTestsArtifacts: false
      },
      instruments: {
        enabled: false,
        keepOnlyFailedTestsArtifacts: false
      },
      timeline: {
        enabled: false
      },
      uiHierarchy: {
        enabled: false,
        keepOnlyFailedTestsArtifacts: false
      }
    },
    pathBuilder: ArtifactPathBuilder {
      _rootDir: 'artifacts/ios.2022-05-23 13-20-56Z'
    }
  },
  behaviorConfig: {
    init: {
      reinstallApp: true,
      exposeGlobals: true
    },
    cleanup: {
      shutdownDevice: false
    },
    launchApp: 'auto'
  },
  cliConfig: {
    configuration: 'ios',
    loglevel: 'trace',
    useCustomLogger: true
  },
  configurationName: 'ios',
  deviceConfig: {
    type: 'ios.simulator',
    device: {
      type: 'iPhone 11 Pro'
    }
  },
  runnerConfig: {
    testRunner: 'jest',
    runnerConfig: 'e2e/config.json',
    specs: 'e2e',
    skipLegacyWorkersInjection: true
  },
  sessionConfig: {
    autoStart: true,
    sessionId: 'f659d69d-73c6-a644-736e-4d8a02aacb49',
    debugSynchronization: 10000
  }
}
15:20:57.609 detox[59302] DEBUG: [WSS_CREATE] Detox server listening on localhost:61431...
15:20:57.614 detox[59302] DEBUG: [WSS_CONNECTION, #61432] registered a new connection.
15:20:57.614 detox[59302] TRACE: [WS_OPEN] opened web socket to: ws://localhost:61431
15:20:57.615 detox[59302] TRACE: [WS_SEND] {"type":"login","params":{"sessionId":"f659d69d-73c6-a644-736e-4d8a02aacb49","role":"tester"},"messageId":0}
15:20:57.616 detox[59302] TRACE: [WSS_GET_FROM, #61432] {"type":"login","params":{"sessionId":"f659d69d-73c6-a644-736e-4d8a02aacb49","role":"tester"},"messageId":0}
15:20:57.616 detox[59302] TRACE: [SESSION_CREATED] created session f659d69d-73c6-a644-736e-4d8a02aacb49
15:20:57.617 detox[59302] TRACE: [WSS_SEND_TO, #tester] {"type":"loginSuccess","params":{"testerConnected":true,"appConnected":false},"messageId":0}
15:20:57.617 detox[59302] TRACE: [SESSION_JOINED] tester joined session f659d69d-73c6-a644-736e-4d8a02aacb49
15:20:57.617 detox[59302] TRACE: [WS_MESSAGE] {"type":"loginSuccess","params":{"testerConnected":true,"appConnected":false},"messageId":0}

15:20:58.518 detox[59302] DEBUG: [EXEC_CMD, #0] applesimutils --list --byType "iPhone 11 Pro"
15:20:58.728 detox[59302] TRACE: [EXEC_SUCCESS, #0] [
  {
    "os" : {
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime",
      "buildversion" : "19F70",
      "platform" : "iOS",
      "runtimeRoot" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime\/Contents\/Resources\/RuntimeRoot",
      "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-15-5",
      "version" : "15.5",
      "isInternal" : false,
      "isAvailable" : true,
      "name" : "iOS 15.5",
      "supportedDeviceTypes" : [
        ...
      ]
    },
    "dataPath" : "\/Users\/daviddurika\/Library\/Developer\/CoreSimulator\/Devices\/DD828092-2955-4ECD-94DE-B31B30F74AF0\/data",
    "dataPathSize" : 1702199296,
    "logPath" : "\/Users\/daviddurika\/Library\/Logs\/CoreSimulator\/DD828092-2955-4ECD-94DE-B31B30F74AF0",
    "udid" : "DD828092-2955-4ECD-94DE-B31B30F74AF0",
    "isAvailable" : true,
    "deviceType" : {
      "maxRuntimeVersion" : 4294967295,
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 11 Pro.simdevicetype",
      "maxRuntimeVersionString" : "65535.255.255",
      "name" : "iPhone 11 Pro",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-11-Pro",
      "productFamily" : "iPhone",
      "modelIdentifier" : "iPhone12,3",
      "minRuntimeVersionString" : "13.0.0",
      "minRuntimeVersion" : 851968
    },
    "logPathSize" : 425984,
    "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-11-Pro",
    "state" : "Booted",
    "name" : "iPhone 11 Pro"
  },
  {
    "os" : {
      "bundlePath" : "\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS 15.2.simruntime",
      "buildversion" : "19C51",
      "platform" : "iOS",
      "runtimeRoot" : "\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS 15.2.simruntime\/Contents\/Resources\/RuntimeRoot",
      "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-15-2",
      "version" : "15.2",
      "isInternal" : false,
      "isAvailable" : true,
      "name" : "iOS 15.2",
      "supportedDeviceTypes" : [
        ...
      ]
    },
    "dataPath" : "\/Users\/daviddurika\/Library\/Developer\/CoreSimulator\/Devices\/235EF288-A327-4CDB-A21E-AC4C45D99913\/data",
    "dataPathSize" : 13312000,
    "logPath" : "\/Users\/daviddurika\/Library\/Logs\/CoreSimulator\/235EF288-A327-4CDB-A21E-AC4C45D99913",
    "udid" : "235EF288-A327-4CDB-A21E-AC4C45D99913",
    "isAvailable" : true,
    "deviceType" : {
      "maxRuntimeVersion" : 4294967295,
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 11 Pro.simdevicetype",
      "maxRuntimeVersionString" : "65535.255.255",
      "name" : "iPhone 11 Pro",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-11-Pro",
      "productFamily" : "iPhone",
      "modelIdentifier" : "iPhone12,3",
      "minRuntimeVersionString" : "13.0.0",
      "minRuntimeVersion" : 851968
    },
    "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-11-Pro",
    "state" : "Shutdown",
    "name" : "iPhone 11 Pro"
  }
]

15:20:58.742 detox[59302] DEBUG: [EXEC_CMD, #1] applesimutils --list --byId DD828092-2955-4ECD-94DE-B31B30F74AF0 --maxResults 1
15:20:58.925 detox[59302] TRACE: [EXEC_SUCCESS, #1] [
  {
    "os" : {
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime",
      "buildversion" : "19F70",
      "platform" : "iOS",
      "runtimeRoot" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime\/Contents\/Resources\/RuntimeRoot",
      "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-15-5",
      "version" : "15.5",
      "isInternal" : false,
      "isAvailable" : true,
      "name" : "iOS 15.5",
      "supportedDeviceTypes" : [
        ...
      ]
    },
    "dataPath" : "\/Users\/daviddurika\/Library\/Developer\/CoreSimulator\/Devices\/DD828092-2955-4ECD-94DE-B31B30F74AF0\/data",
    "dataPathSize" : 1702199296,
    "logPath" : "\/Users\/daviddurika\/Library\/Logs\/CoreSimulator\/DD828092-2955-4ECD-94DE-B31B30F74AF0",
    "udid" : "DD828092-2955-4ECD-94DE-B31B30F74AF0",
    "isAvailable" : true,
    "deviceType" : {
      "maxRuntimeVersion" : 4294967295,
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 11 Pro.simdevicetype",
      "maxRuntimeVersionString" : "65535.255.255",
      "name" : "iPhone 11 Pro",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-11-Pro",
      "productFamily" : "iPhone",
      "modelIdentifier" : "iPhone12,3",
      "minRuntimeVersionString" : "13.0.0",
      "minRuntimeVersion" : 851968
    },
    "logPathSize" : 425984,
    "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-11-Pro",
    "state" : "Booted",
    "name" : "iPhone 11 Pro"
  }
]

15:20:58.931 detox[59302] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onBootDevice({
  deviceId: 'DD828092-2955-4ECD-94DE-B31B30F74AF0',
  type: 'ios.simulator',
  coldBoot: false
})
15:20:58.957 detox[59302] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onBeforeTerminateApp({
  deviceId: 'DD828092-2955-4ECD-94DE-B31B30F74AF0',
  bundleId: 'com.jigx.ios'
})
15:20:58.958 detox[59302] DEBUG: [EXEC_CMD, #2] /usr/bin/xcrun simctl terminate DD828092-2955-4ECD-94DE-B31B30F74AF0 com.jigx.ios
15:20:58.958 detox[59302] DEBUG: [EXEC_TRY, #2] Terminating com.jigx.ios...
15:21:00.110 detox[59302] TRACE: [EXEC_TRY_FAIL, #2] An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=3):
Application termination failed.
FBSSystemService reported failure without an error, possibly because the app is not currently running.

15:21:00.111 detox[59302] DEBUG: [EXEC_TRY, #2] Terminating com.jigx.ios...
15:21:00.271 detox[59302] DEBUG: [EXEC_FAIL, #2] "/usr/bin/xcrun simctl terminate DD828092-2955-4ECD-94DE-B31B30F74AF0 com.jigx.ios" failed with error = ChildProcessError: Command failed: /usr/bin/xcrun simctl terminate DD828092-2955-4ECD-94DE-B31B30F74AF0 com.jigx.ios
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=3):
Application termination failed.
FBSSystemService reported failure without an error, possibly because the app is not currently running.
 `/usr/bin/xcrun simctl terminate DD828092-2955-4ECD-94DE-B31B30F74AF0 com.jigx.ios` (exited with error code 3) (code=3), stdout and stderr:

15:21:00.271 detox[59302] DEBUG: [EXEC_FAIL, #2]
15:21:00.271 detox[59302] DEBUG: [EXEC_FAIL, #2] An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=3):
Application termination failed.
FBSSystemService reported failure without an error, possibly because the app is not currently running.

15:21:00.271 detox[59302] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onTerminateApp({
  deviceId: 'DD828092-2955-4ECD-94DE-B31B30F74AF0',
  bundleId: 'com.jigx.ios'
})
15:21:00.272 detox[59302] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onBeforeUninstallApp({
  deviceId: 'DD828092-2955-4ECD-94DE-B31B30F74AF0',
  bundleId: 'com.jigx.ios'
})
15:21:00.272 detox[59302] DEBUG: [EXEC_CMD, #3] /usr/bin/xcrun simctl uninstall DD828092-2955-4ECD-94DE-B31B30F74AF0 com.jigx.ios
15:21:00.272 detox[59302] DEBUG: [EXEC_TRY, #3] Uninstalling com.jigx.ios...
15:21:00.437 detox[59302] DEBUG: [EXEC_SUCCESS, #3] com.jigx.ios uninstalled
15:21:00.443 detox[59302] DEBUG: [EXEC_CMD, #4] /usr/bin/xcrun simctl install DD828092-2955-4ECD-94DE-B31B30F74AF0 "/Users/daviddurika/projects/jigx/jigx/packages/mobile-app/ios/build/Build/Products/Debug-iphonesimulator/jigx.app"
15:21:00.443 detox[59302] DEBUG: [EXEC_TRY, #4] Installing /Users/daviddurika/projects/jigx/jigx/packages/mobile-app/ios/build/Build/Products/Debug-iphonesimulator/jigx.app...
15:21:01.833 detox[59302] DEBUG: [EXEC_SUCCESS, #4] /Users/daviddurika/projects/jigx/jigx/packages/mobile-app/ios/build/Build/Products/Debug-iphonesimulator/jigx.app installed
15:21:02.007 ROOT_DESCRIBE_BLOCK[59302] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onRunDescribeStart({ name: 'ROOT_DESCRIBE_BLOCK' })
15:21:02.008 Example[59302] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onRunDescribeStart({ name: 'Example' })
15:21:02.008 detox[59302] INFO:  Example is assigned to DD828092-2955-4ECD-94DE-B31B30F74AF0 (iPhone 11 Pro)
15:21:02.011 detox[59302] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onBeforeTerminateApp({
  deviceId: 'DD828092-2955-4ECD-94DE-B31B30F74AF0',
  bundleId: 'com.jigx.ios'
})
15:21:02.011 detox[59302] DEBUG: [EXEC_CMD, #5] /usr/bin/xcrun simctl terminate DD828092-2955-4ECD-94DE-B31B30F74AF0 com.jigx.ios
15:21:02.011 detox[59302] DEBUG: [EXEC_TRY, #5] Terminating com.jigx.ios...
15:21:03.168 detox[59302] TRACE: [EXEC_TRY_FAIL, #5] An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=3):
Application termination failed.
FBSSystemService reported failure without an error, possibly because the app is not currently running.

15:21:03.169 detox[59302] DEBUG: [EXEC_TRY, #5] Terminating com.jigx.ios...
15:21:03.326 detox[59302] DEBUG: [EXEC_FAIL, #5] "/usr/bin/xcrun simctl terminate DD828092-2955-4ECD-94DE-B31B30F74AF0 com.jigx.ios" failed with error = ChildProcessError: Command failed: /usr/bin/xcrun simctl terminate DD828092-2955-4ECD-94DE-B31B30F74AF0 com.jigx.ios
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=3):
Application termination failed.
FBSSystemService reported failure without an error, possibly because the app is not currently running.
 `/usr/bin/xcrun simctl terminate DD828092-2955-4ECD-94DE-B31B30F74AF0 com.jigx.ios` (exited with error code 3) (code=3), stdout and stderr:

15:21:03.327 detox[59302] DEBUG: [EXEC_FAIL, #5]
15:21:03.327 detox[59302] DEBUG: [EXEC_FAIL, #5] An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=3):
Application termination failed.
FBSSystemService reported failure without an error, possibly because the app is not currently running.

15:21:03.327 detox[59302] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onTerminateApp({
  deviceId: 'DD828092-2955-4ECD-94DE-B31B30F74AF0',
  bundleId: 'com.jigx.ios'
})
15:21:03.327 detox[59302] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onBeforeLaunchApp({
  bundleId: 'com.jigx.ios',
  deviceId: 'DD828092-2955-4ECD-94DE-B31B30F74AF0',
  launchArgs: {
    detoxServer: 'ws://localhost:61431',
    detoxSessionId: 'f659d69d-73c6-a644-736e-4d8a02aacb49'
  }
})
15:21:03.328 detox[59302] DEBUG: [EXEC_CMD, #6] SIMCTL_CHILD_GULGeneratedClassDisposeDisabled=YES SIMCTL_CHILD_DYLD_INSERT_LIBRARIES="/Users/daviddurika/Library/Detox/ios/8d94a58ad0e7a5b8e2ce4f38ddec415bbfcbbfac/Detox.framework/Detox" /usr/bin/xcrun simctl launch DD828092-2955-4ECD-94DE-B31B30F74AF0 com.jigx.ios --args -detoxServer ws://localhost:61431 -detoxSessionId f659d69d-73c6-a644-736e-4d8a02aacb49 -detoxDisableHierarchyDump YES
15:21:03.328 detox[59302] DEBUG: [EXEC_TRY, #6] Launching com.jigx.ios...
15:21:03.468 detox[59302] TRACE: [EXEC_SUCCESS, #6] com.jigx.ios: 59349

15:21:03.469 detox[59302] DEBUG: [EXEC_CMD, #7] /usr/bin/xcrun simctl get_app_container DD828092-2955-4ECD-94DE-B31B30F74AF0 com.jigx.ios
15:21:03.630 detox[59302] TRACE: [EXEC_SUCCESS, #7] /Users/daviddurika/Library/Developer/CoreSimulator/Devices/DD828092-2955-4ECD-94DE-B31B30F74AF0/data/Containers/Bundle/Application/7DE45BF5-3C90-4D24-9BED-16CEAC93DF7D/jigx.app

15:21:03.642 detox[59302] INFO:  [AppleSimUtils.js] com.jigx.ios launched. To watch simulator logs, run:
        /usr/bin/xcrun simctl spawn DD828092-2955-4ECD-94DE-B31B30F74AF0 log stream --level debug --style compact --predicate 'process == "jigx"'
15:21:03.642 detox[59349] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onLaunchApp({
  bundleId: 'com.jigx.ios',
  deviceId: 'DD828092-2955-4ECD-94DE-B31B30F74AF0',
  launchArgs: {
    detoxServer: 'ws://localhost:61431',
    detoxSessionId: 'f659d69d-73c6-a644-736e-4d8a02aacb49',
    detoxDisableHierarchyDump: 'YES'
  },
  pid: 59349
})
15:21:03.809 detox[59302] DEBUG: [WSS_CONNECTION, #61442] registered a new connection.
15:21:03.966 detox[59302] TRACE: [WSS_GET_FROM, #61442] {"messageId":0,"params":{"role":"app","sessionId":"f659d69d-73c6-a644-736e-4d8a02aacb49"},"type":"login"}
15:21:03.967 detox[59302] TRACE: [WSS_SEND_TO, #app] {"messageId":0,"params":{"testerConnected":true,"appConnected":true},"type":"loginSuccess"}
15:21:03.967 detox[59302] TRACE: [SESSION_JOINED] app joined session f659d69d-73c6-a644-736e-4d8a02aacb49
15:21:03.967 detox[59302] TRACE: [WSS_SEND_TO, #tester] {"type":"appConnected"}
15:21:03.967 detox[59302] TRACE: [WS_MESSAGE] {"type":"appConnected"}

15:21:03.968 detox[59302] TRACE: [WS_SEND] {"type":"isReady","params":{},"messageId":-1000}
15:21:03.969 detox[59302] TRACE: [WSS_GET_FROM, #tester] {"type":"isReady","params":{},"messageId":-1000}
15:21:03.969 detox[59302] TRACE: [WSS_SEND_TO, #app] {"type":"isReady","params":{},"messageId":-1000}
15:21:06.902 detox[59302] TRACE: [WSS_GET_FROM, #app] {"params":{},"messageId":-1000,"type":"ready"}
15:21:06.903 detox[59302] TRACE: [WSS_SEND_TO, #tester] {"params":{},"messageId":-1000,"type":"ready"}
15:21:06.904 detox[59302] TRACE: [WS_MESSAGE] {"params":{},"messageId":-1000,"type":"ready"}

15:21:06.908 detox[59302] TRACE: [WS_SEND] {"type":"waitForActive","params":{},"messageId":1}
15:21:06.908 detox[59302] TRACE: [WSS_GET_FROM, #tester] {"type":"waitForActive","params":{},"messageId":1}
15:21:06.908 detox[59302] TRACE: [WSS_SEND_TO, #app] {"type":"waitForActive","params":{},"messageId":1}
15:21:06.909 detox[59302] TRACE: [WSS_GET_FROM, #app] {"params":{},"messageId":-1000,"type":"ready"}
15:21:06.909 detox[59302] TRACE: [WSS_SEND_TO, #tester] {"params":{},"messageId":-1000,"type":"ready"}
15:21:06.909 detox[59302] TRACE: [WS_MESSAGE] {"params":{},"messageId":-1000,"type":"ready"}

15:21:06.909 detox[59302] TRACE: [WSS_GET_FROM, #app] {"params":{},"messageId":-1000,"type":"ready"}
15:21:06.909 detox[59302] TRACE: [WSS_SEND_TO, #tester] {"params":{},"messageId":-1000,"type":"ready"}
15:21:06.910 detox[59302] TRACE: [WS_MESSAGE] {"params":{},"messageId":-1000,"type":"ready"}

15:21:06.910 detox[59302] TRACE: [WSS_GET_FROM, #app] {"messageId":1,"type":"waitForActiveDone","params":{}}
15:21:06.910 detox[59302] TRACE: [WSS_SEND_TO, #tester] {"messageId":1,"type":"waitForActiveDone","params":{}}
15:21:06.910 detox[59302] TRACE: [WS_MESSAGE] {"messageId":1,"type":"waitForActiveDone","params":{}}

15:21:06.910 detox[59349] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onAppReady({
  deviceId: 'DD828092-2955-4ECD-94DE-B31B30F74AF0',
  bundleId: 'com.jigx.ios',
  pid: 59349
})
15:21:06.911 detox[59302] INFO:  Example: should show hello screen after tap
15:21:06.912 detox[59302] TRACE: [DETOX_BEFORE_EACH] running test: "Example should show hello screen after tap"
15:21:06.912 detox[59302] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onTestStart({
  title: 'should show hello screen after tap',
  fullName: 'Example should show hello screen after tap',
  status: 'running',
  invocations: 1
})
15:21:06.913 detox[59302] TRACE: [WS_SEND] {"type":"reactNativeReload","params":{},"messageId":-1000}
15:21:06.913 detox[59302] TRACE: [WSS_GET_FROM, #tester] {"type":"reactNativeReload","params":{},"messageId":-1000}
15:21:06.913 detox[59302] TRACE: [WSS_SEND_TO, #app] {"type":"reactNativeReload","params":{},"messageId":-1000}
15:21:09.487 detox[59302] TRACE: [WSS_GET_FROM, #app] {"messageId":-1000,"type":"ready","params":{}}
15:21:09.488 detox[59302] TRACE: [WSS_SEND_TO, #tester] {"messageId":-1000,"type":"ready","params":{}}
15:21:09.488 detox[59302] TRACE: [WS_MESSAGE] {"messageId":-1000,"type":"ready","params":{}}

15:21:09.492 detox[59302] TRACE: [WS_SEND] {"type":"invoke","params":{"type":"expectation","predicate":{"type":"id","value":"get-started"},"expectation":"toBeVisible","timeout":5000},"messageId":2}
15:21:09.493 detox[59302] TRACE: [WSS_GET_FROM, #tester] {"type":"invoke","params":{"type":"expectation","predicate":{"type":"id","value":"get-started"},"expectation":"toBeVisible","timeout":5000},"messageId":2}
15:21:09.494 detox[59302] TRACE: [WSS_SEND_TO, #app] {"type":"invoke","params":{"type":"expectation","predicate":{"type":"id","value":"get-started"},"expectation":"toBeVisible","timeout":5000},"messageId":2}
15:21:09.548 detox[59302] TRACE: [WSS_GET_FROM, #app] {"messageId":-10000,"type":"AppWillTerminateWithError","params":{"queueName":"com.apple.main-thread","errorDetails":"Signal 6 was raised\n(\n\t0   Detox                               0x00000001052eb870 +[NSThread(DetoxUtils) dtx_demangledCallStackSymbols] + 44\n\t1   Detox                               0x00000001052ee560 __DTXHandleCrash + 492\n\t2   Detox                               0x00000001052eec9c __DTXHandleSignal + 80\n\t3   libsystem_platform.dylib            0x00000001cc0a5760 _sigtramp + 52\n\t4   libsystem_pthread.dylib             
// __ SEE FORMATED MESSAGE BELOW __

15:21:14.565 detox[59302] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onBeforeTerminateApp({
  deviceId: 'DD828092-2955-4ECD-94DE-B31B30F74AF0',
  bundleId: 'com.jigx.ios'
})
15:21:14.566 detox[59302] DEBUG: [EXEC_CMD, #8] /usr/bin/xcrun simctl terminate DD828092-2955-4ECD-94DE-B31B30F74AF0 com.jigx.ios
15:21:14.566 detox[59302] DEBUG: [EXEC_TRY, #8] Terminating com.jigx.ios...
15:21:14.590 detox[59302] TRACE: [SESSION_TORN] app exited session f659d69d-73c6-a644-736e-4d8a02aacb49
15:21:14.590 detox[59302] TRACE: [WSS_SEND_TO, #tester] {"type":"appDisconnected"}
15:21:14.591 detox[59302] TRACE: [WS_MESSAGE] {"type":"appDisconnected"}

15:21:14.595 detox[59302] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onTestFnFailure({
  error: DetoxRuntimeError: The pending request #2 ("invoke") has been rejected due to the following error:

  The app has crashed, see the details below:

  Signal 6 was raised
  (
  	0   Detox                               0x00000001052eb870 +[NSThread(DetoxUtils) dtx_demangledCallStackSymbols] + 44
  	1   Detox                               0x00000001052ee560 __DTXHandleCrash + 492
  	2   Detox                               0x00000001052eec9c __DTXHandleSignal + 80
  	3   libsystem_platform.dylib            0x00000001cc0a5760 _sigtramp + 52
  	4   libsystem_pthread.dylib             0x00000001cc0b13c0 pthread_kill + 256
  	5   libsystem_c.dylib                   0x00000001801023f4 abort + 124
  	6   Foundation                          0x0000000180880f48 +[_NSPredicateUtilities _predicateSecurityAction] + 44
  	7   Foundation                          0x00000001807734dc -[NSFunctionExpression expressionValueWithObject:context:] + 912
  	8   Foundation                          0x000000018072c96c -[NSComparisonPredicate evaluateWithObject:substitutionVariables:] + 308
  	9   Detox                               0x00000001052efd58 __87+[UIView(DetoxMatchers) _dtx_appendViewsRecursivelyFromArray:passingPredicate:storage:]_block_invoke + 88
  	10  CoreFoundation                      0x0000000180365878 __NSARRAY_IS_CALLING_OUT_TO_A_BLOCK__ + 16
  	11  CoreFoundation                      0x00000001802ecae8 -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 192
  	12  Detox                               0x00000001052efc78 +[UIView(DetoxMatchers) _dtx_appendViewsRecursivelyFromArray:passingPredicate:storage:] + 192
  	13  Detox                               0x00000001052efe98 +[UIView(DetoxMatchers) dtx_findViewsInWindows:passingPredicate:] + 108
  	14  Detox                               0x00000001052f00bc +[UIView(DetoxMatchers) dtx_findViewsInKeySceneWindowsPassingPredicate:] + 156
  	15  Detox                               0x000000010530b308 Detox.Element.(views in _14E24C92C1353FEA1FC68E698CB917EF).getter : Swift.Array<__C.NSObject> + 248
  	16  Detox                               0x000000010530b620 Detox.Element.(view in _14E24C92C1353FEA1FC68E698CB917EF).getter : __C.NSObject + 56
  	17  Detox                               0x000000010530ce68 Detox.Element.isVisible(with: Swift.Optional<Swift.UInt>) throws -> Swift.Bool + 60
  	18  Detox                               0x00000001053060a0 Detox.ToBeVisibleExpectation._evaluate() -> () + 140
  	19  Detox                               0x0000000105301570 reabstraction thunk helper from @callee_guaranteed () -> () to @escaping @callee_guaranteed () -> () + 20
  	20  Detox                               0x00000001052ff154 reabstraction thunk helper from @escaping @callee_guaranteed () -> () to @escaping @callee_unowned @convention(block) () -> () + 20
  	21  Detox                               0x00000001052f85e8 +[DTXAssertionHandler try:error:] + 64
  	22  Detox                               0x00000001053055f8 Detox.Expectation.(evaluate_after in _E7BB8FEE5659AC091DC950A704D01F2D)(startDate: Foundation.Date, completionHandler: (Swift.Optional<Swift.Error>) -> ()) -> () + 516
  	23  Detox                               0x0000000105305b98 closure #1 () -> () in Detox.Expectation.evaluate(completionHandler: (Swift.Optional<Swift.Error>) -> ()) -> () + 168
  	24  Detox                               0x0000000105301570 reabstraction thunk helper from @callee_guaranteed () -> () to @escaping @callee_guaranteed () -> () + 20
  	25  Detox                               0x00000001052ff154 reabstraction thunk helper from @escaping @callee_guaranteed () -> () to @escaping @callee_unowned @convention(block) () -> () + 20
  	26  Detox                               0x00000001052f85e8 +[DTXAssertionHandler try:error:] + 64
  	27  Detox                               0x0000000105309994 function signature specialization <Arg[1] = Dead, Arg[2] = Owned To Guaranteed, Arg[3] = Owned To Guaranteed> of function signature specialization <Arg[1] = [Closure Propagated : closure #1 (Swift.Optional<Swift.Dictionary<Swift.String, Any>>, Swift.Optional<Swift.Error>) -> () in closure #2 () -> () in Detox.DetoxManager.webSocket(_: Detox.WebSocket, didReceiveAction: Swift.String, params: Swift.Dictionary<Swift.String, Any>, messageId: __C.NSNumber) -> (), Argument Types : [Detox.DetoxManager__C.NSNumber]> of static Detox.InvocationManager.invoke(dictionaryRepresentation: Swift.Dictionary<Swift.String, Any>, completionHandler: (Swift.Optional<Swift.Dictionary<Swift.String, Any>>, Swift.Optional<Swift.Error>) -> ()) -> () + 1892
  	28  Detox                               0x0000000105322a8c partial apply forwarder for closure #2 () -> () in Detox.DetoxManager.webSocket(_: Detox.WebSocket, didReceiveAction: Swift.String, params: Swift.Dictionary<Swift.String, Any>, messageId: __C.NSNumber) -> () + 76
  	29  Detox                               0x00000001052ff154 reabstraction thunk helper from @escaping @callee_guaranteed () -> () to @escaping @callee_unowned @convention(block) () -> () + 20
  	30  DetoxSync                           0x0000000105109584 __36+[DTXSyncManager _tryIdleBlocksNow:]_block_invoke.128 + 188
  	31  libdispatch.dylib                   0x000000018010d244 _dispatch_call_block_and_release + 24
  	32  libdispatch.dylib                   0x000000018010ea98 _dispatch_client_callout + 16
  	33  libdispatch.dylib                   0x000000018011c41c _dispatch_main_queue_drain + 976
  	34  libdispatch.dylib                   0x000000018011c03c _dispatch_main_queue_callback_4CF + 40
  	35  CoreFoundation                      0x0000000180361c2c __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
  	36  CoreFoundation                      0x000000018035c0b0 __CFRunLoopRun + 2432
  	37  CoreFoundation                      0x000000018035b218 CFRunLoopRunSpecific + 572
  	38  GraphicsServices                    0x000000018c25f60c GSEventRunModal + 160
  	39  UIKitCore                           0x0000000184d88a98 -[UIApplication _run] + 992
  	40  DetoxSync                           0x0000000105104890 __detox_sync_UIApplication_run + 384
  	41  UIKitCore                           0x0000000184d8d634 UIApplicationMain + 112
  	42  jigx                                0x0000000100ddf138 main + 104
  	43  dyld                                0x0000000104da1cd8 start_sim + 20
  	44  ???                                 0x0000000104ef5088 0x0 + 4377759880
  	45  ???                                 0x4353000000000000 0x0 + 4851221223608156160
  )
      at _callee3$ (/Users/daviddurika/projects/jigx/jigx/packages/mobile-app/e2e/firstTest.e2e.js:17:8)
      at tryCatch (/Users/daviddurika/projects/jigx/jigx/node_modules/regenerator-runtime/runtime.js:63:40)
})
15:21:14.600 detox[59302] TRACE: [DETOX_AFTER_EACH] failed test: "Example should show hello screen after tap"
15:21:14.601 detox[59302] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onTestDone({
  title: 'should show hello screen after tap',
  fullName: 'Example should show hello screen after tap',
  status: 'failed',
  invocations: 1,
  timedOut: false
})
15:21:14.604 detox[59302] INFO:  Example: should show hello screen after tap [FAIL]
15:21:14.607 Example[59302] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onRunDescribeFinish({ name: 'Example' })

15:21:14.608 ROOT_DESCRIBE_BLOCK[59302] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onRunDescribeFinish({ name: 'ROOT_DESCRIBE_BLOCK' })
15:21:14.629 detox[59302] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onBeforeCleanup()
15:21:14.633 detox[59302] DEBUG: [WSS_CLOSE] Detox server has been closed gracefully
 FAIL  e2e/firstTest.e2e.js (17.21 s)
  Example
    ✕ should show hello screen after tap (7687 ms)

  ● Example › should show hello screen after tap

    DetoxRuntimeError: The pending request #2 ("invoke") has been rejected due to the following error:

    The app has crashed, see the details below:

    Signal 6 was raised
    (
    	0   Detox                               0x00000001052eb870 +[NSThread(DetoxUtils) dtx_demangledCallStackSymbols] + 44
    	1   Detox                               0x00000001052ee560 __DTXHandleCrash + 492
    	2   Detox                               0x00000001052eec9c __DTXHandleSignal + 80
    	3   libsystem_platform.dylib            0x00000001cc0a5760 _sigtramp + 52
    	4   libsystem_pthread.dylib             0x00000001cc0b13c0 pthread_kill + 256
    	5   libsystem_c.dylib                   0x00000001801023f4 abort + 124
    	6   Foundation                          0x0000000180880f48 +[_NSPredicateUtilities _predicateSecurityAction] + 44
    	7   Foundation                          0x00000001807734dc -[NSFunctionExpression expressionValueWithObject:context:] + 912
    	8   Foundation                          0x000000018072c96c -[NSComparisonPredicate evaluateWithObject:substitutionVariables:] + 308
    	9   Detox                               0x00000001052efd58 __87+[UIView(DetoxMatchers) _dtx_appendViewsRecursivelyFromArray:passingPredicate:storage:]_block_invoke + 88
    	10  CoreFoundation                      0x0000000180365878 __NSARRAY_IS_CALLING_OUT_TO_A_BLOCK__ + 16
    	11  CoreFoundation                      0x00000001802ecae8 -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 192
    	12  Detox                               0x00000001052efc78 +[UIView(DetoxMatchers) _dtx_appendViewsRecursivelyFromArray:passingPredicate:storage:] + 192
    	13  Detox                               0x00000001052efe98 +[UIView(DetoxMatchers) dtx_findViewsInWindows:passingPredicate:] + 108
    	14  Detox                               0x00000001052f00bc +[UIView(DetoxMatchers) dtx_findViewsInKeySceneWindowsPassingPredicate:] + 156
    	15  Detox                               0x000000010530b308 Detox.Element.(views in _14E24C92C1353FEA1FC68E698CB917EF).getter : Swift.Array<__C.NSObject> + 248
    	16  Detox                               0x000000010530b620 Detox.Element.(view in _14E24C92C1353FEA1FC68E698CB917EF).getter : __C.NSObject + 56
    	17  Detox                               0x000000010530ce68 Detox.Element.isVisible(with: Swift.Optional<Swift.UInt>) throws -> Swift.Bool + 60
    	18  Detox                               0x00000001053060a0 Detox.ToBeVisibleExpectation._evaluate() -> () + 140
    	19  Detox                               0x0000000105301570 reabstraction thunk helper from @callee_guaranteed () -> () to @escaping @callee_guaranteed () -> () + 20
    	20  Detox                               0x00000001052ff154 reabstraction thunk helper from @escaping @callee_guaranteed () -> () to @escaping @callee_unowned @convention(block) () -> () + 20
    	21  Detox                               0x00000001052f85e8 +[DTXAssertionHandler try:error:] + 64
    	22  Detox                               0x00000001053055f8 Detox.Expectation.(evaluate_after in _E7BB8FEE5659AC091DC950A704D01F2D)(startDate: Foundation.Date, completionHandler: (Swift.Optional<Swift.Error>) -> ()) -> () + 516
    	23  Detox                               0x0000000105305b98 closure #1 () -> () in Detox.Expectation.evaluate(completionHandler: (Swift.Optional<Swift.Error>) -> ()) -> () + 168
    	24  Detox                               0x0000000105301570 reabstraction thunk helper from @callee_guaranteed () -> () to @escaping @callee_guaranteed () -> () + 20
    	25  Detox                               0x00000001052ff154 reabstraction thunk helper from @escaping @callee_guaranteed () -> () to @escaping @callee_unowned @convention(block) () -> () + 20
    	26  Detox                               0x00000001052f85e8 +[DTXAssertionHandler try:error:] + 64
    	27  Detox                               0x0000000105309994 function signature specialization <Arg[1] = Dead, Arg[2] = Owned To Guaranteed, Arg[3] = Owned To Guaranteed> of function signature specialization <Arg[1] = [Closure Propagated : closure #1 (Swift.Optional<Swift.Dictionary<Swift.String, Any>>, Swift.Optional<Swift.Error>) -> () in closure #2 () -> () in Detox.DetoxManager.webSocket(_: Detox.WebSocket, didReceiveAction: Swift.String, params: Swift.Dictionary<Swift.String, Any>, messageId: __C.NSNumber) -> (), Argument Types : [Detox.DetoxManager__C.NSNumber]> of static Detox.InvocationManager.invoke(dictionaryRepresentation: Swift.Dictionary<Swift.String, Any>, completionHandler: (Swift.Optional<Swift.Dictionary<Swift.String, Any>>, Swift.Optional<Swift.Error>) -> ()) -> () + 1892
    	28  Detox                               0x0000000105322a8c partial apply forwarder for closure #2 () -> () in Detox.DetoxManager.webSocket(_: Detox.WebSocket, didReceiveAction: Swift.String, params: Swift.Dictionary<Swift.String, Any>, messageId: __C.NSNumber) -> () + 76
    	29  Detox                               0x00000001052ff154 reabstraction thunk helper from @escaping @callee_guaranteed () -> () to @escaping @callee_unowned @convention(block) () -> () + 20
    	30  DetoxSync                           0x0000000105109584 __36+[DTXSyncManager _tryIdleBlocksNow:]_block_invoke.128 + 188
    	31  libdispatch.dylib                   0x000000018010d244 _dispatch_call_block_and_release + 24
    	32  libdispatch.dylib                   0x000000018010ea98 _dispatch_client_callout + 16
    	33  libdispatch.dylib                   0x000000018011c41c _dispatch_main_queue_drain + 976
    	34  libdispatch.dylib                   0x000000018011c03c _dispatch_main_queue_callback_4CF + 40
    	35  CoreFoundation                      0x0000000180361c2c __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
    	36  CoreFoundation                      0x000000018035c0b0 __CFRunLoopRun + 2432
    	37  CoreFoundation                      0x000000018035b218 CFRunLoopRunSpecific + 572
    	38  GraphicsServices                    0x000000018c25f60c GSEventRunModal + 160
    	39  UIKitCore                           0x0000000184d88a98 -[UIApplication _run] + 992
    	40  DetoxSync                           0x0000000105104890 __detox_sync_UIApplication_run + 384
    	41  UIKitCore                           0x0000000184d8d634 UIApplicationMain + 112
    	42  jigx                                0x0000000100ddf138 main + 104
    	43  dyld                                0x0000000104da1cd8 start_sim + 20
    	44  ???                                 0x0000000104ef5088 0x0 + 4377759880
    	45  ???                                 0x4353000000000000 0x0 + 4851221223608156160
    )

      15 |     await waitFor(element(by.id('get-started')))
      16 |       .toBeVisible()
    > 17 |       .withTimeout(5000)
         |        ^
      18 |   })
      19 |
      20 |   // it('should show world screen after tap', async () => {

      at _callee3$ (firstTest.e2e.js:17:8)
      at tryCatch (../../../node_modules/regenerator-runtime/runtime.js:63:40)

15:21:14.663 detox[59302] TRACE: [SESSION_TORN] tester exited session f659d69d-73c6-a644-736e-4d8a02aacb49
15:21:15.673 detox[59302] WARN:  at ../../node_modules/jest-cli/build/cli/index.js:253:15
 Jest did not exit one second after the test run has completed.

This usually means that there are asynchronous operations that weren't stopped in your tests. Consider running Jest with `--detectOpenHandles` to troubleshoot this issue.
15:21:15.902 detox[59302] TRACE: [EXEC_TRY_FAIL, #8] An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=3):
Application termination failed.
FBSSystemService reported failure without an error, possibly because the app is not currently running.

15:21:15.903 detox[59302] DEBUG: [EXEC_TRY, #8] Terminating com.jigx.ios...
15:21:16.077 detox[59302] DEBUG: [EXEC_FAIL, #8] "/usr/bin/xcrun simctl terminate DD828092-2955-4ECD-94DE-B31B30F74AF0 com.jigx.ios" failed with error = ChildProcessError: Command failed: /usr/bin/xcrun simctl terminate DD828092-2955-4ECD-94DE-B31B30F74AF0 com.jigx.ios
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=3):
Application termination failed.
FBSSystemService reported failure without an error, possibly because the app is not currently running.
 `/usr/bin/xcrun simctl terminate DD828092-2955-4ECD-94DE-B31B30F74AF0 com.jigx.ios` (exited with error code 3) (code=3), stdout and stderr:

15:21:16.077 detox[59302] DEBUG: [EXEC_FAIL, #8]
15:21:16.077 detox[59302] DEBUG: [EXEC_FAIL, #8] An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=3):
Application termination failed.
FBSSystemService reported failure without an error, possibly because the app is not currently running.

15:21:16.092 detox[59301] ERROR: [cli.js] Command failed: jest --config e2e/config.json --testNamePattern '^((?!:android:).)*$' e2e

Device logs

Device logs
 yarn detox test --configuration ios --record-logs all                            21s 15:21:16
15:31:56.179 detox[59583] INFO:  [test.js] DETOX_CONFIGURATION="ios" DETOX_RECORD_LOGS="all" DETOX_REPORT_SPECS=true DETOX_START_TIMESTAMP=1653312716173 DETOX_USE_CUSTOM_LOGGER=true jest --config e2e/config.json --testNamePattern '^((?!:android:).)*$' e2e
15:32:09.138 detox[59584] INFO:  Example is assigned to DD828092-2955-4ECD-94DE-B31B30F74AF0 (iPhone 11 Pro)
15:32:11.202 detox[59584] INFO:  [AppleSimUtils.js] com.jigx.ios launched. To watch simulator logs, run:
        /usr/bin/xcrun simctl spawn DD828092-2955-4ECD-94DE-B31B30F74AF0 log stream --level debug --style compact --predicate 'process == "jigx"'
15:32:16.136 detox[59584] INFO:  Example: should show hello screen after tap
15:32:24.249 detox[59584] INFO:  Example: should show hello screen after tap [FAIL]

 FAIL  e2e/firstTest.e2e.js (20.947 s)
  Example
    ✕ should show hello screen after tap (8050 ms)

  ● Example › should show hello screen after tap

    DetoxRuntimeError: The pending request #2 ("invoke") has been rejected due to the following error:

    The app has crashed, see the details below:

    Signal 6 was raised
    (
    	0   Detox                               0x0000000104a1b870 +[NSThread(DetoxUtils) dtx_demangledCallStackSymbols] + 44
    	1   Detox                               0x0000000104a1e560 __DTXHandleCrash + 492
    	2   Detox                               0x0000000104a1ec9c __DTXHandleSignal + 80
    	3   libsystem_platform.dylib            0x00000001cc0a5760 _sigtramp + 52
    	4   libsystem_pthread.dylib             0x00000001cc0b13c0 pthread_kill + 256
    	5   libsystem_c.dylib                   0x00000001801023f4 abort + 124
    	6   Foundation                          0x0000000180880f48 +[_NSPredicateUtilities _predicateSecurityAction] + 44
    	7   Foundation                          0x00000001807734dc -[NSFunctionExpression expressionValueWithObject:context:] + 912
    	8   Foundation                          0x000000018072c96c -[NSComparisonPredicate evaluateWithObject:substitutionVariables:] + 308
    	9   Detox                               0x0000000104a1fd58 __87+[UIView(DetoxMatchers) _dtx_appendViewsRecursivelyFromArray:passingPredicate:storage:]_block_invoke + 88
    	10  CoreFoundation                      0x0000000180365878 __NSARRAY_IS_CALLING_OUT_TO_A_BLOCK__ + 16
    	11  CoreFoundation                      0x00000001802ecae8 -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 192
    	12  Detox                               0x0000000104a1fc78 +[UIView(DetoxMatchers) _dtx_appendViewsRecursivelyFromArray:passingPredicate:storage:] + 192
    	13  Detox                               0x0000000104a1fe98 +[UIView(DetoxMatchers) dtx_findViewsInWindows:passingPredicate:] + 108
    	14  Detox                               0x0000000104a200bc +[UIView(DetoxMatchers) dtx_findViewsInKeySceneWindowsPassingPredicate:] + 156
    	15  Detox                               0x0000000104a3b308 Detox.Element.(views in _14E24C92C1353FEA1FC68E698CB917EF).getter : Swift.Array<__C.NSObject> + 248
    	16  Detox                               0x0000000104a3b620 Detox.Element.(view in _14E24C92C1353FEA1FC68E698CB917EF).getter : __C.NSObject + 56
    	17  Detox                               0x0000000104a3ce68 Detox.Element.isVisible(with: Swift.Optional<Swift.UInt>) throws -> Swift.Bool + 60
    	18  Detox                               0x0000000104a360a0 Detox.ToBeVisibleExpectation._evaluate() -> () + 140
    	19  Detox                               0x0000000104a31570 reabstraction thunk helper from @callee_guaranteed () -> () to @escaping @callee_guaranteed () -> () + 20
    	20  Detox                               0x0000000104a2f154 reabstraction thunk helper from @escaping @callee_guaranteed () -> () to @escaping @callee_unowned @convention(block) () -> () + 20
    	21  Detox                               0x0000000104a285e8 +[DTXAssertionHandler try:error:] + 64
    	22  Detox                               0x0000000104a355f8 Detox.Expectation.(evaluate_after in _E7BB8FEE5659AC091DC950A704D01F2D)(startDate: Foundation.Date, completionHandler: (Swift.Optional<Swift.Error>) -> ()) -> () + 516
    	23  Detox                               0x0000000104a35b98 closure #1 () -> () in Detox.Expectation.evaluate(completionHandler: (Swift.Optional<Swift.Error>) -> ()) -> () + 168
    	24  Detox                               0x0000000104a31570 reabstraction thunk helper from @callee_guaranteed () -> () to @escaping @callee_guaranteed () -> () + 20
    	25  Detox                               0x0000000104a2f154 reabstraction thunk helper from @escaping @callee_guaranteed () -> () to @escaping @callee_unowned @convention(block) () -> () + 20
    	26  Detox                               0x0000000104a285e8 +[DTXAssertionHandler try:error:] + 64
    	27  Detox                               0x0000000104a39994 function signature specialization <Arg[1] = Dead, Arg[2] = Owned To Guaranteed, Arg[3] = Owned To Guaranteed> of function signature specialization <Arg[1] = [Closure Propagated : closure #1 (Swift.Optional<Swift.Dictionary<Swift.String, Any>>, Swift.Optional<Swift.Error>) -> () in closure #2 () -> () in Detox.DetoxManager.webSocket(_: Detox.WebSocket, didReceiveAction: Swift.String, params: Swift.Dictionary<Swift.String, Any>, messageId: __C.NSNumber) -> (), Argument Types : [Detox.DetoxManager__C.NSNumber]> of static Detox.InvocationManager.invoke(dictionaryRepresentation: Swift.Dictionary<Swift.String, Any>, completionHandler: (Swift.Optional<Swift.Dictionary<Swift.String, Any>>, Swift.Optional<Swift.Error>) -> ()) -> () + 1892
    	28  Detox                               0x0000000104a52a8c partial apply forwarder for closure #2 () -> () in Detox.DetoxManager.webSocket(_: Detox.WebSocket, didReceiveAction: Swift.String, params: Swift.Dictionary<Swift.String, Any>, messageId: __C.NSNumber) -> () + 76
    	29  Detox                               0x0000000104a2f154 reabstraction thunk helper from @escaping @callee_guaranteed () -> () to @escaping @callee_unowned @convention(block) () -> () + 20
    	30  DetoxSync                           0x00000001048f5584 __36+[DTXSyncManager _tryIdleBlocksNow:]_block_invoke.128 + 188
    	31  libdispatch.dylib                   0x000000018010d244 _dispatch_call_block_and_release + 24
    	32  libdispatch.dylib                   0x000000018010ea98 _dispatch_client_callout + 16
    	33  libdispatch.dylib                   0x000000018011c41c _dispatch_main_queue_drain + 976
    	34  libdispatch.dylib                   0x000000018011c03c _dispatch_main_queue_callback_4CF + 40
    	35  CoreFoundation                      0x0000000180361c2c __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
    	36  CoreFoundation                      0x000000018035c0b0 __CFRunLoopRun + 2432
    	37  CoreFoundation                      0x000000018035b218 CFRunLoopRunSpecific + 572
    	38  GraphicsServices                    0x000000018c25f60c GSEventRunModal + 160
    	39  UIKitCore                           0x0000000184d88a98 -[UIApplication _run] + 992
    	40  DetoxSync                           0x00000001048f0890 __detox_sync_UIApplication_run + 384
    	41  UIKitCore                           0x0000000184d8d634 UIApplicationMain + 112
    	42  jigx                                0x00000001005a3138 main + 104
    	43  dyld                                0x0000000104655cd8 start_sim + 20
    	44  ???                                 0x000000010439d088 0x0 + 4365865096
    	45  ???                                 0x6967000000000000 0x0 + 7595039296583630848
    )

      15 |     await waitFor(element(by.id('get-started')))
      16 |       .toBeVisible()
    > 17 |       .withTimeout(5000)
         |        ^
      18 |   })
      19 |
      20 |   // it('should show world screen after tap', async () => {

      at _callee3$ (firstTest.e2e.js:17:8)
      at tryCatch (../../../node_modules/regenerator-runtime/runtime.js:63:40)

15:32:25.300 detox[59584] WARN:  at ../../node_modules/jest-cli/build/cli/index.js:253:15
 Jest did not exit one second after the test run has completed.

This usually means that there are asynchronous operations that weren't stopped in your tests. Consider running Jest with `--detectOpenHandles` to troubleshoot this issue.
15:32:25.563 detox[59583] ERROR: [cli.js] Command failed: jest --config e2e/config.json --testNamePattern '^((?!:android:).)*$' e2e

More data, please!

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:2
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
asafkoremcommented, May 26, 2022

@achtan, @matthieuMay, @reinaldonetof, @luongbang152, @Maxim-Filimonov and anyone who has experience this issue, please update Detox to the latest version (v19.7.0). We have fixed this issue in that version (here).

1reaction
matthieuMaycommented, May 24, 2022

@asafkorem I have the exact same problem and indeed it is fixed by using a ios 14.5 device

Read more comments on GitHub >

github_iconTop Results From Across the Web

signal sigabrt error? | Apple Developer Forums
A SIGABRT (signal abort) error means that the app was deliberately crashed due to some really bad problem, like a runtime error during...
Read more >
Modic type I change may predict rapid progressive, deforming ...
Modic changes are closely related to the degenerative process affecting the disc, including disc herniation [6–8]; their prevalence increases with age [9].
Read more >
Trapping floating point exceptions and signal handling on ...
Turns out MacOS on AArch64 will deliver SIGILL, not SIGFPE, for unmasked FP exceptions. How to trap floating-point exceptions on M1 Macs?
Read more >
Compared: M2 vs M1, M1 Pro, M1 Max, and M1 Ultra
As the first release, M2 is the entry-level option in Apple's chip catalog, similar to M1's position alongside the M1 Pro, M1 Max,...
Read more >
Signal 6 app crash - Questions about Thunkable - Community
It's a bug I reported to the Thunkable staff. They could not find a solution and the response is very late. Maybe you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found