Action dispatched too early, there is no session to use
See original GitHub issueWhat happened?
detox test --configuration android.emu.debug -l trace
What was the expected behaviour?
the app launches and runs the sample test
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?
- I have followed the instructions under Identifying which synchronization mechanism causes us to wait too much.
Help us reproduce this issue!
No response
In what environment did this happen?
Detox version: 19.7.0 React Native version: 0.68.2 Node version: 17.8.0 Device model: Nexus_6 Android version: 11 Test-runner (select one): jest-circus
Detox logs
Detox logs
13:55:37.813 detox[40200] INFO: [test.js] DETOX_CONFIGURATION="android.emu.debug" DETOX_LOGLEVEL="trace" DETOX_REPORT_SPECS=true DETOX_START_TIMESTAMP=1653501337796 DETOX_USE_CUSTOM_LOGGER=true jest --config e2e/config.json --testNamePattern '^((?!:ios:).)*$' --maxWorkers 1 e2e
13:55:39.288 detox[40201] TRACE: [DETOX_CREATE] created a Detox instance with config:
{
appsConfig: {
default: {
type: 'android.apk',
binaryPath: 'android/app/build/outputs/apk/debug/app-debug.apk',
build: 'cd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && cd ..'
}
},
artifactsConfig: {
rootDir: 'artifacts/android.emu.debug.2022-05-25 17-55-37Z',
plugins: {
log: {
enabled: false,
keepOnlyFailedTestsArtifacts: false
},
screenshot: {
enabled: true,
shouldTakeAutomaticSnapshots: false,
keepOnlyFailedTestsArtifacts: false
},
video: {
enabled: false,
keepOnlyFailedTestsArtifacts: false
},
instruments: {
enabled: false,
keepOnlyFailedTestsArtifacts: false
},
timeline: {
enabled: false
},
uiHierarchy: {
enabled: false,
keepOnlyFailedTestsArtifacts: false
}
},
pathBuilder: ArtifactPathBuilder {
_rootDir: 'artifacts/android.emu.debug.2022-05-25 17-55-37Z'
}
},
behaviorConfig: {
init: {
reinstallApp: true,
exposeGlobals: true
},
cleanup: {
shutdownDevice: false
},
launchApp: 'auto'
},
cliConfig: {
configuration: 'android.emu.debug',
loglevel: 'trace',
useCustomLogger: true
},
configurationName: 'android.emu.debug',
deviceConfig: {
type: 'android.emulator',
device: {
avdName: 'Nexus_6'
}
},
runnerConfig: {
testRunner: 'jest',
runnerConfig: 'e2e/config.json',
specs: 'e2e',
skipLegacyWorkersInjection: false
},
sessionConfig: {
autoStart: true,
sessionId: '3258dbad-ae03-cc77-7871-972f6cb6d2ce',
debugSynchronization: 10000
}
}
13:55:39.295 detox[40201] DEBUG: [WSS_CREATE] Detox server listening on localhost:52030...
13:55:39.317 detox[40201] DEBUG: [WSS_CONNECTION, #52031] registered a new connection.
13:55:39.327 detox[40201] TRACE: [WS_OPEN] opened web socket to: ws://localhost:52030
13:55:39.331 detox[40201] TRACE: [WS_SEND] {"type":"login","params":{"sessionId":"3258dbad-ae03-cc77-7871-972f6cb6d2ce","role":"tester"},"messageId":0}
13:55:39.334 detox[40201] TRACE: [WSS_GET_FROM, #52031] {"type":"login","params":{"sessionId":"3258dbad-ae03-cc77-7871-972f6cb6d2ce","role":"tester"},"messageId":0}
13:55:39.338 detox[40201] TRACE: [SESSION_CREATED] created session 3258dbad-ae03-cc77-7871-972f6cb6d2ce
13:55:39.339 detox[40201] TRACE: [WSS_SEND_TO, #tester] {"type":"loginSuccess","params":{"testerConnected":true,"appConnected":false},"messageId":0}
13:55:39.339 detox[40201] TRACE: [SESSION_JOINED] tester joined session 3258dbad-ae03-cc77-7871-972f6cb6d2ce
13:55:39.343 detox[40201] TRACE: [WS_MESSAGE] {"type":"loginSuccess","params":{"testerConnected":true,"appConnected":false},"messageId":0}
13:55:39.497 detox[40201] DEBUG: [EXEC_CMD, #0] "/Users/devingantt/Library/Android/sdk/emulator/emulator" -list-avds --verbose
13:55:39.680 detox[40201] TRACE: [EXEC_SUCCESS, #0] Nexus_6
13:55:39.683 detox[40201] DEBUG: [EXEC_CMD, #1] "/Users/devingantt/Library/Android/sdk/emulator/emulator" -version
13:55:39.992 detox[40201] TRACE: [EXEC_SUCCESS, #1] Android emulator version 31.2.10.0 (build_id 8420304) (CL:N/A)
Copyright (C) 2006-2017 The Android Open Source Project and many others.
This program is a derivative of the QEMU CPU emulator (www.qemu.org).
This software is licensed under the terms of the GNU General Public
License version 2, as published by the Free Software Foundation, and
may be copied, distributed, and modified under those terms.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
13:55:39.993 detox[40201] DEBUG: [EMU_BIN_VERSION_DETECT] Detected emulator binary version { major: 31, minor: 2, patch: 10, toString: [Function: toString] }
13:55:39.993 detox[40201] DEBUG: [ALLOCATE_DEVICE] Trying to allocate a device based on "Nexus_6"
13:55:39.995 detox[40201] DEBUG: [EXEC_CMD, #2] "/Users/devingantt/Library/Android/sdk/platform-tools/adb" devices
13:55:40.035 detox[40201] DEBUG: [EXEC_SUCCESS, #2] List of devices attached
emulator-5554 device
13:55:40.040 detox[40201] TRACE: [TELNET_CONNECTING] port: 5554, host: localhost
13:55:40.052 detox[40201] DEBUG: [DEVICE_LOOKUP] Found a matching & free device emulator-5554
13:55:40.054 detox[40201] DEBUG: [ALLOCATE_DEVICE] Settled on emulator-5554
13:55:40.055 detox[40201] DEBUG: [EXEC_CMD, #3] "/Users/devingantt/Library/Android/sdk/platform-tools/adb" -s emulator-5554 shell "getprop dev.bootcomplete"
13:55:40.124 detox[40201] TRACE: [EXEC_SUCCESS, #3] 1
13:55:40.127 detox[40201] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onBootDevice({ deviceId: 'emulator-5554', type: 'Nexus_6', coldBoot: false })
13:55:40.129 detox[40201] DEBUG: [EXEC_CMD, #4] "/Users/devingantt/Library/Android/sdk/platform-tools/adb" -s emulator-5554 shell "getprop ro.build.version.sdk"
13:55:40.168 detox[40201] TRACE: [EXEC_SUCCESS, #4] 30
13:55:40.171 detox[40201] DEBUG: [EXEC_CMD, #5] "/Users/devingantt/Library/Android/sdk/platform-tools/adb" -s emulator-5554 shell "settings put global animator_duration_scale 0"
13:55:40.226 detox[40201] TRACE: [EXEC_SUCCESS, #5]
13:55:40.228 detox[40201] DEBUG: [EXEC_CMD, #6] "/Users/devingantt/Library/Android/sdk/platform-tools/adb" -s emulator-5554 shell "settings put global window_animation_scale 0"
13:55:40.280 detox[40201] TRACE: [EXEC_SUCCESS, #6]
13:55:40.281 detox[40201] DEBUG: [EXEC_CMD, #7] "/Users/devingantt/Library/Android/sdk/platform-tools/adb" -s emulator-5554 shell "settings put global transition_animation_scale 0"
13:55:40.324 detox[40201] TRACE: [EXEC_SUCCESS, #7]
13:55:40.326 detox[40201] DEBUG: [EXEC_CMD, #8] "/Users/devingantt/Library/Android/sdk/platform-tools/adb" -s emulator-5554 shell "dumpsys power | grep \"^[ ]*m[UW].*=\""
13:55:40.420 detox[40201] TRACE: [EXEC_SUCCESS, #8] mWakefulness=Awake
mWakefulnessChanging=false
mWakeLockSummary=0x23
mUserActivitySummary=0x1
mWakeUpWhenPluggedOrUnpluggedConfig=false
mWakeUpWhenPluggedOrUnpluggedInTheaterModeConfig=false
mUserActivityTimeoutOverrideFromWindowManager=-1
mUserInactiveOverrideFromWindowManager=false
mUserId=0
13:55:40.448 detox[40201] DEBUG: [EXEC_CMD, #9] "/Users/devingantt/Library/Android/sdk/build-tools/32.1.0-rc1/aapt" dump badging "/Users/devingantt/Documents/nvstr-mobile-react-native/android/app/build/outputs/apk/debug/app-debug.apk"
13:55:40.610 detox[40201] TRACE: [EXEC_SUCCESS, #9] package: name='com.nvstr.app' versionCode='102' versionName='2.3.0' platformBuildVersionName='12' platformBuildVersionCode='31' compileSdkVersion='31' compileSdkVersionCodename='12'
sdkVersion:'21'
targetSdkVersion:'31'
uses-permission: name='android.permission.SYSTEM_ALERT_WINDOW'
uses-permission: name='android.permission.INTERNET'
uses-permission: name='android.permission.MANAGE_DOCUMENTS'
uses-permission: name='android.permission.READ_INTERNAL_STORAGE'
uses-permission: name='android.permission.READ_PHONE_STATE'
uses-permission: name='android.permission.USE_FINGERPRINT'
uses-permission: name='android.permission.VIBRATE'
uses-permission: name='android.permission.MODIFY_AUDIO_SETTINGS'
uses-permission: name='android.permission.ACCESS_COARSE_LOCATION'
uses-permission: name='android.permission.ACCESS_FINE_LOCATION'
uses-permission: name='android.permission.CAMERA'
uses-permission: name='android.permission.READ_CONTACTS'
uses-permission: name='android.permission.READ_CALENDAR'
uses-permission: name='android.permission.WRITE_CALENDAR'
uses-permission: name='android.permission.READ_EXTERNAL_STORAGE'
uses-permission: name='android.permission.RECORD_AUDIO'
uses-permission: name='android.permission.WRITE_EXTERNAL_STORAGE'
uses-permission: name='android.permission.WRITE_SETTINGS'
uses-permission: name='android.permission.ACCESS_NETWORK_STATE'
uses-permission: name='android.permission.WAKE_LOCK'
uses-permission: name='android.permission.SCHEDULE_EXACT_ALARM'
uses-permission: name='com.google.android.c2dm.permission.RECEIVE'
uses-permission: name='android.permission.ACCESS_WIFI_STATE'
uses-permission: name='android.permission.USE_BIOMETRIC'
uses-permission: name='android.permission.RECEIVE_BOOT_COMPLETED'
uses-permission: name='com.google.android.gms.permission.AD_ID'
uses-permission: name='com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE'
uses-permission: name='com.sec.android.provider.badge.permission.READ'
uses-permission: name='com.sec.android.provider.badge.permission.WRITE'
uses-permission: name='com.htc.launcher.permission.READ_SETTINGS'
uses-permission: name='com.htc.launcher.permission.UPDATE_SHORTCUT'
uses-permission: name='com.sonyericsson.home.permission.BROADCAST_BADGE'
uses-permission: name='com.sonymobile.home.permission.PROVIDER_INSERT_BADGE'
uses-permission: name='com.anddoes.launcher.permission.UPDATE_COUNT'
uses-permission: name='com.majeur.launcher.permission.UPDATE_BADGE'
uses-permission: name='com.huawei.android.launcher.permission.CHANGE_BADGE'
uses-permission: name='com.huawei.android.launcher.permission.READ_SETTINGS'
uses-permission: name='com.huawei.android.launcher.permission.WRITE_SETTINGS'
uses-permission: name='android.permission.READ_APP_BADGE'
uses-permission: name='com.oppo.launcher.permission.READ_SETTINGS'
uses-permission: name='com.oppo.launcher.permission.WRITE_SETTINGS'
uses-permission: name='me.everything.badger.permission.BADGE_COUNT_READ'
uses-permission: name='me.everything.badger.permission.BADGE_COUNT_WRITE'
uses-permission: name='android.permission.FOREGROUND_SERVICE'
application-label:'Tornado'
application-label-af:'Tornado'
application-label-am:'Tornado'
application-label-ar:'Tornado'
application-label-as:'Tornado'
application-label-az:'Tornado'
application-label-be:'Tornado'
application-label-bg:'Tornado'
application-label-bn:'Tornado'
application-label-bs:'Tornado'
application-label-ca:'Tornado'
application-label-cs:'Tornado'
application-label-da:'Tornado'
application-label-de:'Tornado'
application-label-el:'Tornado'
application-label-en-AU:'Tornado'
application-label-en-CA:'Tornado'
application-label-en-GB:'Tornado'
application-label-en-IN:'Tornado'
application-label-en-XC:'Tornado'
application-label-es:'Tornado'
application-label-es-ES:'Tornado'
application-label-es-US:'Tornado'
application-label-et:'Tornado'
application-label-eu:'Tornado'
application-label-fa:'Tornado'
application-label-fi:'Tornado'
application-label-fr:'Tornado'
application-label-fr-CA:'Tornado'
application-label-gl:'Tornado'
application-label-gu:'Tornado'
application-label-hi:'Tornado'
application-label-hr:'Tornado'
application-label-hu:'Tornado'
application-label-hy:'Tornado'
application-label-id:'Tornado'
application-label-in:'Tornado'
application-label-is:'Tornado'
application-label-it:'Tornado'
application-label-iw:'Tornado'
application-label-ja:'Tornado'
application-label-ka:'Tornado'
application-label-kk:'Tornado'
application-label-km:'Tornado'
application-label-kn:'Tornado'
application-label-ko:'Tornado'
application-label-ky:'Tornado'
application-label-lo:'Tornado'
application-label-lt:'Tornado'
application-label-lv:'Tornado'
application-label-mk:'Tornado'
application-label-ml:'Tornado'
application-label-mn:'Tornado'
application-label-mr:'Tornado'
application-label-ms:'Tornado'
application-label-my:'Tornado'
application-label-nb:'Tornado'
application-label-ne:'Tornado'
application-label-nl:'Tornado'
application-label-or:'Tornado'
application-label-pa:'Tornado'
application-label-pl:'Tornado'
application-label-pt:'Tornado'
application-label-pt-BR:'Tornado'
application-label-pt-PT:'Tornado'
application-label-ro:'Tornado'
application-label-ru:'Tornado'
application-label-si:'Tornado'
application-label-sk:'Tornado'
application-label-sl:'Tornado'
application-label-sq:'Tornado'
application-label-sr:'Tornado'
application-label-sr-Latn:'Tornado'
application-label-sv:'Tornado'
application-label-sw:'Tornado'
application-label-ta:'Tornado'
application-label-te:'Tornado'
application-label-th:'Tornado'
application-label-tl:'Tornado'
application-label-tr:'Tornado'
application-label-uk:'Tornado'
application-label-ur:'Tornado'
application-label-uz:'Tornado'
application-label-vi:'Tornado'
application-label-zh-CN:'Tornado'
application-label-zh-HK:'Tornado'
application-label-zh-TW:'Tornado'
application-label-zu:'Tornado'
application-icon-120:'res/mipmap-anydpi-v26/ic_launcher.xml'
application-icon-160:'res/mipmap-anydpi-v26/ic_launcher.xml'
application-icon-240:'res/mipmap-anydpi-v26/ic_launcher.xml'
application-icon-320:'res/mipmap-anydpi-v26/ic_launcher.xml'
application-icon-480:'res/mipmap-anydpi-v26/ic_launcher.xml'
application-icon-640:'res/mipmap-anydpi-v26/ic_launcher.xml'
application-icon-65534:'res/mipmap-anydpi-v26/ic_launcher.xml'
application: label='Tornado' icon='res/mipmap-anydpi-v26/ic_launcher.xml'
application-debuggable
launchable-activity: name='com.nvstr.app.MainActivity' label='Tornado' icon=''
feature-group: label=''
uses-feature: name='android.hardware.camera'
uses-implied-feature: name='android.hardware.camera' reason='requested android.permission.CAMERA permission'
uses-feature: name='android.hardware.faketouch'
uses-implied-feature: name='android.hardware.faketouch' reason='default feature for all apps'
uses-feature: name='android.hardware.location'
uses-implied-feature: name='android.hardware.location' reason='requested android.permission.ACCESS_COARSE_LOCATION permission, and requested android.permission.ACCESS_FINE_LOCATION permission'
uses-feature: name='android.hardware.microphone'
uses-implied-feature: name='android.hardware.microphone' reason='requested android.permission.RECORD_AUDIO permission'
uses-feature: name='android.hardware.wifi'
uses-implied-feature: name='android.hardware.wifi' reason='requested android.permission.ACCESS_WIFI_STATE permission'
main
other-activities
other-receivers
other-services
supports-screens: 'small' 'normal' 'large' 'xlarge'
supports-any-density: 'true'
locales: '--_--' 'af' 'am' 'ar' 'as' 'az' 'be' 'bg' 'bn' 'bs' 'ca' 'cs' 'da' 'de' 'el' 'en-AU' 'en-CA' 'en-GB' 'en-IN' 'en-XC' 'es' 'es-ES' 'es-US' 'et' 'eu' 'fa' 'fi' 'fr' 'fr-CA' 'gl' 'gu' 'hi' 'hr' 'hu' 'hy' 'id' 'in' 'is' 'it' 'iw' 'ja' 'ka' 'kk' 'km' 'kn' 'ko' 'ky' 'lo' 'lt' 'lv' 'mk' 'ml' 'mn' 'mr' 'ms' 'my' 'nb' 'ne' 'nl' 'or' 'pa' 'pl' 'pt' 'pt-BR' 'pt-PT' 'ro' 'ru' 'si' 'sk' 'sl' 'sq' 'sr' 'sr-Latn' 'sv' 'sw' 'ta' 'te' 'th' 'tl' 'tr' 'uk' 'ur' 'uz' 'vi' 'zh-CN' 'zh-HK' 'zh-TW' 'zu'
densities: '120' '160' '240' '320' '480' '640' '65534'
native-code: 'arm64-v8a' 'armeabi' 'armeabi-v7a' 'x86' 'x86_64'
13:55:40.627 detox[40201] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onBeforeTerminateApp({ deviceId: 'emulator-5554', bundleId: 'com.nvstr.app' })
13:55:40.627 detox[40201] DEBUG: [EXEC_CMD, #10] "/Users/devingantt/Library/Android/sdk/platform-tools/adb" -s emulator-5554 shell "am force-stop com.nvstr.app"
13:55:40.760 detox[40201] TRACE: [EXEC_SUCCESS, #10]
13:55:40.761 detox[40201] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onTerminateApp({ deviceId: 'emulator-5554', bundleId: 'com.nvstr.app' })
13:55:40.765 detox[40201] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onBeforeUninstallApp({ deviceId: 'emulator-5554', bundleId: 'com.nvstr.app' })
13:55:40.767 detox[40201] DEBUG: [EXEC_CMD, #11] "/Users/devingantt/Library/Android/sdk/platform-tools/adb" -s emulator-5554 shell "pm list packages com.nvstr.app"
13:55:40.988 detox[40201] TRACE: [EXEC_SUCCESS, #11] package:com.nvstr.app.test
package:com.nvstr.app
13:55:40.989 detox[40201] DEBUG: [EXEC_CMD, #12] "/Users/devingantt/Library/Android/sdk/platform-tools/adb" -s emulator-5554 uninstall com.nvstr.app
13:55:41.320 detox[40201] TRACE: [EXEC_SUCCESS, #12] Success
13:55:41.320 detox[40201] DEBUG: [EXEC_CMD, #13] "/Users/devingantt/Library/Android/sdk/platform-tools/adb" -s emulator-5554 shell "pm list packages com.nvstr.app.test"
13:55:41.436 detox[40201] TRACE: [EXEC_SUCCESS, #13] package:com.nvstr.app.test
13:55:41.436 detox[40201] DEBUG: [EXEC_CMD, #14] "/Users/devingantt/Library/Android/sdk/platform-tools/adb" -s emulator-5554 uninstall com.nvstr.app.test
13:55:41.761 detox[40201] TRACE: [EXEC_SUCCESS, #14] Success
13:55:41.764 detox[40201] DEBUG: [EXEC_CMD, #15] "/Users/devingantt/Library/Android/sdk/build-tools/32.1.0-rc1/aapt" dump xmlstrings "/Users/devingantt/Documents/nvstr-mobile-react-native/android/app/build/outputs/apk/debug/app-debug.apk" AndroidManifest.xml
13:55:41.807 detox[40201] TRACE: [EXEC_SUCCESS, #15] String pool of 212 unique UTF-16 non-sorted strings, 212 entries and 0 styles using 15792 bytes:
String #0: theme
String #1: label
String #2: icon
String #3: name
String #4: permission
String #5: enabled
String #6: debuggable
String #7: exported
String #8: process
String #9: multiprocess
String #10: stateNotNeeded
String #11: excludeFromRecents
String #12: authorities
String #13: initOrder
String #14: grantUriPermissions
String #15: priority
String #16: launchMode
String #17: configChanges
String #18: value
String #19: resource
String #20: mimeType
String #21: scheme
String #22: host
String #23: minSdkVersion
String #24: versionCode
String #25: versionName
String #26: windowSoftInputMode
String #27: targetSdkVersion
String #28: allowBackup
String #29: supportsRtl
String #30: usesCleartextTraffic
String #31: directBootAware
String #32: networkSecurityConfig
String #33: roundIcon
String #34: visibleToInstantApps
String #35: compileSdkVersion
String #36: compileSdkVersionCodename
String #37: appComponentFactory
String #38: */*
String #39: 12
String #40: 2.3.0
String #41: 45.0.0
String #42: :playcore_missing_splits_activity
String #43: action
String #44: activity
String #45: android
String #46: android.intent.action.BOOT_COMPLETED
String #47: android.intent.action.EDIT
String #48: android.intent.action.INSERT
String #49: android.intent.action.MAIN
String #50: android.intent.action.MY_PACKAGE_REPLACED
String #51: android.intent.action.OPEN_DOCUMENT_TREE
String #52: android.intent.action.QUICKBOOT_POWERON
String #53: android.intent.action.REBOOT
String #54: android.intent.action.SEND
String #55: android.intent.action.SENDTO
String #56: android.intent.action.VIEW
String #57: android.intent.category.BROWSABLE
String #58: android.intent.category.DEFAULT
String #59: android.intent.category.LAUNCHER
String #60: android.permission.ACCESS_COARSE_LOCATION
String #61: android.permission.ACCESS_FINE_LOCATION
String #62: android.permission.ACCESS_NETWORK_STATE
String #63: android.permission.ACCESS_WIFI_STATE
String #64: android.permission.BIND_JOB_SERVICE
String #65: android.permission.CAMERA
String #66: android.permission.FOREGROUND_SERVICE
String #67: android.permission.INTERNET
String #68: android.permission.MANAGE_DOCUMENTS
String #69: android.permission.MODIFY_AUDIO_SETTINGS
String #70: android.permission.READ_APP_BADGE
String #71: android.permission.READ_CALENDAR
String #72: android.permission.READ_CONTACTS
String #73: android.permission.READ_EXTERNAL_STORAGE
String #74: android.permission.READ_INTERNAL_STORAGE
String #75: android.permission.READ_PHONE_STATE
String #76: android.permission.RECEIVE_BOOT_COMPLETED
String #77: android.permission.RECORD_AUDIO
String #78: android.permission.SCHEDULE_EXACT_ALARM
String #79: android.permission.SYSTEM_ALERT_WINDOW
String #80: android.permission.USE_BIOMETRIC
String #81: android.permission.USE_FINGERPRINT
String #82: android.permission.VIBRATE
String #83: android.permission.WAKE_LOCK
String #84: android.permission.WRITE_CALENDAR
String #85: android.permission.WRITE_EXTERNAL_STORAGE
String #86: android.permission.WRITE_SETTINGS
String #87: android.support.FILE_PROVIDER_PATHS
String #88: android.support.customtabs.action.CustomTabsService
String #89: androidx.core.app.CoreComponentFactory
String #90: androidx.lifecycle.ProcessLifecycleOwnerInitializer
String #91: androidx.room.MultiInstanceInvalidationService
String #92: app_data_collection_default_enabled
String #93: application
String #94: application/octet-stream
String #95: backend:com.google.android.datatransport.cct.CctBackendFactory
String #96: category
String #97: cct
String #98: cct.com.nvstr.app
String #99: com.anddoes.launcher.permission.UPDATE_COUNT
String #100: com.facebook.AuthenticationTokenManager$CurrentAuthenticationTokenChangedBroadcastReceiver
String #101: com.facebook.CurrentAccessTokenExpirationBroadcastReceiver
String #102: com.facebook.CustomTabActivity
String #103: com.facebook.CustomTabMainActivity
String #104: com.facebook.FacebookActivity
String #105: com.facebook.internal.FacebookInitProvider
String #106: com.facebook.react.devsupport.DevSettingsActivity
String #107: com.facebook.sdk.ACTION_CURRENT_ACCESS_TOKEN_CHANGED
String #108: com.facebook.sdk.ACTION_CURRENT_AUTHENTICATION_TOKEN_CHANGED
String #109: com.facebook.sdk.ApplicationId
String #110: com.facebook.sdk.ClientToken
String #111: com.google.android.c2dm.intent.RECEIVE
String #112: com.google.android.c2dm.permission.RECEIVE
String #113: com.google.android.c2dm.permission.SEND
String #114: com.google.android.datatransport.runtime.backends.TransportBackendDiscovery
String #115: com.google.android.datatransport.runtime.scheduling.jobscheduling.AlarmManagerSchedulerBroadcastReceiver
String #116: com.google.android.datatransport.runtime.scheduling.jobscheduling.JobInfoSchedulerService
String #117: com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE
String #118: com.google.android.gms.auth.api.signin.RevocationBoundService
String #119: com.google.android.gms.auth.api.signin.internal.SignInHubActivity
String #120: com.google.android.gms.auth.api.signin.permission.REVOCATION_NOTIFICATION
String #121: com.google.android.gms.common.api.GoogleApiActivity
String #122: com.google.android.gms.measurement.AppMeasurementJobService
String #123: com.google.android.gms.measurement.AppMeasurementReceiver
String #124: com.google.android.gms.measurement.AppMeasurementService
String #125: com.google.android.gms.permission.AD_ID
String #126: com.google.android.gms.version
String #127: com.google.android.play.core.assetpacks.AssetPackExtractionService
String #128: com.google.android.play.core.common.PlayCoreDialogWrapperActivity
String #129: com.google.android.play.core.missingsplits.PlayCoreMissingSplitsActivity
String #130: com.google.firebase.MESSAGING_EVENT
String #131: com.google.firebase.components.ComponentDiscoveryService
String #132: com.google.firebase.components.ComponentRegistrar
String #133: com.google.firebase.components:com.google.firebase.analytics.connector.internal.AnalyticsConnectorRegistrar
String #134: com.google.firebase.components:com.google.firebase.datatransport.TransportRegistrar
String #135: com.google.firebase.components:com.google.firebase.installations.FirebaseInstallationsRegistrar
String #136: com.google.firebase.components:com.google.firebase.messaging.FirebaseMessagingRegistrar
String #137: com.google.firebase.components:io.invertase.firebase.app.ReactNativeFirebaseAppRegistrar
String #138: com.google.firebase.iid.FirebaseInstanceIdReceiver
String #139: com.google.firebase.messaging.FirebaseMessagingService
String #140: com.google.firebase.provider.FirebaseInitProvider
String #141: com.htc.intent.action.QUICKBOOT_POWERON
String #142: com.htc.launcher.permission.READ_SETTINGS
String #143: com.htc.launcher.permission.UPDATE_SHORTCUT
String #144: com.huawei.android.launcher.permission.CHANGE_BADGE
String #145: com.huawei.android.launcher.permission.READ_SETTINGS
String #146: com.huawei.android.launcher.permission.WRITE_SETTINGS
String #147: com.majeur.launcher.permission.UPDATE_BADGE
String #148: com.nvstr.app
String #149: com.nvstr.app.ClipboardFileProvider
String #150: com.nvstr.app.FacebookInitProvider
String #151: com.nvstr.app.FileSystemFileProvider
String #152: com.nvstr.app.MainActivity
String #153: com.nvstr.app.MainApplication
String #154: com.nvstr.app.SentryInitProvider
String #155: com.nvstr.app.SentryPerformanceProvider
String #156: com.nvstr.app.fileprovider
String #157: com.nvstr.app.firebaseinitprovider
String #158: com.nvstr.app.lifecycle-process
String #159: com.nvstr.app.reactnativefirebaseappinitprovider
String #160: com.oppo.launcher.permission.READ_SETTINGS
String #161: com.oppo.launcher.permission.WRITE_SETTINGS
String #162: com.reactnativecommunity.webview.RNCWebViewFileProvider
String #163: com.sec.android.provider.badge.permission.READ
String #164: com.sec.android.provider.badge.permission.WRITE
String #165: com.sonyericsson.home.permission.BROADCAST_BADGE
String #166: com.sonymobile.home.permission.PROVIDER_INSERT_BADGE
String #167: data
String #168: e-2.3.0
String #169: expo.modules.adapters.react.apploader.RNHeadlessAppLoader
String #170: expo.modules.clipboard.CLIPBOARD_FILE_PROVIDER_PATHS
String #171: expo.modules.clipboard.ClipboardFileProvider
String #172: expo.modules.filesystem.FileSystemFileProvider
String #173: expo.modules.notifications.NOTIFICATION_EVENT
String #174: expo.modules.notifications.service.ExpoFirebaseMessagingService
String #175: expo.modules.notifications.service.NotificationsService
String #176: expo.modules.updates.EXPO_RELEASE_CHANNEL
String #177: expo.modules.updates.EXPO_SDK_VERSION
String #178: fbconnect
String #179: firebase_analytics_collection_deactivated
String #180: firebase_analytics_collection_enabled
String #181: google_analytics_adid_collection_enabled
String #182: google_analytics_automatic_screen_reporting_enabled
String #183: google_analytics_default_allow_ad_personalization_signals
String #184: google_analytics_ssaid_collection_enabled
String #185: http://schemas.android.com/apk/res/android
String #186: https
String #187: intent
String #188: intent-filter
String #189: io.invertase.firebase.app.ReactNativeFirebaseAppInitProvider
String #190: io.sentry.android.core.SentryInitProvider
String #191: io.sentry.android.core.SentryPerformanceProvider
String #192: io.sentry.auto-init
String #193: manifest
String #194: me.everything.badger.permission.BADGE_COUNT_READ
String #195: me.everything.badger.permission.BADGE_COUNT_WRITE
String #196: meta-data
String #197: nvstr
String #198: org.unimodules.core.AppLoader#react-native-headless
String #199: package
String #200: platformBuildVersionCode
String #201: platformBuildVersionName
String #202: provider
String #203: queries
String #204: receiver
String #205: service
String #206: sms
String #207: smsto
String #208: text/vcard
String #209: text/x-vcard
String #210: uses-permission
String #211: uses-sdk
13:55:41.809 detox[40201] DEBUG: [EXEC_CMD, #16] "/Users/devingantt/Library/Android/sdk/build-tools/32.1.0-rc1/aapt" dump xmlstrings "/Users/devingantt/Documents/nvstr-mobile-react-native/android/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk" AndroidManifest.xml
13:55:41.869 detox[40201] TRACE: [EXEC_SUCCESS, #16] String pool of 41 unique UTF-16 non-sorted strings, 41 entries and 0 styles using 2020 bytes:
String #0: theme
String #1: label
String #2: name
String #3: debuggable
String #4: exported
String #5: targetPackage
String #6: handleProfiling
String #7: functionalTest
String #8: minSdkVersion
String #9: targetSdkVersion
String #10: compileSdkVersion
String #11: compileSdkVersionCodename
String #12: 12
String #13: Tests for com.nvstr.app
String #14: action
String #15: activity
String #16: android
String #17: android.intent.action.MAIN
String #18: android.permission.REORDER_TASKS
String #19: android.test.runner
String #20: androidx.test.core.app.InstrumentationActivityInvoker$BootstrapActivity
String #21: androidx.test.core.app.InstrumentationActivityInvoker$EmptyActivity
String #22: androidx.test.core.app.InstrumentationActivityInvoker$EmptyFloatingActivity
String #23: androidx.test.orchestrator
String #24: androidx.test.runner.AndroidJUnitRunner
String #25: androidx.test.services
String #26: application
String #27: com.google.android.apps.common.testing.services
String #28: com.nvstr.app
String #29: com.nvstr.app.test
String #30: http://schemas.android.com/apk/res/android
String #31: instrumentation
String #32: intent-filter
String #33: manifest
String #34: package
String #35: platformBuildVersionCode
String #36: platformBuildVersionName
String #37: queries
String #38: uses-library
String #39: uses-permission
String #40: uses-sdk
13:55:41.870 detox[40201] DEBUG: [EXEC_CMD, #17] "/Users/devingantt/Library/Android/sdk/platform-tools/adb" -s emulator-5554 shell "rm -fr /data/local/tmp/detox"
13:55:41.909 detox[40201] TRACE: [EXEC_SUCCESS, #17]
13:55:41.909 detox[40201] DEBUG: [EXEC_CMD, #18] "/Users/devingantt/Library/Android/sdk/platform-tools/adb" -s emulator-5554 shell "mkdir -p /data/local/tmp/detox"
13:55:41.943 detox[40201] TRACE: [EXEC_SUCCESS, #18]
13:55:41.944 detox[40201] DEBUG: [EXEC_CMD, #19] "/Users/devingantt/Library/Android/sdk/platform-tools/adb" -s emulator-5554 push "/Users/devingantt/Documents/nvstr-mobile-react-native/android/app/build/outputs/apk/debug/app-debug.apk" "/data/local/tmp/detox/Application.apk"
13:55:42.366 detox[40201] TRACE: [EXEC_SUCCESS, #19] /Users/devingantt/Documents/nvstr-mobile-react-native/android/app/build/outputs/apk/debug/app-debug.apk: 1 file pushed, 0 skipped. 144.7 MB/s (56320553 bytes in 0.371s)
13:55:42.370 detox[40201] DEBUG: [SPAWN_CMD, #20, cpid=40252] /Users/devingantt/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell pm install -r -g -t /data/local/tmp/detox/Application.apk
13:55:42.759 detox[40201] TRACE: [SPAWN_STDOUT, #20, cpid=40252] Success
13:55:42.763 detox[40201] DEBUG: [SPAWN_END, #20, cpid=40252] /Users/devingantt/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell pm install -r -g -t /data/local/tmp/detox/Application.apk exited with code #0
13:55:42.764 detox[40201] DEBUG: [EXEC_CMD, #21] "/Users/devingantt/Library/Android/sdk/platform-tools/adb" -s emulator-5554 push "/Users/devingantt/Documents/nvstr-mobile-react-native/android/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk" "/data/local/tmp/detox/Test.apk"
13:55:42.856 detox[40201] TRACE: [EXEC_SUCCESS, #21] /Users/devingantt/Documents/nvstr-mobile-react-native/android/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk: 1 file pushed, 0 skipped. 113.8 MB/s (2888931 bytes in 0.024s)
13:55:42.858 detox[40201] DEBUG: [SPAWN_CMD, #22, cpid=40254] /Users/devingantt/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell pm install -r -g -t /data/local/tmp/detox/Test.apk
13:55:42.939 detox[40201] TRACE: [SPAWN_STDOUT, #22, cpid=40254] Success
13:55:42.944 detox[40201] DEBUG: [SPAWN_END, #22, cpid=40254] /Users/devingantt/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell pm install -r -g -t /data/local/tmp/detox/Test.apk exited with code #0
13:55:42.957 ROOT_DESCRIBE_BLOCK[40201] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onRunDescribeStart({ name: 'ROOT_DESCRIBE_BLOCK' })
13:55:42.959 Example[40201] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onRunDescribeStart({ name: 'Example' })
13:55:42.961 detox[40201] INFO: Example is assigned to emulator-5554 (Nexus_6)
13:55:42.981 detox[40201] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onBeforeTerminateApp({ deviceId: 'emulator-5554', bundleId: 'com.nvstr.app' })
13:55:42.983 detox[40201] DEBUG: [EXEC_CMD, #23] "/Users/devingantt/Library/Android/sdk/platform-tools/adb" -s emulator-5554 shell "am force-stop com.nvstr.app"
13:55:43.065 detox[40201] TRACE: [EXEC_SUCCESS, #23]
13:55:43.067 detox[40201] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onTerminateApp({ deviceId: 'emulator-5554', bundleId: 'com.nvstr.app' })
13:55:43.069 detox[40201] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onBeforeLaunchApp({
deviceId: 'emulator-5554',
bundleId: 'com.nvstr.app',
launchArgs: {
detoxServer: 'ws://localhost:52030',
detoxSessionId: '3258dbad-ae03-cc77-7871-972f6cb6d2ce'
}
})
13:55:43.069 detox[40201] DEBUG: [EXEC_CMD, #24] "/Users/devingantt/Library/Android/sdk/platform-tools/adb" -s emulator-5554 shell "date +\"%m-%d %T.000\""
13:55:43.134 detox[40201] TRACE: [EXEC_SUCCESS, #24] 05-25 13:55:42.000
13:55:43.135 detox[40201] DEBUG: [EXEC_CMD, #25] "/Users/devingantt/Library/Android/sdk/platform-tools/adb" -s emulator-5554 reverse tcp:52030 tcp:52030
13:55:43.176 detox[40201] TRACE: [EXEC_SUCCESS, #25] 52030
13:55:43.177 detox[40201] DEBUG: [EXEC_CMD, #26] "/Users/devingantt/Library/Android/sdk/platform-tools/adb" -s emulator-5554 shell "pm list instrumentation"
13:55:43.239 detox[40201] TRACE: [EXEC_SUCCESS, #26] instrumentation:com.nvstr.app.test/androidx.test.runner.AndroidJUnitRunner (target=com.nvstr.app)
13:55:43.243 detox[40201] DEBUG: [SPAWN_CMD, #27, cpid=40259] /Users/devingantt/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell am instrument -w -r -e detoxServer ws://localhost:52030 -e detoxSessionId 3258dbad-ae03-cc77-7871-972f6cb6d2ce -e debug false com.nvstr.app.test/androidx.test.runner.AndroidJUnitRunner
13:55:43.748 detox[40201] DEBUG: [EXEC_CMD, #28] "/Users/devingantt/Library/Android/sdk/platform-tools/adb" -s emulator-5554 shell "ps | grep \"com\.nvstr\.app$\""
13:55:44.940 detox[40201] TRACE: [EXEC_SUCCESS, #28] u0_a174 15198 299 14230916 199960 0 0 S com.nvstr.app
13:55:44.941 detox[15198] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onLaunchApp({
deviceId: 'emulator-5554',
bundleId: 'com.nvstr.app',
launchArgs: {
detoxServer: 'ws://localhost:52030',
detoxSessionId: '3258dbad-ae03-cc77-7871-972f6cb6d2ce'
},
pid: 15198
})
13:55:46.089 detox[40201] TRACE: [SPAWN_STDOUT, #27, cpid=40259] INSTRUMENTATION_STATUS: class=com.nvstr.app.DetoxTest
INSTRUMENTATION_STATUS: current=1
INSTRUMENTATION_STATUS: id=AndroidJUnitRunner
INSTRUMENTATION_STATUS: numtests=1
INSTRUMENTATION_STATUS: stream=
com.nvstr.app.DetoxTest:
INSTRUMENTATION_STATUS: test=runDetoxTests
INSTRUMENTATION_STATUS_CODE: 1
13:55:46.700 detox[40201] DEBUG: [WSS_CONNECTION, #52121] registered a new connection.
13:55:46.712 detox[40201] TRACE: [WSS_GET_FROM, #52121] {"messageId":-10000,"type":"AppWillTerminateWithError","params":{"errorDetails":"@Thread detox.primary(662):\njava.lang.NoSuchMethodError: No virtual method addReactInstanceEventListener(Lcom\/facebook\/react\/ReactInstanceManager$ReactInstanceEventListener;)V in class Lcom\/facebook\/react\/ReactInstanceManager; or its super classes (declaration of 'com.facebook.react.ReactInstanceManager' appears in \/data\/app\/~~cEqRcsdqHBNtpYBBpgK4Ow==\/com.nvstr.app-zxF4xpHcaLFRMZfE6Y6YgQ==\/base.apk)\n\tat com.wix.detox.reactnative.ReactNativeLoadingMonitor$subscribeToNewRNContextUpdates$1.run(ReactNativeLoadingMonitor.kt:38)\n\tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\n\tat android.app.Instrumentation$SyncRunnable.run(Instrumentation.java:2223)\n\tat android.os.Handler.handleCallback(Handler.java:938)\n\tat android.os.Handler.dispatchMessage(Handler.java:99)\n\tat android.os.Looper.loop(Looper.java:223)\n\tat android.app.ActivityThread.main(ActivityThread.java:7656)\n\tat java.lang.reflect.Method.invoke(Native Method)\n\tat com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)\n\tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)\n\nCheck device logs for full details!"}}
13:55:46.715 detox[40201] WARN: [DetoxConnection.js/ERROR, #52121] 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
{
messageId: -10000,
type: 'AppWillTerminateWithError',
params: [Object]
}
13:55:46.715 detox[40201] TRACE: [WSS_GET_FROM, #52121] {"messageId":0,"type":"login","params":{"role":"app","sessionId":"3258dbad-ae03-cc77-7871-972f6cb6d2ce"}}
13:55:46.716 detox[40201] TRACE: [WSS_SEND_TO, #app] {"messageId":0,"type":"loginSuccess","params":{"testerConnected":true,"appConnected":true}}
13:55:46.717 detox[40201] TRACE: [SESSION_JOINED] app joined session 3258dbad-ae03-cc77-7871-972f6cb6d2ce
13:55:46.718 detox[40201] TRACE: [WSS_SEND_TO, #tester] {"type":"appConnected"}
13:55:46.719 detox[40201] TRACE: [WS_MESSAGE] {"type":"appConnected"}
13:55:46.728 detox[40201] TRACE: [WS_SEND] {"type":"isReady","params":{},"messageId":-1000}
13:55:46.730 detox[40201] TRACE: [WSS_GET_FROM, #tester] {"type":"isReady","params":{},"messageId":-1000}
13:55:46.730 detox[40201] TRACE: [WSS_SEND_TO, #app] {"type":"isReady","params":{},"messageId":-1000}
13:55:56.728 detox[40201] TRACE: [WS_SEND] {"type":"currentStatus","params":{},"messageId":1}
13:55:56.734 detox[40201] TRACE: [WSS_GET_FROM, #tester] {"type":"currentStatus","params":{},"messageId":1}
13:55:56.735 detox[40201] TRACE: [WSS_SEND_TO, #app] {"type":"currentStatus","params":{},"messageId":1}
13:55:56.746 detox[40201] TRACE: [WSS_GET_FROM, #app] {"messageId":1,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}}
13:55:56.746 detox[40201] TRACE: [WSS_SEND_TO, #tester] {"messageId":1,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}}
13:55:56.747 detox[40201] TRACE: [WS_MESSAGE] {"messageId":1,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}}
13:55:56.761 detox[40201] INFO: [APP_STATUS] The app seems to be idle
13:56:06.765 detox[40201] TRACE: [WS_SEND] {"type":"currentStatus","params":{},"messageId":2}
13:56:06.771 detox[40201] TRACE: [WSS_GET_FROM, #tester] {"type":"currentStatus","params":{},"messageId":2}
13:56:06.772 detox[40201] TRACE: [WSS_SEND_TO, #app] {"type":"currentStatus","params":{},"messageId":2}
13:56:06.776 detox[40201] TRACE: [WSS_GET_FROM, #app] {"messageId":2,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}}
13:56:06.777 detox[40201] TRACE: [WSS_SEND_TO, #tester] {"messageId":2,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}}
13:56:06.777 detox[40201] TRACE: [WS_MESSAGE] {"messageId":2,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}}
13:56:06.779 detox[40201] INFO: [APP_STATUS] The app seems to be idle
13:56:16.782 detox[40201] TRACE: [WS_SEND] {"type":"currentStatus","params":{},"messageId":3}
13:56:16.785 detox[40201] TRACE: [WSS_GET_FROM, #tester] {"type":"currentStatus","params":{},"messageId":3}
13:56:16.785 detox[40201] TRACE: [WSS_SEND_TO, #app] {"type":"currentStatus","params":{},"messageId":3}
13:56:16.789 detox[40201] TRACE: [WSS_GET_FROM, #app] {"messageId":3,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}}
13:56:16.790 detox[40201] TRACE: [WSS_SEND_TO, #tester] {"messageId":3,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}}
13:56:16.791 detox[40201] TRACE: [WS_MESSAGE] {"messageId":3,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}}
13:56:16.792 detox[40201] INFO: [APP_STATUS] The app seems to be idle
13:56:26.797 detox[40201] TRACE: [WS_SEND] {"type":"currentStatus","params":{},"messageId":4}
13:56:26.799 detox[40201] TRACE: [WSS_GET_FROM, #tester] {"type":"currentStatus","params":{},"messageId":4}
13:56:26.800 detox[40201] TRACE: [WSS_SEND_TO, #app] {"type":"currentStatus","params":{},"messageId":4}
13:56:26.803 detox[40201] TRACE: [WSS_GET_FROM, #app] {"messageId":4,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}}
13:56:26.803 detox[40201] TRACE: [WSS_SEND_TO, #tester] {"messageId":4,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}}
13:56:26.805 detox[40201] TRACE: [WS_MESSAGE] {"messageId":4,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}}
13:56:26.806 detox[40201] INFO: [APP_STATUS] The app seems to be idle
13:56:36.810 detox[40201] TRACE: [WS_SEND] {"type":"currentStatus","params":{},"messageId":5}
13:56:36.816 detox[40201] TRACE: [WSS_GET_FROM, #tester] {"type":"currentStatus","params":{},"messageId":5}
13:56:36.817 detox[40201] TRACE: [WSS_SEND_TO, #app] {"type":"currentStatus","params":{},"messageId":5}
13:56:36.821 detox[40201] TRACE: [WSS_GET_FROM, #app] {"messageId":5,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}}
13:56:36.822 detox[40201] TRACE: [WSS_SEND_TO, #tester] {"messageId":5,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}}
13:56:36.822 detox[40201] TRACE: [WS_MESSAGE] {"messageId":5,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}}
13:56:36.823 detox[40201] INFO: [APP_STATUS] The app seems to be idle
13:56:46.826 detox[40201] TRACE: [WS_SEND] {"type":"currentStatus","params":{},"messageId":6}
13:56:46.827 detox[40201] TRACE: [WSS_GET_FROM, #tester] {"type":"currentStatus","params":{},"messageId":6}
13:56:46.827 detox[40201] TRACE: [WSS_SEND_TO, #app] {"type":"currentStatus","params":{},"messageId":6}
13:56:46.830 detox[40201] TRACE: [WSS_GET_FROM, #app] {"messageId":6,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}}
13:56:46.831 detox[40201] TRACE: [WSS_SEND_TO, #tester] {"messageId":6,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}}
13:56:46.831 detox[40201] TRACE: [WS_MESSAGE] {"messageId":6,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}}
13:56:46.832 detox[40201] INFO: [APP_STATUS] The app seems to be idle
13:56:56.837 detox[40201] TRACE: [WS_SEND] {"type":"currentStatus","params":{},"messageId":7}
13:56:56.844 detox[40201] TRACE: [WSS_GET_FROM, #tester] {"type":"currentStatus","params":{},"messageId":7}
13:56:56.845 detox[40201] TRACE: [WSS_SEND_TO, #app] {"type":"currentStatus","params":{},"messageId":7}
13:56:56.851 detox[40201] TRACE: [WSS_GET_FROM, #app] {"messageId":7,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}}
13:56:56.851 detox[40201] TRACE: [WSS_SEND_TO, #tester] {"messageId":7,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}}
13:56:56.855 detox[40201] TRACE: [WS_MESSAGE] {"messageId":7,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}}
13:56:56.856 detox[40201] INFO: [APP_STATUS] The app seems to be idle
13:57:06.857 detox[40201] TRACE: [WS_SEND] {"type":"currentStatus","params":{},"messageId":8}
13:57:06.858 detox[40201] TRACE: [WSS_GET_FROM, #tester] {"type":"currentStatus","params":{},"messageId":8}
13:57:06.859 detox[40201] TRACE: [WSS_SEND_TO, #app] {"type":"currentStatus","params":{},"messageId":8}
13:57:06.863 detox[40201] TRACE: [WSS_GET_FROM, #app] {"messageId":8,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}}
13:57:06.863 detox[40201] TRACE: [WSS_SEND_TO, #tester] {"messageId":8,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}}
13:57:06.864 detox[40201] TRACE: [WS_MESSAGE] {"messageId":8,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}}
13:57:06.864 detox[40201] INFO: [APP_STATUS] The app seems to be idle
13:57:16.869 detox[40201] TRACE: [WS_SEND] {"type":"currentStatus","params":{},"messageId":9}
13:57:16.870 detox[40201] TRACE: [WSS_GET_FROM, #tester] {"type":"currentStatus","params":{},"messageId":9}
13:57:16.876 detox[40201] TRACE: [WSS_SEND_TO, #app] {"type":"currentStatus","params":{},"messageId":9}
13:57:16.886 detox[40201] TRACE: [WSS_GET_FROM, #app] {"messageId":9,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}}
13:57:16.888 detox[40201] TRACE: [WSS_SEND_TO, #tester] {"messageId":9,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}}
13:57:16.888 detox[40201] TRACE: [WS_MESSAGE] {"messageId":9,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}}
13:57:16.891 detox[40201] INFO: [APP_STATUS] The app seems to be idle
13:57:26.896 detox[40201] TRACE: [WS_SEND] {"type":"currentStatus","params":{},"messageId":10}
13:57:26.904 detox[40201] TRACE: [WSS_GET_FROM, #tester] {"type":"currentStatus","params":{},"messageId":10}
13:57:26.905 detox[40201] TRACE: [WSS_SEND_TO, #app] {"type":"currentStatus","params":{},"messageId":10}
13:57:26.911 detox[40201] TRACE: [WSS_GET_FROM, #app] {"messageId":10,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}}
13:57:26.911 detox[40201] TRACE: [WSS_SEND_TO, #tester] {"messageId":10,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}}
13:57:26.912 detox[40201] TRACE: [WS_MESSAGE] {"messageId":10,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}}
13:57:26.913 detox[40201] INFO: [APP_STATUS] The app seems to be idle
13:57:36.915 detox[40201] TRACE: [WS_SEND] {"type":"currentStatus","params":{},"messageId":11}
13:57:36.918 detox[40201] TRACE: [WSS_GET_FROM, #tester] {"type":"currentStatus","params":{},"messageId":11}
13:57:36.918 detox[40201] TRACE: [WSS_SEND_TO, #app] {"type":"currentStatus","params":{},"messageId":11}
13:57:36.923 detox[40201] TRACE: [WSS_GET_FROM, #app] {"messageId":11,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}}
13:57:36.923 detox[40201] TRACE: [WSS_SEND_TO, #tester] {"messageId":11,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}}
13:57:36.923 detox[40201] TRACE: [WS_MESSAGE] {"messageId":11,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}}
13:57:36.924 detox[40201] INFO: [APP_STATUS] The app seems to be idle
13:57:43.015 detox[40201] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onHookFailure({
error: 'Exceeded timeout of 120000 ms for a hook.\n' +
'Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test.',
hook: 'beforeAll'
})
13:57:43.023 detox[40201] INFO: Example: should be able to log in
13:57:43.033 detox[40201] INFO: Example: should be able to log in [FAIL]
13:57:43.117 Example[40201] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onRunDescribeFinish({ name: 'Example' })
13:57:43.119 ROOT_DESCRIBE_BLOCK[40201] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onRunDescribeFinish({ name: 'ROOT_DESCRIBE_BLOCK' })
13:57:43.173 detox[40201] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onBeforeCleanup()
13:57:43.175 detox[40201] WARN: [PENDING_REQUESTS] The app has not responded to the network requests below:
(id = -1000) isReady: {}
Unresponded network requests might result in timeout errors in Detox tests.
13:57:43.178 detox[40201] TRACE: [WS_SEND] {"type":"cleanup","params":{"stopRunner":true},"messageId":-49642}
13:57:43.182 detox[40201] TRACE: [WSS_GET_FROM, #tester] {"type":"cleanup","params":{"stopRunner":true},"messageId":-49642}
13:57:43.183 detox[40201] TRACE: [WSS_SEND_TO, #app] {"type":"cleanup","params":{"stopRunner":true},"messageId":-49642}
13:57:48.185 detox[40201] ERROR: [Client.js/ERROR] The pending request #-49642 ("cleanup") has been rejected due to the following error:
The tester has not received a response within 5000ms timeout to the message:
Cleanup {
type: 'cleanup',
params: [Object],
messageId: -49642
}
13:57:48.199 detox[40201] TRACE: [SESSION_TORN] tester exited session 3258dbad-ae03-cc77-7871-972f6cb6d2ce
13:57:48.199 detox[40201] TRACE: [WSS_SEND_TO, #app] {"type":"testerDisconnected","messageId":-1}
13:57:48.199 detox[40259] TRACE: [SPAWN_KILL] sending SIGINT to: /Users/devingantt/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell am instrument -w -r -e detoxServer ws://localhost:52030 -e detoxSessionId 3258dbad-ae03-cc77-7871-972f6cb6d2ce -e debug false com.nvstr.app.test/androidx.test.runner.AndroidJUnitRunner
13:57:48.206 detox[40201] DEBUG: [SPAWN_END, #27, cpid=40259] /Users/devingantt/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell am instrument -w -r -e detoxServer ws://localhost:52030 -e detoxSessionId 3258dbad-ae03-cc77-7871-972f6cb6d2ce -e debug false com.nvstr.app.test/androidx.test.runner.AndroidJUnitRunner terminated with SIGINT
13:57:48.208 detox[40201] DEBUG: [EXEC_CMD, #29] "/Users/devingantt/Library/Android/sdk/platform-tools/adb" -s emulator-5554 reverse --remove tcp:52030
13:57:48.243 detox[40201] DEBUG: [WSS_CLOSE] Detox server has been closed gracefully
FAIL e2e/firstTest.e2e.js (129.351 s)
Example
✕ should be able to log in (7 ms)
● Example › should be able to log in
thrown: "Exceeded timeout of 120000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."
1 | describe('Example', () => {
> 2 | beforeAll(async () => {
| ^
3 | await detox.device.launchApp({ newInstance: true });
4 | });
5 |
at beforeAll (firstTest.e2e.js:2:3)
at Object.<anonymous> (firstTest.e2e.js:1:21)
13:57:48.281 detox[40201] TRACE: [SESSION_TORN] app exited session 3258dbad-ae03-cc77-7871-972f6cb6d2ce
13:57:48.282 detox[40201] TRACE: [EXEC_SUCCESS, #29]
13:57:48.390 detox[40200] ERROR: [cli.js] Command failed: jest --config e2e/config.json --testNamePattern '^((?!:ios:).)*$' --maxWorkers 1 e2e
Device logs
Device logs
05-25 14:07:35.960 17077 17189 E AndroidRuntime: FATAL EXCEPTION: detox.primary
05-25 14:07:35.960 17077 17189 E AndroidRuntime: Process: com.nvstr.app, PID: 17077
05-25 14:07:35.960 17077 17189 E AndroidRuntime: java.lang.NoSuchMethodError: No virtual method addReactInstanceEventListener(Lcom/facebook/react/ReactInstanceManager$ReactInstanceEventListener;)V in class Lcom/facebook/react/ReactInstanceManager; or its super classes (declaration of 'com.facebook.react.ReactInstanceManager' appears in /data/app/~~8uPFyyGs3tgcdqwW8zN8RA==/com.nvstr.app-COS82hBwVwU_1XPtT-LzCA==/base.apk)
05-25 14:07:35.960 17077 17189 E AndroidRuntime: at com.wix.detox.reactnative.ReactNativeLoadingMonitor$subscribeToNewRNContextUpdates$1.run(ReactNativeLoadingMonitor.kt:38)
05-25 14:07:35.960 17077 17189 E AndroidRuntime: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
05-25 14:07:35.960 17077 17189 E AndroidRuntime: at java.util.concurrent.FutureTask.run(FutureTask.java:266)
05-25 14:07:35.960 17077 17189 E AndroidRuntime: at android.app.Instrumentation$SyncRunnable.run(Instrumentation.java:2223)
05-25 14:07:35.960 17077 17189 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:938)
05-25 14:07:35.960 17077 17189 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)
05-25 14:07:35.960 17077 17189 E AndroidRuntime: at android.os.Looper.loop(Looper.java:223)
05-25 14:07:35.960 17077 17189 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7656)
05-25 14:07:35.960 17077 17189 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
05-25 14:07:35.960 17077 17189 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
05-25 14:07:35.960 17077 17189 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
05-25 14:07:35.960 17077 17189 E DetoxCrashHandler: Crash detected!!! thread=detox.primary (680)
05-25 14:07:35.960 17077 17189 I DetoxWSClient: Sending out action 'AppWillTerminateWithError' (ID #-10000)
05-25 14:07:35.968 17077 17191 D DetoxWSClient: At onOpen
05-25 14:07:35.968 17077 17191 I DetoxWSClient: Sending out action 'login' (ID #0)
05-25 14:07:35.968 17077 17191 I Detox : Connected to server!
05-25 14:07:35.984 17077 17191 D DetoxWSClient: Received action 'loginSuccess' (ID #0, params={"testerConnected":true,"appConnected":true})
05-25 14:07:35.992 17077 17191 D DetoxWSClient: Received action 'isReady' (ID #-1000, params={})
05-25 14:07:36.089 17077 17122 E com.facebook.GraphResponse: {HttpStatus: 400, errorCode: 190, subErrorCode: -1, errorType: OAuthException, errorMessage: Invalid OAuth access token signature.}
05-25 14:07:36.129 17077 17122 E com.facebook.GraphResponse: {HttpStatus: 400, errorCode: 190, subErrorCode: -1, errorType: OAuthException, errorMessage: Invalid OAuth access token signature.}
05-25 14:07:36.316 17077 17194 V AsyncStorageExpoMigration: No scoped database found
05-25 14:07:36.439 17077 17194 D InstallReferrerState: FEATURE_NOT_SUPPORTED
05-25 14:07:36.442 17077 17201 V RNKeychainManager: warming up started at 5352044051343
05-25 14:07:36.443 17077 17201 D RNKeychainManager: Probe cipher storage: CipherStorageFacebookConceal
05-25 14:07:36.443 17077 17201 D RNKeychainManager: Probe cipher storage: CipherStorageKeystoreAesCbc
05-25 14:07:36.443 17077 17201 D RNKeychainManager: Probe cipher storage: CipherStorageKeystoreRsaEcb
05-25 14:07:36.443 17077 17201 D RNKeychainManager: Selected storage: CipherStorageKeystoreAesCbc
05-25 14:07:36.451 17077 17194 W unknown:ReactContext: initializeMessageQueueThreads() is called.
05-25 14:07:36.479 17077 17201 E KeyStore: generateKeyInternal failed on request -68
05-25 14:07:36.480 17077 17201 W CipherStorageBase: StrongBox security storage is not available.
05-25 14:07:36.480 17077 17201 W CipherStorageBase: android.security.keystore.StrongBoxUnavailableException: Failed to generate key
05-25 14:07:36.480 17077 17201 W CipherStorageBase: at android.security.keystore.AndroidKeyStoreKeyGeneratorSpi.engineGenerateKey(AndroidKeyStoreKeyGeneratorSpi.java:328)
05-25 14:07:36.480 17077 17201 W CipherStorageBase: at javax.crypto.KeyGenerator.generateKey(KeyGenerator.java:612)
05-25 14:07:36.480 17077 17201 W CipherStorageBase: at com.oblador.keychain.cipherStorage.CipherStorageKeystoreAesCbc.generateKey(CipherStorageKeystoreAesCbc.java:228)
05-25 14:07:36.480 17077 17201 W CipherStorageBase: at com.oblador.keychain.cipherStorage.CipherStorageBase.tryGenerateStrongBoxSecurityKey(CipherStorageBase.java:475)
05-25 14:07:36.480 17077 17201 W CipherStorageBase: at com.oblador.keychain.cipherStorage.CipherStorageBase.tryGenerateStrongBoxSecurityKey(CipherStorageBase.java:460)
05-25 14:07:36.480 17077 17201 W CipherStorageBase: at com.oblador.keychain.cipherStorage.CipherStorageBase.generateKeyAndStoreUnderAlias(CipherStorageBase.java:413)
05-25 14:07:36.480 17077 17201 W CipherStorageBase: at com.oblador.keychain.KeychainModule.internalWarmingBestCipher(KeychainModule.java:174)
05-25 14:07:36.480 17077 17201 W CipherStorageBase: at com.oblador.keychain.KeychainModule.$r8$lambda$DYujhqpjRgfFQ_gyuwMwyxxqDlk(Unknown Source:0)
05-25 14:07:36.480 17077 17201 W CipherStorageBase: at com.oblador.keychain.KeychainModule$$ExternalSyntheticLambda0.run(Unknown Source:2)
05-25 14:07:36.480 17077 17201 W CipherStorageBase: at java.lang.Thread.run(Thread.java:923)
05-25 14:07:36.480 17077 17201 W CipherStorageBase: Caused by: android.security.KeyStoreException: No StrongBox available
More data, please!
No response
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Dealing With Synchronization Issues in Tests | Detox
We are waiting too much - The test will appear to hang and fail with timeout. This happens because Detox thinks an asynchronous...
Read more >Detox - Test is stuck at device.launchApp in Android
I have followed the setup instructions in their README. ... #54058] Action dispatched too early, there is no session to use: HINT: Please ......
Read more >Detox: Writing Stable Test Suites | by Rotem Meidan - Medium
Now that we have a cleaner and more consistent testing environment to work with, let's take a look at some common issues. Issue:...
Read more >Modernizing Grand Central Dispatch Usage - WWDC17 - Videos
macOS 10.13 and iOS 11 have reinvented how Grand Central Dispatch and the ... Learn how to modernize your code to take advantage...
Read more >How to use Redux Persist in React Native - LogRocket Blog
Soon after, Redux Persist fetches your persisted state, overriding any initial ... To make changes to that object, we can dispatch actions.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
could the react native version be the issue?
I’ve retried following Setting Detox up as a compiling dependency
I’m able to build, but detox test fails to run the application and the emulator does nothing.
it looks like the app is crashing
I can close this since the root cause is known, but would it make sense to make a new issue or ask somewhere else