Closed LiamDotPro closed 3 years ago
Any chance you can try device.launchApp({ newInstance: true })
instead of device.reloadReactNative()
and report back, if it changes anything, please?
@noomorph thanks for checking this out, I will try and run this for you later 👍
@noomorph We're having the same errors in our app since we've upgraded to 18.2.1.
Doing device.launchApp({newInstance: true})
did not fix this problem for us.
I've not had the time to create a reproducible demo but this fix did not fix the problem for us either, we have since completely disabled detox for android as we couldn't get it working. @noomorph @tdekoning
I have got the same issue when detox run on Android
Environment (please complete the following information):
HINT: Most likely, your tests have timed out and called detox.cleanup() while it was waiting for "ready" message (over WebSocket) from the instrumentation process. at MonitoredInstrumentation._getInstrumentationCrashError (/Users/.../node_modules/detox/src/devices/drivers/android/tools/MonitoredInstrumentation.js:68:12) at MonitoredInstrumentation._rejectPendingCrashPromise (/Users/../node_modules/detox/src/devices/drivers/android/tools/MonitoredInstrumentation.js:56:37) at MonitoredInstrumentation._onInstrumentationTerminated (/Users/../node_modules/detox/src/devices/drivers/android/tools/MonitoredInstrumentation.js:51:10) at Instrumentation._onTerminated (/Users/..//node_modules/detox/src/devices/drivers/android/tools/Instrumentation.js:52:18) at processTicksAndRejections (internal/process/task_queues.js:93:5)
"detox": "^17.11.4" React Native: "0.62.2" OS: macOS
/////////////////////////////////////////////////////////////////////////////////
Detox trace logs
`Usage: npm
where
access npm access public [<package>]
npm access restricted [<package>]
npm access grant <read-only|read-write> <scope:team> [<package>]
npm access revoke <scope:team> [<package>]
npm access 2fa-required [<package>]
npm access 2fa-not-required [<package>]
npm access ls-packages [<user>|<scope>|<scope:team>]
npm access ls-collaborators [<package> [<user>]]
npm access edit [<package>]
adduser npm adduser [--registry=url] [--scope=@orgname] [--auth-type=legacy] [--always-auth]
aliases: login, add-user
audit
npm audit [--json] [--production]
npm audit fix [--force|--package-lock-only|--dry-run|--production|--only=(dev|prod)]
bin npm bin [--global]
bugs npm bugs [<pkgname>]
alias: issues
cache npm cache add <tarball file>
npm cache add <folder>
npm cache add <tarball url>
npm cache add <git url>
npm cache add <name>@<version>
npm cache clean
npm cache verify
ci npm ci
completion source <(npm completion)
config npm config set <key> <value>
npm config get [<key>]
npm config delete <key>
npm config list [--json]
npm config edit
npm set <key> <value>
npm get [<key>]
alias: c
dedupe npm dedupe
aliases: ddp, find-dupes
deprecate npm deprecate <pkg>[@<version>] <message>
dist-tag npm dist-tag add <pkg>@<version> [<tag>]
npm dist-tag rm <pkg> <tag>
npm dist-tag ls [<pkg>]
alias: dist-tags
docs npm docs <pkgname>
npm docs .
alias: home
doctor npm doctor
edit npm edit <pkg>[/<subpkg>...]
explore npm explore <pkg> [ -- <command>]
fund npm fund [--json]
common options: npm fund [--browser] [[<@scope>/]<pkg> [--which=<fundingSourceNumber>]
get npm get <key> <value> (See `npm config`)
help
help-search npm help-search <text>
hook
init
npm init [--force|-f|--yes|-y|--scope]
npm init <@scope> (same as `npx <@scope>/create`)
npm init [<@scope>/]<name> (same as `npx [<@scope>/]create-<name>`)
aliases: create, innit
install
npm install (with no args, in package dir)
npm install [<@scope>/]<pkg>
npm install [<@scope>/]<pkg>@<tag>
npm install [<@scope>/]<pkg>@<version>
npm install [<@scope>/]<pkg>@<version range>
npm install <alias>@npm:<name>
npm install <folder>
npm install <tarball file>
npm install <tarball url>
npm install <git:// url>
npm install <github username>/<github project>
aliases: i, isntall, add
common options: [--save-prod|--save-dev|--save-optional] [--save-exact] [--no-save]
install-ci-test
npm install-ci-test [args]
Same args as `npm ci`
alias: cit
install-test
npm install-test [args]
Same args as `npm install`
alias: it
link npm link (in package dir)
npm link [<@scope>/]<pkg>[@<version>]
alias: ln
logout npm logout [--registry=<url>] [--scope=<@scope>]
ls npm ls [[<@scope>/]<pkg> ...]
aliases: list, la, ll
org npm org set orgname username [developer | admin | owner]
npm org rm orgname username
npm org ls orgname [<username>]
outdated npm outdated [[<@scope>/]<pkg> ...]
owner npm owner add <user> [<@scope>/]<pkg>
npm owner rm <user> [<@scope>/]<pkg>
npm owner ls [<@scope>/]<pkg>
alias: author
pack npm pack [[<@scope>/]<pkg>...] [--dry-run]
ping npm ping
ping registry
prefix npm prefix [-g]
profile npm profile enable-2fa [auth-only|auth-and-writes]
npm profile disable-2fa
npm profile get [<key>]
npm profile set <key> <value>
prune npm prune [[<@scope>/]<pkg>...] [--production]
publish npm publish [<tarball>|<folder>] [--tag <tag>] [--access <public|restricted>] [--dry-run]
Publishes '.' if no argument supplied
Sets tag `latest` if no --tag specified
rebuild npm rebuild [[<@scope>/<name>]...]
alias: rb
repo npm repo [<pkg>]
restart npm restart [-- <args>]
root npm root [-g]
run-script npm run-script <command> [-- <args>...]
aliases: run, rum, urn
search npm search [--long] [search terms ...]
aliases: s, se, find
set npm set <key> <value> (See `npm config`)
shrinkwrap npm shrinkwrap
star npm star [<pkg>...]
npm unstar [<pkg>...]
alias: unstar
stars npm stars [<user>]
start npm start [-- <args>]
stop npm stop [-- <args>]
team npm team create <scope:team> [--otp <otpcode>]
npm team destroy <scope:team> [--otp <otpcode>]
npm team add <scope:team> <user> [--otp <otpcode>]
npm team rm <scope:team> <user> [--otp <otpcode>]
npm team ls <scope>|<scope:team>
npm team edit <scope:team>
test npm test [-- <args>]
aliases: tst, t
token npm token list
npm token revoke <tokenKey>
npm token create [--read-only] [--cidr=list]
uninstall npm uninstall [<@scope>/]<pkg>[@<version>]... [--save-prod|--save-dev|--save-optional] [--no-save]
aliases: un, unlink, remove, rm, r
unpublish
npm unpublish [<@scope>/]<pkg>@<version>
npm unpublish [<@scope>/]<pkg> --force
update npm update [-g] [<pkg>...]
aliases: up, upgrade, udpate
version npm version [<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease [--preid=<prerelease-id>] | from-git]
(run in package dir)
'npm -v' or 'npm --version' to print npm version (6.14.10)
'npm view <pkg> version' to view a package's published version
'npm ls' to inspect current package/dependency versions
view npm view [<@scope>/]<pkg>[@<version>] [<field>[.subfield]...]
aliases: v, info, show
whoami npm whoami [--registry <registry>]
(just prints username according to given registry)
npm
Specify configs in the ini-formatted file:
or on the command line via: npm
npm@6.14.10 /usr/local/lib/node_modules/npm`
@LiamDotPro I would appreciate it if you try to run on Android again and provide these two assets:
-l trace
argument)--record-logs all
and pull the result from the artifacts/
folder in the end)This issue has been automatically closed because there has been no response to our request for more information from the original author.
For more information on bots in this reporsitory, read this discussion.
Any update on this issue. I'm having the same issue.
@janaka120 @conor909 this error is terribly generic. Please open Android issues with the requested details - we promise to do our best to help!
@d4vidi , Thanks for your reply.
The problem I had was, my Android SDK version is 29. By default, Google has disabled all clear-text network traffic for SDK >= v28. So I have to explicitly configure permission. I referred to this documentation(Title - Problem: The app loads but tests fail to start in SDK >= 28).
I think this will help to someone.
Ah yes, this is exactly what the guide is for. Perhaps one day we'd be able to provide a better solution for this: #1964
Describe the bug
I'm trying to run my detox test on a CI, In my case it's the App Centre. Building the app is successful but when I try and run a test the runner responds with an error that the app is unable to start.
Here's the notable lines (Full logs for runner can be found in stack trace section:
I've tested the same configuration locally and it's builds and runs the tests without a hitch. Notably running the same tests for IOS on the CI work as expected.
Steps To Reproduce
Created new project via CRNA Follow Detox Integration steps Add App Centre CI via Prebuild
App Centre Pre Build configuration (Uses APP_CENTER_CURRENT_PLATFORM=android)
Expected behavior
Builds and runs my tests on android
Detox Trace-Logs
Device logs (adb logcat)
Screenshots
Environment (please complete the following information):
jest-circus