Detox: Signal 11 was raised

Description

I am getting the following Signal 11 crash intermittently when running tests on iOS Simulator

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

    The app has crashed, see the details below:

    Signal 11 was raised
    (
    	0   Detox                               0x0000000104ad3335 +[NSThread(DetoxUtils) dtx_demangledCallStackSymbols] + 37
    	1   Detox                               0x0000000104ad6540 __DTXHandleCrash + 464
    	2   Detox                               0x0000000104ad6c85 __DTXHandleSignal + 59
    	3   libsystem_platform.dylib            0x00007fff5e733d7d _sigtramp + 29
    	4   ???                                 0x0000000000000001 0x0 + 1
    	5   DetoxSync                           0x00000001063d274f -[_DTXTimerTrampoline fire:] + 188
    	6   DetoxSync                           0x00000001063bab10 _DTXCFTimerTrampoline + 74
    	7   CoreFoundation                      0x00007fff2038cc47 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
    	8   CoreFoundation                      0x00007fff2038c71a __CFRunLoopDoTimer + 926
    	9   CoreFoundation                      0x00007fff2038bccd __CFRunLoopDoTimers + 265
    	10  CoreFoundation                      0x00007fff2038634e __CFRunLoopRun + 1949
    	11  CoreFoundation                      0x00007fff203856c6 CFRunLoopRunSpecific + 567
    	12  MinoApp                             0x0000000103a4ee9a +[RCTCxxBridge runRunLoop] + 274
    	13  DetoxSync                           0x00000001063c300e swz_runRunLoopThread + 291
    	14  Foundation                          0x00007fff20852e68 __NSThread__start__ + 1042
    	15  libsystem_pthread.dylib             0x00007fff5e741954 _pthread_start + 224
    	16  libsystem_pthread.dylib             0x00007fff5e73d4a7 thread_start + 15
    )
  • I have tested this issue on the latest Detox release and it still reproduces

Environment (please complete the following information):

  • Detox: 18.14.1
  • React Native: 0.63.4
  • Node: 14
  • Device: iOS Simulator 11
  • Xcode: 12.4
  • iOS: 14.4
  • macOS: Big sur

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 17
  • Comments: 52 (16 by maintainers)

Commits related to this issue

Most upvoted comments

Still relevant

Got the same issue

DetoxRuntimeError: The pending request #-1000 ("isReady") has been rejected due to the following error:

    The app has crashed, see the details below:

    Signal 11 was raised
    (
    	0   Detox                               0x000000010c9ab335 +[NSThread(DetoxUtils) dtx_demangledCallStackSymbols] + 37
    	1   Detox                               0x000000010c9ae540 __DTXHandleCrash + 464
    	2   Detox                               0x000000010c9aec85 __DTXHandleSignal + 59
    	3   libsystem_platform.dylib            0x00007fff5e733d7d _sigtramp + 29
    	4   ???                                 0x0000000000000000 0x0 + 0
    	5   DetoxSync                           0x000000010e44574f -[_DTXTimerTrampoline fire:] + 188
    	6   DetoxSync                           0x000000010e42db10 _DTXCFTimerTrampoline + 74
    	7   CoreFoundation                      0x00007fff2038cc47 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
    	8   CoreFoundation                      0x00007fff2038c71a __CFRunLoopDoTimer + 926
    	9   CoreFoundation                      0x00007fff2038bccd __CFRunLoopDoTimers + 265
    	10  CoreFoundation                      0x00007fff2038634e __CFRunLoopRun + 1949
    	11  CoreFoundation                      0x00007fff203856c6 CFRunLoopRunSpecific + 567
    	12  MinoApp                             0x000000010bc352fa +[RCTCxxBridge runRunLoop] + 274
    	13  DetoxSync                           0x000000010e43600e swz_runRunLoopThread + 291
    	14  Foundation                          0x00007fff20852e68 __NSThread__start__ + 1042
    	15  libsystem_pthread.dylib             0x00007fff5e741954 _pthread_start + 224
    	16  libsystem_pthread.dylib             0x00007fff5e73d4a7 thread_start + 15
    )

Detox: 18.14.1 React Native: 0.63.4 Node: 14 Device: iOS Simulator 11 Xcode: 12.4 iOS: 14.4 macOS: Big Sur 11.3.1

My message won’t bring much info, but still. On detox 17 we do not have this crash ever.

Upgrading to Detox 18 leads to occasional(not 100% reproducible) such crashes - probably on iOS only.

On M1 Mac mini these crashes are much more frequent(>50%), on x86 MacBook they are rarer (~10-20%).

This crash appears for us on CircleCI macOS containers running Intel Xeon 10 core machines with 8 vCPU and 16GB ram.

On my local machine I tried to replicate low compute resourcing. I ran (all at the same time): GeekBench 5, Cinebench, “CPU Stress test” with 64 threads of compute set to 100% compute, multiple instances of node.js, the Detox/React Native bundler and I watched the Simulator without headless mode enabled. Even with all of my threads maxed and being hit by multiple processes I still could not reproduce these crashes, and I also cannot reproduce the kind of low framerate and lag that Detox gets on CI. My only conclusion can be that it’s not resource limitations causing this. I think that Detox on iOS has some sort of issue when running it on a VM there is some sort of methods it uses on that conflicts with the queueing and scheduling of a hypervisor. This problem does not appear on bare metal but as soon as you introduce a VM you start to see degraded performance and eventually crashes. I don’t think it’s crashing because of the lack of performance of the VM (the VM might be powerful enough) but because it seems to lack stability and compatibility with VMs as a technology. So, for the Detox team to easily reproduce this issue, I would suggest running Detox in a macOS VM, however you can do that.

Thanks guys. We will onboard with trying to address these random crashes by the year’s end. In the meantime, it is highly recommended that you’d inspect your device logs - look up these crashes there, and then try to find a Javascript stacktrace. Sometimes, it can lead you to the place in the JS code that crashes.

I got one

 detox test --configuration ios
14:08:51.278 detox[7398] INFO:  [test.js] DETOX_CONFIGURATION="ios" DETOX_REPORT_SPECS=true DETOX_START_TIMESTAMP=1647522531274 DETOX_USE_CUSTOM_LOGGER=true jest --config e2e/config.json --testNamePattern '^((?!:android:).)*$' e2e
14:08:54.073 detox[7399] INFO:  Example is assigned to 67BCB574-19E2-4DBA-A372-E8072B2803D0 (iPhone 12)
14:08:54.365 detox[7399] INFO:  [AppleSimUtils.js] com.spectre.player.martini.dev launched. To watch simulator logs, run:
        /usr/bin/xcrun simctl spawn 67BCB574-19E2-4DBA-A372-E8072B2803D0 log stream --level debug --style compact --predicate 'process == "Martini Dev"'
14:08:56.017 detox[7399] INFO:  Example: should have welcome screen
14:09:01.062 detox[7399] INFO:  Example: should have welcome screen [FAIL]

 FAIL  e2e/firstTest.e2e.js (9.214 s)
  Example
    ✕ should have welcome screen (5042 ms)

  ● Example › should have welcome screen

    DetoxRuntimeError: The pending request #-1000 ("reactNativeReload") has been rejected due to the following error:

    The app has crashed, see the details below:

    Signal 11 was raised
    (
    	0   Detox                               0x0000000107daf630 +[NSThread(DetoxUtils) dtx_demangledCallStackSymbols] + 44
    	1   Detox                               0x0000000107db2470 __DTXHandleCrash + 492
    	2   Detox                               0x0000000107db2bac __DTXHandleSignal + 80
    	3   libsystem_platform.dylib            0x00000001c99c2760 _sigtramp + 52
    	4   DetoxSync                           0x0000000107bbb404 +[DTXRunLoopSyncResource _existingSyncResourceWithRunLoop:clear:] + 144
    	5   DetoxSync                           0x0000000107bbb404 +[DTXRunLoopSyncResource _existingSyncResourceWithRunLoop:clear:] + 144
    	6   DetoxSync                           0x0000000107bb5cf8 +[DTXSyncManager _untrackCFRunLoop:] + 56
    	7   DetoxSync                           0x0000000107bb5c84 +[DTXSyncManager untrackCFRunLoop:] + 104
    	8   DetoxSync                           0x0000000107bb154c swz_runRunLoopThread + 148
    	9   Foundation                          0x000000018083b97c __NSThread__start__ + 788
    	10  libsystem_pthread.dylib             0x00000001c99ce68c _pthread_start + 116
    	11  libsystem_pthread.dylib             0x00000001c99c9898 thread_start + 8
    )

       5 |
       6 |   beforeEach(async () => {
    >  7 |     await device.reloadReactNative();
         |                  ^
       8 |   });
       9 |
      10 |   it('should have welcome screen', async () => {

      at _callee2$ (firstTest.e2e.js:7:18)
      at tryCatch (../node_modules/regenerator-runtime/runtime.js:63:40)
      at Generator.invoke [as _invoke] (../node_modules/regenerator-runtime/runtime.js:294:22)
      at Generator.next (../node_modules/regenerator-runtime/runtime.js:119:21)
      at tryCatch (../node_modules/regenerator-runtime/runtime.js:63:40)
      at invoke (../node_modules/regenerator-runtime/runtime.js:155:20)
      at ../node_modules/regenerator-runtime/runtime.js:190:11

14:09:01.217 detox[7398] ERROR: [cli.js] Command failed: jest --config e2e/config.json --testNamePattern '^((?!:android:).)*$' e2e

with "detox": "^19.5.3",

https://github.com/wix/Detox/pull/3135 was merged, it should solve the issue of DetoxSync crashes when Firebase/Performance is integrated, it was tested on the example apps that reproduced this issue.

We will release a version with this change soon.

Once you have updated a version (to the latest/next version), if any of you are still having Signal 11 crashes on DetoxSync, please open a new bug report with the required details.

Android debug: ✅ Android release: ✅ iOS debug ✅ iOS release: ❌

Detox can install the app without any issues but launching ends up with the below crash. Running the installed app manually works perfectly fine (however tests are failing as detox is not connected)

  • React-native 0.65
  • Detox v19 (tried with v18 - same issue)
  • Expo 43, bare flow
detox[14040] ERROR: [WS_ERROR] The app has crashed, see the details below:

Signal 11 was raised
(
	0   Detox                               0x00000001025c7620 +[NSThread(DetoxUtils) dtx_demangledCallStackSymbols] + 44
	1   Detox                               0x00000001025ca460 __DTXHandleCrash + 492
	2   Detox                               0x00000001025cab9c __DTXHandleSignal + 80
	3   libsystem_platform.dylib            0x00000001c7fd3760 _sigtramp + 52
	4   DetoxSync                           0x000000010474b7d4 +[DTXRunLoopSyncResource _existingSyncResourceWithRunLoop:clear:] + 144
	5   DetoxSync                           0x000000010474b7d4 +[DTXRunLoopSyncResource _existingSyncResourceWithRunLoop:clear:] + 144
	6   DetoxSync                           0x0000000104745c9c +[DTXSyncManager _untrackCFRunLoop:] + 56
	7   DetoxSync                           0x0000000104745c28 +[DTXSyncManager untrackCFRunLoop:] + 104
	8   DetoxSync                           0x000000010474180c swz_runRunLoopThread + 148
	9   Foundation                          0x000000018083a4f4 __NSThread__start__ + 772
	10  libsystem_pthread.dylib             0x00000001c7fde910 _pthread_start + 116
	11  libsystem_pthread.dylib             0x00000001c7fd9b1c thread_start + 8
)

edit:

  • there is no push notification or any other popup on start-up.

Got the same error. The app opens and displays the push notification modal but it closes (crashes) after 3 seconds of that initial display of successful run.

Command Runned: detox test --configuration ios

detox: 19.1.0 react-native: 0.66.1 node: v14.17.4 Device: simluator iPhone 12 Xcode: 12.5 iOS: 14.5 macOS: Big Sur 11.2.3 MacBook Pro (13-inch, 2017, Two Thunderbolt 3 ports) Processor: 2.3 GHz Dual-Core Intel Core i5 Memory: 8 GB 2133 MHz LPDDR3

` DetoxRuntimeError: The pending request #-1000 (“isReady”) has been rejected due to the following error:

The app has crashed, see the details below:

Signal 11 was raised
(
	0   Detox                               0x00000001093a86c5 +[NSThread(DetoxUtils) dtx_demangledCallStackSymbols] + 37
	1   Detox                               0x00000001093ab250 __DTXHandleCrash + 464
	2   Detox                               0x00000001093ab991 __DTXHandleSignal + 59
	3   libsystem_platform.dylib            0x00000001133a2d7d _sigtramp + 29
	4   ???                                 0x0000600000ed2400 0x0 + 105553131807744
	5   MobileMessaging                     0x000000010f9b78a1 function signature specialization <Arg[1] = Owned To Guaranteed> of Swift.Dictionary.subscript.setter : (A) -> Swift.Optional<B> + 225
	6   MobileMessaging                     0x000000010f9b5601 closure #1 () -> () in MobileMessaging.ThreadSafeDict.set(value: Swift.Optional<A>, forKey: Swift.String) -> () + 161
	7   MobileMessaging                     0x000000010f9a206e reabstraction thunk helper from @escaping @callee_guaranteed () -> () to @escaping @callee_unowned @convention(block) () -> () + 14
	8   libdispatch.dylib                   0x0000000112ef88df _dispatch_client_callout + 8
	9   libdispatch.dylib                   0x0000000112efba87 _dispatch_block_invoke_direct + 281
	10  DetoxSync                           0x0000000140bfae97 ____detox_sync_dispatch_wrapper_block_invoke + 23
	11  libdispatch.dylib                   0x0000000112ef770d _dispatch_call_block_and_release + 12
	12  libdispatch.dylib                   0x0000000112ef88df _dispatch_client_callout + 8
	13  libdispatch.dylib                   0x0000000112efb44a _dispatch_continuation_pop + 445
	14  libdispatch.dylib                   0x0000000112efab0e _dispatch_async_redirect_invoke + 742
	15  libdispatch.dylib                   0x0000000112f08a8e _dispatch_root_queue_drain + 350
	16  libdispatch.dylib                   0x0000000112f09285 _dispatch_worker_thread2 + 102
	17  libsystem_pthread.dylib             0x00000001133c6453 _pthread_wqthread + 244
	18  libsystem_pthread.dylib             0x00000001133c5467 start_wqthread + 15
)

  1 | describe('Example', () => {
  2 |   beforeAll(async () => {
> 3 |     await device.launchApp();
    |                  ^
  4 |   });
  5 |
  6 |   beforeEach(async () => {

  at _callee$ (firstTest.e2e.js:3:18)
  at tryCatch (../node_modules/regenerator-runtime/runtime.js:63:40)
  at Generator.invoke [as _invoke] (../node_modules/regenerator-runtime/runtime.js:294:22)
  at Generator.next (../node_modules/regenerator-runtime/runtime.js:119:21)
  at tryCatch (../node_modules/regenerator-runtime/runtime.js:63:40)
  at invoke (../node_modules/regenerator-runtime/runtime.js:155:20)
  at ../node_modules/regenerator-runtime/runtime.js:190:11

● Example › should show hello screen after tap

DetoxRuntimeError: The pending request #-1000 ("isReady") has been rejected due to the following error:

The app has crashed, see the details below:

Signal 11 was raised
(
	0   Detox                               0x00000001093a86c5 +[NSThread(DetoxUtils) dtx_demangledCallStackSymbols] + 37
	1   Detox                               0x00000001093ab250 __DTXHandleCrash + 464
	2   Detox                               0x00000001093ab991 __DTXHandleSignal + 59
	3   libsystem_platform.dylib            0x00000001133a2d7d _sigtramp + 29
	4   ???                                 0x0000600000ed2400 0x0 + 105553131807744
	5   MobileMessaging                     0x000000010f9b78a1 function signature specialization <Arg[1] = Owned To Guaranteed> of Swift.Dictionary.subscript.setter : (A) -> Swift.Optional<B> + 225
	6   MobileMessaging                     0x000000010f9b5601 closure #1 () -> () in MobileMessaging.ThreadSafeDict.set(value: Swift.Optional<A>, forKey: Swift.String) -> () + 161
	7   MobileMessaging                     0x000000010f9a206e reabstraction thunk helper from @escaping @callee_guaranteed () -> () to @escaping @callee_unowned @convention(block) () -> () + 14
	8   libdispatch.dylib                   0x0000000112ef88df _dispatch_client_callout + 8
	9   libdispatch.dylib                   0x0000000112efba87 _dispatch_block_invoke_direct + 281
	10  DetoxSync                           0x0000000140bfae97 ____detox_sync_dispatch_wrapper_block_invoke + 23
	11  libdispatch.dylib                   0x0000000112ef770d _dispatch_call_block_and_release + 12
	12  libdispatch.dylib                   0x0000000112ef88df _dispatch_client_callout + 8
	13  libdispatch.dylib                   0x0000000112efb44a _dispatch_continuation_pop + 445
	14  libdispatch.dylib                   0x0000000112efab0e _dispatch_async_redirect_invoke + 742
	15  libdispatch.dylib                   0x0000000112f08a8e _dispatch_root_queue_drain + 350
	16  libdispatch.dylib                   0x0000000112f09285 _dispatch_worker_thread2 + 102
	17  libsystem_pthread.dylib             0x00000001133c6453 _pthread_wqthread + 244
	18  libsystem_pthread.dylib             0x00000001133c5467 start_wqthread + 15
)

  1 | describe('Example', () => {
  2 |   beforeAll(async () => {
> 3 |     await device.launchApp();
    |                  ^
  4 |   });
  5 |
  6 |   beforeEach(async () => {

  at _callee$ (firstTest.e2e.js:3:18)
  at tryCatch (../node_modules/regenerator-runtime/runtime.js:63:40)
  at Generator.invoke [as _invoke] (../node_modules/regenerator-runtime/runtime.js:294:22)
  at Generator.next (../node_modules/regenerator-runtime/runtime.js:119:21)
  at tryCatch (../node_modules/regenerator-runtime/runtime.js:63:40)
  at invoke (../node_modules/regenerator-runtime/runtime.js:155:20)
  at ../node_modules/regenerator-runtime/runtime.js:190:11

● Example › should show world screen after tap

DetoxRuntimeError: The pending request #-1000 ("isReady") has been rejected due to the following error:

The app has crashed, see the details below:

Signal 11 was raised
(
	0   Detox                               0x00000001093a86c5 +[NSThread(DetoxUtils) dtx_demangledCallStackSymbols] + 37
	1   Detox                               0x00000001093ab250 __DTXHandleCrash + 464
	2   Detox                               0x00000001093ab991 __DTXHandleSignal + 59
	3   libsystem_platform.dylib            0x00000001133a2d7d _sigtramp + 29
	4   ???                                 0x0000600000ed2400 0x0 + 105553131807744
	5   MobileMessaging                     0x000000010f9b78a1 function signature specialization <Arg[1] = Owned To Guaranteed> of Swift.Dictionary.subscript.setter : (A) -> Swift.Optional<B> + 225
	6   MobileMessaging                     0x000000010f9b5601 closure #1 () -> () in MobileMessaging.ThreadSafeDict.set(value: Swift.Optional<A>, forKey: Swift.String) -> () + 161
	7   MobileMessaging                     0x000000010f9a206e reabstraction thunk helper from @escaping @callee_guaranteed () -> () to @escaping @callee_unowned @convention(block) () -> () + 14
	8   libdispatch.dylib                   0x0000000112ef88df _dispatch_client_callout + 8
	9   libdispatch.dylib                   0x0000000112efba87 _dispatch_block_invoke_direct + 281
	10  DetoxSync                           0x0000000140bfae97 ____detox_sync_dispatch_wrapper_block_invoke + 23
	11  libdispatch.dylib                   0x0000000112ef770d _dispatch_call_block_and_release + 12
	12  libdispatch.dylib                   0x0000000112ef88df _dispatch_client_callout + 8
	13  libdispatch.dylib                   0x0000000112efb44a _dispatch_continuation_pop + 445
	14  libdispatch.dylib                   0x0000000112efab0e _dispatch_async_redirect_invoke + 742
	15  libdispatch.dylib                   0x0000000112f08a8e _dispatch_root_queue_drain + 350
	16  libdispatch.dylib                   0x0000000112f09285 _dispatch_worker_thread2 + 102
	17  libsystem_pthread.dylib             0x00000001133c6453 _pthread_wqthread + 244
	18  libsystem_pthread.dylib             0x00000001133c5467 start_wqthread + 15
)

  1 | describe('Example', () => {
  2 |   beforeAll(async () => {
> 3 |     await device.launchApp();
    |                  ^
  4 |   });
  5 |
  6 |   beforeEach(async () => {

  at _callee$ (firstTest.e2e.js:3:18)
  at tryCatch (../node_modules/regenerator-runtime/runtime.js:63:40)
  at Generator.invoke [as _invoke] (../node_modules/regenerator-runtime/runtime.js:294:22)
  at Generator.next (../node_modules/regenerator-runtime/runtime.js:119:21)
  at tryCatch (../node_modules/regenerator-runtime/runtime.js:63:40)
  at invoke (../node_modules/regenerator-runtime/runtime.js:155:20)
  at ../node_modules/regenerator-runtime/runtime.js:190:11

detox[18415] ERROR: [cli.js] Command failed: jest --config e2e/config.json --testNamePattern ‘^((?!:android:).)*$’ e2e `

After trying many times…

For me was to allow push notification right after the modal appeared

similar issue here every now and then.

 DetoxRuntimeError: The pending request #-1000 ("isReady") has been rejected due to the following error:

    The app has crashed, see the details below:

    Signal 11 was raised
    (
    	0   Detox                               0x000000010ca45c45 +[NSThread(DetoxUtils) dtx_demangledCallStackSymbols] + 37
    	1   Detox                               0x000000010ca48e50 __DTXHandleCrash + 464
    	2   Detox                               0x000000010ca49595 __DTXHandleSignal + 59
    	3   libsystem_platform.dylib            0x0000000115819d7d _sigtramp + 29
    	4   ScreenReaderCore                    0x0000000147725320 _dyld_private + 0
    	5   DetoxSync                           0x0000000144bca74f -[_DTXTimerTrampoline fire:] + 188
    	6   DetoxSync                           0x0000000144bb2b10 _DTXCFTimerTrampoline + 74
    	7   CoreFoundation                      0x0000000112fe078a __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
    	8   CoreFoundation                      0x0000000112fe027c __CFRunLoopDoTimer + 924
    	9   CoreFoundation                      0x0000000112fdf81a __CFRunLoopDoTimers + 265
    	10  CoreFoundation                      0x0000000112fd9e69 __CFRunLoopRun + 2013
    	11  CoreFoundation                      0x0000000112fd91a7 CFRunLoopRunSpecific + 567
    	12  EHLife                              0x000000010b182b81 +[RCTCxxBridge runRunLoop] + 449
    	13  DetoxSync                           0x0000000144bbb00e swz_runRunLoopThread + 291
    	14  Foundation                          0x000000010e7678a9 __NSThread__start__ + 1068
    	15  libsystem_pthread.dylib             0x00000001158408fc _pthread_start + 224
    	16  libsystem_pthread.dylib             0x000000011583c443 thread_start + 15
    )

      2 | 
      3 | beforeAll(async () => {
    > 4 |   await device.launchApp({
        |                ^
      5 |     permissions: {
      6 |       notifications: 'YES',
      7 |       userTracking: 'YES',

    at _callee$ (init.js:4:16)
      at tryCatch (../../node_modules/regenerator-runtime/runtime.js:45:40)
      at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:274:22)
      at Generator.prototype.<computed> [as next] (../../node_modules/regenerator-runtime/runtime.js:97:21)
      at tryCatch (../../node_modules/regenerator-runtime/runtime.js:45:40)
      at invoke (../../node_modules/regenerator-runtime/runtime.js:135:20)
      at ../../node_modules/regenerator-runtime/runtime.js:170:11
      at callInvokeWithMethodAndArg (../../node_modules/regenerator-runtime/runtime.js:169:16)
      at AsyncIterator.enqueue (../../node_modules/regenerator-runtime/runtime.js:192:13)
      at AsyncIterator.prototype.<computed> [as next] (../../node_modules/regenerator-runtime/runtime.js:97:21)
      at Object.<anonymous>.exports.async (../../node_modules/regenerator-runtime/runtime.js:219:14)
      at _callee (init.js:3:11)

detox: 18.20.3 React Native: 0.64.1 react-native-firebase 11.4.1 Node: 12.14.1 Device: simluator iPhone 11 Xcode: 12.5 iOS: 14.5 macOS: 11.4 Mac chip: intel i7

I have the same issue, on my own env and in github action env.

     	20  libdispatch.dylib                   0x0000000114e7498c _dispatch_lane_invoke + 400
    	21  libdispatch.dylib                   0x0000000114e7ef81 _dispatch_workloop_worker_thread + 772
    	22  libsystem_pthread.dylib             0x000000011533b45d _pthread_wqthread + 314
    	23  libsystem_pthread.dylib             0x000000011533a42f start_wqthread + 15
    )



  ● MyBookings test › should login

    DetoxRuntimeError: The pending request #-1000 ("isReady") has been rejected due to the following error:

    The app has crashed, see the details below:

    Signal 11 was raised
    (
    	0   Detox                               0x0000000107b88735 +[NSThread(DetoxUtils) dtx_demangledCallStackSymbols] + 37
    	1   Detox                               0x0000000107b8b940 __DTXHandleCrash + 464
    	2   Detox                               0x0000000107b8c085 __DTXHandleSignal + 59
    	3   libsystem_platform.dylib            0x0000000115317d7d _sigtramp + 29
    	4   libsystem_c.dylib                   0x00000001150376f8 __global_locale + 0
    	5   CoreFoundation                      0x000000010e66b833 -[__NSDictionaryM dealloc] + 128
    	6   libobjc.A.dylib                     0x000000010e48e604 objc_object::sidetable_release(bool, bool) + 174
    	7   libobjc.A.dylib                     0x000000010e48a8ad _object_remove_assocations + 562
    	8   libobjc.A.dylib                     0x000000010e487c02 objc_destructInstance + 84
    	9   libobjc.A.dylib                     0x000000010e48dd88 -[NSObject dealloc] + 21
    	10  Foundation                          0x000000010a4c6ca1 -[NSOperation dealloc] + 281
    	11  libobjc.A.dylib                     0x000000010e48e604 objc_object::sidetable_release(bool, bool) + 174
    	12  libsystem_blocks.dylib              0x0000000114fa6432 _Block_release + 128
    	13  libsystem_blocks.dylib              0x0000000114fa6432 _Block_release + 128
    	14  libsystem_blocks.dylib              0x0000000114fa6432 _Block_release + 128
    	15  olybe                               0x00000001058c0368 __destroy_helper_block_e8_32s40s48s + 24
    	16  libsystem_blocks.dylib              0x0000000114fa6432 _Block_release + 128
    	17  libsystem_blocks.dylib              0x0000000114fa6432 _Block_release + 128
    	18  libdispatch.dylib                   0x0000000114e6d8df _dispatch_client_callout + 8
    	19  libdispatch.dylib                   0x0000000114e73f5c _dispatch_lane_serial_drain + 1042
    	20  libdispatch.dylib                   0x0000000114e7498c _dispatch_lane_invoke + 400
    	21  libdispatch.dylib                   0x0000000114e7ef81 _dispatch_workloop_worker_thread + 772
    	22  libsystem_pthread.dylib             0x000000011533b45d _pthread_wqthread + 314
    	23  libsystem_pthread.dylib             0x000000011533a42f start_wqthread + 15
    )

Detox: 18.12.2 React Native: 0.64.1 Node: 14.1 Device: iOS Simulator 11 Xcode: 12.5 macOS: Big Sur (github macos-11)

  • I got this error in github actions.
  • In my local machine, detox work correctly.
  • In circleCI detox also work correctly.

How can I fix it in github actions?

Finally I realized that I had to manually open the IOS simulator on macos to see what’s happening. (btw it is a weird behavior to get the IOS simulator headless by default since on Android the emulator is opened by default). So the issue happens because I didn’t build the app with the js and the app was expecting the react-native dev server to be running.

@SiM07 Whenever you are running detox and your app crash, you will see “Signal 11 was raised”, but it doesn’t mean the crash was related to detox… In your case detox only caught it.

Could Detox possibly bubble up the track trace of the original crash? It’s tough to debug without the original error message / stack trace.

@meshaabi The trace you linked is a crash but not necessarily related to detox itself. See what @d4vidi commented after the trace. I will say it again - every time your app crash while detox is running you will see something like this: 0x0000000107b8b940 __DTXHandleCrash + 464 Doesn’t mean the crash is from detox though… In this ticket 5 DetoxSync 0x00000001063d274f -[_DTXTimerTrampoline fire:] + 188 is the thing which pointed to DetoxSync.

I hope fixing the issue with firebase will help you, but I’m not sure that’s the issue in your case