wix / Detox

Gray box end-to-end testing and automation framework for mobile apps
https://wix.github.io/Detox/
MIT License
11.23k stars 1.92k forks source link

Detox encounters synchronization timeouts after registering many screens in React Native Navigation via ES6 imports #2905

Closed wilsontr closed 3 years ago

wilsontr commented 3 years ago

Description

I'm having a hard time getting Detox to sync with our app on both iOS and Android builds. I've been all over the app searching for a culprit, and I've used comments to strip the app down to a bare minimum of what's actually enabled, and I still get the timeout below.

The only thing I've found that can get the app synchronizing is to disable a number of screens that we are registering with React Native Navigation. This is a large app, with 80+ screens being registered at bootup. When I've commented out enough Navigation.registerComponent() calls, then the synchronization works. And when I've tried converting all of our screen component imports to inline requires, then the synchronization works.

I've tried digging into the individual screen components to look for rogue timers being put in the global scope, but I haven't found anything yet. I have stripped down the app's launch screen and splash screen to the point that there are only buttons visible. We are using ES6 imports to bring in all of the screens that we register with RNN, to maintain type safety.

I get the feeling that this is some kind of race condition in either RNN or Detox that is being exposed by the number of screens that we're registering, but to attach a reproducible example, I'd have to share our whole source repo.

Environment (please complete the following information):

Logs

If you are experiencing a timeout in your test

_redacted_@ip-192-168-86-36 ~/g/mole> yarn e2e:test-ios --debug-synchronization 200
yarn run v1.22.5
warning ../../package.json: No license field
$ detox test --configuration ios --debug-synchronization 200
detox[53984] INFO:  [test.js] DETOX_CONFIGURATION="ios" DETOX_DEBUG_SYNCHRONIZATION=200 DETOX_REPORT_SPECS=true DETOX_START_TIMESTAMP=1626726833565 DETOX_USE_CUSTOM_LOGGER=true jest --config e2e/config.json --testNamePattern '^((?!:android:).)*$' --maxWorkers 1 e2e
detox[53985] INFO:  [AppleSimUtils.js] com.redacted launched. To watch simulator logs, run:
        /usr/bin/xcrun simctl spawn 9E877685-40EB-47D7-9578-E21F4F97CE08 log stream --level debug --style compact --predicate 'process == "[redacted]]"'
detox[53985] INFO:  [APP_STATUS] The system is busy with the following tasks:

Delayed Perform Selector
⏱ 1 pending selector

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 556 work items

Run Loop
⏱ “Main Run Loop”

One-time Events
⏱ “React Native (bundle load)”
⏱ “Network Request” with object: “URL: “https://heapanalytics.com/api/integrations/ios/track””
⏱ “Network Request” with object: “URL: “https://firebaseinstallations.googleapis.com/v1/projects/redacted-mobile/installations/””
⏱ “Network Request” with object: “URL: “https://heapanalytics.com/[redacted]”
⏱ “Network Request” with object: “URL: “https://device-provisioning.googleapis.com/checkin””
⏱ “Network Request” with object: “URL: “https://device-provisioning.googleapis.com/checkin””

Timer
⏱ Fire date: 2021-07-19 14:34:10 -0600 (fire interval: 1.499993920326233) repeats: NO repeat interval: 0>
detox[53985] INFO:  [APP_STATUS] The system is busy with the following tasks:

Delayed Perform Selector
⏱ 2 pending selectors

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 3 work items

Run Loop
⏱ “Main Run Loop”
⏱ “JS Run Loop”

One-time Events
⏱ “Network Request” with object: “URL: “https://device-provisioning.googleapis.com/checkin””
⏱ “Network Request” with object: “URL: “https://heapanalytics.com/api/integrations/ios/track””
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “React Native (bundle load)”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Network Request” with object: “URL: “https://firebaseinstallations.googleapis.com/v1/projects/redacted-mobile/installations/””
⏱ “Network Request” with object: “URL: “https://heapanalytics.com/[redacted]”

Timer
⏱ Fire date: 2021-07-19 14:34:10 -0600 (fire interval: 1.499993920326233) repeats: NO repeat interval: 0>
detox[53985] INFO:  [APP_STATUS] The system is busy with the following tasks:

Delayed Perform Selector
⏱ 2 pending selectors

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 43 work items

Run Loop
⏱ “Main Run Loop”
⏱ “JS Run Loop”

One-time Events
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “React Native (bundle load)”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Network Request” with object: “URL: “https://firebaseinstallations.googleapis.com/v1/projects/redacted-mobile/installations/””

Timer
⏱ Fire date: 2021-07-19 14:34:10 -0600 (fire interval: 0.4999868869781494) repeats: NO repeat interval: 0>
⏱ Fire date: 2021-07-19 14:34:10 -0600 (fire interval: 1.499993920326233) repeats: NO repeat interval: 0>
detox[53985] INFO:  [APP_STATUS] The system is busy with the following tasks:

Delayed Perform Selector
⏱ 4 pending selectors

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 41 work items

Run Loop
⏱ “Main Run Loop”
⏱ “JS Run Loop”

One-time Events
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Network Request” with object: “URL: “https://fcmtoken.googleapis.com/register””
⏱ “Network Request” with object: “URL: “https://fcmtoken.googleapis.com/register””
⏱ “React Native (bundle load)”
⏱ “Runloop Perform Block” with object: “JS Run Loop”

Timer
⏱ Fire date: 2021-07-19 14:34:10 -0600 (fire interval: 0.4999959468841553) repeats: NO repeat interval: 0>
⏱ Fire date: 2021-07-19 14:34:10 -0600 (fire interval: 1.499993920326233) repeats: NO repeat interval: 0>
detox[53985] INFO:  [APP_STATUS] The system is busy with the following tasks:

Delayed Perform Selector
⏱ 4 pending selectors

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 10 work items

Run Loop
⏱ “Main Run Loop”
⏱ “JS Run Loop”

One-time Events
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Network Request” with object: “URL: “https://fcmtoken.googleapis.com/register””
⏱ “Network Request” with object: “URL: “https://fcmtoken.googleapis.com/register””
⏱ “React Native (bundle load)”
⏱ “Runloop Perform Block” with object: “JS Run Loop”

Timer
⏱ Fire date: 2021-07-19 14:34:10 -0600 (fire interval: 0.4999960660934448) repeats: NO repeat interval: 0>
⏱ Fire date: 2021-07-19 14:34:10 -0600 (fire interval: 1.499993920326233) repeats: NO repeat interval: 0>
detox[53985] INFO:  [APP_STATUS] The system is busy with the following tasks:

Delayed Perform Selector
⏱ 4 pending selectors

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 2 work items

Run Loop
⏱ “Main Run Loop”
⏱ “JS Run Loop”

One-time Events
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “React Native (bundle load)”
⏱ “Runloop Perform Block” with object: “JS Run Loop”

Timer
⏱ Fire date: 2021-07-19 14:34:10 -0600 (fire interval: 0.4999960660934448) repeats: NO repeat interval: 0>
⏱ Fire date: 2021-07-19 14:34:10 -0600 (fire interval: 1.499993920326233) repeats: NO repeat interval: 0>
detox[53985] INFO:  [APP_STATUS] The system is busy with the following tasks:

Delayed Perform Selector
⏱ 3 pending selectors

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

Run Loop
⏱ “Main Run Loop”
⏱ “JS Run Loop”

One-time Events
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “React Native (bundle load)”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
detox[53985] INFO:  [APP_STATUS] The system is busy with the following tasks:

Delayed Perform Selector
⏱ 3 pending selectors

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

Run Loop
⏱ “Main Run Loop”
⏱ “JS Run Loop”

One-time Events
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “React Native (bundle load)”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
detox[53985] INFO:  [APP_STATUS] The system is busy with the following tasks:

Delayed Perform Selector
⏱ 6 pending selectors

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

Run Loop
⏱ “Main Run Loop”
⏱ “JS Run Loop”

One-time Events
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “React Native (bundle load)”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
detox[53985] INFO:  [APP_STATUS] The system is busy with the following tasks:

Delayed Perform Selector
⏱ 8 pending selectors

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

Run Loop
⏱ “Main Run Loop”
⏱ “JS Run Loop”

One-time Events
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “React Native (bundle load)”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
detox[53985] INFO:  [APP_STATUS] The system is busy with the following tasks:

Delayed Perform Selector
⏱ 8 pending selectors

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

Run Loop
⏱ “Main Run Loop”
⏱ “JS Run Loop”

One-time Events
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “React Native (bundle load)”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
detox[53985] INFO:  [APP_STATUS] The system is busy with the following tasks:

Delayed Perform Selector
⏱ 8 pending selectors

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 4

Run Loop
⏱ “Main Run Loop”
⏱ “JS Run Loop”

One-time Events
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “React Native (bundle load)”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
detox[53985] INFO:  [APP_STATUS] The system is busy with the following tasks:

Delayed Perform Selector
⏱ 8 pending selectors

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 4

Run Loop
⏱ “Main Run Loop”
⏱ “JS Run Loop”

One-time Events
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “React Native (bundle load)”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
detox[53985] INFO:  [APP_STATUS] The system is busy with the following tasks:

Delayed Perform Selector
⏱ 9 pending selectors

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 4
⏱ 6

Run Loop
⏱ “Main Run Loop”
⏱ “JS Run Loop”

One-time Events
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “React Native (bundle load)”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
detox[53985] INFO:  [APP_STATUS] The system is busy with the following tasks:

Delayed Perform Selector
⏱ 9 pending selectors

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 4
⏱ 6

Run Loop
⏱ “Main Run Loop”
⏱ “JS Run Loop”

One-time Events
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “React Native (bundle load)”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
detox[53985] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “RN Module: UIManager (<OS_dispatch_queue_serial: com.facebook.react.ShadowQueue>)” with 3 work items
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 12 work items

JS Timer
⏱ 75

Run Loop
⏱ “JS Run Loop”
⏱ “Main Run Loop”

One-time Events
⏱ “React Native (bundle load)”
⏱ “Network Request” with object: “URL: “https://clients3.google.com/generate_204?_=1626726852776””
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Network Request” with object: “URL: “https://clients3.google.com/generate_204?_=1626726852767””
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”

UI Elements
⏱ 29 views awaiting layout
⏱ 2 views awaiting display
⏱ 34 layers awaiting layout
⏱ 1 view animation pending
⏱ 1 CA animation pending
detox[53985] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 75

Run Loop
⏱ “JS Run Loop”
⏱ “Main Run Loop”

One-time Events
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”

UI Elements
⏱ 12 views awaiting layout
⏱ 24 layers awaiting layout
⏱ 40 layers awaiting display
detox[53985] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 135

Run Loop
⏱ “Main Run Loop”

One-time Events
⏱ “Network Request” with object: “URL: “https://firebaseremoteconfig.googleapis.com/v1/projects/redacted-mobile/namespaces/firebase:fetch?key=AIzaSyDux1ypmDum7Gl_bsJFk0NNt1x0F7V9vMM””

Timer
⏱ <CADisplayLink: 0x600000376e90>
detox[53985] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 160

Run Loop
⏱ “JS Run Loop”
⏱ “Main Run Loop”

One-time Events
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Network Request” with object: “URL: “https://cdn-settings.segment.com/v1/projects/rPdDBMvErb63FS75OLuFyPsQGfRubO21/settings””
detox[53985] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 182

Run Loop
⏱ “JS Run Loop”
⏱ “Main Run Loop”

One-time Events
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Network Request” with object: “URL: “https://itunes.apple.com/US/lookup?bundleId=com.redacted””
detox[53985] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 182
⏱ 186
⏱ 187
⏱ 188
⏱ 189
⏱ 190

Run Loop
⏱ “JS Run Loop”
⏱ “Main Run Loop”

One-time Events
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Network Request” with object: “URL: “https://itunes.apple.com/US/lookup?bundleId=com.redacted””
detox[53985] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 182
⏱ 186
⏱ 187
⏱ 188
⏱ 189
⏱ 190

Run Loop
⏱ “JS Run Loop”
⏱ “Main Run Loop”

One-time Events
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
detox[53985] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 182
⏱ 186
⏱ 187
⏱ 188
⏱ 189
⏱ 190
⏱ 192
⏱ 193
⏱ 194

Run Loop
⏱ “JS Run Loop”
⏱ “Main Run Loop”

One-time Events
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
detox[53985] INFO:  [APP_STATUS] The system is busy with the following tasks:

Delayed Perform Selector
⏱ 1 pending selector

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 15 work items

JS Timer
⏱ 199
⏱ 200
⏱ 201
⏱ 203
⏱ 204

Run Loop
⏱ “JS Run Loop”
⏱ “Main Run Loop”

One-time Events
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”

Timer
⏱ <CADisplayLink: 0x6000002b3440>

UI Elements
⏱ 34 views awaiting layout
⏱ 81 views awaiting display
⏱ 184 layers awaiting layout
⏱ 727 layers awaiting display
detox[53985] INFO:  [APP_STATUS] The system is busy with the following tasks:

Delayed Perform Selector
⏱ 1 pending selector

Dispatch Queue
⏱ Queue: “RN Module: UIManager (<OS_dispatch_queue_serial: com.facebook.react.ShadowQueue>)” with 3 work items
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 5 work items

JS Timer
⏱ 199
⏱ 200
⏱ 201
⏱ 203
⏱ 204
⏱ 205
⏱ 206

Run Loop
⏱ “JS Run Loop”
⏱ “Main Run Loop”

One-time Events
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”

Timer
⏱ <CADisplayLink: 0x6000002b3440>

UI Elements
⏱ 1 layer awaiting layout
detox[53985] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 199
⏱ 200
⏱ 201
⏱ 203
⏱ 204
⏱ 205
⏱ 206
⏱ 225
⏱ 226
⏱ 227

Run Loop
⏱ “JS Run Loop”
⏱ “Main Run Loop”

One-time Events
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Network Request” with object: “URL: “https://o51108.ingest.sentry.io/api/1212297/envelope/””
⏱ “Runloop Perform Block” with object: “JS Run Loop”
⏱ “Runloop Perform Block” with object: “JS Run Loop”

Timer
⏱ <CADisplayLink: 0x6000002b3440>
detox[53985] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 252

Run Loop
⏱ “Main Run Loop”

Timer
⏱ <CADisplayLink: 0x6000002b3440>
detox[53985] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 264

Run Loop
⏱ “Main Run Loop”

Timer
⏱ <CADisplayLink: 0x6000002b3440>
detox[53985] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 277

Run Loop
⏱ “Main Run Loop”

Timer
⏱ <CADisplayLink: 0x6000002b3440>
detox[53985] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 289

Run Loop
⏱ “Main Run Loop”
detox[53985] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 302

Run Loop
⏱ “Main Run Loop”
detox[53985] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 314

Device and verbose Detox logs

detox[52225] DEBUG: [EXEC_CMD, #4] /usr/bin/xcrun simctl install [redacted] "/Users/_redacted_/git/mole/ios/build/Build/Products/Debug-iphonesimulator/_redacted_.app"
detox[52225] DEBUG: [EXEC_TRY, #4] Installing /Users/_redacted_/git/mole/ios/build/Build/Products/Debug-iphonesimulator/_redacted_.app...
detox[52225] TRACE: [EXEC_SUCCESS, #4]
detox[52225] DEBUG: [EXEC_SUCCESS, #4] /Users/_redacted_/git/mole/ios/build/Build/Products/Debug-iphonesimulator/_redacted_.app installed
detox[52225] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onBeforeTerminateApp({
  deviceId: '[redacted]',
  bundleId: 'com.[redacted]'
})
detox[52225] DEBUG: [EXEC_CMD, #5] /usr/bin/xcrun simctl terminate [redacted] com.[redacted]
detox[52225] DEBUG: [EXEC_TRY, #5] Terminating com.[redacted]...
detox[52225] TRACE: [EXEC_SUCCESS, #5]
detox[52225] DEBUG: [EXEC_SUCCESS, #5] com.[redacted] terminated
detox[52225] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onTerminateApp({
  deviceId: '[redacted]',
  bundleId: 'com.[redacted]'
})
detox[52225] DEBUG: [EXEC_CMD, #6] applesimutils --byId [redacted] --bundle com.[redacted] --restartSB --setPermissions faceid=NO
detox[52225] DEBUG: [EXEC_TRY, #6] Trying to set permissions...
detox[52225] TRACE: [EXEC_SUCCESS, #6]
detox[52225] DEBUG: [EXEC_SUCCESS, #6] Permissions are set
detox[52225] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onBeforeLaunchApp({
  bundleId: 'com.[redacted]',
  deviceId: '[redacted]',
  launchArgs: {
    detoxServer: 'ws://localhost:54462',
    detoxSessionId: '7b6ba193-c1d7-6a83-4ae9-75f0724519f8',
    detoxEnableSynchronization: 1
  }
})
detox[52225] DEBUG: [EXEC_CMD, #7] SIMCTL_CHILD_DYLD_INSERT_LIBRARIES="/Users/_redacted_/Library/Detox/ios/f8ea2b42f46d33fdba6b6f6da5dd215a2ac7a14c/Detox.framework/Detox" /usr/bin/xcrun simctl launch [redacted] com.[redacted] --args -detoxServer ws://localhost:54462 -detoxSessionId 7b6ba193-c1d7-6a83-4ae9-75f0724519f8 -detoxEnableSynchronization 1 -detoxDisableHierarchyDump YES
detox[52225] DEBUG: [EXEC_TRY, #7] Launching com.[redacted]...
detox[52225] TRACE: [EXEC_TRY_FAIL, #7] An error was encountered processing the command (domain=FBSOpenApplicationServiceErrorDomain, code=5):
The request to open "com.[redacted]" failed.
Unexpected error type.
Underlying error (domain=BSServiceConnectionErrorDomain, code=3):
    The operation couldn’t be completed. (BSServiceConnectionErrorDomain error 3.)

detox[52225] DEBUG: [EXEC_TRY, #7] Launching com.[redacted]...
detox[52225] TRACE: [EXEC_SUCCESS, #7] com.[redacted]: 52305

detox[52225] DEBUG: [EXEC_CMD, #8] /usr/bin/xcrun simctl get_app_container [redacted] com.[redacted]
detox[52225] DEBUG: [WSS_CONNECTION, #54475] registered a new connection.
detox[52225] TRACE: [EXEC_SUCCESS, #8] /Users/_redacted_/Library/Developer/CoreSimulator/Devices/[redacted]/data/Containers/Bundle/Application/BBB00960-5E69-4DF2-85FA-6D769C834CE7/_redacted_.app

detox[52225] INFO:  [AppleSimUtils.js] com.[redacted] launched. To watch simulator logs, run:
        /usr/bin/xcrun simctl spawn [redacted] log stream --level debug --style compact --predicate 'process == "Yieldstreet"'
detox[52305] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onLaunchApp({
  bundleId: 'com.[redacted]',
  deviceId: '[redacted]',
  launchArgs: {
    detoxServer: 'ws://localhost:54462',
    detoxSessionId: '7b6ba193-c1d7-6a83-4ae9-75f0724519f8',
    detoxEnableSynchronization: 1,
    detoxDisableHierarchyDump: 'YES'
  },
  pid: 52305
})
detox[52225] TRACE: [WSS_GET_FROM, #54475] {"params":{"role":"app","sessionId":"7b6ba193-c1d7-6a83-4ae9-75f0724519f8"},"messageId":0,"type":"login"}
detox[52225] TRACE: [WSS_SEND_TO, #app] {"params":{"testerConnected":true,"appConnected":true},"messageId":0,"type":"loginSuccess"}
detox[52225] TRACE: [SESSION_JOINED] app joined session 7b6ba193-c1d7-6a83-4ae9-75f0724519f8
detox[52225] TRACE: [WSS_SEND_TO, #tester] {"type":"appConnected"}
detox[52225] TRACE: [WS_MESSAGE] {"type":"appConnected"}

detox[52225] TRACE: [WS_SEND] {"type":"isReady","params":{},"messageId":-1000}
detox[52225] TRACE: [WSS_GET_FROM, #tester] {"type":"isReady","params":{},"messageId":-1000}
detox[52225] TRACE: [WSS_SEND_TO, #app] {"type":"isReady","params":{},"messageId":-1000}
detox[52225] TRACE: [WS_SEND] {"type":"currentStatus","params":{},"messageId":1}
detox[52225] TRACE: [WSS_GET_FROM, #tester] {"type":"currentStatus","params":{},"messageId":1}
detox[52225] TRACE: [WSS_SEND_TO, #app] {"type":"currentStatus","params":{},"messageId":1}
detox[52225] TRACE: [WSS_GET_FROM, #app] {"type":"currentStatusResult","messageId":1,"params":{"status":"The system is busy with the following tasks:\n\nDispatch Queue\n⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item\n\nJS Timer\n⏱ 531\n\nRun Loop\n⏱ “Main Run Loop”","messageId":1}}
detox[52225] TRACE: [WSS_SEND_TO, #tester] {"type":"currentStatusResult","messageId":1,"params":{"status":"The system is busy with the following tasks:\n\nDispatch Queue\n⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item\n\nJS Timer\n⏱ 531\n\nRun Loop\n⏱ “Main Run Loop”","messageId":1}}
detox[52225] TRACE: [WS_MESSAGE] {"type":"currentStatusResult","messageId":1,"params":{"status":"The system is busy with the following tasks:\n\nDispatch Queue\n⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item\n\nJS Timer\n⏱ 531\n\nRun Loop\n⏱ “Main Run Loop”","messageId":1}}

detox[52225] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 531

Run Loop
⏱ “Main Run Loop”
detox[52225] TRACE: [WS_SEND] {"type":"currentStatus","params":{},"messageId":2}
detox[52225] TRACE: [WSS_GET_FROM, #tester] {"type":"currentStatus","params":{},"messageId":2}
detox[52225] TRACE: [WSS_SEND_TO, #app] {"type":"currentStatus","params":{},"messageId":2}
detox[52225] TRACE: [WSS_GET_FROM, #app] {"params":{"status":"The system is busy with the following tasks:\n\nDispatch Queue\n⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item\n\nJS Timer\n⏱ 1132\n\nRun Loop\n⏱ “Main Run Loop”","messageId":2},"messageId":2,"type":"currentStatusResult"}
detox[52225] TRACE: [WSS_SEND_TO, #tester] {"params":{"status":"The system is busy with the following tasks:\n\nDispatch Queue\n⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item\n\nJS Timer\n⏱ 1132\n\nRun Loop\n⏱ “Main Run Loop”","messageId":2},"messageId":2,"type":"currentStatusResult"}
detox[52225] TRACE: [WS_MESSAGE] {"params":{"status":"The system is busy with the following tasks:\n\nDispatch Queue\n⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item\n\nJS Timer\n⏱ 1132\n\nRun Loop\n⏱ “Main Run Loop”","messageId":2},"messageId":2,"type":"currentStatusResult"}

detox[52225] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 1132

Run Loop
⏱ “Main Run Loop”
d4vidi commented 3 years ago

Well seems to me that indeed the app is awfully busy, with various, non-repeating actions taking place. What's the time-frame for this? Could you try to increase the overall timeout to something really long (>5 minutes)?

wilsontr commented 3 years ago

Here's a log with --debug-synchronization 30000 and timeouts set to 10 minutes. I will try using the Detox template app to isolate registering a lot of RNN screens at bootup.

yarn run v1.22.5
warning ../../package.json: No license field
$ detox test --configuration ios --debug-synchronization 30000
detox[9497] INFO:  [test.js] DETOX_CONFIGURATION="ios" DETOX_DEBUG_SYNCHRONIZATION=30000 DETOX_REPORT_SPECS=true DETOX_START_TIMESTAMP=1626796297583 DETOX_USE_CUSTOM_LOGGER=true jest --config e2e/config.json --testNamePattern '^((?!:android:).)*$' --maxWorkers 1 e2e
detox[9498] INFO:  [AppleSimUtils.js] com.[redacted].[redacted] launched. To watch simulator logs, run:
        /usr/bin/xcrun simctl spawn [redacted] log stream --level debug --style compact --predicate 'process == "[redacted]"'
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 1739

Run Loop
⏱ “Main Run Loop”
⏱ “JS Run Loop”

One-time Events
⏱ “Runloop Perform Block” with object: “JS Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 3539

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 5347

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 7148

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 8956

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 10757

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 12565

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 14365

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 16174

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 17974

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 19782

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 21583

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 23391

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 25192

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 27000

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 28801

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 30609

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 32410

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 34218

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 36018

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 36956

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 37827

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 38757

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 39627

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 40565

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 41436

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 42366

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 43236

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 44174

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 45045

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 45974

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 46845

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 47783

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 48653

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 49583

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 50454

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 51392

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 52262

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 53192

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 54063

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 55000

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 55871

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 56801

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 57672

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 58609

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 59480

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 60410

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 61280

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 62199

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 63069

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 63999

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 64869

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 65800

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

Run Loop
⏱ “Main Run Loop”
⏱ “JS Run Loop”

One-time Events
⏱ “Runloop Perform Block” with object: “JS Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 67600

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 68470

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 69401

Run Loop
⏱ “Main Run Loop”
detox[9498] INFO:  [APP_STATUS] The system is busy with the following tasks:

Dispatch Queue
⏱ Queue: “Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)” with 1 work item

JS Timer
⏱ 70271

Run Loop
⏱ “Main Run Loop”
detox[9498] WARN:  [PENDING_REQUESTS] The app has not responded to the network requests below:
  (id = 20) deliverPayload: {"url":"https://www.[redacted].com/activate/logout"}
  (id = -1000) isReady: {}

Unresponded network requests might result in timeout errors in Detox tests.

 FAIL  e2e/specs/acquisition/Login.e2e.ts (1201.084 s)
  App
    ✕ allows a test user to log in (599991 ms)

  ● App › allows a test user to log in

    thrown: "Exceeded timeout of 600000 ms for a hook.
    Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

      19 | }
      20 |
    > 21 | beforeAll(async () => {
         | ^
      22 |   await init(config, { initGlobals: false });
      23 |   disableAndroidEmulatorAnimations();
      24 |   await device.launchApp({

      at Object.<anonymous> (init.ts:21:1)

  ● App › allows a test user to log in

    thrown: "Exceeded timeout of 600000 ms for a hook.
    Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

      18 |   });
      19 |
    > 20 |   afterEach(async () => {
         |   ^
      21 |     await resetAppSession();
      22 |   });
      23 |

      at specs/acquisition/Login.e2e.ts:20:3
      at Object.<anonymous> (specs/acquisition/Login.e2e.ts:12:1)
wilsontr commented 3 years ago

Turns out this was caused by a timer running in d3-timer as part of Victory Native. https://github.com/FormidableLabs/victory-native/issues/588

Closing.

d4vidi commented 3 years ago

@wilsontr That's an excellent find. Although, the issue you mentioned states the problem is in fact associated with Android rather than iOS (while the issue here was reported for iOS). Would you mind helping putting the pieces together? 😄