Trying to switch to custom chrome tab from native app causes the chrome instance to crash

Hello,
In my application, when an user clicks on a button of a web view, it opens a page in a custom chrome instance(note this is not a web view but a separate chrome instance is opened).
I am trying to automate this with appium + webdriverIO but facing a challenge. The webview part is working fine but unable to get the custom chrome instance interaction working.
As I found in most of the articles online, they suggested to create a new instance of remote (i.e. WebDriverIO) with proper Android + Chrome related capabilties to be able to interact with this custom chrome instance.
I did so with below piece of code

//code to interact with webview using a separate driver. This part works fine

//new driver to interact with custom chrome instance
const chromeDriver = await remote({
        hostname: "localhost",
        port: 4723,
        capabilities: {
            platformName: "Android",
            "appium:deviceName": "Pixel_9_API_35",
            "appium:automationName": "UiAutomator2",
            browserName: "chrome",
            "appium:chromedriverExecutable": "Path to correct chromedriver version",
            "goog:chromeOptions": {
                    androidPackage: "com.android.chrome",
                    androidUseRunningApp: true,  // Connect to the already running instance
                    w3c: false

                } as any,
        }
    });

However, as soon as this chromedriver is initialized, the chrome instance in the emulator on which the desired url was opened closes(crashes)
Below message is what I see in the appium logs
DEBUG @wdio/appium-service: [727f3913][AndroidUiautomator2Driver@435d] [Instrumentation] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:INSTRUMENTATION_RESULT: shortMsg=Process crashed.

Is there a way I can get it to work? Any pointers would really be helpful

Thanks!

Use logcat to get the crash error. You can post it here but might need help from your developers to see what’s really going on here.

Thanks @wreed for the reply.
Attaching the logcat logs. I have only kept logs containing appium or chrome, as the size was getting too big.
device_logs.txt (1.6 MB)
In case you find something. Will also take help from our developers and try to get more info.

Regards,
Nishant Shah

Ok, is this the crash?

io.appium.uiautomator2.server.test/10216} → PackageSetting{b608d17 com.housinganywhere.app/10213} BLOCKED
02-20 20:35:27.743 571 2185 I AppsFilter: interaction: PackageSetting{3c73571 io.appium.settings/10207} → PackageSetting{b608d17 com.housinganywhere.app/10213} BLOCKED
02-20 20:35:35.870 571 2184 W ActivityManager: pid 8276 io.appium.uiautomator2.server sent binder code 1 with flags 2 to frozen apps and got error -32
02-20 20:35:35.891 8276 8290 E AndroidRuntime: Process: io.appium.uiautomator2.server, PID: 8276
02-20 20:35:35.907 571 954 I ActivityManager: Process io.appium.uiautomator2.server (pid 8276) has died: fg FGS
02-20 20:35:35.907 571 954 W ActivityManager: Crash of app io.appium.uiautomator2.server running instrumentation ComponentInfo{io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner}
02-20 20:35:35.908 571 8905 I ActivityManager: Failure reporting to instrumentation watcher: comp=ComponentInfo{io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner} results=Bundle[{shortMsg=Process crashed.}]

If your app is com.housinganywhere.app, I would want to know what process is BLOCKED and I’d bring this to the Devs. I don’t know your app so that’s about as deep as I can go.

Thanks @wreed for the pointer.
I checked again and these seem to be the logs during the chrome crash/force kill during the test automation run

02-23 12:25:38.046 26275 26275 I id.partnersetup: Using CollectorTypeCMC GC.
02-23 12:25:38.046 25334 25833 W chromium: [WARNING:ev_root_ca_metadata.cc(119)] Not implemented
02-23 12:25:38.048 26275 26275 E id.partnersetup: Not starting debugger since process cannot load the jdwp agent.
02-23 12:25:38.049 26275 26275 D nativeloader: Load libframework-connectivity-tiramisu-jni.so using APEX ns com_android_tethering for caller /apex/com.android.tethering/javalib/framework-connectivity-t.jar: ok
02-23 12:25:38.052 26275 26275 D CompatChangeReporter: Compat change id reported: 242716250; UID 10135; state: ENABLED
02-23 12:25:38.054 26260 26260 V GraphicsEnvironment: Currently set values for:
02-23 12:25:38.054 26260 26260 V GraphicsEnvironment:   angle_gl_driver_selection_pkgs=[]
02-23 12:25:38.054 26260 26260 V GraphicsEnvironment:   angle_gl_driver_selection_values=[]
02-23 12:25:38.054 26260 26260 V GraphicsEnvironment: Global.Settings values are invalid: number of packages: 0, number of values: 0
02-23 12:25:38.054 26260 26260 V GraphicsEnvironment: Neither updatable production driver nor prerelease driver is supported.
02-23 12:25:38.057 26275 26275 D ApplicationLoaders: Returning zygote-cached class loader: /system/framework/org.apache.http.legacy.jar
02-23 12:25:38.058 25334 25833 W chromium: [WARNING:ev_root_ca_metadata.cc(119)] Not implemented
02-23 12:25:38.060 26275 26275 D nativeloader: InitLlndkLibrariesProduct: libEGL.so:libGLESv1_CM.so:libGLESv2.so:libGLESv3.so:libRS.so:libandroid_net.so:libapexsupport.so:libbinder_ndk.so:libc.so:libcgrouprc.so:libclang_rt.asan-aarch64-android.so:libclang_rt.hwasan-aarch64-android.so:libcom.android.tethering.connectivity_native.so:libdl.so:libft2.so:liblog.so:libm.so:libmediandk.so:libnativewindow.so:libneuralnetworks.so:libselinux.so:libsync.so:libvendorsupport.so:libvndksupport.so:libvulkan.so
02-23 12:25:38.060 26275 26275 D nativeloader: Configuring product-clns-7 for unbundled product apk /product/priv-app/PartnerSetupPrebuilt/PartnerSetupPrebuilt.apk. target_sdk_version=34, uses_libraries=, library_path=/product/priv-app/PartnerSetupPrebuilt/lib/arm64:/product/lib64:/system/product/lib64, permitted_path=/data:/mnt/expand:/data/user/0/com.google.android.partnersetup:/product/lib64:/system/product/lib64
02-23 12:25:38.061 26275 26275 D nativeloader: InitVndkspLibrariesProduct: VNDK is deprecated with product
02-23 12:25:38.063 26275 26275 V GraphicsEnvironment: Currently set values for:
02-23 12:25:38.063 26275 26275 V GraphicsEnvironment:   angle_gl_driver_selection_pkgs=[]
02-23 12:25:38.063 26275 26275 V GraphicsEnvironment:   angle_gl_driver_selection_values=[]
02-23 12:25:38.063 26275 26275 V GraphicsEnvironment: Global.Settings values are invalid: number of packages: 0, number of values: 0
02-23 12:25:38.063 26275 26275 V GraphicsEnvironment: Neither updatable production driver nor prerelease driver is supported.
02-23 12:25:38.068 25334 25832 E cr_PartnerBMReader: ATTENTION: not using partner bookmarks as none were provided
02-23 12:25:38.072 26275 26275 D CompatChangeReporter: Compat change id reported: 253665015; UID 10135; state: ENABLED
02-23 12:25:38.073 26275 26275 W JobInfo : Job 'com.google.android.partnersetup/.PhenotypeJobService#1' has a deadline with no functional constraints. The deadline won't improve job execution latency. Consider removing the deadline.
02-23 12:25:38.073   571   607 D CompatChangeReporter: Compat change id reported: 253665015; UID 10135; state: ENABLED
02-23 12:25:38.073   571   607 W JobInfo : Job 'com.google.android.partnersetup/.PhenotypeJobService#1' has a deadline with no functional constraints. The deadline won't improve job execution latency. Consider removing the deadline.
02-23 12:25:38.182   571  1605 D CompatChangeReporter: Compat change id reported: 261072174; UID 10135; state: ENABLED
02-23 12:25:38.190 26275 26292 I GooglePartnerSetup: Registered with Phenotype
02-23 12:25:38.190 26275 26292 W JobInfo : Job 'com.google.android.partnersetup/.PhenotypeJobService#2' has a deadline with no functional constraints. The deadline won't improve job execution latency. Consider removing the deadline.
02-23 12:25:38.190   571  1605 W JobInfo : Job 'com.google.android.partnersetup/.PhenotypeJobService#2' has a deadline with no functional constraints. The deadline won't improve job execution latency. Consider removing the deadline.
02-23 12:25:38.879 25334 25832 W chromium: [WARNING:ev_root_ca_metadata.cc(119)] Not implemented
02-23 12:25:39.013 25334 25832 W chromium: [WARNING:ev_root_ca_metadata.cc(119)] Not implemented
02-23 12:25:39.033 25739 26056 D RudderSDK: Debug: DBPersistentManager: getDBRecordCount: countSQL: SELECT count(*) FROM events ;
02-23 12:25:39.033 25739 26056 I RudderSDK: Info: DBPersistentManager: getDBRecordCount: fetched count from DB
02-23 12:25:39.033 25739 26056 D RudderSDK: Debug: CloudModeManager: getPayloadFromMessages: DBRecordCount: 13
02-23 12:25:39.033 25739 26056 D RudderSDK: Debug: CloudModeManager: cloudModeProcessor: Fetching events to flush to server
02-23 12:25:39.033 25739 26056 D RudderSDK: Debug: DBPersistentManager: fetchCloudModeEventsFromDB: selectSQL: SELECT * FROM events WHERE status IN (0, 1) ORDER BY updated ASC LIMIT 30
02-23 12:25:39.035 25739 26056 I RudderSDK: Info: DBPersistentManager: fetchEventsFromDB: fetched messages from DB
02-23 12:25:39.035 25739 26056 D RudderSDK: Debug: FlushUtils: getPayloadFromMessages: recordCount: 13
02-23 12:25:39.035 25739 26056 D RudderSDK: Debug: FlushUtils: getPayloadFromMessages: sentAtTimestamp: 2025-02-23T11:25:39.035Z
02-23 12:25:39.035 25739 26056 D RudderSDK: Debug: CloudModeManager: cloudModeProcessor: payload: {"sentAt":"2025-02-23T11:25:39.035Z","batch": [{"anonymousId":"5f0d0d60-43e6-4223-875d-d1d78b4f64d5","channel":"mobile","context":{"app":{"build":"12","name":"HousingAnywhere","namespace":"com.housinganywhere.app","version":"1.1.2"},"device":{"adTrackingEnabled":false,"id":"223b93c4e7ccd112","manufacturer":"Google","model":"sdk_gphone64_arm64","name":"emu64a","type":"Android"},"library":{"name":"com.rudderstack.android.sdk.core","version":"1.26.0"},"locale":"en-US","network":{"carrier":"T-Mobile","cellular":true,"wifi":true},"os":{"name":"Android","version":"15"},"screen":{"density":420,"height":2424,"width":1080},"sessionId":1740309919,"sessionStart":true,"timezone":"Europe/Amsterdam","traits":{"anonymousId":"5f0d0d60-43e6-4223-875d-d1d78b4f64d5"},"userAgent":"Dalvik/2.1.0 (Linux; U; Android 15; sdk_gphone64_arm64 Build/AE3A.240806.036)"},"event":"Application Installed","integrations":{"All":true},"messageId":"7dd2ce72-c10e-4fd8-beb3-4500edc1ff36","properties":{"build":12,"version":"1.1.2"},"originalTimestamp":"2025-02-23T11:25:19.967Z","type":"track","sentAt":"2025-02-23T11:25:39.035Z"},{"anonymousId":"5f0d0d60-43e6-4223-875d-d1d78b4f64d5","channel":"mobile","context":{"app":{"build":"12","name":"HousingAnywhere","namespace":"com.housinganywhere.app","version":"1.1.2"},"device":{"adTrackingEnabled":false,"id":"223b93c4e7ccd112","manufacturer":"Google","model":"sdk_gphone64_arm64","name":"emu64a","type":"Android"},"library":{"name":"com.rudderstack.android.sdk.core","version":"1.26.0"},"locale":"en-US","network":{"carrier":"T-Mobile","cellular":true,"wifi":true},"os":{"name":"Android","version":"15"},"screen":{"density":420,"height":2424,"width":1080},"sessionId":1740309919,"timezone":"Europe/Amsterdam","traits":{"anonymousId":"5f0d0d60-43e6-4223-875d-d1d78b4f64d5"},"userAgent":"Dalvik/2.1.0 (Linux; U; Android 15; sdk_gphone64_arm64 Build/AE3A.240806.036)"},"event":"Application Opened","integrations":{"All":true},"messageId":"fe86a5ea-ad3f-495e-ad66-6839d168c54e","properties":{"from_background":false},"originalTimestamp":"2025-02-23T11:25:19.968Z","type":"track","sentAt":"2025-02-23T11:25:39.035Z"},{"anonymousId":"5f0d0d60-43e6-4223-875d-d1d78b4f64d5","channel":"mobile","context":{"app":{"build":"12","name":"HousingAnywhere","namespace":"com.housinganywhere.app","version":"1.1.2"},"device":{"adTrackingEnabled":false,"id":"223b93c4e7ccd112","manufacturer":"Google","model":"sdk_gphone64_arm64","name":"emu64a","type":"Android"},"library":{"name":"com.rudderstack.android.sdk.core","version":"1.26.0"},"locale":"en-US","network":{"carrier":"T-Mobile","cellular":true,"wifi":true},"os":{"name":"Android","version":"15"},"screen":{"density":420,"height":2424,"width":1080},"sessionId":1740309919,"timezone":"Europe/Amsterdam","traits":{"anonymousId":"5f0d0d60-43e6-4223-875d-d1d78b4f64d5"},"userAgent":"Dalvik/2.1.0 (Linux; U; Android 15; sdk_gphone64_arm64 Build/AE3A.240806.036)"},"event":"Camera Permission","integrations":{"All":true},"messageId":"6127e5c8-c2f8-4291-a9bb-852cb673b6de","properties":{},"originalTimestamp":"2025-02-23T11:25:19.990Z","type":"track","sentAt":"2025-02-23T11:25:39.035Z"},{"anonymousId":"5f0d0d60-43e6-4223-875d-d1d78b4f64d5","channel":"mobile","context":{"app":{"build":"12","name":"HousingAnywhere","namespace":"com.housinganywhere.app","version":"1.1.2"},"device":{"adTrackingEnabled":false,"id":"223b93c4e7ccd112","manufacturer":"Google","model":"sdk_gphone64_arm64","name":"emu64a","type":"Android"},"library":{"name":"com.rudderstack.android.sdk.core","version":"1.26.0"},"locale":"en-US","network":{"carrier":"T-Mobile","cellular":true,"wifi":true},"os":{"name":"Android","version":"15"},"screen":{"density":420,"height":2424,"width":1080},"sessionId":1740309919,"timezone":"Europe/Amsterdam","traits":{"anonymousId":"5f0d0d60-43e6-4223-875d-d1d78b4f64d5"},"userAgent":"Dalvik/2.1.0 (Linux; U; Android 15; sdk_gphone64_arm64 Build/AE3A.240806.036)"},"event":"Home","integrations":{"All":true},"messageId":"43cccc19-a13b-4b1
02-23 12:25:39.035 25739 26056 I RudderSDK: Info: CloudModeManager: cloudModeProcessor: 13
02-23 12:25:39.035 25739 26056 D RudderSDK: Debug: RudderNetworkManager: sendNetworkRequest: Request URL: https://events.analytics.hatech.dev/v1/batch
02-23 12:25:39.035 25739 26056 D RudderSDK: Debug: RudderNetworkManager: sendNetworkRequest: Gzip is enabled
02-23 12:25:39.036 25739 26056 E RudderSDK: Error: RudderNetworkManager: updateHttpConnection: Error while updating the http connectionUnable to resolve host "events.analytics.hatech.dev": No address associated with hostname
02-23 12:25:39.036 25739 26056 I RudderSDK: Info: CloudModeManager: cloudModeProcessor: ServerResponse: -1
02-23 12:25:39.036 25739 26056 D RudderSDK: Debug: CloudModeManager: cloudModeProcessor: SleepCount: 17
02-23 12:25:39.036 25739 26056 W RudderSDK: Warn: CloudModeManager: cloudModeProcessor: Retrying in 1s
02-23 12:25:40.040 25739 26056 D RudderSDK: Debug: DBPersistentManager: getDBRecordCount: countSQL: SELECT count(*) FROM events ;
02-23 12:25:40.047 25739 26056 I RudderSDK: Info: DBPersistentManager: getDBRecordCount: fetched count from DB
02-23 12:25:40.048 25739 26056 D RudderSDK: Debug: CloudModeManager: getPayloadFromMessages: DBRecordCount: 13
02-23 12:25:40.048 25739 26056 D RudderSDK: Debug: CloudModeManager: cloudModeProcessor: Fetching events to flush to server
02-23 12:25:40.048 25739 26056 D RudderSDK: Debug: DBPersistentManager: fetchCloudModeEventsFromDB: selectSQL: SELECT * FROM events WHERE status IN (0, 1) ORDER BY updated ASC LIMIT 30
02-23 12:25:40.048 25739 26056 I RudderSDK: Info: DBPersistentManager: fetchEventsFromDB: fetched messages from DB
02-23 12:25:40.048 25739 26056 D RudderSDK: Debug: FlushUtils: getPayloadFromMessages: recordCount: 13
02-23 12:25:40.048 25739 26056 D RudderSDK: Debug: FlushUtils: getPayloadFromMessages: sentAtTimestamp: 2025-02-23T11:25:40.048Z
02-23 12:25:40.048 25739 26056 D RudderSDK: Debug: CloudModeManager: cloudModeProcessor: payload: {"sentAt":"2025-02-23T11:25:40.048Z","batch": [{"anonymousId":"5f0d0d60-43e6-4223-875d-d1d78b4f64d5","channel":"mobile","context":{"app":{"build":"12","name":"HousingAnywhere","namespace":"com.housinganywhere.app","version":"1.1.2"},"device":{"adTrackingEnabled":false,"id":"223b93c4e7ccd112","manufacturer":"Google","model":"sdk_gphone64_arm64","name":"emu64a","type":"Android"},"library":{"name":"com.rudderstack.android.sdk.core","version":"1.26.0"},"locale":"en-US","network":{"carrier":"T-Mobile","cellular":true,"wifi":true},"os":{"name":"Android","version":"15"},"screen":{"density":420,"height":2424,"width":1080},"sessionId":1740309919,"sessionStart":true,"timezone":"Europe/Amsterdam","traits":{"anonymousId":"5f0d0d60-43e6-4223-875d-d1d78b4f64d5"},"userAgent":"Dalvik/2.1.0 (Linux; U; Android 15; sdk_gphone64_arm64 Build/AE3A.240806.036)"},"event":"Application Installed","integrations":{"All":true},"messageId":"7dd2ce72-c10e-4fd8-beb3-4500edc1ff36","properties":{"build":12,"version":"1.1.2"},"originalTimestamp":"2025-02-23T11:25:19.967Z","type":"track","sentAt":"2025-02-23T11:25:40.048Z"},{"anonymousId":"5f0d0d60-43e6-4223-875d-d1d78b4f64d5","channel":"mobile","context":{"app":{"build":"12","name":"HousingAnywhere","namespace":"com.housinganywhere.app","version":"1.1.2"},"device":{"adTrackingEnabled":false,"id":"223b93c4e7ccd112","manufacturer":"Google","model":"sdk_gphone64_arm64","name":"emu64a","type":"Android"},"library":{"name":"com.rudderstack.android.sdk.core","version":"1.26.0"},"locale":"en-US","network":{"carrier":"T-Mobile","cellular":true,"wifi":true},"os":{"name":"Android","version":"15"},"screen":{"density":420,"height":2424,"width":1080},"sessionId":1740309919,"timezone":"Europe/Amsterdam","traits":{"anonymousId":"5f0d0d60-43e6-4223-875d-d1d78b4f64d5"},"userAgent":"Dalvik/2.1.0 (Linux; U; Android 15; sdk_gphone64_arm64 Build/AE3A.240806.036)"},"event":"Application Opened","integrations":{"All":true},"messageId":"fe86a5ea-ad3f-495e-ad66-6839d168c54e","properties":{"from_background":false},"originalTimestamp":"2025-02-23T11:25:19.968Z","type":"track","sentAt":"2025-02-23T11:25:40.048Z"},{"anonymousId":"5f0d0d60-43e6-4223-875d-d1d78b4f64d5","channel":"mobile","context":{"app":{"build":"12","name":"HousingAnywhere","namespace":"com.housinganywhere.app","version":"1.1.2"},"device":{"adTrackingEnabled":false,"id":"223b93c4e7ccd112","manufacturer":"Google","model":"sdk_gphone64_arm64","name":"emu64a","type":"Android"},"library":{"name":"com.rudderstack.android.sdk.core","version":"1.26.0"},"locale":"en-US","network":{"carrier":"T-Mobile","cellular":true,"wifi":true},"os":{"name":"Android","version":"15"},"screen":{"density":420,"height":2424,"width":1080},"sessionId":1740309919,"timezone":"Europe/Amsterdam","traits":{"anonymousId":"5f0d0d60-43e6-4223-875d-d1d78b4f64d5"},"userAgent":"Dalvik/2.1.0 (Linux; U; Android 15; sdk_gphone64_arm64 Build/AE3A.240806.036)"},"event":"Camera Permission","integrations":{"All":true},"messageId":"6127e5c8-c2f8-4291-a9bb-852cb673b6de","properties":{},"originalTimestamp":"2025-02-23T11:25:19.990Z","type":"track","sentAt":"2025-02-23T11:25:40.048Z"},{"anonymousId":"5f0d0d60-43e6-4223-875d-d1d78b4f64d5","channel":"mobile","context":{"app":{"build":"12","name":"HousingAnywhere","namespace":"com.housinganywhere.app","version":"1.1.2"},"device":{"adTrackingEnabled":false,"id":"223b93c4e7ccd112","manufacturer":"Google","model":"sdk_gphone64_arm64","name":"emu64a","type":"Android"},"library":{"name":"com.rudderstack.android.sdk.core","version":"1.26.0"},"locale":"en-US","network":{"carrier":"T-Mobile","cellular":true,"wifi":true},"os":{"name":"Android","version":"15"},"screen":{"density":420,"height":2424,"width":1080},"sessionId":1740309919,"timezone":"Europe/Amsterdam","traits":{"anonymousId":"5f0d0d60-43e6-4223-875d-d1d78b4f64d5"},"userAgent":"Dalvik/2.1.0 (Linux; U; Android 15; sdk_gphone64_arm64 Build/AE3A.240806.036)"},"event":"Home","integrations":{"All":true},"messageId":"43cccc19-a13b-4b1
02-23 12:25:40.048 25739 26056 I RudderSDK: Info: CloudModeManager: cloudModeProcessor: 13
02-23 12:25:40.048 25739 26056 D RudderSDK: Debug: RudderNetworkManager: sendNetworkRequest: Request URL: https://events.analytics.hatech.dev/v1/batch
02-23 12:25:40.048 25739 26056 D RudderSDK: Debug: RudderNetworkManager: sendNetworkRequest: Gzip is enabled
02-23 12:25:40.049 25739 26056 E RudderSDK: Error: RudderNetworkManager: updateHttpConnection: Error while updating the http connectionUnable to resolve host "events.analytics.hatech.dev": No address associated with hostname
02-23 12:25:40.049 25739 26056 I RudderSDK: Info: CloudModeManager: cloudModeProcessor: ServerResponse: -1
02-23 12:25:40.049 25739 26056 D RudderSDK: Debug: CloudModeManager: cloudModeProcessor: SleepCount: 18
02-23 12:25:40.049 25739 26056 W RudderSDK: Warn: CloudModeManager: cloudModeProcessor: Retrying in 1s
02-23 12:25:41.049 25739 26056 D RudderSDK: Debug: DBPersistentManager: getDBRecordCount: countSQL: SELECT count(*) FROM events ;
02-23 12:25:41.049 25739 26056 I RudderSDK: Info: DBPersistentManager: getDBRecordCount: fetched count from DB
02-23 12:25:41.049 25739 26056 D RudderSDK: Debug: CloudModeManager: getPayloadFromMessages: DBRecordCount: 13
02-23 12:25:41.049 25739 26056 D RudderSDK: Debug: CloudModeManager: cloudModeProcessor: Fetching events to flush to server
02-23 12:25:41.049 25739 26056 D RudderSDK: Debug: DBPersistentManager: fetchCloudModeEventsFromDB: selectSQL: SELECT * FROM events WHERE status IN (0, 1) ORDER BY updated ASC LIMIT 30
02-23 12:25:41.050 25739 26056 I RudderSDK: Info: DBPersistentManager: fetchEventsFromDB: fetched messages from DB
02-23 12:25:41.050 25739 26056 D RudderSDK: Debug: FlushUtils: getPayloadFromMessages: recordCount: 13
02-23 12:25:41.050 25739 26056 D RudderSDK: Debug: FlushUtils: getPayloadFromMessages: sentAtTimestamp: 2025-02-23T11:25:41.050Z
02-23 12:25:41.050 25739 26056 D RudderSDK: Debug: CloudModeManager: cloudModeProcessor: payload: {"sentAt":"2025-02-23T11:25:41.050Z","batch": [{"anonymousId":"5f0d0d60-43e6-4223-875d-d1d78b4f64d5","channel":"mobile","context":{"app":{"build":"12","name":"HousingAnywhere","namespace":"com.housinganywhere.app","version":"1.1.2"},"device":{"adTrackingEnabled":false,"id":"223b93c4e7ccd112","manufacturer":"Google","model":"sdk_gphone64_arm64","name":"emu64a","type":"Android"},"library":{"name":"com.rudderstack.android.sdk.core","version":"1.26.0"},"locale":"en-US","network":{"carrier":"T-Mobile","cellular":true,"wifi":true},"os":{"name":"Android","version":"15"},"screen":{"density":420,"height":2424,"width":1080},"sessionId":1740309919,"sessionStart":true,"timezone":"Europe/Amsterdam","traits":{"anonymousId":"5f0d0d60-43e6-4223-875d-d1d78b4f64d5"},"userAgent":"Dalvik/2.1.0 (Linux; U; Android 15; sdk_gphone64_arm64 Build/AE3A.240806.036)"},"event":"Application Installed","integrations":{"All":true},"messageId":"7dd2ce72-c10e-4fd8-beb3-4500edc1ff36","properties":{"build":12,"version":"1.1.2"},"originalTimestamp":"2025-02-23T11:25:19.967Z","type":"track","sentAt":"2025-02-23T11:25:41.050Z"},{"anonymousId":"5f0d0d60-43e6-4223-875d-d1d78b4f64d5","channel":"mobile","context":{"app":{"build":"12","name":"HousingAnywhere","namespace":"com.housinganywhere.app","version":"1.1.2"},"device":{"adTrackingEnabled":false,"id":"223b93c4e7ccd112","manufacturer":"Google","model":"sdk_gphone64_arm64","name":"emu64a","type":"Android"},"library":{"name":"com.rudderstack.android.sdk.core","version":"1.26.0"},"locale":"en-US","network":{"carrier":"T-Mobile","cellular":true,"wifi":true},"os":{"name":"Android","version":"15"},"screen":{"density":420,"height":2424,"width":1080},"sessionId":1740309919,"timezone":"Europe/Amsterdam","traits":{"anonymousId":"5f0d0d60-43e6-4223-875d-d1d78b4f64d5"},"userAgent":"Dalvik/2.1.0 (Linux; U; Android 15; sdk_gphone64_arm64 Build/AE3A.240806.036)"},"event":"Application Opened","integrations":{"All":true},"messageId":"fe86a5ea-ad3f-495e-ad66-6839d168c54e","properties":{"from_background":false},"originalTimestamp":"2025-02-23T11:25:19.968Z","type":"track","sentAt":"2025-02-23T11:25:41.050Z"},{"anonymousId":"5f0d0d60-43e6-4223-875d-d1d78b4f64d5","channel":"mobile","context":{"app":{"build":"12","name":"HousingAnywhere","namespace":"com.housinganywhere.app","version":"1.1.2"},"device":{"adTrackingEnabled":false,"id":"223b93c4e7ccd112","manufacturer":"Google","model":"sdk_gphone64_arm64","name":"emu64a","type":"Android"},"library":{"name":"com.rudderstack.android.sdk.core","version":"1.26.0"},"locale":"en-US","network":{"carrier":"T-Mobile","cellular":true,"wifi":true},"os":{"name":"Android","version":"15"},"screen":{"density":420,"height":2424,"width":1080},"sessionId":1740309919,"timezone":"Europe/Amsterdam","traits":{"anonymousId":"5f0d0d60-43e6-4223-875d-d1d78b4f64d5"},"userAgent":"Dalvik/2.1.0 (Linux; U; Android 15; sdk_gphone64_arm64 Build/AE3A.240806.036)"},"event":"Camera Permission","integrations":{"All":true},"messageId":"6127e5c8-c2f8-4291-a9bb-852cb673b6de","properties":{},"originalTimestamp":"2025-02-23T11:25:19.990Z","type":"track","sentAt":"2025-02-23T11:25:41.050Z"},{"anonymousId":"5f0d0d60-43e6-4223-875d-d1d78b4f64d5","channel":"mobile","context":{"app":{"build":"12","name":"HousingAnywhere","namespace":"com.housinganywhere.app","version":"1.1.2"},"device":{"adTrackingEnabled":false,"id":"223b93c4e7ccd112","manufacturer":"Google","model":"sdk_gphone64_arm64","name":"emu64a","type":"Android"},"library":{"name":"com.rudderstack.android.sdk.core","version":"1.26.0"},"locale":"en-US","network":{"carrier":"T-Mobile","cellular":true,"wifi":true},"os":{"name":"Android","version":"15"},"screen":{"density":420,"height":2424,"width":1080},"sessionId":1740309919,"timezone":"Europe/Amsterdam","traits":{"anonymousId":"5f0d0d60-43e6-4223-875d-d1d78b4f64d5"},"userAgent":"Dalvik/2.1.0 (Linux; U; Android 15; sdk_gphone64_arm64 Build/AE3A.240806.036)"},"event":"Home","integrations":{"All":true},"messageId":"43cccc19-a13b-4b1
02-23 12:25:41.050 25739 26056 I RudderSDK: Info: CloudModeManager: cloudModeProcessor: 13
02-23 12:25:41.050 25739 26056 D RudderSDK: Debug: RudderNetworkManager: sendNetworkRequest: Request URL: https://events.analytics.hatech.dev/v1/batch
02-23 12:25:41.050 25739 26056 D RudderSDK: Debug: RudderNetworkManager: sendNetworkRequest: Gzip is enabled
02-23 12:25:41.051 25739 26056 E RudderSDK: Error: RudderNetworkManager: updateHttpConnection: Error while updating the http connectionUnable to resolve host "events.analytics.hatech.dev": No address associated with hostname
02-23 12:25:41.051 25739 26056 I RudderSDK: Info: CloudModeManager: cloudModeProcessor: ServerResponse: -1
02-23 12:25:41.051 25739 26056 D RudderSDK: Debug: CloudModeManager: cloudModeProcessor: SleepCount: 19
02-23 12:25:41.051 25739 26056 W RudderSDK: Warn: CloudModeManager: cloudModeProcessor: Retrying in 1s
02-23 12:25:41.061 13561  2477 I artd    : Dex parent of /data/app/~~oMNAPeNimWj962L2le6tlg==/io.appium.settings-ZGCviImdYlKZwKWIUr6YOA==/base.apk is not writable: Permission denied
02-23 12:25:41.061 13561  2477 I artd    : GetBestInfo checking odex in dalvik-cache (/data/dalvik-cache/arm64/data@app@~~oMNAPeNimWj962L2le6tlg==@[email protected]@classes.dex)
02-23 12:25:41.061 13561  2477 I artd    : Loading /data/dalvik-cache/arm64/data@app@~~oMNAPeNimWj962L2le6tlg==@[email protected]@classes.dex with executable: 0
02-23 12:25:41.061 13561  2477 I artd    : OatFileAssistant test for existing oat file /data/dalvik-cache/arm64/data@app@~~oMNAPeNimWj962L2le6tlg==@[email protected]@classes.dex: File /data/dalvik-cache/arm64/data@app@~~oMNAPeNimWj962L2le6tlg==@[email protected]@classes.vdex does not exist.
02-23 12:25:41.061 13561  2477 I artd    : GetBestInfo checking odex next to the dex file (/data/app/~~oMNAPeNimWj962L2le6tlg==/io.appium.settings-ZGCviImdYlKZwKWIUr6YOA==/oat/arm64/base.odex)
02-23 12:25:41.061 13561  2477 I artd    : Loading /data/app/~~oMNAPeNimWj962L2le6tlg==/io.appium.settings-ZGCviImdYlKZwKWIUr6YOA==/oat/arm64/base.odex with executable: 0
02-23 12:25:41.061 13561  2477 I artd    : OatFileAssistant test for existing oat file /data/app/~~oMNAPeNimWj962L2le6tlg==/io.appium.settings-ZGCviImdYlKZwKWIUr6YOA==/oat/arm64/base.odex: File /data/app/~~oMNAPeNimWj962L2le6tlg==/io.appium.settings-ZGCviImdYlKZwKWIUr6YOA==/oat/arm64/base.vdex does not exist.
02-23 12:25:41.061 13561  2477 I artd    : GetBestInfo checking vdex in dalvik-cache (/data/dalvik-cache/arm64/data@app@~~oMNAPeNimWj962L2le6tlg==@[email protected]@classes.vdex)
02-23 12:25:41.061 13561  2477 I artd    : unable to open vdex file /data/dalvik-cache/arm64/data@app@~~oMNAPeNimWj962L2le6tlg==@[email protected]@classes.vdex: File /data/dalvik-cache/arm64/data@app@~~oMNAPeNimWj962L2le6tlg==@[email protected]@classes.vdex does not exist.
02-23 12:25:41.061 13561  2477 I artd    : OatFileAssistant test for existing oat file /data/dalvik-cache/arm64/data@app@~~oMNAPeNimWj962L2le6tlg==@[email protected]@classes.vdex: File /data/dalvik-cache/arm64/data@app@~~oMNAPeNimWj962L2le6tlg==@[email protected]@classes.vdex does not exist.
02-23 12:25:41.061 13561  2477 I artd    : GetBestInfo checking vdex next to the dex file (/data/app/~~oMNAPeNimWj962L2le6tlg==/io.appium.settings-ZGCviImdYlKZwKWIUr6YOA==/oat/arm64/base.vdex)
02-23 12:25:41.061 13561  2477 I artd    : unable to open vdex file /data/app/~~oMNAPeNimWj962L2le6tlg==/io.appium.settings-ZGCviImdYlKZwKWIUr6YOA==/oat/arm64/base.vdex: File /data/app/~~oMNAPeNimWj962L2le6tlg==/io.appium.settings-ZGCviImdYlKZwKWIUr6YOA==/oat/arm64/base.vdex does not exist.
02-23 12:25:41.061 13561  2477 I artd    : OatFileAssistant test for existing oat file /data/app/~~oMNAPeNimWj962L2le6tlg==/io.appium.settings-ZGCviImdYlKZwKWIUr6YOA==/oat/arm64/base.vdex: File /data/app/~~oMNAPeNimWj962L2le6tlg==/io.appium.settings-ZGCviImdYlKZwKWIUr6YOA==/oat/arm64/base.vdex does not exist.
02-23 12:25:41.061 13561  2477 I artd    : GetBestInfo checking dm (/data/app/~~oMNAPeNimWj962L2le6tlg==/io.appium.settings-ZGCviImdYlKZwKWIUr6YOA==/base.dm)
02-23 12:25:41.061 13561  2477 W ziparchive: Unable to open '/data/app/~~oMNAPeNimWj962L2le6tlg==/io.appium.settings-ZGCviImdYlKZwKWIUr6YOA==/base.dm': No such file or directory
02-23 12:25:41.061 13561  2477 I artd    : OatFileAssistant test for existing oat file /data/app/~~oMNAPeNimWj962L2le6tlg==/io.appium.settings-ZGCviImdYlKZwKWIUr6YOA==/base.dm: I/O error
02-23 12:25:41.061 13561  2477 I artd    : GetBestInfo checking dm (/data/app/~~oMNAPeNimWj962L2le6tlg==/io.appium.settings-ZGCviImdYlKZwKWIUr6YOA==/base.dm)
02-23 12:25:41.061 13561  2477 W ziparchive: Unable to open '/data/app/~~oMNAPeNimWj962L2le6tlg==/io.appium.settings-ZGCviImdYlKZwKWIUr6YOA==/base.dm': No such file or directory
02-23 12:25:41.061 13561  2477 I artd    : OatFileAssistant test for existing oat file /data/app/~~oMNAPeNimWj962L2le6tlg==/io.appium.settings-ZGCviImdYlKZwKWIUr6YOA==/base.dm: I/O error
02-23 12:25:41.061 13561  2477 I artd    : GetBestInfo no usable artifacts
02-23 12:25:41.254 13561  2477 I artd    : Dex parent of /data/app/~~BVypRbhknk2jAw7IUdLV5Q==/io.appium.uiautomator2.server-FF47JBW12o3tiK6ug7XxbQ==/base.apk is not writable: Permission denied
02-23 12:25:41.254 13561  2477 I artd    : GetBestInfo checking odex in dalvik-cache (/data/dalvik-cache/arm64/data@app@~~BVypRbhknk2jAw7IUdLV5Q==@[email protected]@classes.dex)
02-23 12:25:41.254 13561  2477 I artd    : Loading /data/dalvik-cache/arm64/data@app@~~BVypRbhknk2jAw7IUdLV5Q==@[email protected]@classes.dex with executable: 0
02-23 12:25:41.254 13561  2477 I artd    : OatFileAssistant test for existing oat file /data/dalvik-cache/arm64/data@app@~~BVypRbhknk2jAw7IUdLV5Q==@[email protected]@classes.dex: File /data/dalvik-cache/arm64/data@app@~~BVypRbhknk2jAw7IUdLV5Q==@[email protected]@classes.vdex does not exist.
02-23 12:25:41.254 13561  2477 I artd    : GetBestInfo checking odex next to the dex file (/data/app/~~BVypRbhknk2jAw7IUdLV5Q==/io.appium.uiautomator2.server-FF47JBW12o3tiK6ug7XxbQ==/oat/arm64/base.odex)
02-23 12:25:41.254 13561  2477 I artd    : Loading /data/app/~~BVypRbhknk2jAw7IUdLV5Q==/io.appium.uiautomator2.server-FF47JBW12o3tiK6ug7XxbQ==/oat/arm64/base.odex with executable: 0
02-23 12:25:41.254 13561  2477 I artd    : OatFileAssistant test for existing oat file /data/app/~~BVypRbhknk2jAw7IUdLV5Q==/io.appium.uiautomator2.server-FF47JBW12o3tiK6ug7XxbQ==/oat/arm64/base.odex: File /data/app/~~BVypRbhknk2jAw7IUdLV5Q==/io.appium.uiautomator2.server-FF47JBW12o3tiK6ug7XxbQ==/oat/arm64/base.vdex does not exist.
02-23 12:25:41.254 13561  2477 I artd    : GetBestInfo checking vdex in dalvik-cache (/data/dalvik-cache/arm64/data@app@~~BVypRbhknk2jAw7IUdLV5Q==@[email protected]@classes.vdex)
02-23 12:25:41.254 13561  2477 I artd    : unable to open vdex file /data/dalvik-cache/arm64/data@app@~~BVypRbhknk2jAw7IUdLV5Q==@[email protected]@classes.vdex: File /data/dalvik-cache/arm64/data@app@~~BVypRbhknk2jAw7IUdLV5Q==@[email protected]@classes.vdex does not exist.
02-23 12:25:41.254 13561  2477 I artd    : OatFileAssistant test for existing oat file /data/dalvik-cache/arm64/data@app@~~BVypRbhknk2jAw7IUdLV5Q==@[email protected]@classes.vdex: File /data/dalvik-cache/arm64/data@app@~~BVypRbhknk2jAw7IUdLV5Q==@[email protected]@classes.vdex does not exist.
02-23 12:25:41.254 13561  2477 I artd    : GetBestInfo checking vdex next to the dex file (/data/app/~~BVypRbhknk2jAw7IUdLV5Q==/io.appium.uiautomator2.server-FF47JBW12o3tiK6ug7XxbQ==/oat/arm64/base.vdex)
02-23 12:25:41.254 13561  2477 I artd    : unable to open vdex file /data/app/~~BVypRbhknk2jAw7IUdLV5Q==/io.appium.uiautomator2.server-FF47JBW12o3tiK6ug7XxbQ==/oat/arm64/base.vdex: File /data/app/~~BVypRbhknk2jAw7IUdLV5Q==/io.appium.uiautomator2.server-FF47JBW12o3tiK6ug7XxbQ==/oat/arm64/base.vdex does not exist.
02-23 12:25:41.254 13561  2477 I artd    : OatFileAssistant test for existing oat file /data/app/~~BVypRbhknk2jAw7IUdLV5Q==/io.appium.uiautomator2.server-FF47JBW12o3tiK6ug7XxbQ==/oat/arm64/base.vdex: File /data/app/~~BVypRbhknk2jAw7IUdLV5Q==/io.appium.uiautomator2.server-FF47JBW12o3tiK6ug7XxbQ==/oat/arm64/base.vdex does not exist.
02-23 12:25:41.254 13561  2477 I artd    : GetBestInfo checking dm (/data/app/~~BVypRbhknk2jAw7IUdLV5Q==/io.appium.uiautomator2.server-FF47JBW12o3tiK6ug7XxbQ==/base.dm)
02-23 12:25:41.254 13561  2477 W ziparchive: Unable to open '/data/app/~~BVypRbhknk2jAw7IUdLV5Q==/io.appium.uiautomator2.server-FF47JBW12o3tiK6ug7XxbQ==/base.dm': No such file or directory
02-23 12:25:41.254 13561  2477 I artd    : OatFileAssistant test for existing oat file /data/app/~~BVypRbhknk2jAw7IUdLV5Q==/io.appium.uiautomator2.server-FF47JBW12o3tiK6ug7XxbQ==/base.dm: I/O error
02-23 12:25:41.254 13561  2477 I artd    : GetBestInfo checking dm (/data/app/~~BVypRbhknk2jAw7IUdLV5Q==/io.appium.uiautomator2.server-FF47JBW12o3tiK6ug7XxbQ==/base.dm)
02-23 12:25:41.254 13561  2477 W ziparchive: Unable to open '/data/app/~~BVypRbhknk2jAw7IUdLV5Q==/io.appium.uiautomator2.server-FF47JBW12o3tiK6ug7XxbQ==/base.dm': No such file or directory
02-23 12:25:41.254 13561  2477 I artd    : OatFileAssistant test for existing oat file /data/app/~~BVypRbhknk2jAw7IUdLV5Q==/io.appium.uiautomator2.server-FF47JBW12o3tiK6ug7XxbQ==/base.dm: I/O error
02-23 12:25:41.254 13561  2477 I artd    : GetBestInfo no usable artifacts
02-23 12:25:41.302   571   607 I ActivityManager: Force stopping com.android.chrome appid=10146 user=0: from pid 26349
02-23 12:25:41.308   571   607 I ActivityManager: Killing 25858:com.android.chrome:privileged_process0/u0a146 (adj 0): stop com.android.chrome due to from pid 26349
02-23 12:25:41.313   571   607 W IPCThreadState: Sending oneway calls to frozen process.
02-23 12:25:41.313   571   607 W IPCThreadState: Sending oneway calls to frozen process.
02-23 12:25:41.316   571   622 D DisplayManagerService: Drop pending events for gone uid 10146
02-23 12:25:41.317   571   757 W IPCThreadState: Sending oneway calls to frozen process.
02-23 12:25:41.317   571   757 W IPCThreadState: Sending oneway calls to frozen process.
02-23 12:25:41.317   571   757 W IPCThreadState: Sending oneway calls to frozen process.
02-23 12:25:41.317   571   757 W IPCThreadState: Sending oneway calls to frozen process.
02-23 12:25:41.317   571   757 W IPCThreadState: Sending oneway calls to frozen process.
02-23 12:25:41.317   571   757 W IPCThreadState: Sending oneway calls to frozen process.
02-23 12:25:41.318   571   757 D InetDiagMessage: Destroyed 7 sockets, proto=IPPROTO_TCP, family=AF_INET, states=14
02-23 12:25:41.318   571   757 D InetDiagMessage: Destroyed 1 sockets, proto=IPPROTO_TCP, family=AF_INET6, states=14
02-23 12:25:41.318   571   757 D InetDiagMessage: Destroyed live tcp sockets for uids={10146} in 1ms
02-23 12:25:41.319   571   757 D InetDiagMessage: Destroyed 0 sockets, proto=IPPROTO_TCP, family=AF_INET, states=14
02-23 12:25:41.319   571   607 I ActivityManager: Killing 25334:com.android.chrome/u0a146 (adj 0): stop com.android.chrome due to from pid 26349
02-23 12:25:41.319   571   757 D InetDiagMessage: Destroyed 0 sockets, proto=IPPROTO_TCP, family=AF_INET6, states=14
02-23 12:25:41.319   571   757 D InetDiagMessage: Destroyed live tcp sockets for uids={20146} in 1ms
02-23 12:25:41.320   571   621 D HintManagerService: Uid gone for 10146
02-23 12:25:41.330   571   607 E ProcessStats: Executing service ServiceState{4be382 org.chromium.content.app.SandboxedProcessService0 pkg=com.android.chrome proc=6c6604a} without owner
02-23 12:25:41.330   571   607 E ProcessStats: Binding service ServiceState{4be382 org.chromium.content.app.SandboxedProcessService0 pkg=com.android.chrome proc=6c6604a} without owner
02-23 12:25:41.330   571   607 E ProcessStats: Starting service ServiceState{4be382 org.chromium.content.app.SandboxedProcessService0 pkg=com.android.chrome proc=6c6604a} without owner
02-23 12:25:41.330   571   607 E ProcessStats: Binding service ServiceState{4be382 org.chromium.content.app.SandboxedProcessService0 pkg=com.android.chrome proc=6c6604a} without owner
02-23 12:25:41.332 25958 25958 I cr_ChildProcessService: Destroying ChildProcessService pid=25958
02-23 12:25:41.333  1444  1444 D BoundBrokerSvc: onUnbind: Intent { act=com.google.android.gms.safetynet.service.START pkg=com.google.android.gms }
02-23 12:25:41.339   571   607 W ActivityTaskManager: Force removing ActivityRecord{3dcc539 u0 com.android.chrome/org.chromium.chrome.browser.customtabs.CustomTabActivity t97 f}}: app died, no saved state

In case you get some idea from it. I am not able to decipher this and understand what could have exactly gone wrong. I checked with devs and they are also not very sure. They say that something wrong on the appium front, because manually one can perform the flow correctly without any crash.

Regards,
Nishant Shah

I don’t see anything in there that’s obvious. You might want to try Google’s diagnostic tools. Maybe if you can get a stack trace there will be more insight.

All I see in the log is that an app is blocked and frozen, so Appium can’t continue.

Thanks @wreed
I will try to dig into it further with the pointers you gave.
Just wanted to clarify that this is something doable with appium + webdriverIO…right?
i.e. If a custom browser tab is opened from a native or webview screen, its possible to interact with it and then go back to the app interaction?

Regards,
Nishant Shah

Yes, @nishant_shah, it is possible. Here is a tutorial on the subject:

https://medium.com/@lizpantalone/using-appium-in-webview-with-webdriverio-88ce6e694a14

@wreed thanks! but the tutorial is about handling a webview. I am able to successfully interact with a webview, but in our case for one of the flows it also opens up a separate browser instance from webview. The above error is occurring when I try to interact with this browser instance

Ok, apologies if I’m misunderstanding. I still think this can be automated, but I don’t understand the crash you are seeing. I hope the links I’ve given are of some help.