Detox: Detox iOS failing to start intermittently on React Native 0.68.2

What happened?

About 50% of the time Detox iOS fails with the following error:

15:18:10.143 detox[7891] WARN:  [DetoxConnection.js/ERROR, #50663] Action dispatched too early, there is no session to use:

HINT: Please report this issue on our GitHub tracker:
https://github.com/wix/Detox/issues

{
  params: [Object],
  type: 'AppWillTerminateWithError',
  messageId: -10000
}

What was the expected behaviour?

Expect Detox to consistently start on iOS 15.5 and React Native 0.68.2

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!

Problem seems to be related to React Native 0.68.2

In what environment did this happen?

Detox version: 19.7.1 (latest) React Native version: 0.68.2 Node version: v14.x Device model: 15.5 Simulator iOS version: 15.5 macOS version: macOS Monterey Xcode version: 12.3.1 Test-runner (select one): jest-circus

Detox logs

No response

Device logs

No response

More data, please!

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 27 (5 by maintainers)

Most upvoted comments

+1 to above. “detox”: “19.9.1” “react-native”: “0.68.2”

Running locally on macOS Monterey.

Interestingly enough, it works on a real Android device. but fails on the emulator (also works fine on iOS)

The issue relates to iOS failures, not Android, and you say that you have no problems on iOS. I suggest opening a separate issue with your error since I’m afraid it will disappear in this issue context. @wadey1