Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 #4360

Open
2 tasks done
sanyaJolly opened this issue Feb 6, 2024 · 1 comment

Comments

@sanyaJolly
Copy link

What happened?

got this error when trying to run tests on ios simulator.

What was the expected behaviour?

The test is expected to run

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!

npx detox test -c ios.sim.debug  --debug-synchronization 500

In what environment did this happen?

Detox version: 20.17.0
React Native version: 0.69
Node version: v21.6.1
Device model: iPhone 13
iOS version: 17.2
macOS version: Sonoma 14.3
Xcode version: 15.2
Test-runner : jest

Detox logs

Detox logs
 FAIL  e2e/starter.test.js (35.049 s)
  Example
    ✕ should have welcome screen (2 ms)
    ✕ should show hello screen after tap
    ✕ should show world screen after tap

  ● Example › should have welcome screen

    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                               0x000000010fcdc655 +[NSThread(DetoxUtils) dtx_demangledCallStackSymbols] + 37
    	1   Detox                               0x000000010fcdf3ec __DTXHandleCrash + 460
    	2   Detox                               0x000000010fcdfb23 __DTXHandleSignal + 59
    	3   libsystem_platform.dylib            0x000000011fe0437d _sigtramp + 29
    	4   ???                                 0x0000000000000000 0x0 + 0
    	5   DetoxSync                           0x000000015b36af86 -[_DTXTimerTrampoline setDisplayLink:] + 78
    	6   DetoxSync                           0x000000015b3688db +[DTXTimerSyncResource _timerProxyWithDisplayLink:] + 99
    	7   DetoxSync                           0x000000015b36896d +[DTXTimerSyncResource existingTimerProxyWithDisplayLink:create:] + 119
    	8   DetoxSync                           0x000000015b35eb3d +[DTXSyncManager trackDisplayLink:name:] + 87
    	9   DetoxSync                           0x000000015b352830 -[NSObject(REANodesManagerDTXSpy) __detox_sync_startUpdatingOnAnimationFrame] + 103
    	10  MmcApp                              0x0000000102e5dd37 -[REANodesManager postRunUpdatesAfterAnimation] + 55
    	11  MmcApp                              0x0000000102e5d03c -[REANode markUpdated] + 124
    	12  MmcApp                              0x0000000102e5c972 -[REANode dangerouslyRescheduleEvaluate] + 146
    	13  MmcApp                              0x0000000102e5cf31 -[REANode addChild:] + 145
    	14  MmcApp                              0x0000000102e5f0dc -[REANodesManager connectNodes:childID:] + 796
    	15  MmcApp                              0x0000000102e5b262 __35-[REAModule connectNodes:childTag:]_block_invoke + 66
    	16  MmcApp                              0x0000000102e5c2ce __42-[REAModule uiManagerWillPerformMounting:]_block_invoke + 382
    	17  MmcApp                              0x000000010301eb36 __44-[RCTUIManager flushUIBlocksWithCompletion:]_block_invoke + 374
    	18  MmcApp                              0x000000010301ee49 __44-[RCTUIManager flushUIBlocksWithCompletion:]_block_invoke.493 + 393
    	19  MmcApp                              0x000000010302746a __RCTExecuteOnMainQueue_block_invoke + 26
    	20  DetoxSync                           0x000000015b353bac ____detox_sync_dispatch_wrapper_block_invoke + 23
    	21  libdispatch.dylib                   0x000000011f8f8a90 _dispatch_call_block_and_release + 12
    	22  libdispatch.dylib                   0x000000011f8f9d3a _dispatch_client_callout + 8
    	23  libdispatch.dylib                   0x000000011f908ac0 _dispatch_main_queue_drain + 1420
    	24  libdispatch.dylib                   0x000000011f908526 _dispatch_main_queue_callback_4CF + 31
    	25  CoreFoundation                      0x000000011e97edc4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
    	26  CoreFoundation                      0x000000011e9796ff __CFRunLoopRun + 2463
    	27  CoreFoundation                      0x000000011e97897d CFRunLoopRunSpecific + 557
    	28  GraphicsServices                    0x0000000125dc008f GSEventRunModal + 137
    	29  UIKitCore                           0x000000013300853d -[UIApplication _run] + 972
    	30  DetoxSync                           0x000000015b3598ee __detox_sync_UIApplication_run + 362
    	31  UIKitCore                           0x000000013300cfab UIApplicationMain + 123
    	32  MmcApp                              0x0000000102ba15a8 main + 104
    	33  dyld                                0x000000010f0023e0 start_sim + 10
    	34  ???                                 0x0000000206844386 0x0 + 8699265926
    )

      1 | describe('Example', () => {
      2 |   beforeAll(async () => {
    > 3 |     await device.launchApp({  permissions: {
        |                  ^
      4 |       location: 'inuse',
      5 |       notifications: 'YES',
      6 |       contacts: 'YES',

      at Object.launchApp (e2e/starter.test.js:3:18)
      at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
      at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)
      at node_modules/@babel/runtime/helpers/asyncToGenerator.js:32:7
      at Object.<anonymous> (node_modules/@babel/runtime/helpers/asyncToGenerator.js:21:12)

  ● Example › should show hello screen after tap

    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                               0x000000010fcdc655 +[NSThread(DetoxUtils) dtx_demangledCallStackSymbols] + 37
    	1   Detox                               0x000000010fcdf3ec __DTXHandleCrash + 460
    	2   Detox                               0x000000010fcdfb23 __DTXHandleSignal + 59
    	3   libsystem_platform.dylib            0x000000011fe0437d _sigtramp + 29
    	4   ???                                 0x0000000000000000 0x0 + 0
    	5   DetoxSync                           0x000000015b36af86 -[_DTXTimerTrampoline setDisplayLink:] + 78
    	6   DetoxSync                           0x000000015b3688db +[DTXTimerSyncResource _timerProxyWithDisplayLink:] + 99
    	7   DetoxSync                           0x000000015b36896d +[DTXTimerSyncResource existingTimerProxyWithDisplayLink:create:] + 119
    	8   DetoxSync                           0x000000015b35eb3d +[DTXSyncManager trackDisplayLink:name:] + 87
    	9   DetoxSync                           0x000000015b352830 -[NSObject(REANodesManagerDTXSpy) __detox_sync_startUpdatingOnAnimationFrame] + 103
    	10  MmcApp                              0x0000000102e5dd37 -[REANodesManager postRunUpdatesAfterAnimation] + 55
    	11  MmcApp                              0x0000000102e5d03c -[REANode markUpdated] + 124
    	12  MmcApp                              0x0000000102e5c972 -[REANode dangerouslyRescheduleEvaluate] + 146
    	13  MmcApp                              0x0000000102e5cf31 -[REANode addChild:] + 145
    	14  MmcApp                              0x0000000102e5f0dc -[REANodesManager connectNodes:childID:] + 796
    	15  MmcApp                              0x0000000102e5b262 __35-[REAModule connectNodes:childTag:]_block_invoke + 66
    	16  MmcApp                              0x0000000102e5c2ce __42-[REAModule uiManagerWillPerformMounting:]_block_invoke + 382
    	17  MmcApp                              0x000000010301eb36 __44-[RCTUIManager flushUIBlocksWithCompletion:]_block_invoke + 374
    	18  MmcApp                              0x000000010301ee49 __44-[RCTUIManager flushUIBlocksWithCompletion:]_block_invoke.493 + 393
    	19  MmcApp                              0x000000010302746a __RCTExecuteOnMainQueue_block_invoke + 26
    	20  DetoxSync                           0x000000015b353bac ____detox_sync_dispatch_wrapper_block_invoke + 23
    	21  libdispatch.dylib                   0x000000011f8f8a90 _dispatch_call_block_and_release + 12
    	22  libdispatch.dylib                   0x000000011f8f9d3a _dispatch_client_callout + 8
    	23  libdispatch.dylib                   0x000000011f908ac0 _dispatch_main_queue_drain + 1420
    	24  libdispatch.dylib                   0x000000011f908526 _dispatch_main_queue_callback_4CF + 31
    	25  CoreFoundation                      0x000000011e97edc4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
    	26  CoreFoundation                      0x000000011e9796ff __CFRunLoopRun + 2463
    	27  CoreFoundation                      0x000000011e97897d CFRunLoopRunSpecific + 557
    	28  GraphicsServices                    0x0000000125dc008f GSEventRunModal + 137
    	29  UIKitCore                           0x000000013300853d -[UIApplication _run] + 972
    	30  DetoxSync                           0x000000015b3598ee __detox_sync_UIApplication_run + 362
    	31  UIKitCore                           0x000000013300cfab UIApplicationMain + 123
    	32  MmcApp                              0x0000000102ba15a8 main + 104
    	33  dyld                                0x000000010f0023e0 start_sim + 10
    	34  ???                                 0x0000000206844386 0x0 + 8699265926
    )

      1 | describe('Example', () => {
      2 |   beforeAll(async () => {
    > 3 |     await device.launchApp({  permissions: {
        |                  ^
      4 |       location: 'inuse',
      5 |       notifications: 'YES',
      6 |       contacts: 'YES',

      at Object.launchApp (e2e/starter.test.js:3:18)
      at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
      at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)
      at node_modules/@babel/runtime/helpers/asyncToGenerator.js:32:7
      at Object.<anonymous> (node_modules/@babel/runtime/helpers/asyncToGenerator.js:21:12)

  ● Example › should show world screen after tap

    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                               0x000000010fcdc655 +[NSThread(DetoxUtils) dtx_demangledCallStackSymbols] + 37
    	1   Detox                               0x000000010fcdf3ec __DTXHandleCrash + 460
    	2   Detox                               0x000000010fcdfb23 __DTXHandleSignal + 59
    	3   libsystem_platform.dylib            0x000000011fe0437d _sigtramp + 29
    	4   ???                                 0x0000000000000000 0x0 + 0
    	5   DetoxSync                           0x000000015b36af86 -[_DTXTimerTrampoline setDisplayLink:] + 78
    	6   DetoxSync                           0x000000015b3688db +[DTXTimerSyncResource _timerProxyWithDisplayLink:] + 99
    	7   DetoxSync                           0x000000015b36896d +[DTXTimerSyncResource existingTimerProxyWithDisplayLink:create:] + 119
    	8   DetoxSync                           0x000000015b35eb3d +[DTXSyncManager trackDisplayLink:name:] + 87
    	9   DetoxSync                           0x000000015b352830 -[NSObject(REANodesManagerDTXSpy) __detox_sync_startUpdatingOnAnimationFrame] + 103
    	10  MmcApp                              0x0000000102e5dd37 -[REANodesManager postRunUpdatesAfterAnimation] + 55
    	11  MmcApp                              0x0000000102e5d03c -[REANode markUpdated] + 124
    	12  MmcApp                              0x0000000102e5c972 -[REANode dangerouslyRescheduleEvaluate] + 146
    	13  MmcApp                              0x0000000102e5cf31 -[REANode addChild:] + 145
    	14  MmcApp                              0x0000000102e5f0dc -[REANodesManager connectNodes:childID:] + 796
    	15  MmcApp                              0x0000000102e5b262 __35-[REAModule connectNodes:childTag:]_block_invoke + 66
    	16  MmcApp                              0x0000000102e5c2ce __42-[REAModule uiManagerWillPerformMounting:]_block_invoke + 382
    	17  MmcApp                              0x000000010301eb36 __44-[RCTUIManager flushUIBlocksWithCompletion:]_block_invoke + 374
    	18  MmcApp                              0x000000010301ee49 __44-[RCTUIManager flushUIBlocksWithCompletion:]_block_invoke.493 + 393
    	19  MmcApp                              0x000000010302746a __RCTExecuteOnMainQueue_block_invoke + 26
    	20  DetoxSync                           0x000000015b353bac ____detox_sync_dispatch_wrapper_block_invoke + 23
    	21  libdispatch.dylib                   0x000000011f8f8a90 _dispatch_call_block_and_release + 12
    	22  libdispatch.dylib                   0x000000011f8f9d3a _dispatch_client_callout + 8
    	23  libdispatch.dylib                   0x000000011f908ac0 _dispatch_main_queue_drain + 1420
    	24  libdispatch.dylib                   0x000000011f908526 _dispatch_main_queue_callback_4CF + 31
    	25  CoreFoundation                      0x000000011e97edc4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
    	26  CoreFoundation                      0x000000011e9796ff __CFRunLoopRun + 2463
    	27  CoreFoundation                      0x000000011e97897d CFRunLoopRunSpecific + 557
    	28  GraphicsServices                    0x0000000125dc008f GSEventRunModal + 137
    	29  UIKitCore                           0x000000013300853d -[UIApplication _run] + 972
    	30  DetoxSync                           0x000000015b3598ee __detox_sync_UIApplication_run + 362
    	31  UIKitCore                           0x000000013300cfab UIApplicationMain + 123
    	32  MmcApp                              0x0000000102ba15a8 main + 104
    	33  dyld                                0x000000010f0023e0 start_sim + 10
    	34  ???                                 0x0000000206844386 0x0 + 8699265926
    )

      1 | describe('Example', () => {
      2 |   beforeAll(async () => {
    > 3 |     await device.launchApp({  permissions: {
        |                  ^
      4 |       location: 'inuse',
      5 |       notifications: 'YES',
      6 |       contacts: 'YES',

      at Object.launchApp (e2e/starter.test.js:3:18)
      at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
      at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)
      at node_modules/@babel/runtime/helpers/asyncToGenerator.js:32:7
      at Object.<anonymous> (node_modules/@babel/runtime/helpers/asyncToGenerator.js:21:12)

Test Suites: 1 failed, 1 total
Tests:       3 failed, 3 total
Snapshots:   0 total
Time:        35.118 s, estimated 36 s
Ran all test suites.
01:01:11.585 detox[26023] i 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.
01:01:11.949 detox[26022] E Command failed with exit code = 1:
jest --config e2e/jest.config.js

Device logs

Device logs
paste your device.log here!

More data, please!

react-native is not compatible with detox 19.x but is not supporting detox 20.x either.

Copy link

stale bot commented Mar 17, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest Detox and report back.

Thank you for your contributions!

For more information on bots in this repository, read this discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant