question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(WIP) Detox init timeout with Android API 32

See original GitHub issue

What happened?

A follow-up on the discussions in #3342.

It seems that there are issues with API 32. Most likely, 33 has those as well. We need to check.

What was the expected behaviour?

API 32 should work just as 28 and 29 do.

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: React Native version: Node version: Device model: Android version: Test-runner (select one): jest-circus / jest+jasmine / mocha / other

Detox logs

Detox logs
paste logs here!

Device logs

Device logs
paste logs here!

More data, please!

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:3
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
noomorphcommented, Sep 27, 2022

I landed the feature for reversing TCP ports into Detox 20 preview: Soon an alpha version will be released: 20.0.11-prerelease.0, I guess.

Meanwhile, you could add await device.reverseTcpPort(8081) right before your device.launchApp(). 🤷 .

As for why it might happen more often, I have a theory or two:

  1. aside from the fact you have that problem, you often spawn clean devices (with no reversed port)
  2. the problem itself might be due to the altered default bundler URL: see how to change and also see the defaults for localhost:

  1. you might have something like preferences.edit().putString("debug_http_host", "localhost:8081").apply(); in your Android native code and that it works worse than 10.0.2.2:8081 (which automatically forwards everything to your localhost on Android emulators – contrary to localhost where you need to reverse the ports)

😌 hope that helps

0reactions
jonathanmoscommented, Oct 19, 2022

The problem is being investigated in https://github.com/wix/Detox/issues/3636

Read more comments on GitHub >

github_iconTop Results From Across the Web

Migration Guide | Detox
We are improving Detox API as we go along, sometimes these changes require us to ... to reduce the init timeout to 120...
Read more >
detox - Timeout before emulator launches the app , and ...
When I run detox test, my app is getting installed in the android emulator, and then getting error : instrumentationProcess terminated due ...
Read more >
react-native-cli | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >
sitemap_1.xml - Travis CI Community
... 2018-11-07T16:32:36Z https://travis-ci.community/t/msbuild-timeout/2545 ... /t/android-studio-emulator-sdk-23-not-building/11584 2021-05-12T09:32:33Z ...
Read more >
frequent-classes - CodaLab Worksheets
... 40 3739 archive 3702 aligncenter 3696 32 3685 gradient 3680 cols 3679 mode ... figure 1844 mc 1843 47 1841 alpha 1838...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found