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

Error AppWillTerminateWithError on Android #3506

Closed
2 tasks done
anshulkapoor0018 opened this issue Jul 26, 2022 · 19 comments
Closed
2 tasks done

Error AppWillTerminateWithError on Android #3506

anshulkapoor0018 opened this issue Jul 26, 2022 · 19 comments

Comments

@anshulkapoor0018
Copy link

anshulkapoor0018 commented Jul 26, 2022

What happened?

After the upgrade to Detox 19.8.2 which includes RN 0.68 compliance.

  • Followed Setup Steps for Android (Detox is setup not as a compiling dependency)
  • Detox Builds correctly with the config Provided
  • Running the Test Command spawns the emulator and boots up the App but shows the error in Detox Logs just before the test is being run.

detox test -c android.debug --loglevel=trace --debug-synchronization 500 results in the respective error

09:23:55.792 detox[21946] INFO:  [test.js] DETOX_CONFIGURATION="android.debug" DETOX_DEBUG_SYNCHRONIZATION=500 DETOX_REPORT_SPECS=true DETOX_START_TIMESTAMP=1658852635785 DETOX_USE_CUSTOM_LOGGER=true jest --config e2e/config.json --testNamePattern '^((?!:ios:).)*$' --maxWorkers 1 e2e
09:24:00.483 detox[21947] INFO:  Detox e2e Testing is assigned to emulator-5554 (Pixel_4_XL_API_31)
09:26:53.376 detox[22009] DEBUG: [WSS_CONNECTION, #49197] registered a new connection.
09:26:53.397 detox[22009] TRACE: [WSS_GET_FROM, #49197] {"messageId":-10000,"type":"AppWillTerminateWithError","params":{"errorDetails":"@Thread detox.primary(55):\njava.lang.ClassCastException: android.app.Application cannot be cast to com.facebook.react.ReactApplication\n\tat com.wix.detox.reactnative.ReactNativeExtension.waitForRNBootstrap(ReactNativeExtension.kt:58)\n\tat com.wix.detox.DetoxMain.initReactNativeIfNeeded(DetoxMain.kt:102)\n\tat com.wix.detox.DetoxMain.doInit(DetoxMain.kt:34)\n\tat com.wix.detox.DetoxMain.access$doInit(DetoxMain.kt:15)\n\tat com.wix.detox.DetoxMain$initActionHandlers$$inlined$with$lambda$1.handle(DetoxMain.kt:52)\n\tat com.wix.detox.adapters.server.ActionsExecutor$executeAction$$inlined$let$lambda$1.run(DetoxActionsDispatcher.kt:64)\n\tat android.os.Handler.handleCallback(Handler.java:938)\n\tat android.os.Handler.dispatchMessage(Handler.java:99)\n\tat android.os.Looper.loopOnce(Looper.java:201)\n\tat android.os.Looper.loop(Looper.java:288)\n\tat com.wix.detox.adapters.server.ActionsExecutor$1.run(DetoxActionsDispatcher.kt:50)\n\tat java.lang.Thread.run(Thread.java:920)\n\nCheck device logs for full details!"}}
09:26:53.398 detox[22009] WARN:  [DetoxConnection.js/ERROR, #49197] 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]
}
09:24:03.582 detox[21947] INFO:  [APP_STATUS] The app seems to be idle`

What was the expected behaviour?

  • Tests Running Successfully

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: 19.8.2
React Native version: 0.68.0
Node version: 14.19.1
Device model: Pixel 4 XL API 31
Android version: 12
Test-runner (select one): jest-circus

Detox logs

Detox logs
14:12:16.057 detox[28923] INFO:  [test.js] DETOX_CONFIGURATION="android.debug" DETOX_DEBUG_SYNCHRONIZATION=500 DETOX_LOGLEVEL="trace" DETOX_RECORD_LOGS="all" DETOX_REPORT_SPECS=true DETOX_START_TIMESTAMP=1658869936050 DETOX_USE_CUSTOM_LOGGER=true jest --config e2e/config.json --testNamePattern '^((?!:ios:).)*$' --maxWorkers 1 e2e
jest-haste-map: Watchman crawl failed. Retrying once with node crawler.
  Usually this happens when watchman isn't running. Create an empty `.watchmanconfig` file in your project's root folder or initialize a git or hg repository in your project.
  Error: Watchman error: std::__1::system_error: open: /Users/user/Documents/icm-react-native/sdk/e2e: Operation not permitted. Make sure watchman is running for this project. See https://facebook.github.io/watchman/docs/troubleshooting.
14:12:17.160 detox[28924] 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: {
    '0': '.',
    '1': 'a',
    '2': 'r',
    '3': 't',
    '4': 'i',
    '5': 'f',
    '6': 'a',
    '7': 'c',
    '8': 't',
    '9': 's',
    '10': '/',
    rootDir: 'artifacts/android.debug.2022-07-26 21-12-16Z',
    plugins: {
      log: {
        enabled: true,
        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.debug.2022-07-26 21-12-16Z'
    }
  },
  behaviorConfig: {
    init: {
      reinstallApp: true,
      exposeGlobals: true
    },
    cleanup: {
      shutdownDevice: false
    },
    launchApp: 'auto'
  },
  cliConfig: {
    recordLogs: 'all',
    configuration: 'android.debug',
    debugSynchronization: 500,
    loglevel: 'trace',
    useCustomLogger: true
  },
  configurationName: 'android.debug',
  deviceConfig: {
    type: 'android.emulator',
    device: {
      avdName: 'Pixel_4_XL_API_31'
    }
  },
  runnerConfig: {
    testRunner: 'jest',
    runnerConfig: 'e2e/config.json',
    specs: 'e2e',
    skipLegacyWorkersInjection: false
  },
  sessionConfig: {
    autoStart: true,
    sessionId: '86596602-ba93-e40a-bb41-5c904d588574',
    debugSynchronization: 500
  }
}
14:12:17.165 detox[28924] DEBUG: [WSS_CREATE] Detox server listening on localhost:53238...
14:12:17.175 detox[28924] DEBUG: [WSS_CONNECTION, #53239] registered a new connection.
14:12:17.176 detox[28924] TRACE: [WS_OPEN] opened web socket to: ws://localhost:53238
14:12:17.178 detox[28924] TRACE: [WS_SEND] {"type":"login","params":{"sessionId":"86596602-ba93-e40a-bb41-5c904d588574","role":"tester"},"messageId":0}
14:12:17.180 detox[28924] TRACE: [WSS_GET_FROM, #53239] {"type":"login","params":{"sessionId":"86596602-ba93-e40a-bb41-5c904d588574","role":"tester"},"messageId":0}
14:12:17.181 detox[28924] TRACE: [SESSION_CREATED] created session 86596602-ba93-e40a-bb41-5c904d588574
14:12:17.181 detox[28924] TRACE: [WSS_SEND_TO, #tester] {"type":"loginSuccess","params":{"testerConnected":true,"appConnected":false},"messageId":0}
14:12:17.181 detox[28924] TRACE: [SESSION_JOINED] tester joined session 86596602-ba93-e40a-bb41-5c904d588574
14:12:17.182 detox[28924] TRACE: [WS_MESSAGE] {"type":"loginSuccess","params":{"testerConnected":true,"appConnected":false},"messageId":0}
 
14:12:17.233 detox[28924] DEBUG: [EXEC_CMD, #0] "/Users/user/Library/Android/sdk/emulator/emulator" -list-avds --verbose
14:12:17.259 detox[28924] TRACE: [EXEC_SUCCESS, #0] Pixel_2_API_29
Pixel_4_XL_API_30
Pixel_4_XL_API_31

14:12:17.261 detox[28924] DEBUG: [EXEC_CMD, #1] "/Users/user/Library/Android/sdk/emulator/emulator" -version 
14:12:17.449 detox[28924] TRACE: [EXEC_SUCCESS, #1] Android emulator version 31.2.8.0 (build_id 8143646) (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.


14:12:17.450 detox[28924] DEBUG: [EMU_BIN_VERSION_DETECT] Detected emulator binary version { major: 31, minor: 2, patch: 8, toString: [Function: toString] }
14:12:17.450 detox[28924] DEBUG: [ALLOCATE_DEVICE] Trying to allocate a device based on "Pixel_4_XL_API_31"
14:12:17.453 detox[28924] DEBUG: [EXEC_CMD, #2] "/Users/user/Library/Android/sdk/platform-tools/adb"  devices
14:12:17.476 detox[28924] DEBUG: [EXEC_SUCCESS, #2] List of devices attached


14:12:17.479 detox[28924] DEBUG: [ALLOCATE_DEVICE] Settled on emulator-15200
14:12:17.482 detox[28924] DEBUG: [SPAWN_CMD] /Users/user/Library/Android/sdk/emulator/emulator -verbose -no-audio -no-boot-anim -port 15200 @Pixel_4_XL_API_31

 RUNS  e2e/sdk.e2e.js
^C
AKAPOOR:sdk user$ 14:12:50.274 detox[28923] ERROR: [cli.js] Command failed: jest --config e2e/config.json --testNamePattern '^((?!:ios:).)*$' --maxWorkers 1 e2e

^C
AKAPOOR:sdk user$ 
AKAPOOR:sdk user$ 
AKAPOOR:sdk user$ detox test -c android.debug --loglevel=trace --debug-synchronization 500 --record-logs all
14:12:52.412 detox[28971] INFO:  [test.js] DETOX_CONFIGURATION="android.debug" DETOX_DEBUG_SYNCHRONIZATION=500 DETOX_LOGLEVEL="trace" DETOX_RECORD_LOGS="all" DETOX_REPORT_SPECS=true DETOX_START_TIMESTAMP=1658869972405 DETOX_USE_CUSTOM_LOGGER=true jest --config e2e/config.json --testNamePattern '^((?!:ios:).)*$' --maxWorkers 1 e2e
jest-haste-map: Watchman crawl failed. Retrying once with node crawler.
  Usually this happens when watchman isn't running. Create an empty `.watchmanconfig` file in your project's root folder or initialize a git or hg repository in your project.
  Error: Watchman error: std::__1::system_error: open: /Users/user/Documents/icm-react-native/sdk/e2e: Operation not permitted. Make sure watchman is running for this project. See https://facebook.github.io/watchman/docs/troubleshooting.
14:12:53.587 detox[28972] 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: {
    '0': '.',
    '1': 'a',
    '2': 'r',
    '3': 't',
    '4': 'i',
    '5': 'f',
    '6': 'a',
    '7': 'c',
    '8': 't',
    '9': 's',
    '10': '/',
    rootDir: 'artifacts/android.debug.2022-07-26 21-12-52Z',
    plugins: {
      log: {
        enabled: true,
        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.debug.2022-07-26 21-12-52Z'
    }
  },
  behaviorConfig: {
    init: {
      reinstallApp: true,
      exposeGlobals: true
    },
    cleanup: {
      shutdownDevice: false
    },
    launchApp: 'auto'
  },
  cliConfig: {
    recordLogs: 'all',
    configuration: 'android.debug',
    debugSynchronization: 500,
    loglevel: 'trace',
    useCustomLogger: true
  },
  configurationName: 'android.debug',
  deviceConfig: {
    type: 'android.emulator',
    device: {
      avdName: 'Pixel_4_XL_API_31'
    }
  },
  runnerConfig: {
    testRunner: 'jest',
    runnerConfig: 'e2e/config.json',
    specs: 'e2e',
    skipLegacyWorkersInjection: false
  },
  sessionConfig: {
    autoStart: true,
    sessionId: 'c68ef754-2389-b498-fa37-b5bc8e783a89',
    debugSynchronization: 500
  }
}
14:12:53.591 detox[28972] DEBUG: [WSS_CREATE] Detox server listening on localhost:53404...
14:12:53.602 detox[28972] DEBUG: [WSS_CONNECTION, #53405] registered a new connection.
14:12:53.603 detox[28972] TRACE: [WS_OPEN] opened web socket to: ws://localhost:53404
14:12:53.605 detox[28972] TRACE: [WS_SEND] {"type":"login","params":{"sessionId":"c68ef754-2389-b498-fa37-b5bc8e783a89","role":"tester"},"messageId":0}
14:12:53.607 detox[28972] TRACE: [WSS_GET_FROM, #53405] {"type":"login","params":{"sessionId":"c68ef754-2389-b498-fa37-b5bc8e783a89","role":"tester"},"messageId":0}
14:12:53.608 detox[28972] TRACE: [SESSION_CREATED] created session c68ef754-2389-b498-fa37-b5bc8e783a89
14:12:53.608 detox[28972] TRACE: [WSS_SEND_TO, #tester] {"type":"loginSuccess","params":{"testerConnected":true,"appConnected":false},"messageId":0}
14:12:53.608 detox[28972] TRACE: [SESSION_JOINED] tester joined session c68ef754-2389-b498-fa37-b5bc8e783a89
14:12:53.609 detox[28972] TRACE: [WS_MESSAGE] {"type":"loginSuccess","params":{"testerConnected":true,"appConnected":false},"messageId":0}
 
14:12:53.666 detox[28972] DEBUG: [EXEC_CMD, #0] "/Users/user/Library/Android/sdk/emulator/emulator" -list-avds --verbose
14:12:53.689 detox[28972] TRACE: [EXEC_SUCCESS, #0] Pixel_2_API_29
Pixel_4_XL_API_30
Pixel_4_XL_API_31

14:12:53.691 detox[28972] DEBUG: [EXEC_CMD, #1] "/Users/user/Library/Android/sdk/emulator/emulator" -version 
14:12:53.863 detox[28972] TRACE: [EXEC_SUCCESS, #1] Android emulator version 31.2.8.0 (build_id 8143646) (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.


14:12:53.864 detox[28972] DEBUG: [EMU_BIN_VERSION_DETECT] Detected emulator binary version { major: 31, minor: 2, patch: 8, toString: [Function: toString] }
14:12:53.865 detox[28972] DEBUG: [ALLOCATE_DEVICE] Trying to allocate a device based on "Pixel_4_XL_API_31"
14:12:53.868 detox[28972] DEBUG: [EXEC_CMD, #2] "/Users/user/Library/Android/sdk/platform-tools/adb"  devices
14:12:53.890 detox[28972] DEBUG: [EXEC_SUCCESS, #2] List of devices attached
emulator-15200  device


14:12:53.893 detox[28972] TRACE: [TELNET_CONNECTING] port: 15200, host: localhost
14:12:53.901 detox[28972] DEBUG: [DEVICE_LOOKUP] Found a matching & free device emulator-15200
14:12:53.902 detox[28972] DEBUG: [ALLOCATE_DEVICE] Settled on emulator-15200
14:12:53.903 detox[28972] DEBUG: [EXEC_CMD, #3] "/Users/user/Library/Android/sdk/platform-tools/adb" -s emulator-15200 shell "getprop dev.bootcomplete"
14:12:53.965 detox[28972] TRACE: [EXEC_SUCCESS, #3] 1

14:12:53.966 detox[28972] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onBootDevice({
  deviceId: 'emulator-15200',
  type: 'Pixel_4_XL_API_31',
  coldBoot: false
})
14:12:53.967 detox[28972] DEBUG: [EXEC_CMD, #4] "/Users/user/Library/Android/sdk/platform-tools/adb" -s emulator-15200 shell "getprop ro.build.version.sdk"
14:12:54.008 detox[28972] TRACE: [EXEC_SUCCESS, #4] 31

14:12:54.009 detox[28972] DEBUG: [EXEC_CMD, #5] "/Users/user/Library/Android/sdk/platform-tools/adb" -s emulator-15200 shell "settings put global animator_duration_scale 0"
14:12:54.071 detox[28972] TRACE: [EXEC_SUCCESS, #5] 
14:12:54.072 detox[28972] DEBUG: [EXEC_CMD, #6] "/Users/user/Library/Android/sdk/platform-tools/adb" -s emulator-15200 shell "settings put global window_animation_scale 0"
14:12:54.124 detox[28972] TRACE: [EXEC_SUCCESS, #6] 
14:12:54.125 detox[28972] DEBUG: [EXEC_CMD, #7] "/Users/user/Library/Android/sdk/platform-tools/adb" -s emulator-15200 shell "settings put global transition_animation_scale 0"
14:12:54.175 detox[28972] TRACE: [EXEC_SUCCESS, #7] 
14:12:54.176 detox[28972] DEBUG: [EXEC_CMD, #8] "/Users/user/Library/Android/sdk/platform-tools/adb" -s emulator-15200 shell "dumpsys power | grep \"^[ ]*m[UW].*=\""
14:12:54.349 detox[28972] TRACE: [EXEC_SUCCESS, #8]   mWakefulness=Awake
  mWakefulnessChanging=false
  mWakeLockSummary=0x1
  mWakeUpWhenPluggedOrUnpluggedConfig=false
  mWakeUpWhenPluggedOrUnpluggedInTheaterModeConfig=false
  mUserActivityTimeoutOverrideFromWindowManager=-1
  mUserInactiveOverrideFromWindowManager=false
  mUserId=0
  mWakeLockSummary=0x1
  mUserInteractionBackoffMillis=60000

14:12:54.362 detox[28972] DEBUG: [EXEC_CMD, #9] "/Users/user/Library/Android/sdk/build-tools/32.0.0/aapt" dump badging "/Users/user/Documents/icm-react-native/sdk/android/app/build/outputs/apk/debug/app-debug.apk"
14:12:54.382 detox[28972] TRACE: [EXEC_SUCCESS, #9] package: name='com.example.demointegratern' versionCode='1' versionName='0.1.0' compileSdkVersion='31' compileSdkVersionCodename='12'
sdkVersion:'29'
targetSdkVersion:'31'
uses-permission: name='android.permission.INTERNET'
uses-permission: name='android.permission.SYSTEM_ALERT_WINDOW'
uses-permission: name='android.permission.CAMERA'
uses-permission: name='android.permission.RECORD_AUDIO'
uses-permission: name='android.permission.READ_EXTERNAL_STORAGE'
uses-permission: name='android.permission.WRITE_EXTERNAL_STORAGE'
uses-permission: name='android.permission.USE_FINGERPRINT'
application-label:'ICM'
application-label-af:'ICM'
application-label-am:'ICM'
application-label-ar:'ICM'
application-label-as:'ICM'
application-label-az:'ICM'
application-label-be:'ICM'
application-label-bg:'ICM'
application-label-bn:'ICM'
application-label-bs:'ICM'
application-label-ca:'ICM'
application-label-cs:'ICM'
application-label-da:'ICM'
application-label-de:'ICM'
application-label-el:'ICM'
application-label-en-AU:'ICM'
application-label-en-CA:'ICM'
application-label-en-GB:'ICM'
application-label-en-IN:'ICM'
application-label-en-XC:'ICM'
application-label-es:'ICM'
application-label-es-419:'ICM'
application-label-es-US:'ICM'
application-label-et:'ICM'
application-label-eu:'ICM'
application-label-fa:'ICM'
application-label-fi:'ICM'
application-label-fr:'ICM'
application-label-fr-CA:'ICM'
application-label-gl:'ICM'
application-label-gu:'ICM'
application-label-hi:'ICM'
application-label-hr:'ICM'
application-label-hu:'ICM'
application-label-hy:'ICM'
application-label-in:'ICM'
application-label-is:'ICM'
application-label-it:'ICM'
application-label-iw:'ICM'
application-label-ja:'ICM'
application-label-ka:'ICM'
application-label-kk:'ICM'
application-label-km:'ICM'
application-label-kn:'ICM'
application-label-ko:'ICM'
application-label-ky:'ICM'
application-label-lo:'ICM'
application-label-lt:'ICM'
application-label-lv:'ICM'
application-label-mk:'ICM'
application-label-ml:'ICM'
application-label-mn:'ICM'
application-label-mr:'ICM'
application-label-ms:'ICM'
application-label-my:'ICM'
application-label-nb:'ICM'
application-label-ne:'ICM'
application-label-nl:'ICM'
application-label-or:'ICM'
application-label-pa:'ICM'
application-label-pl:'ICM'
application-label-pt:'ICM'
application-label-pt-BR:'ICM'
application-label-pt-PT:'ICM'
application-label-ro:'ICM'
application-label-ru:'ICM'
application-label-si:'ICM'
application-label-sk:'ICM'
application-label-sl:'ICM'
application-label-sq:'ICM'
application-label-sr:'ICM'
application-label-sr-Latn:'ICM'
application-label-sv:'ICM'
application-label-sw:'ICM'
application-label-ta:'ICM'
application-label-te:'ICM'
application-label-th:'ICM'
application-label-tl:'ICM'
application-label-tr:'ICM'
application-label-uk:'ICM'
application-label-ur:'ICM'
application-label-uz:'ICM'
application-label-vi:'ICM'
application-label-zh-CN:'ICM'
application-label-zh-HK:'ICM'
application-label-zh-TW:'ICM'
application-label-zu:'ICM'
application-icon-160:'res/mipmap-hdpi-v4/ic_launcher_logo.png'
application-icon-240:'res/mipmap-hdpi-v4/ic_launcher_logo.png'
application-icon-320:'res/mipmap-hdpi-v4/ic_launcher_logo.png'
application-icon-480:'res/mipmap-hdpi-v4/ic_launcher_logo.png'
application-icon-640:'res/mipmap-hdpi-v4/ic_launcher_logo.png'
application-icon-65534:'res/mipmap-hdpi-v4/ic_launcher_logo.png'
application: label='ICM' icon='res/mipmap-hdpi-v4/ic_launcher_logo.png'
application-debuggable
launchable-activity: name='com.example.demointegratern.MainActivity'  label='' 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.microphone'
  uses-implied-feature: name='android.hardware.microphone' reason='requested android.permission.RECORD_AUDIO permission'
main
other-activities
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-419' 'es-US' 'et' 'eu' 'fa' 'fi' 'fr' 'fr-CA' 'gl' 'gu' 'hi' 'hr' 'hu' 'hy' '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: '160' '240' '320' '480' '640' '65534'
native-code: 'arm64-v8a' 'armeabi-v7a' 'x86' 'x86_64'

14:12:54.397 detox[28972] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onBeforeTerminateApp({ deviceId: 'emulator-15200', bundleId: 'com.example.demointegratern' })
14:12:54.397 detox[28972] DEBUG: [EXEC_CMD, #10] "/Users/user/Library/Android/sdk/platform-tools/adb" -s emulator-15200 shell "am force-stop com.example.demointegratern"
14:12:54.611 detox[28972] TRACE: [EXEC_SUCCESS, #10] 
14:12:54.612 detox[28972] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onTerminateApp({ deviceId: 'emulator-15200', bundleId: 'com.example.demointegratern' })
14:12:54.613 detox[28972] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onBeforeUninstallApp({ deviceId: 'emulator-15200', bundleId: 'com.example.demointegratern' })
14:12:54.613 detox[28972] DEBUG: [EXEC_CMD, #11] "/Users/user/Library/Android/sdk/platform-tools/adb" -s emulator-15200 shell "pm list packages com.example.demointegratern"
14:12:54.866 detox[28972] TRACE: [EXEC_SUCCESS, #11] package:com.example.demointegratern
package:com.example.demointegratern.test

14:12:54.867 detox[28972] DEBUG: [EXEC_CMD, #12] "/Users/user/Library/Android/sdk/platform-tools/adb" -s emulator-15200 uninstall com.example.demointegratern
14:12:55.449 detox[28972] TRACE: [EXEC_SUCCESS, #12] Success

14:12:55.449 detox[28972] DEBUG: [EXEC_CMD, #13] "/Users/user/Library/Android/sdk/platform-tools/adb" -s emulator-15200 shell "pm list packages com.example.demointegratern.test"
14:12:55.522 detox[28972] TRACE: [EXEC_SUCCESS, #13] package:com.example.demointegratern.test

14:12:55.523 detox[28972] DEBUG: [EXEC_CMD, #14] "/Users/user/Library/Android/sdk/platform-tools/adb" -s emulator-15200 uninstall com.example.demointegratern.test
14:12:55.933 detox[28972] TRACE: [EXEC_SUCCESS, #14] Success

14:12:55.934 detox[28972] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onBeforeTerminateApp({ deviceId: 'emulator-15200', bundleId: 'com.example.demointegratern' })
14:12:55.934 detox[28972] DEBUG: [EXEC_CMD, #15] "/Users/user/Library/Android/sdk/platform-tools/adb" -s emulator-15200 shell "am force-stop com.example.demointegratern"
14:12:56.039 detox[28972] TRACE: [EXEC_SUCCESS, #15] 
14:12:56.039 detox[28972] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onTerminateApp({ deviceId: 'emulator-15200', bundleId: 'com.example.demointegratern' })
14:12:56.041 detox[28972] DEBUG: [EXEC_CMD, #16] "/Users/user/Library/Android/sdk/build-tools/32.0.0/aapt" dump xmlstrings "/Users/user/Documents/icm-react-native/sdk/android/app/build/outputs/apk/debug/app-debug.apk" AndroidManifest.xml
14:12:56.060 detox[28972] TRACE: [EXEC_SUCCESS, #16] String pool of 68 unique UTF-16 non-sorted strings, 68 entries and 0 styles using 3236 bytes:
String #0: theme
String #1: label
String #2: icon
String #3: name
String #4: debuggable
String #5: exported
String #6: authorities
String #7: launchMode
String #8: value
String #9: scheme
String #10: minSdkVersion
String #11: versionCode
String #12: versionName
String #13: targetSdkVersion
String #14: allowBackup
String #15: supportsRtl
String #16: autoRemoveFromRecents
String #17: extractNativeLibs
String #18: usesCleartextTraffic
String #19: networkSecurityConfig
String #20: roundIcon
String #21: compileSdkVersion
String #22: compileSdkVersionCodename
String #23: appComponentFactory
String #24: 0.1.0
String #25: 12
String #26: action
String #27: activity
String #28: android
String #29: android.intent.action.MAIN
String #30: android.intent.action.VIEW
String #31: android.intent.category.BROWSABLE
String #32: android.intent.category.DEFAULT
String #33: android.intent.category.LAUNCHER
String #34: android.permission.CAMERA
String #35: android.permission.INTERNET
String #36: android.permission.READ_EXTERNAL_STORAGE
String #37: android.permission.RECORD_AUDIO
String #38: android.permission.SYSTEM_ALERT_WINDOW
String #39: android.permission.USE_FINGERPRINT
String #40: android.permission.WRITE_EXTERNAL_STORAGE
String #41: android.support.customtabs.action.CustomTabsService
String #42: androidx.core.app.CoreComponentFactory
String #43: androidx.emoji2.text.EmojiCompatInitializer
String #44: androidx.lifecycle.ProcessLifecycleInitializer
String #45: androidx.startup
String #46: androidx.startup.InitializationProvider
String #47: application
String #48: category
String #49: com.billgo.icmsdk
String #50: com.example.demointegratern
String #51: com.example.demointegratern.MainActivity
String #52: com.example.demointegratern.androidx-startup
String #53: com.okta.oidc.OktaAuthenticationActivity
String #54: com.okta.oidc.OktaRedirectActivity
String #55: data
String #56: http://schemas.android.com/apk/res/android
String #57: intent
String #58: intent-filter
String #59: manifest
String #60: meta-data
String #61: package
String #62: platformBuildVersionCode
String #63: platformBuildVersionName
String #64: provider
String #65: queries
String #66: uses-permission
String #67: uses-sdk

14:12:56.061 detox[28972] DEBUG: [EXEC_CMD, #17] "/Users/user/Library/Android/sdk/build-tools/32.0.0/aapt" dump xmlstrings "/Users/user/Documents/icm-react-native/sdk/android/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk" AndroidManifest.xml
14:12:56.083 detox[28972] TRACE: [EXEC_SUCCESS, #17] String pool of 42 unique UTF-16 non-sorted strings, 42 entries and 0 styles using 2148 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: extractNativeLibs
String #11: compileSdkVersion
String #12: compileSdkVersionCodename
String #13: 12
String #14: Tests for com.example.demointegratern
String #15: action
String #16: activity
String #17: android
String #18: android.intent.action.MAIN
String #19: android.permission.REORDER_TASKS
String #20: android.test.runner
String #21: androidx.test.core.app.InstrumentationActivityInvoker$BootstrapActivity
String #22: androidx.test.core.app.InstrumentationActivityInvoker$EmptyActivity
String #23: androidx.test.core.app.InstrumentationActivityInvoker$EmptyFloatingActivity
String #24: androidx.test.orchestrator
String #25: androidx.test.runner.AndroidJUnitRunner
String #26: androidx.test.services
String #27: application
String #28: com.example.demointegratern
String #29: com.example.demointegratern.test
String #30: com.google.android.apps.common.testing.services
String #31: http://schemas.android.com/apk/res/android
String #32: instrumentation
String #33: intent-filter
String #34: manifest
String #35: package
String #36: platformBuildVersionCode
String #37: platformBuildVersionName
String #38: queries
String #39: uses-library
String #40: uses-permission
String #41: uses-sdk

14:12:56.085 detox[28972] DEBUG: [EXEC_CMD, #18] "/Users/user/Library/Android/sdk/platform-tools/adb" -s emulator-15200 shell "rm -fr /data/local/tmp/detox"
14:12:56.172 detox[28972] TRACE: [EXEC_SUCCESS, #18] 
14:12:56.173 detox[28972] DEBUG: [EXEC_CMD, #19] "/Users/user/Library/Android/sdk/platform-tools/adb" -s emulator-15200 shell "mkdir -p /data/local/tmp/detox"
14:12:56.243 detox[28972] TRACE: [EXEC_SUCCESS, #19] 
14:12:56.244 detox[28972] DEBUG: [EXEC_CMD, #20] "/Users/user/Library/Android/sdk/platform-tools/adb" -s emulator-15200 push "/Users/user/Documents/icm-react-native/sdk/android/app/build/outputs/apk/debug/app-debug.apk" "/data/local/tmp/detox/Application.apk"
14:12:57.061 detox[28972] TRACE: [EXEC_SUCCESS, #20] /Users/user/Documents/icm-react-native/sdk/android/app/build/outputs/apk/debug/app-debug.apk: 1 file pushed, 0 skipped. 157.4 MB/s (91015369 bytes in 0.552s)

14:12:57.066 detox[28972] DEBUG: [SPAWN_CMD, #21, cpid=29003] /Users/user/Library/Android/sdk/platform-tools/adb -s emulator-15200 shell pm install -r -g -t /data/local/tmp/detox/Application.apk
14:12:58.051 detox[28972] TRACE: [SPAWN_STDOUT, #21, cpid=29003] Success

14:12:58.053 detox[28972] DEBUG: [SPAWN_END, #21, cpid=29003] /Users/user/Library/Android/sdk/platform-tools/adb -s emulator-15200 shell pm install -r -g -t /data/local/tmp/detox/Application.apk exited with code #0
14:12:58.054 detox[28972] DEBUG: [EXEC_CMD, #22] "/Users/user/Library/Android/sdk/platform-tools/adb" -s emulator-15200 push "/Users/user/Documents/icm-react-native/sdk/android/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk" "/data/local/tmp/detox/Test.apk"
14:12:58.150 detox[28972] TRACE: [EXEC_SUCCESS, #22] /Users/user/Documents/icm-react-native/sdk/android/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk: 1 file pushed, 0 skipped. 137.2 MB/s (4666114 bytes in 0.032s)

14:12:58.158 detox[28972] DEBUG: [SPAWN_CMD, #23, cpid=29007] /Users/user/Library/Android/sdk/platform-tools/adb -s emulator-15200 shell pm install -r -g -t /data/local/tmp/detox/Test.apk
14:12:58.626 detox[28972] TRACE: [SPAWN_STDOUT, #23, cpid=29007] Success

14:12:58.674 detox[28972] DEBUG: [SPAWN_END, #23, cpid=29007] /Users/user/Library/Android/sdk/platform-tools/adb -s emulator-15200 shell pm install -r -g -t /data/local/tmp/detox/Test.apk exited with code #0
14:12:58.686 ROOT_DESCRIBE_BLOCK[28972] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onRunDescribeStart({ name: 'ROOT_DESCRIBE_BLOCK' })
14:12:58.688 Detox e2e Testing[28972] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onRunDescribeStart({ name: 'Detox e2e Testing' })
14:12:58.689 detox[28972] INFO:  Detox e2e Testing is assigned to emulator-15200 (Pixel_4_XL_API_31)
14:12:58.721 detox[28972] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onBeforeTerminateApp({ deviceId: 'emulator-15200', bundleId: 'com.example.demointegratern' })
14:12:58.722 detox[28972] DEBUG: [EXEC_CMD, #24] "/Users/user/Library/Android/sdk/platform-tools/adb" -s emulator-15200 shell "am force-stop com.example.demointegratern"
14:12:58.908 detox[28972] TRACE: [EXEC_SUCCESS, #24] 
14:12:58.908 detox[28972] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onTerminateApp({ deviceId: 'emulator-15200', bundleId: 'com.example.demointegratern' })
14:12:58.909 detox[28972] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onBeforeLaunchApp({
  deviceId: 'emulator-15200',
  bundleId: 'com.example.demointegratern',
  launchArgs: {
    detoxServer: 'ws://localhost:53404',
    detoxSessionId: 'c68ef754-2389-b498-fa37-b5bc8e783a89'
  }
})
14:12:58.909 detox[28972] DEBUG: [EXEC_CMD, #25] "/Users/user/Library/Android/sdk/platform-tools/adb" -s emulator-15200 shell "date +\"%m-%d %T.000\""
14:12:59.002 detox[28972] TRACE: [EXEC_SUCCESS, #25] 07-26 14:12:56.000

14:12:59.003 detox[28972] DEBUG: [EXEC_CMD, #26] "/Users/user/Library/Android/sdk/platform-tools/adb" -s emulator-15200 reverse tcp:53404 tcp:53404
14:12:59.028 detox[28972] TRACE: [EXEC_SUCCESS, #26] 53404

14:12:59.030 detox[28972] DEBUG: [EXEC_CMD, #27] "/Users/user/Library/Android/sdk/platform-tools/adb" -s emulator-15200 shell "pm list instrumentation"
14:12:59.104 detox[28972] TRACE: [EXEC_SUCCESS, #27] instrumentation:com.example.demointegratern.test/androidx.test.runner.AndroidJUnitRunner (target=com.example.demointegratern)

14:12:59.111 detox[28972] DEBUG: [SPAWN_CMD, #28, cpid=29012] /Users/user/Library/Android/sdk/platform-tools/adb -s emulator-15200 shell am instrument -w -r -e detoxServer ws://localhost:53404 -e detoxSessionId c68ef754-2389-b498-fa37-b5bc8e783a89 -e debug false com.example.demointegratern.test/androidx.test.runner.AndroidJUnitRunner
14:12:59.613 detox[28972] DEBUG: [EXEC_CMD, #29] "/Users/user/Library/Android/sdk/platform-tools/adb" -s emulator-15200 shell "ps | grep \"com\.example\.demointegratern$\""
14:13:00.409 detox[28972] TRACE: [SPAWN_STDOUT, #28, cpid=29012] INSTRUMENTATION_STATUS: class=com.example.demointegratern.DetoxTest
INSTRUMENTATION_STATUS: current=1
INSTRUMENTATION_STATUS: id=AndroidJUnitRunner
INSTRUMENTATION_STATUS: numtests=2
INSTRUMENTATION_STATUS: stream=
com.example.demointegratern.DetoxTest:
INSTRUMENTATION_STATUS: test=runDetoxTests
INSTRUMENTATION_STATUS_CODE: 1
14:13:00.410 detox[28972] TRACE: [SPAWN_STDOUT, #28, cpid=29012] 

14:13:00.858 detox[28972] TRACE: [EXEC_SUCCESS, #29] u0_a189      30366   345 13948024 141716 0                  0 R com.example.demointegratern

14:13:00.859 detox[30366] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onLaunchApp({
  deviceId: 'emulator-15200',
  bundleId: 'com.example.demointegratern',
  launchArgs: {
    detoxServer: 'ws://localhost:53404',
    detoxSessionId: 'c68ef754-2389-b498-fa37-b5bc8e783a89'
  },
  pid: 30366
})
14:13:00.860 detox[28972] TRACE: [ARTIFACT_START] starting ADBLogcatRecording
14:13:00.863 detox[28972] DEBUG: [SPAWN_CMD, #30, cpid=29015] /Users/user/Library/Android/sdk/platform-tools/adb -s emulator-15200 shell "logcat -T \"07-26 14:12:56.000\" --pid=30366 -f /sdcard/141253647_0.log"
14:13:01.164 detox[28972] DEBUG: [EXEC_CMD, #31] "/Users/user/Library/Android/sdk/platform-tools/adb" -s emulator-15200 shell du /sdcard/141253647_0.log
14:13:01.203 detox[28972] TRACE: [EXEC_SUCCESS, #31] 4  /sdcard/141253647_0.log

14:13:01.909 detox[28972] DEBUG: [WSS_CONNECTION, #53525] registered a new connection.
14:13:01.933 detox[28972] TRACE: [WSS_GET_FROM, #53525] {"messageId":-10000,"type":"AppWillTerminateWithError","params":{"errorDetails":"@Thread detox.primary(100):\njava.lang.ClassCastException: android.app.Application cannot be cast to com.facebook.react.ReactApplication\n\tat com.wix.detox.reactnative.ReactNativeExtension.waitForRNBootstrap(ReactNativeExtension.kt:58)\n\tat com.wix.detox.DetoxMain.initReactNativeIfNeeded(DetoxMain.kt:102)\n\tat com.wix.detox.DetoxMain.doInit(DetoxMain.kt:34)\n\tat com.wix.detox.DetoxMain.access$doInit(DetoxMain.kt:15)\n\tat com.wix.detox.DetoxMain$initActionHandlers$$inlined$with$lambda$1.handle(DetoxMain.kt:52)\n\tat com.wix.detox.adapters.server.ActionsExecutor$executeAction$$inlined$let$lambda$1.run(DetoxActionsDispatcher.kt:64)\n\tat android.os.Handler.handleCallback(Handler.java:938)\n\tat android.os.Handler.dispatchMessage(Handler.java:99)\n\tat android.os.Looper.loopOnce(Looper.java:201)\n\tat android.os.Looper.loop(Looper.java:288)\n\tat com.wix.detox.adapters.server.ActionsExecutor$1.run(DetoxActionsDispatcher.kt:50)\n\tat java.lang.Thread.run(Thread.java:920)\n\nCheck device logs for full details!"}}
14:13:01.933 detox[28972] WARN:  [DetoxConnection.js/ERROR, #53525] 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]
}
14:13:01.934 detox[28972] TRACE: [WSS_GET_FROM, #53525] {"messageId":0,"type":"login","params":{"role":"app","sessionId":"c68ef754-2389-b498-fa37-b5bc8e783a89"}}
14:13:01.934 detox[28972] TRACE: [WSS_SEND_TO, #app] {"messageId":0,"type":"loginSuccess","params":{"testerConnected":true,"appConnected":true}}
14:13:01.934 detox[28972] TRACE: [SESSION_JOINED] app joined session c68ef754-2389-b498-fa37-b5bc8e783a89
14:13:01.934 detox[28972] TRACE: [WSS_SEND_TO, #tester] {"type":"appConnected"}
14:13:01.935 detox[28972] TRACE: [WS_MESSAGE] {"type":"appConnected"}
 
14:13:01.936 detox[28972] TRACE: [WS_SEND] {"type":"isReady","params":{},"messageId":-1000}
14:13:01.937 detox[28972] TRACE: [WSS_GET_FROM, #tester] {"type":"isReady","params":{},"messageId":-1000}
14:13:01.937 detox[28972] TRACE: [WSS_SEND_TO, #app] {"type":"isReady","params":{},"messageId":-1000}
14:13:02.437 detox[28972] TRACE: [WS_SEND] {"type":"currentStatus","params":{},"messageId":1}
14:13:02.438 detox[28972] TRACE: [WSS_GET_FROM, #tester] {"type":"currentStatus","params":{},"messageId":1}
14:13:02.438 detox[28972] TRACE: [WSS_SEND_TO, #app] {"type":"currentStatus","params":{},"messageId":1}
14:13:02.457 detox[28972] TRACE: [WSS_GET_FROM, #app] {"messageId":1,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}}
14:13:02.458 detox[28972] TRACE: [WSS_SEND_TO, #tester] {"messageId":1,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}}
14:13:02.458 detox[28972] TRACE: [WS_MESSAGE] {"messageId":1,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}}
 
14:13:02.461 detox[28972] INFO:  [APP_STATUS] The app seems to be idle
14:13:02.962 detox[28972] TRACE: [WS_SEND] {"type":"currentStatus","params":{},"messageId":2}
14:13:02.963 detox[28972] TRACE: [WSS_GET_FROM, #tester] {"type":"currentStatus","params":{},"messageId":2}
14:13:02.963 detox[28972] TRACE: [WSS_SEND_TO, #app] {"type":"currentStatus","params":{},"messageId":2}
14:13:02.973 detox[28972] TRACE: [WSS_GET_FROM, #app] {"messageId":2,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}}
14:13:02.973 detox[28972] TRACE: [WSS_SEND_TO, #tester] {"messageId":2,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}}
14:13:02.973 detox[28972] TRACE: [WS_MESSAGE] {"messageId":2,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}}

Device logs

Device logs
WARNING | unexpected system image feature string, emulator might not function correctly, please try updating the emulator.
WARNING | cannot add library /Users/anshulkapoor/Library/Android/sdk/emulator/qemu/darwin-x86_64/lib64/vulkan/libvulkan.dylib: failed
VERBOSE | autoconfig: -skin pixel_4_xl
VERBOSE | autoconfig: -skindir /Users/anshulkapoor/Library/Android/sdk/skins/
VERBOSE | autoconfig: -kernel /Users/anshulkapoor/Library/Android/sdk/system-images/android-31/google_apis/x86_64//kernel-ranchu
VERBOSE | Target arch = 'x86_64'
VERBOSE | Auto-detect: Kernel image requires new device naming scheme.
VERBOSE | Auto-detect: Kernel does not support YAFFS2 partitions.
VERBOSE | autoconfig: -ramdisk /Users/anshulkapoor/Library/Android/sdk/system-images/android-31/google_apis/x86_64//ramdisk.img
VERBOSE | Using initial system image: /Users/anshulkapoor/Library/Android/sdk/system-images/android-31/google_apis/x86_64//system.img
VERBOSE | Using initial vendor image: /Users/anshulkapoor/Library/Android/sdk/system-images/android-31/google_apis/x86_64//vendor.img
VERBOSE | autoconfig: -data /Users/anshulkapoor/.android/avd/Pixel_4_XL_API_31.avd/userdata-qemu.img
VERBOSE | autoconfig: -initdata /Users/anshulkapoor/.android/avd/Pixel_4_XL_API_31.avd/userdata.img
VERBOSE | autoconfig: -cache /Users/anshulkapoor/.android/avd/Pixel_4_XL_API_31.avd/cache.img
VERBOSE | autoconfig: -sdcard /Users/anshulkapoor/.android/avd/Pixel_4_XL_API_31.avd/sdcard.img
VERBOSE | Increasing RAM size to 2048MB
VERBOSE | VM heap size 256MB is below hardware specified minimum of 576MB,setting it to that value
VERBOSE | System image is read only
VERBOSE | Found 1 DNS servers:
VERBOSE | 	100.64.0.1
VERBOSE | Unexpected feature list:
VERBOSE | Vulkan
VERBOSE | trying to load skin file '/Users/anshulkapoor/Library/Android/sdk/skins//pixel_4_xl/layout'
VERBOSE | Requested console port 15200: Inferring adb port 15201.
VERBOSE | CPU Acceleration: working
VERBOSE | CPU Acceleration status: HAXM version 7.6.5 (4) is installed and usable.
VERBOSE | handleCpuAcceleration: feature check for hvf
VERBOSE | Bluetooth requested by guest
VERBOSE | started modem simulator host server at port: 53246
VERBOSE | GPU emulation enabled using 'host' mode
VERBOSE | Initializing hardware OpenGLES emulation support
VERBOSE | create display 0
VERBOSE | setDisplayPose 0 x 0 y 0 w 1440 h 3040 dpi 0
INFO    | configAndStartRenderer: setting vsync to 60 hz
INFO    | Sending adb public key [key]
INFO    | added library /Users/anshulkapoor/Library/Android/sdk/emulator/lib64/vulkan/libvulkan.dylib
VERBOSE | Found 1 DNS servers:
VERBOSE | 	100.64.0.1
INFO    | Content of hardware configuration file:
INFO    | 	hw.cpu.arch = x86_64
INFO    | 	hw.cpu.ncore = 4
INFO    | 	hw.ramSize = 2048
INFO    | 	hw.screen = multi-touch
INFO    | 	hw.mainKeys = false
INFO    | 	hw.trackBall = false
INFO    | 	hw.keyboard = true
INFO    | 	hw.keyboard.lid = false
INFO    | 	hw.keyboard.charmap = qwerty2
INFO    | 	hw.dPad = false
INFO    | 	hw.rotaryInput = false
INFO    | 	hw.gsmModem = true
INFO    | 	hw.gps = true
INFO    | 	hw.battery = true
INFO    | 	hw.accelerometer = true
INFO    | 	hw.gyroscope = true
INFO    | 	hw.audioInput = true
INFO    | 	hw.audioOutput = true
INFO    | 	hw.sdCard = true
INFO    | 	hw.sdCard.path = /Users/anshulkapoor/.android/avd/Pixel_4_XL_API_31.avd/sdcard.img
INFO    | 	disk.cachePartition = true
INFO    | 	disk.cachePartition.path = /Users/anshulkapoor/.android/avd/Pixel_4_XL_API_31.avd/cache.img
INFO    | 	disk.cachePartition.size = 66m
INFO    | 	test.quitAfterBootTimeOut = -1
INFO    | 	test.delayAdbTillBootComplete = 0
INFO    | 	test.monitorAdb = 0
INFO    | 	hw.lcd.width = 1440
INFO    | 	hw.lcd.height = 3040
INFO    | 	hw.lcd.depth = 16
INFO    | 	hw.lcd.density = 560
INFO    | 	hw.lcd.backlight = true
INFO    | 	hw.lcd.vsync = 60
INFO    | 	hw.gltransport = pipe
INFO    | 	hw.gltransport.asg.writeBufferSize = 1048576
INFO    | 	hw.gltransport.asg.writeStepSize = 4096
INFO    | 	hw.gltransport.asg.dataRingSize = 32768
INFO    | 	hw.gltransport.drawFlushInterval = 800
INFO    | 	hw.displayRegion.0.1.xOffset = -1
INFO    | 	hw.displayRegion.0.1.yOffset = -1
INFO    | 	hw.displayRegion.0.1.width = 0
INFO    | 	hw.displayRegion.0.1.height = 0
INFO    | 	hw.displayRegion.0.2.xOffset = -1
INFO    | 	hw.displayRegion.0.2.yOffset = -1
INFO    | 	hw.displayRegion.0.2.width = 0
INFO    | 	hw.displayRegion.0.2.height = 0
INFO    | 	hw.displayRegion.0.3.xOffset = -1
INFO    | 	hw.displayRegion.0.3.yOffset = -1
INFO    | 	hw.displayRegion.0.3.width = 0
INFO    | 	hw.displayRegion.0.3.height = 0
INFO    | 	hw.display1.width = 0
INFO    | 	hw.display1.height = 0
INFO    | 	hw.display1.density = 0
INFO    | 	hw.display1.xOffset = -1
INFO    | 	hw.display1.yOffset = -1
INFO    | 	hw.display1.flag = 0
INFO    | 	hw.display2.width = 0
INFO    | 	hw.display2.height = 0
INFO    | 	hw.display2.density = 0
INFO    | 	hw.display2.xOffset = -1
INFO    | 	hw.display2.yOffset = -1
INFO    | 	hw.display2.flag = 0
INFO    | 	hw.display3.width = 0
INFO    | 	hw.display3.height = 0
INFO    | 	hw.display3.density = 0
INFO    | 	hw.display3.xOffset = -1
INFO    | 	hw.display3.yOffset = -1
INFO    | 	hw.display3.flag = 0
INFO    | 	hw.gpu.enabled = true
INFO    | 	hw.gpu.mode = host
INFO    | 	hw.initialOrientation = Portrait
INFO    | 	hw.camera.back = virtualscene
INFO    | 	hw.camera.front = emulated
INFO    | 	vm.heapSize = 576
INFO    | 	hw.sensors.light = true
INFO    | 	hw.sensors.pressure = true
INFO    | 	hw.sensors.humidity = true
INFO    | 	hw.sensors.proximity = true
INFO    | 	hw.sensors.magnetic_field = true
INFO    | 	hw.sensors.magnetic_field_uncalibrated = true
INFO    | 	hw.sensors.gyroscope_uncalibrated = true
INFO    | 	hw.sensors.orientation = true
INFO    | 	hw.sensors.temperature = true
INFO    | 	hw.sensors.rgbclight = false
INFO    | 	hw.sensor.hinge = false
INFO    | 	hw.sensor.hinge.count = 0
INFO    | 	hw.sensor.hinge.type = 0
INFO    | 	hw.sensor.hinge.sub_type = 0
INFO    | 	hw.sensor.hinge.fold_to_displayRegion.0.1_at_posture = 1
INFO    | 	hw.sensor.roll = false
INFO    | 	hw.sensor.roll.count = 0
INFO    | 	hw.sensor.roll.resize_to_displayRegion.0.1_at_posture = 6
INFO    | 	hw.sensor.roll.resize_to_displayRegion.0.2_at_posture = 6
INFO    | 	hw.sensor.roll.resize_to_displayRegion.0.3_at_posture = 6
INFO    | 	hw.sensors.heart_rate = false
INFO    | 	hw.sensors.wrist_tilt = false
INFO    | 	hw.useext4 = true
INFO    | 	hw.arc = false
INFO    | 	hw.arc.autologin = false
INFO    | 	hw.device.name = pixel_4_xl
INFO    | 	kernel.path = /Users/anshulkapoor/Library/Android/sdk/system-images/android-31/google_apis/x86_64//kernel-ranchu
INFO    | 	kernel.newDeviceNaming = yes
INFO    | 	kernel.supportsYaffs2 = no
INFO    | 	disk.ramdisk.path = /Users/anshulkapoor/Library/Android/sdk/system-images/android-31/google_apis/x86_64//ramdisk.img
INFO    | 	disk.systemPartition.initPath = /Users/anshulkapoor/Library/Android/sdk/system-images/android-31/google_apis/x86_64//system.img
INFO    | 	disk.systemPartition.size = 4107m
INFO    | 	disk.vendorPartition.initPath = /Users/anshulkapoor/Library/Android/sdk/system-images/android-31/google_apis/x86_64//vendor.img
INFO    | 	disk.vendorPartition.size = 800m
INFO    | 	disk.dataPartition.path = /Users/anshulkapoor/.android/avd/Pixel_4_XL_API_31.avd/userdata-qemu.img
INFO    | 	disk.dataPartition.size = 6g
INFO    | 	disk.encryptionKeyPartition.path = /Users/anshulkapoor/.android/avd/Pixel_4_XL_API_31.avd/encryptionkey.img
INFO    | 	PlayStore.enabled = false
INFO    | 	avd.name = Pixel_4_XL_API_31
INFO    | 	avd.id = Pixel_4_XL_API_31
INFO    | 	fastboot.forceColdBoot = false
INFO    | 	android.sdk.root = /Users/anshulkapoor/Library/Android/sdk
INFO    | 	android.avd.home = /Users/anshulkapoor/.android/avd
INFO    | .
INFO    | QEMU options list:
INFO    | 	 argv[00] = "/Users/anshulkapoor/Library/Android/sdk/emulator/qemu/darwin-x86_64/qemu-system-x86_64"
INFO    | 	 argv[01] = "-dns-server"
INFO    | 	 argv[02] = "100.64.0.1"
INFO    | 	 argv[03] = "-no-audio"
INFO    | 	 argv[04] = "-mem-path"
INFO    | 	 argv[05] = "/Users/anshulkapoor/.android/avd/Pixel_4_XL_API_31.avd/snapshots/default_boot/ram.img"
INFO    | 	 argv[06] = "-mem-file-shared"
INFO    | 	 argv[07] = "-serial"
INFO    | 	 argv[08] = "null"
INFO    | 	 argv[09] = "-android-ports"
INFO    | 	 argv[10] = "15200,15201"
INFO    | 	 argv[11] = "-device"
INFO    | 	 argv[12] = "goldfish_pstore,addr=0xff018000,size=0x10000,file=/Users/anshulkapoor/.android/avd/Pixel_4_XL_API_31.avd/data/misc/pstore/pstore.bin"
INFO    | 	 argv[13] = "-cpu"
INFO    | 	 argv[14] = "android64"
INFO    | 	 argv[15] = "-enable-hvf"
INFO    | 	 argv[16] = "-smp"
INFO    | 	 argv[17] = "cores=4"
INFO    | 	 argv[18] = "-m"
INFO    | 	 argv[19] = "2048"
INFO    | 	 argv[20] = "-lcd-density"
INFO    | 	 argv[21] = "560"
INFO    | 	 argv[22] = "-nodefaults"
INFO    | 	 argv[23] = "-kernel"
INFO    | 	 argv[24] = "/Users/anshulkapoor/Library/Android/sdk/system-images/android-31/google_apis/x86_64//kernel-ranchu"
INFO    | 	 argv[25] = "-initrd"
INFO    | 	 argv[26] = "/Users/anshulkapoor/.android/avd/Pixel_4_XL_API_31.avd/initrd"
INFO    | 	 argv[27] = "-drive"
INFO    | 	 argv[28] = "if=none,index=0,id=system,if=none,file=/Users/anshulkapoor/Library/Android/sdk/system-images/android-31/google_apis/x86_64//system.img,read-only"
INFO    | 	 argv[29] = "-device"
INFO    | 	 argv[30] = "virtio-blk-pci,drive=system,modern-pio-notify"
INFO    | 	 argv[31] = "-drive"
INFO    | 	 argv[32] = "if=none,index=1,id=cache,if=none,file=/Users/anshulkapoor/.android/avd/Pixel_4_XL_API_31.avd/cache.img.qcow2,overlap-check=none,cache=unsafe,l2-cache-size=1048576"
INFO    | 	 argv[33] = "-device"
INFO    | 	 argv[34] = "virtio-blk-pci,drive=cache,modern-pio-notify"
INFO    | 	 argv[35] = "-drive"
INFO    | 	 argv[36] = "if=none,index=2,id=userdata,if=none,file=/Users/anshulkapoor/.android/avd/Pixel_4_XL_API_31.avd/userdata-qemu.img.qcow2,overlap-check=none,cache=unsafe,l2-cache-size=1048576"
INFO    | 	 argv[37] = "-device"
INFO    | 	 argv[38] = "virtio-blk-pci,drive=userdata,modern-pio-notify"
INFO    | 	 argv[39] = "-drive"
INFO    | 	 argv[40] = "if=none,index=3,id=encrypt,if=none,file=/Users/anshulkapoor/.android/avd/Pixel_4_XL_API_31.avd/encryptionkey.img.qcow2,overlap-check=none,cache=unsafe,l2-cache-size=1048576"
INFO    | 	 argv[41] = "-device"
INFO    | 	 argv[42] = "virtio-blk-pci,drive=encrypt,modern-pio-notify"
INFO    | 	 argv[43] = "-drive"
INFO    | 	 argv[44] = "if=none,index=4,id=vendor,if=none,file=/Users/anshulkapoor/Library/Android/sdk/system-images/android-31/google_apis/x86_64//vendor.img,read-only"
INFO    | 	 argv[45] = "-device"
INFO    | 	 argv[46] = "virtio-blk-pci,drive=vendor,modern-pio-notify"
INFO    | 	 argv[47] = "-drive"
INFO    | 	 argv[48] = "if=none,index=5,id=sdcard,if=none,file=/Users/anshulkapoor/.android/avd/Pixel_4_XL_API_31.avd/sdcard.img.qcow2,overlap-check=none,cache=unsafe,l2-cache-size=1048576"
INFO    | 	 argv[49] = "-device"
INFO    | 	 argv[50] = "virtio-blk-pci,drive=sdcard,modern-pio-notify"
INFO    | 	 argv[51] = "-netdev"
INFO    | 	 argv[52] = "user,id=mynet"
INFO    | 	 argv[53] = "-device"
INFO    | 	 argv[54] = "virtio-net-pci,netdev=mynet"
INFO    | 	 argv[55] = "-chardev"
INFO    | 	 argv[56] = "null,id=forhvc0"
INFO    | 	 argv[57] = "-chardev"
INFO    | 	 argv[58] = "null,id=forhvc1"
INFO    | 	 argv[59] = "-device"
INFO    | 	 argv[60] = "virtio-serial-pci,ioeventfd=off"
INFO    | 	 argv[61] = "-device"
INFO    | 	 argv[62] = "virtconsole,chardev=forhvc0"
INFO    | 	 argv[63] = "-device"
INFO    | 	 argv[64] = "virtconsole,chardev=forhvc1"
INFO    | 	 argv[65] = "-chardev"
INFO    | 	 argv[66] = "rootcanal,id=rootcanal"
INFO    | 	 argv[67] = "-device"
INFO    | 	 argv[68] = "virtserialport,chardev=rootcanal,name=bluetooth"
INFO    | 	 argv[69] = "-device"
INFO    | 	 argv[70] = "virtio-serial,ioeventfd=off"
INFO    | 	 argv[71] = "-chardev"
INFO    | 	 argv[72] = "socket,port=53245,host=::1,nowait,nodelay,ipv6,id=modem"
INFO    | 	 argv[73] = "-device"
INFO    | 	 argv[74] = "virtserialport,chardev=modem,name=modem"
INFO    | 	 argv[75] = "-device"
INFO    | 	 argv[76] = "virtio-rng-pci"
INFO    | 	 argv[77] = "-show-cursor"
INFO    | 	 argv[78] = "-device"
INFO    | 	 argv[79] = "virtio_input_multi_touch_pci_1"
INFO    | 	 argv[80] = "-device"
INFO    | 	 argv[81] = "virtio_input_multi_touch_pci_2"
INFO    | 	 argv[82] = "-device"
INFO    | 	 argv[83] = "virtio_input_multi_touch_pci_3"
INFO    | 	 argv[84] = "-device"
INFO    | 	 argv[85] = "virtio_input_multi_touch_pci_4"
INFO    | 	 argv[86] = "-device"
INFO    | 	 argv[87] = "virtio_input_multi_touch_pci_5"
INFO    | 	 argv[88] = "-device"
INFO    | 	 argv[89] = "virtio_input_multi_touch_pci_6"
INFO    | 	 argv[90] = "-device"
INFO    | 	 argv[91] = "virtio_input_multi_touch_pci_7"
INFO    | 	 argv[92] = "-device"
INFO    | 	 argv[93] = "virtio_input_multi_touch_pci_8"
INFO    | 	 argv[94] = "-device"
INFO    | 	 argv[95] = "virtio_input_multi_touch_pci_9"
INFO    | 	 argv[96] = "-device"
INFO    | 	 argv[97] = "virtio_input_multi_touch_pci_10"
INFO    | 	 argv[98] = "-device"
INFO    | 	 argv[99] = "virtio_input_multi_touch_pci_11"
INFO    | 	 argv[100] = "-device"
INFO    | 	 argv[101] = "virtio-keyboard-pci"
INFO    | 	 argv[102] = "-netdev"
INFO    | 	 argv[103] = "user,id=virtio-wifi,dhcpstart=10.0.2.16"
INFO    | 	 argv[104] = "-device"
INFO    | 	 argv[105] = "virtio-wifi-pci,netdev=virtio-wifi"
INFO    | 	 argv[106] = "-device"
INFO    | 	 argv[107] = "virtio-vsock-pci,guest-cid=77"
INFO    | 	 argv[108] = "-L"
INFO    | 	 argv[109] = "/Users/anshulkapoor/Library/Android/sdk/emulator/lib/pc-bios"
INFO    | 	 argv[110] = "-soundhw"
INFO    | 	 argv[111] = "hda"
INFO    | 	 argv[112] = "-vga"
INFO    | 	 argv[113] = "none"
INFO    | 	 argv[114] = "-append"
INFO    | 	 argv[115] = "no_timer_check clocksource=pit console=0 cma=324M@0-4G loop.max_part=7 ramoops.mem_address=0xff018000 ramoops.mem_size=0x10000 memmap=0x10000$0xff018000 printk.devkmsg=on bootconfig"
INFO    | 	 argv[116] = "-android-hw"
INFO    | 	 argv[117] = "/Users/anshulkapoor/.android/avd/Pixel_4_XL_API_31.avd/hardware-qemu.ini"
INFO    | Concatenated QEMU options: /Users/anshulkapoor/Library/Android/sdk/emulator/qemu/darwin-x86_64/qemu-system-x86_64 -dns-server 100.64.0.1 -no-audio -mem-path /Users/anshulkapoor/.android/avd/Pixel_4_XL_API_31.avd/snapshots/default_boot/ram.img -mem-file-shared -serial null -android-ports 15200,15201 -device goldfish_pstore,addr=0xff018000,size=0x10000,file=/Users/anshulkapoor/.android/avd/Pixel_4_XL_API_31.avd/data/misc/pstore/pstore.bin -cpu android64 -enable-hvf -smp cores=4 -m 2048 -lcd-density 560 -nodefaults -kernel /Users/anshulkapoor/Library/Android/sdk/system-images/android-31/google_apis/x86_64//kernel-ranchu -initrd /Users/anshulkapoor/.android/avd/Pixel_4_XL_API_31.avd/initrd -drive if=none,index=0,id=system,if=none,file=/Users/anshulkapoor/Library/Android/sdk/system-images/android-31/google_apis/x86_64//system.img,read-only -device virtio-blk-pci,drive=system,modern-pio-notify -drive if=none,index=1,id=cache,if=none,file=/Users/anshulkapoor/.android/avd/Pixel_4_XL_API_31.avd/cache.img.qcow2,overlap-check=none,cache=unsafe,l2-cache-size=1048576 -device virtio-blk-pci,drive=cache,modern-pio-notify -drive if=none,index=2,id=userdata,if=none,file=/Users/anshulkapoor/.android/avd/Pixel_4_XL_API_31.avd/userdata-qemu.img.qcow2,overlap-check=none,cache=unsafe,l2-cache-size=1048576 -device virtio-blk-pci,drive=userdata,modern-pio-notify -drive if=none,index=3,id=encrypt,if=none,file=/Users/anshulkapoor/.android/avd/Pixel_4_XL_API_31.avd/encryptionkey.img.qcow2,overlap-check=none,cache=unsafe,l2-cache-size=1048576 -device virtio-blk-pci,drive=encrypt,modern-pio-notify -drive if=none,index=4,id=vendor,if=none,file=/Users/anshulkapoor/Library/Android/sdk/system-images/android-31/google_apis/x86_64//vendor.img,read-only -device virtio-blk-pci,drive=vendor,modern-pio-notify -drive if=none,index=5,id=sdcard,if=none,file=/Users/anshulkapoor/.android/avd/Pixel_4_XL_API_31.avd/sdcard.img.qcow2,overlap-check=none,cache=unsafe,l2-cache-size=1048576 -device virtio-blk-pci,drive=sdcard,modern-pio-notify -netdev user,id=mynet -device virtio-net-pci,netdev=mynet -chardev null,id=forhvc0 -chardev null,id=forhvc1 -device virtio-serial-pci,ioeventfd=off -device virtconsole,chardev=forhvc0 -device virtconsole,chardev=forhvc1 -chardev rootcanal,id=rootcanal -device virtserialport,chardev=rootcanal,name=bluetooth -device virtio-serial,ioeventfd=off -chardev socket,port=53245,host=::1,nowait,nodelay,ipv6,id=modem -device virtserialport,chardev=modem,name=modem -device virtio-rng-pci -show-cursor -device virtio_input_multi_touch_pci_1 -device virtio_input_multi_touch_pci_2 -device virtio_input_multi_touch_pci_3 -device virtio_input_multi_touch_pci_4 -device virtio_input_multi_touch_pci_5 -device virtio_input_multi_touch_pci_6 -device virtio_input_multi_touch_pci_7 -device virtio_input_multi_touch_pci_8 -device virtio_input_multi_touch_pci_9 -device virtio_input_multi_touch_pci_10 -device virtio_input_multi_touch_pci_11 -device virtio-keyboard-pci -netdev user,id=virtio-wifi,dhcpstart=10.0.2.16 -device virtio-wifi-pci,netdev=virtio-wifi -device virtio-vsock-pci,guest-cid=77 -L /Users/anshulkapoor/Library/Android/sdk/emulator/lib/pc-bios -soundhw hda -vga none -append 'no_timer_check clocksource=pit console=0 cma=324M@0-4G loop.max_part=7 ramoops.mem_address=0xff018000 ramoops.mem_size=0x10000 memmap=0x10000$0xff018000 printk.devkmsg=on bootconfig' -android-hw /Users/anshulkapoor/.android/avd/Pixel_4_XL_API_31.avd/hardware-qemu.ini
VERBOSE | Starting hostapd main loop.
VERBOSE | Android qemu version 31.2.8.0 (build_id 8143646) (CL:N/A)
VERBOSE | Starting QEMU main loop
VERBOSE | registered 'boot-properties' qemud service
VERBOSE | Adding boot property: 'ro.opengles.version' = '196608'
VERBOSE | Adding boot property: 'qemu.sf.fake_camera' = 'front'
VERBOSE | Adding boot property: 'qemu.adb.secure' = '1'
VERBOSE | Adding boot property: 'dalvik.vm.heapsize' = '576m'
VERBOSE | Adding boot property: 'qemu.hw.mainkeys' = '0'
VERBOSE | Adding boot property: 'qemu.sf.lcd_density' = '560'
INFO    | Rootcanal has  been activated.
VERBOSE | goldfish_events.have-dpad: false
VERBOSE | goldfish_events.have-trackball: false
VERBOSE | goldfish_events.have-camera: true
VERBOSE | goldfish_events.have-keyboard: false
VERBOSE | goldfish_events.have-lidswitch: false
VERBOSE | goldfish_events.have-tabletmode: false
VERBOSE | goldfish_events.have-touch: false
VERBOSE | goldfish_events.have-multitouch: false
VERBOSE | Adding boot property: 'net.wifi_mac_prefix' = '15200'
WARNING | Requested adb port (15201) is outside the recommended range [5555,5586]. ADB may not function properly for the emulator. See -help-port for details.
VERBOSE | Not using any http proxy
VERBOSE | Adding boot property: 'qemu.timezone' = 'America/Los_Angeles'
VERBOSE | android_hw_fingerprint_init: fingerprint qemud listen service initialized
VERBOSE | emulator_window_fb_rotate
VERBOSE | config multidisplay with config.ini 0x0 0x0 0x0
VERBOSE | No acpi ini file provided, using default
VERBOSE | OpenGL Vendor=[Google (ATI Technologies Inc.)]
VERBOSE | OpenGL Renderer=[Android Emulator OpenGL ES Translator (AMD Radeon Pro 5300M OpenGL Engine)]
VERBOSE | OpenGL Version=[OpenGL ES 3.0 (4.1 ATI-4.8.54)]
VERBOSE | Adding boot property: 'ro.opengles.version' = '196608'
VERBOSE | Adding boot property: 'qemu.sf.fake_camera' = 'front'
VERBOSE | Adding boot property: 'qemu.adb.secure' = '1'
VERBOSE | Adding boot property: 'dalvik.vm.heapsize' = '576m'
VERBOSE | Adding boot property: 'qemu.hw.mainkeys' = '0'
VERBOSE | Adding boot property: 'qemu.sf.lcd_density' = '560'
VERBOSE | Adding boot property: 'net.wifi_mac_prefix' = '5554'
VERBOSE | Adding boot property: 'qemu.timezone' = 'America/Los_Angeles'
WARNING | UpdateCheck: Failure: Error
WARNING | UpdateCheck: failed to get the latest version, skipping check (current version '31.2.8-8143646')
VERBOSE | Path:/Users/anshulkapoor/Library/Android/sdk/platform-tools/adb protocol version: 41
VERBOSE | Path:/Users/anshulkapoor/Library/Android/sdk/platform-tools/adb protocol version: 41
VERBOSE | Path:/Users/anshulkapoor/Library/Android/sdk/platform-tools/adb protocol version: 41
VERBOSE | Found: 3 adb executables
VERBOSE | Adb: /Users/anshulkapoor/Library/Android/sdk/platform-tools/adb
VERBOSE | Adb: /Users/anshulkapoor/Library/Android/sdk/platform-tools/adb
VERBOSE | Adb: /Users/anshulkapoor/Library/Android/sdk/platform-tools/adb
VERBOSE | Path:/Users/anshulkapoor/Library/Android/sdk/platform-tools/adb protocol version: 41
VERBOSE | Path:/Users/anshulkapoor/Library/Android/sdk/platform-tools/adb protocol version: 41
VERBOSE | Path:/Users/anshulkapoor/Library/Android/sdk/platform-tools/adb protocol version: 41
VERBOSE | _hwFingerprint_connect: connect finger print listen is called
VERBOSE | Registering pipe service multidisplay
VERBOSE | MultiDisplayPipe created 0x7f9cb2e7c9f0
VERBOSE | OpenGL Vendor=[Google (ATI Technologies Inc.)]
VERBOSE | OpenGL Renderer=[Android Emulator OpenGL ES Translator (AMD Radeon Pro 5300M OpenGL Engine)]
VERBOSE | OpenGL Version=[OpenGL ES 3.0 (4.1 ATI-4.8.54)]

More data, please!

No response

@tam-eoh
Copy link

tam-eoh commented Jul 27, 2022

facing the same issue

@justindi15
Copy link

justindi15 commented Jul 27, 2022

same issue.

detox v19.8.3
react-native: 0.64

@nidhisachan
Copy link

Facing the same issue.
detox version: "^19.7.1",
react-native: "0.66.4",

Got below error:

detox[40235] 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.

16:40:48.380 detox[40235] 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
}

@asafkorem
Copy link
Contributor

asafkorem commented Jul 27, 2022

Thanks for the reports!
We are aware of some issues with RN .68 compliance and currently investigating those issues. I'll keep you posted 🙏🏼

@asafkorem
Copy link
Contributor

For the other reporters, can you please attach your Detox logs and your device logs?
Those errors are very generics unfortunately.

@asafkorem
Copy link
Contributor

@anshulkapoor0018 is it working with previous detox versions? (prior to v19.8)

@d4vidi
Copy link
Collaborator

d4vidi commented Jul 27, 2022

@anshulkapoor0018 Your error doesn't seem to suggest RN 68 compliance issues, per se. In any RN version you're expect to have a MainApplication class that extends android.app.Application and implements com.facebook.react.ReactApplication, so as to have the getReactNativeHost() method implemented. The error suggests that this isn't the case in your app.

@UgurGumushan
Copy link

UgurGumushan commented Jul 27, 2022

I am experiencing the same issue.
When I switch back to detox 19.7.1 the issue goes away.
I switch to 19.8.1 the issue occurs.
I switch to 19.8.3 the issue occurs.
This blocks me from migrating to rn 68 because I need detox to support it.

react native version: 0.67.4

@d4vidi
Copy link
Collaborator

d4vidi commented Jul 27, 2022

@UgurGumushan sorry for the inconvenience. There's a similar issue we are aware of with backward compatibility, and we're working on it. Please either upgrade to RN 68, or stay on Detox 19.7.x for now.

In order to stay up to date, please subscribe to #3492

@asafkorem
Copy link
Contributor

Detox has been patch released with a fix to the backward compatibility issue.
Please try to upgrade your Detox version to v19.8.4 🙂

@anshulkapoor0018
Copy link
Author

@asafkorem YEs it worked with previous versions,
@d4vidi My Android Project is a Purely Native Kotlin based Android Project, That's why there is no MainApplication class there

@d4vidi
Copy link
Collaborator

d4vidi commented Jul 27, 2022

@asafkorem YEs it worked with previous versions,
@d4vidi My Android Project is a Purely Native Kotlin based Android Project, That's why there is no MainApplication class there

So why is the rn 68 compatibility a matter of interest here? Anyways, we don't support pure native apps, I'm afraid.

@anshulkapoor0018
Copy link
Author

@asafkorem YEs it worked with previous versions,
@d4vidi My Android Project is a Purely Native Kotlin based Android Project, That's why there is no MainApplication class there

So why is the rn 68 compatibility a matter of interest here? Anyways, we don't support pure native apps, I'm afraid.

My Bad,
The Project is not pure native, It's KOTLIN based.
I do have RN implemented in it through a third Party Library(developed by me only) which helps in setup of RN and other business logic needed.
This is my apps gradle file

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'

project.ext.react = [
        enableHermes: false,  // clean and rebuild if changing
        deleteDebugFilesForVariant: { false }
]
apply from: "../../node_modules/react-native/react.gradle"
def jscFlavor = 'org.webkit:android-jsc:+'
def enableHermes = project.ext.react.get("enableHermes", false);

android {
    compileSdkVersion 31
    buildToolsVersion "30.0.3"

    defaultConfig {
        applicationId "com.example.demo"
        minSdkVersion rootProject.ext.minSdkVersion
        targetSdkVersion rootProject.ext.targetSdkVersion
        versionCode 1
        versionName "0.1.0"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        multiDexEnabled true
        testBuildType System.getProperty('testBuildType', 'debug')  // This will later be used to control the test apk build type
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    // For Kotlin projects
    kotlinOptions {
        jvmTarget = "1.8"
    }

    signingConfigs {
        debug {
            keyAlias 'KeyAlias'
            keyPassword 'android'
            storeFile file("keystore/demointegratern.keystore")
            storePassword 'android'
        }
        release {
            keyAlias 'KeyAlias'
            keyPassword 'android'
            storeFile file("keystore/demointegratern.keystore")
            storePassword 'android'
        }
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }

    packagingOptions {
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/NOTICE.txt'
    }
}

dependencies {
    implementation 'androidx.security:security-crypto:1.0.0'
    implementation fileTree(dir: 'libs', include: ['*.jar','*.aar'])
    implementation 'com.android.support:multidex:1.0.3'
    implementation("com.facebook.react:react-native:0.68.0")
    implementation 'androidx.appcompat:appcompat:1.4.2'
    implementation 'com.google.android.material:material:1.4.0'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    implementation "androidx.core:core-ktx:1.6.0"
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion"
    implementation 'com.squareup.okhttp3:okhttp:4.9.2'

    implementation 'com.facebook.soloader:soloader:0.10.4'

    // Okta
    implementation 'com.okta.android:okta-oidc-android:1.2.5'

    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test.ext:junit:1.1.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
    androidTestImplementation('com.wix:detox:+')

    if (enableHermes) {
        def hermesPath = "../../node_modules/hermes-engine/android/";
        debugImplementation files(hermesPath + "hermes-debug.aar")
        releaseImplementation files(hermesPath + "hermes-release.aar")
    } else {
        implementation jscFlavor
    }
}

apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)


@d4vidi
Copy link
Collaborator

d4vidi commented Jul 28, 2022

@anshulkapoor0018 I fail to see how you can have RN in your project without implementing the ReactApplication interface. In any case, this isn't an RN 67->68 upgrade problem - as it seems to me...

@d4vidi
Copy link
Collaborator

d4vidi commented Aug 7, 2022

@anshulkapoor0018 please report any updates or insights. Thanks.

@stale
Copy link

stale bot commented Sep 8, 2022

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 reporsitory, read this discussion.

@stale stale bot added the 🏚 stale label Sep 8, 2022
@UgurGumushan
Copy link

This is resolved

@stale stale bot removed the 🏚 stale label Sep 8, 2022
@stale
Copy link

stale bot commented Oct 9, 2022

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 Oct 9, 2022
@stale
Copy link

stale bot commented Oct 16, 2022

The issue has been closed for inactivity.

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

7 participants