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

Detox step into infinite wait with message "the app seems to be idle" #4375

Open
2 tasks done
aaronpliu opened this issue Feb 18, 2024 · 9 comments
Open
2 tasks done

Comments

@aaronpliu
Copy link

What happened?

In a normal test scenario, when an unexpected popup appear or element not found, the detox will loop to print "The app seems to be idle" instead of throwing error or stop. It never exit or continue after a long long time

What was the expected behaviour?

either exit execution or throw error if no condition meet (e.g. element not visible or exist or unexpected dialog)

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: 20.16.0
React Native version: 0.71.4
Has Fabric (React Native's new rendering system) enabled: (yes/no) yes
Node version: v16.19.1
Device model: Android
iOS version: 17
macOS version: 13.6
Xcode version: 14.2
Test-runner (select one): jest / other

Detox logs

Detox logs
The app seems to be idle

Device logs

Device logs
paste your device.log here!

More data, please!

No response

@aaronpliu
Copy link
Author

@d4vidi , @gosha212 would you please take a look at it? no more detailed log to double check, it encountered this error in some test scenarios. for instance, unexpected popup appear, element not found, or page auto refresh...etc.

Thanks in advance

@aaronpliu
Copy link
Author

the behavior seriously impact test scripts running and block test. Especially when the internet speed is not fast. It should be fail fast rather than infinite wait and stuck. I really appreciate your investigation and any workaround to settle.

@KaterinaUK
Copy link

KaterinaUK commented Feb 27, 2024

I have similar problem I use: "detox": "20.17.0", "react-native": "^0.72.10"
This is the error that I am seeing:
Test Failed: Wait for [LooperIdlingResource-138-mqt_js] to become idle timed out

@aaronpliu
Copy link
Author

Experiencing the issue all the time :-(

@aaronpliu
Copy link
Author

any workaround to avoid or bypass?

@gosha212
Copy link
Contributor

gosha212 commented Apr 3, 2024

@aaronpliu @KaterinaUK Can you share a sample project please?
How often is it reproduces (Always / Sometime)?

@KaterinaUK
Copy link

Hi @gosha212 , Unfortunately, I do not have a sample project, it is a private project that I am working on right now. I have it every day, this is the error I can see: Test Failed: Wait for [LooperIdlingResource-101-mqt_js] to become idle timed out at Object.withTimeout (/Users/runner/work/app/app/e2e/new-user.test.js:26:8) at Generator.next (<anonymous>) at asyncGeneratorStep (/Users/runner/work/app/app/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24) at _next (/Users/runner/work/app/app/node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:9) at processTicksAndRejections (node:internal/process/task_queues:95:5)

Copy link

stale bot commented Feb 1, 2025

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.

@stale stale bot added the 🏚 stale label Feb 1, 2025
@d4vidi
Copy link
Collaborator

d4vidi commented Feb 3, 2025

LooperIdlingResource-101-mqt_js suggests the Javascript code is running, its as simple is that. The app is working on something.

@stale stale bot removed the 🏚 stale label Feb 3, 2025
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

4 participants