AppiumTestDistribution / appium-device-farm

This is an Appium 2.0 plugin designed to manage and create driver sessions on available devices.
https://devicefarm.org
Other
348 stars 104 forks source link

The broadcast does not come from an android device with remote control #1163

Closed nskcashHH closed 5 months ago

nskcashHH commented 5 months ago

Hi! I run remote control through the farm, a window opens with an endless download, and the session closes after a timeout. I haven't been able to figure out what's wrong for a long time? I try both on stimulants and on real devices. The startup process and all actions are attached below.

Appium 2.5.4 Farm 8.4.7-rc.37 MAC OS 14.4.1 M1 Pro

Screenshot 2024-06-10 at 12 53 09
alekseybulygin@Aleksejs-MacBook-Pro ~ % appium server -ka 800 -pa /wd/hub  --use-plugins=device-farm  --plugin-device-farm-platform=both
[Appium] Attempting to load plugin device-farm...
[Appium] Requiring plugin at /Users/alekseybulygin/.appium/node_modules/appium-device-farm/lib/src/main.js
{ DeviceFarmProLoader: [class u], default: [class u] }
[Appium] xm has been successfully loaded in 0.637s
[Appium] Welcome to Appium v2.5.4 (REV f8b1d1f56cb19212b89e385e000ca3921912abeb)
[Appium] Non-default server args:
[Appium] {
[Appium]   basePath: '/wd/hub',
[Appium]   keepAliveTimeout: 800,
[Appium]   usePlugins: [
[Appium]     'device-farm'
[Appium]   ]
[Appium] }
[Appium] The autodetected Appium home path: /Users/alekseybulygin/.appium
[Appium] Attempting to load driver uiautomator2...
[Appium] Attempting to load driver safari...
[Appium] Attempting to load driver xcuitest...
[Appium] Requiring driver at /Users/alekseybulygin/.appium/node_modules/appium-safari-driver/build/index.js
[Appium] SafariDriver has been successfully loaded in 0.097s
[Appium] Requiring driver at /Users/alekseybulygin/.appium/node_modules/appium-xcuitest-driver/build/index.js
[Appium] XCUITestDriver has been successfully loaded in 0.551s
[Appium] Requiring driver at /Users/alekseybulygin/.appium/node_modules/appium-uiautomator2-driver/build/index.js
[Appium] AndroidUiautomator2Driver has been successfully loaded in 0.958s
[device-farm-main] 📱 Update server with CLI Args: {"subcommand":"server","address":"0.0.0.0","basePath":"/wd/hub","keepAliveTimeout":800,"port":4723,"usePlugins":["device-farm"],"plugin":{"device-farm":{"platform":"both","androidDeviceType":"both","iosDeviceType":"both"}},"extraArgs":[],"allowCors":false,"allowInsecure":[],"callbackPort":4723,"debugLogSpacing":false,"denyInsecure":[],"localTimezone":false,"loglevel":"debug","logNoColors":false,"logTimestamp":false,"pluginsImportChunkSize":7,"driversImportChunkSize":3,"longStacktrace":false,"noPermsCheck":false,"relaxedSecurityEnabled":false,"sessionOverride":false,"strictCaps":false,"useDrivers":[],"driver":{"xcuitest":{"wdaLocalPort":8100}},"tmpDir":"/var/folders/rw/dsdnyw2x0kgdn_7_lx8nhmxw0000gn/T"}
{ DeviceFarmProLoader: [class u], default: [class u] }
[ADB] Found 2 'build-tools' folders under '/Users/alekseybulygin/Library/Android/sdk' (newest first):
[ADB]     /Users/alekseybulygin/Library/Android/sdk/build-tools/34.0.0
[ADB]     /Users/alekseybulygin/Library/Android/sdk/build-tools/33.0.0
[ADB] Using 'adb' from '/Users/alekseybulygin/Library/Android/sdk/platform-tools/adb'
[ADB] Running '/Users/alekseybulygin/Library/Android/sdk/platform-tools/adb -P 5037 start-server'
[device-farm-main] Cli Args: {"subcommand":"server","address":"0.0.0.0","basePath":"/wd/hub","keepAliveTimeout":800,"port":4723,"usePlugins":["device-farm"],"plugin":{"device-farm":{"platform":"both","androidDeviceType":"both","iosDeviceType":"both"}},"extraArgs":[],"allowCors":false,"allowInsecure":[],"callbackPort":4723,"debugLogSpacing":false,"denyInsecure":[],"localTimezone":false,"loglevel":"debug","logNoColors":false,"logTimestamp":false,"pluginsImportChunkSize":7,"driversImportChunkSize":3,"longStacktrace":false,"noPermsCheck":false,"relaxedSecurityEnabled":false,"sessionOverride":false,"strictCaps":false,"useDrivers":[],"driver":{"xcuitest":{"wdaLocalPort":8100}},"tmpDir":"/var/folders/rw/dsdnyw2x0kgdn_7_lx8nhmxw0000gn/T"}
[device-farm-main] 📱 Update server with Plugin Args: {"platform":"both","iosDeviceType":"both","androidDeviceType":"both","skipChromeDownload":true,"maxSessions":8,"adbRemote":[],"emulators":[],"simulators":[],"deviceAvailabilityTimeoutMs":300000,"deviceAvailabilityQueryIntervalMs":10000,"sendNodeDevicesToHubIntervalMs":30000,"checkStaleDevicesIntervalMs":30000,"checkBlockedDevicesIntervalMs":30000,"newCommandTimeoutSec":60,"bindHostOrIp":"192.168.88.44","enableDashboard":false,"removeDevicesFromDatabaseBeforeRunningThePlugin":false,"remoteConnectionTimeout":60000,"liveStreaming":false,"wdaBundleId":"","preBuildWDAPath":""}
[device-farm-main] Initializing storage
[device-farm-main] Initializing database
[device-farm-main] Creating new database: ./temp-appium/db.json
[device-farm-main] Database loaded
[device-farm-main] proxy is not required for axios
[device-farm-main] Registering proxy middleware
[device-farm-main] Registering websocket handler for Android Streaming
[device-farm-main] Registering websocket handler for iOS Streaming
Inside get streaming server
[device-farm-main] 📣📣📣 I'm a hub and I'm listening on 192.168.88.44:4723
[device-farm-main] Found 0 device candidates to be released
[device-farm-main] Hub will clean pending sessions every 30000 ms with pending session timeout: 310000 ms
[ADB] Using 'adb' from '/Users/alekseybulygin/Library/Android/sdk/platform-tools/adb'
[ADB] Running '/Users/alekseybulygin/Library/Android/sdk/platform-tools/adb -P 5037 start-server'
[ADB] Getting connected devices
[ADB] Connected devices: [{"udid":"emulator-5554","state":"device"}]
[device-farm-main] fetchAndroidDevices from host: undefined. Found 1 android devices
[device-farm-main] Android Device details for emulator-5554 not available. So querying now.
[device-farm-main] skipChromeDownload server arg is set; skipping Chromedriver installation.
[device-farm-main] Android web/hybrid testing will not be possible without Chromedriver.
[ADB] Running '/Users/alekseybulygin/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.version.release'
[ADB] Running '/Users/alekseybulygin/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.characteristics'
[ADB] Running '/Users/alekseybulygin/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell wm size'
[ADB] Running '/Users/alekseybulygin/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.product.name'
[device-farm-main] Found 1 android devices
[device-farm-main] Fetching local simulators
[device-farm-main] iOS Simulators: true
[device-farm-main] tvOS Simulators: false
[device-farm-main] No tvOS simulators found!
[device-farm-main] Added 31 new devices to local database
[device-farm-main] 📣📣📣 Device Farm Plugin will be served at 🔗 http://192.168.88.44:4723/device-farm with id 57128fea-a86b-4bf0-a043-99e4f10c67ae
[Appium] Appium REST http interface listener started on http://0.0.0.0:4723/wd/hub
[Appium] You can provide the following URLs in your client code to connect to this server:
[Appium]    http://127.0.0.1:4723/wd/hub (only accessible from the same host)
[Appium]    http://192.168.88.44:4723/wd/hub
[Appium] Available drivers:
[Appium]   - uiautomator2@2.44.0 (automationName 'UiAutomator2')
[Appium]   - safari@3.5.11 (automationName 'Safari')
[Appium]   - xcuitest@7.14.0 (automationName 'XCUITest')
[Appium] Available plugins:
[Appium]   - appium-dashboard@v2.0.3
[Appium]   - device-farm@8.4.7-rc.37 (ACTIVE)
[HTTP] --> GET /device-farm/
[HTTP] {}
[device-farm-main] Received non-webdriver request with url /device-farm/. So, not proxying it to downstream.
[HTTP] <-- GET /device-farm/ 200 19 ms - 513
[HTTP] 
[HTTP] --> GET /device-farm/ui-assets/index-D6SKOIND.js
[HTTP] {}
[device-farm-main] Received non-webdriver request with url /device-farm/ui-assets/index-D6SKOIND.js. So, not proxying it to downstream.
[HTTP] <-- GET /device-farm/ui-assets/index-D6SKOIND.js 304 4 ms - -
[HTTP] 
[HTTP] --> GET /device-farm/ui-assets/index-BqgeQvg2.css
[HTTP] {}
[device-farm-main] Received non-webdriver request with url /device-farm/ui-assets/index-BqgeQvg2.css. So, not proxying it to downstream.
[HTTP] <-- GET /device-farm/ui-assets/index-BqgeQvg2.css 304 0 ms - -
[HTTP] 
[HTTP] --> GET /device-farm/ui-assets/device-farm-logo-nn1d6kPf.png
[HTTP] {}
[device-farm-main] Received non-webdriver request with url /device-farm/ui-assets/device-farm-logo-nn1d6kPf.png. So, not proxying it to downstream.
[HTTP] <-- GET /device-farm/ui-assets/device-farm-logo-nn1d6kPf.png 304 1 ms - -
[HTTP] 
[HTTP] --> GET /device-farm/api/device
[HTTP] {}
[device-farm-main] Received non-webdriver request with url /device-farm/api/device. So, not proxying it to downstream.
[HTTP] --> GET /dashboard/api/ping
[HTTP] {}
[device-farm-main] Received non-webdriver request with url /dashboard/api/ping. So, not proxying it to downstream.
[HTTP] No route found for /dashboard/api/ping
[HTTP] <-- GET /dashboard/api/ping 404 1 ms - 211
[HTTP] 
[HTTP] <-- GET /device-farm/api/device 200 31 ms - 32505
[HTTP] 
[HTTP] --> GET /device-farm/api/queue/length
[HTTP] {}
[device-farm-main] Received non-webdriver request with url /device-farm/api/queue/length. So, not proxying it to downstream.
[HTTP] <-- GET /device-farm/api/queue/length 304 1 ms - -
[HTTP] 
[HTTP] --> POST /device-farm/api/block
[HTTP] {"udid":"emulator-5554","host":"http://192.168.88.44:4723"}
[device-farm-main] Received non-webdriver request with url /device-farm/api/block. So, not proxying it to downstream.
[device-farm-main] Updated devices with filter: {"udid":{"$in":"emulator-5554"}}
[HTTP] <-- POST /device-farm/api/block 200 5 ms - 16
[HTTP] 
[HTTP] --> POST /device-farm/api/dashboard/appiumSession
[HTTP] {"udid":"emulator-5554","systemPort":57440,"origin":"http://localhost:4723"}
[device-farm-main] Received non-webdriver request with url /device-farm/api/dashboard/appiumSession. So, not proxying it to downstream.
[device-farm-main] Updated devices with filter: {"udid":{"$in":["emulator-5554"]}}
[HTTP] --> POST /wd/hub/session
[HTTP] {"capabilities":{"alwaysMatch":{"platformName":"android","appium:automationName":"UIAutomator2","appium:newCommandTimeout":120,"appium:waitForIdleTimeout":10,"appium:udid":"emulator-5554","df:skipReport":true,"appium:systemPort":57440},"firstMatch":[{}]},"desiredCapabilities":{"platformName":"android","appium:automationName":"UIAutomator2","appium:newCommandTimeout":120,"appium:waitForIdleTimeout":10,"appium:udid":"emulator-5554","df:skipReport":true,"appium:systemPort":57440}}
[AppiumDriver@a31d] Calling AppiumDriver.createSession() with args: [{"platformName":"android","appium:automationName":"UIAutomator2","appium:newCommandTimeout":120,"appium:waitForIdleTimeout":10,"appium:udid":"emulator-5554","df:skipReport":true,"appium:systemPort":57440},null,{"alwaysMatch":{"platformName":"android","appium:automationName":"UIAutomator2","appium:newCommandTimeout":120,"appium:waitForIdleTimeout":10,"appium:udid":"emulator-5554","df:skipReport":true,"appium:systemPort":57440},"firstMatch":[{}]}]
[device-farm-main] 📱 Plugin Args: {"platform":"both","androidDeviceType":"both","iosDeviceType":"both"}
[AppiumDriver@a31d] Plugins which can handle cmd 'createSession': device-farm
[AppiumDriver@a31d] Plugin device-farm is now handling cmd 'createSession'
[device-farm-main] 📱 pluginArgs: {"platform":"both","iosDeviceType":"both","androidDeviceType":"both","skipChromeDownload":true,"maxSessions":8,"adbRemote":[],"emulators":[],"simulators":[],"deviceAvailabilityTimeoutMs":300000,"deviceAvailabilityQueryIntervalMs":10000,"sendNodeDevicesToHubIntervalMs":30000,"checkStaleDevicesIntervalMs":30000,"checkBlockedDevicesIntervalMs":30000,"newCommandTimeoutSec":60,"bindHostOrIp":"192.168.88.44","enableDashboard":false,"removeDevicesFromDatabaseBeforeRunningThePlugin":false,"remoteConnectionTimeout":60000,"liveStreaming":false,"wdaBundleId":"","preBuildWDAPath":""}
[device-farm-main] Receiving session request at host: 192.168.88.44
[device-farm-main] 📱 Creating temporary session capability_id: b92d9c1f-113d-49a6-b18e-ed6ea5b62693
[device-farm-main] Max session count: 8, Busy device count: 0
[device-farm-main] Waiting for free device. Filter: {"platform":"android","udid":"emulator-5554","busy":false,"userBlocked":false}}
[device-farm-main] Updated devices with filter: {"platform":"android","udid":{"$in":"emulator-5554"}}
[device-farm-main] Updated devices with filter: {"platform":"android","udid":{"$in":"emulator-5554"}}
[device-farm-main] 📱 Blocking device emulator-5554 at host http://192.168.88.44:4723 for new session
[device-farm-main] Updating allocated device: "{"userBlocked":true,"offline":false,"adbPort":5037,"systemPort":57440,"sdk":"12","realDevice":false,"name":"sdk_gphone64_arm64","busy":false,"state":"device","udid":"emulator-5554","platform":"android","deviceType":"emulator","host":"http://192.168.88.44:4723","totalUtilizationTimeMilliSec":7808861,"sessionStartTime":0,"width":"1080","height":"2280","liveStreaming":false,"tags":[],"nodeId":"57128fea-a86b-4bf0-a043-99e4f10c67ae","meta":{"revision":1,"created":1718013132773,"version":0,"updated":1718013138564},"$loki":1}"
[device-farm-main] Updated allocated device: "[{"userBlocked":true,"offline":false,"adbPort":5037,"systemPort":57440,"sdk":"12","realDevice":false,"name":"sdk_gphone64_arm64","busy":true,"state":"device","udid":"emulator-5554","platform":"android","deviceType":"emulator","host":"http://192.168.88.44:4723","totalUtilizationTimeMilliSec":7808861,"sessionStartTime":0,"width":"1080","height":"2280","liveStreaming":false,"tags":[],"nodeId":"57128fea-a86b-4bf0-a043-99e4f10c67ae","meta":{"revision":3,"created":1718013132773,"version":0,"updated":1718013138587},"$loki":1,"newCommandTimeout":120}]"
[device-farm-main] device.host: http://192.168.88.44:4723 and pluginArgs.bindHostOrIp: 192.168.88.44
[device-farm-main] 📱 Creating session on the same node
[AppiumDriver@a31d] Executing default handling behavior for command 'createSession'
[AppiumDriver@a31d] Event 'newSessionRequested' logged at 1718013138588 (12:52:18 GMT+0300 (Moscow Standard Time))
[Appium] Attempting to find matching driver for automationName 'UIAutomator2' and platformName 'android'
[Appium] The 'uiautomator2' driver was installed and matched caps.
[Appium] Will require it at /Users/alekseybulygin/.appium/node_modules/appium-uiautomator2-driver
[Appium] Requiring driver at /Users/alekseybulygin/.appium/node_modules/appium-uiautomator2-driver/build/index.js
[AppiumDriver@a31d] Appium v2.5.4 creating new AndroidUiautomator2Driver (v2.44.0) session
[AppiumDriver@a31d] Checking BaseDriver versions for Appium and AndroidUiautomator2Driver
[AppiumDriver@a31d] Appium's BaseDriver version is 9.6.0
[AppiumDriver@a31d] AndroidUiautomator2Driver's BaseDriver version is 9.6.0
[AndroidUiautomator2Driver@e56d] Creating session with W3C capabilities: {
[AndroidUiautomator2Driver@e56d]   "alwaysMatch": {
[AndroidUiautomator2Driver@e56d]     "platformName": "android",
[AndroidUiautomator2Driver@e56d]     "df:skipReport": true,
[AndroidUiautomator2Driver@e56d]     "appium:automationName": "UIAutomator2",
[AndroidUiautomator2Driver@e56d]     "appium:newCommandTimeout": 120,
[AndroidUiautomator2Driver@e56d]     "appium:waitForIdleTimeout": 10,
[AndroidUiautomator2Driver@e56d]     "appium:udid": "emulator-5554",
[AndroidUiautomator2Driver@e56d]     "appium:systemPort": 57521,
[AndroidUiautomator2Driver@e56d]     "appium:chromeDriverPort": 57522,
[AndroidUiautomator2Driver@e56d]     "appium:adbPort": 5037,
[AndroidUiautomator2Driver@e56d]     "appium:mjpegServerPort": 57523
[AndroidUiautomator2Driver@e56d]   },
[AndroidUiautomator2Driver@e56d]   "firstMatch": [
[AndroidUiautomator2Driver@e56d]     {}
[AndroidUiautomator2Driver@e56d]   ]
[AndroidUiautomator2Driver@e56d] }
[AndroidUiautomator2Driver@e56d] The following provided capabilities were not recognized by this driver:
[AndroidUiautomator2Driver@e56d]   df:skipReport
[AndroidUiautomator2Driver@e56d]   waitForIdleTimeout
[AndroidUiautomator2Driver@e56d]   chromeDriverPort
[AndroidUiautomator2Driver@e56d]   adbRemoteHost
[AndroidUiautomator2Driver@e56d (b60e94ce)] Session created with session id: b60e94ce-77a7-4002-b067-cdb50524999d
[AndroidUiautomator2Driver@e56d (b60e94ce)] Neither 'app' nor 'appPackage' was set. Starting UiAutomator2 without the target application
[ADB] Found 2 'build-tools' folders under '/Users/alekseybulygin/Library/Android/sdk' (newest first):
[ADB]     /Users/alekseybulygin/Library/Android/sdk/build-tools/34.0.0
[ADB]     /Users/alekseybulygin/Library/Android/sdk/build-tools/33.0.0
[ADB] Using 'adb' from '/Users/alekseybulygin/Library/Android/sdk/platform-tools/adb'
[ADB] Running '/Users/alekseybulygin/Library/Android/sdk/platform-tools/adb -P 5037 start-server'
[AndroidUiautomator2Driver@e56d (b60e94ce)] Retrieving device list
[ADB] Trying to find connected Android devices
[ADB] Getting connected devices
[ADB] Connected devices: [{"udid":"emulator-5554","state":"device"}]
[AndroidUiautomator2Driver@e56d (b60e94ce)] Using device: emulator-5554
[ADB] Using 'adb' from '/Users/alekseybulygin/Library/Android/sdk/platform-tools/adb'
[ADB] Running '/Users/alekseybulygin/Library/Android/sdk/platform-tools/adb -P 5037 start-server'
[ADB] Setting device id to emulator-5554
[ADB] Running '/Users/alekseybulygin/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.version.sdk'
[ADB] Current device property 'ro.build.version.sdk': 31
[ADB] Getting device platform version
[ADB] Running '/Users/alekseybulygin/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.version.release'
[ADB] Current device property 'ro.build.version.release': 12
[ADB] Device API level: 31
[AndroidUiautomator2Driver@e56d (b60e94ce)] Relaxing hidden api policy
[ADB] Running '/Users/alekseybulygin/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell 'settings put global hidden_api_policy_pre_p_apps 1;settings put global hidden_api_policy_p_apps 1;settings put global hidden_api_policy 1''
[AndroidUiautomator2Driver@e56d (b60e94ce)] No app sent in, not parsing package/activity
[ADB] Running '/Users/alekseybulygin/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 wait-for-device'
[ADB] Running '/Users/alekseybulygin/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell echo ping'
[AndroidUiautomator2Driver@e56d (b60e94ce)] Pushing settings apk to the device...
[ADB] Getting package info for 'io.appium.settings'
[ADB] Running '/Users/alekseybulygin/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.settings'
[ADB] The version name of the installed 'io.appium.settings' is greater or equal to the application version name ('5.7.5' >= '5.7.5')
[ADB] There is no need to install/upgrade '/Users/alekseybulygin/.appium/node_modules/appium-uiautomator2-driver/node_modules/io.appium.settings/apks/settings_apk-debug.apk'
[ADB] Running '/Users/alekseybulygin/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys activity services io.appium.settings'
[AndroidUiautomator2Driver@e56d (b60e94ce)] io.appium.settings is already running. There is no need to reset its permissions.
[Logcat] Starting logs capture with command: /Users/alekseybulygin/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 logcat -v threadtime
[AndroidUiautomator2Driver@e56d (b60e94ce)] Forwarding UiAutomator2 Server port 6790 to local port 57521
[AndroidUiautomator2Driver@e56d (b60e94ce)] MJPEG broadcasting requested, forwarding MJPEG server port 7810 to local port 57523
[ADB] Forwarding system: 57523 to device: 7810
[ADB] Running '/Users/alekseybulygin/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 forward tcp:57523 tcp:7810'
[ADB] Forwarding system: 57521 to device: 6790
[ADB] Running '/Users/alekseybulygin/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 forward tcp:57521 tcp:6790'
[AndroidUiautomator2Driver@e56d (b60e94ce)] No app capability. Assuming it is already on the device
[ADB] Checking app cert for /Users/alekseybulygin/.appium/node_modules/appium-uiautomator2-driver/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v6.0.7.apk
[ADB] Checking app cert for /Users/alekseybulygin/.appium/node_modules/appium-uiautomator2-driver/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk
[ADB] Using 'apksigner.jar' from '/Users/alekseybulygin/Library/Android/sdk/build-tools/34.0.0/lib/apksigner.jar'
[ADB] Starting apksigner: /Users/alekseybulygin/Library/Java/JavaVirtualMachines/corretto-17.0.9/Contents/Home/bin/java -Xmx1024M -Xss1m -jar /Users/alekseybulygin/Library/Android/sdk/build-tools/34.0.0/lib/apksigner.jar verify --print-certs /Users/alekseybulygin/.appium/node_modules/appium-uiautomator2-driver/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk
[ADB] Starting apksigner: /Users/alekseybulygin/Library/Java/JavaVirtualMachines/corretto-17.0.9/Contents/Home/bin/java -Xmx1024M -Xss1m -jar /Users/alekseybulygin/Library/Android/sdk/build-tools/34.0.0/lib/apksigner.jar verify --print-certs /Users/alekseybulygin/.appium/node_modules/appium-uiautomator2-driver/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v6.0.7.apk
[ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US
[ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc
[ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81
[ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87
[ADB] 
[ADB] sha256 hash did match for 'appium-uiautomator2-server-debug-androidTest.apk'
[ADB] '/Users/alekseybulygin/.appium/node_modules/appium-uiautomator2-driver/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' is signed with the default certificate
[ADB] Getting install status for io.appium.uiautomator2.server.test
[ADB] Running '/Users/alekseybulygin/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pm path io.appium.uiautomator2.server.test'
[ADB] 'io.appium.uiautomator2.server.test' is installed
[ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US
[ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc
[ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81
[ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87
[ADB] 
[ADB] sha256 hash did match for 'appium-uiautomator2-server-v6.0.7.apk'
[ADB] '/Users/alekseybulygin/.appium/node_modules/appium-uiautomator2-driver/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v6.0.7.apk' is signed with the default certificate
[ADB] Getting package info for 'io.appium.uiautomator2.server'
[ADB] Running '/Users/alekseybulygin/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.uiautomator2.server'
[ADB] The version name of the installed 'io.appium.uiautomator2.server' is greater or equal to the application version name ('6.0.7' >= '6.0.7')
[AndroidUiautomator2Driver@e56d (b60e94ce)] Server packages status: [{"wasSigned":true,"installState":"sameVersionInstalled","appPath":"/Users/alekseybulygin/.appium/node_modules/appium-uiautomator2-driver/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v6.0.7.apk","appId":"io.appium.uiautomator2.server"},{"wasSigned":true,"installState":"sameVersionInstalled","appPath":"/Users/alekseybulygin/.appium/node_modules/appium-uiautomator2-driver/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk","appId":"io.appium.uiautomator2.server.test"}]
[AndroidUiautomator2Driver@e56d (b60e94ce)] Server packages are not going to be (re)installed
[AndroidUiautomator2Driver@e56d (b60e94ce)] Waiting up to 30000ms for services to be available
[ADB] Running '/Users/alekseybulygin/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pm list instrumentation'
[AndroidUiautomator2Driver@e56d (b60e94ce)] Instrumentation target 'io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner' is available
[ADB] Adding packages ["io.appium.settings","io.appium.uiautomator2.server","io.appium.uiautomator2.server.test"] to Doze whitelist
[ADB] Got the following command chunks to execute: [["dumpsys","deviceidle","whitelist","+io.appium.settings",";","dumpsys","deviceidle","whitelist","+io.appium.uiautomator2.server",";","dumpsys","deviceidle","whitelist","+io.appium.uiautomator2.server.test",";"]]
[ADB] Running '/Users/alekseybulygin/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys deviceidle whitelist +io.appium.settings ; dumpsys deviceidle whitelist +io.appium.uiautomator2.server ; dumpsys deviceidle whitelist +io.appium.uiautomator2.server.test ;'
[AndroidUiautomator2Driver@e56d (b60e94ce)] Performing shallow cleanup of automation leftovers
[AndroidUiautomator2Driver@e56d (b60e94ce)] No obsolete sessions have been detected (socket hang up)
[ADB] Running '/Users/alekseybulygin/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop io.appium.uiautomator2.server.test'
[AndroidUiautomator2Driver@e56d (b60e94ce)] Starting UIAutomator2 server 6.0.7
[AndroidUiautomator2Driver@e56d (b60e94ce)] Using UIAutomator2 server from '/Users/alekseybulygin/.appium/node_modules/appium-uiautomator2-driver/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v6.0.7.apk' and test from '/Users/alekseybulygin/.appium/node_modules/appium-uiautomator2-driver/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk'
[AndroidUiautomator2Driver@e56d (b60e94ce)] Waiting up to 30000ms for UiAutomator2 to be online...
[ADB] Creating ADB subprocess with args: ["-P","5037","-s","emulator-5554","shell","am","instrument","-w","-e","disableAnalytics","true","io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner"]
[AndroidUiautomator2Driver@e56d (b60e94ce)] Matched '/status' to command name 'getStatus'
[AndroidUiautomator2Driver@e56d (b60e94ce)] Proxying [GET /status] to [GET http://127.0.0.1:57521/status] with no body
[AndroidUiautomator2Driver@e56d (b60e94ce)] socket hang up
[Instrumentation] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:
[AndroidUiautomator2Driver@e56d (b60e94ce)] Matched '/status' to command name 'getStatus'
[AndroidUiautomator2Driver@e56d (b60e94ce)] Proxying [GET /status] to [GET http://127.0.0.1:57521/status] with no body
[AndroidUiautomator2Driver@e56d (b60e94ce)] socket hang up
[AndroidUiautomator2Driver@e56d (b60e94ce)] Matched '/status' to command name 'getStatus'
[AndroidUiautomator2Driver@e56d (b60e94ce)] Proxying [GET /status] to [GET http://127.0.0.1:57521/status] with no body
[AndroidUiautomator2Driver@e56d (b60e94ce)] Got response with status 200: {"sessionId":"None","value":{"message":"UiAutomator2 Server is ready to accept commands","ready":true}}
[AndroidUiautomator2Driver@e56d (b60e94ce)] The initialization of the instrumentation process took 2109ms
[AndroidUiautomator2Driver@e56d (b60e94ce)] Matched '/session' to command name 'createSession'
[AndroidUiautomator2Driver@e56d (b60e94ce)] Proxying [POST /session] to [POST http://127.0.0.1:57521/session] with body: {"capabilities":{"firstMatch":[{"platformName":"android","df:skipReport":true,"automationName":"UIAutomator2","newCommandTimeout":120,"waitForIdleTimeout":10,"udid":"emulator-5554","systemPort":57521,"chromeDriverPort":57522,"adbPort":5037,"mjpegServerPort":57523,"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"android","df:skipReport":true,"automationName":"UIAutomator2","newCommandTimeout":120,"waitForIdleTimeout":10,"udid":"emulator-5554","systemPort":57521,"chromeDriverPort":57522,"adbPort":5037,"mjpegServerPort":57523},"deviceName":"emulator-5554","deviceUDID":"emulator-5554"}],"alwaysMatch":{}}}
[AndroidUiautomator2Driver@e56d (b60e94ce)] Got response with status 200: {"sessionId":"c835d11c-72d3-4667-82ed-db14a79f2fe4","value":{"capabilities":{"firstMatch":[{"platformName":"android","df:skipReport":true,"automationName":"UIAutomator2","newCommandTimeout":120,"waitForIdleTimeout":10,"udid":"emulator-5554","systemPort":57521,"chromeDriverPort":57522,"adbPort":5037,"mjpegServerPort":57523,"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"android","df:skipReport":true,"automationName":"UIAutomator2","newCommandTimeout":120,"waitForIdleTimeout":10,"udid":"emulator-5554","systemPort":57521,"chromeDriverPort":57522,"adbPort":5037,"mjpegServerPort":57523},"deviceName":"emulator-5554","deviceUDID":"emulator-5554"}],"alwaysMatch":{}},"sessionId":"c835d11c-72d3-4667-82ed-db14a79f2fe4"}}
[AndroidUiautomator2Driver@e56d (b60e94ce)] Determined the downstream protocol as 'W3C'
[AndroidUiautomator2Driver@e56d (b60e94ce)] Proxying [GET /appium/device/pixel_ratio] to [GET http://127.0.0.1:57521/session/c835d11c-72d3-4667-82ed-db14a79f2fe4/appium/device/pixel_ratio] with no body
[AndroidUiautomator2Driver@e56d (b60e94ce)] Matched '/appium/device/system_bars' to command name 'getSystemBars'
[AndroidUiautomator2Driver@e56d (b60e94ce)] Proxying [GET /appium/device/system_bars] to [GET http://127.0.0.1:57521/session/c835d11c-72d3-4667-82ed-db14a79f2fe4/appium/device/system_bars] with no body
[AndroidUiautomator2Driver@e56d (b60e94ce)] Matched '/window/current/size' to command name 'getWindowSize'
[AndroidUiautomator2Driver@e56d (b60e94ce)] Proxying [GET /window/current/size] to [GET http://127.0.0.1:57521/session/c835d11c-72d3-4667-82ed-db14a79f2fe4/window/current/size] with no body
[AndroidUiautomator2Driver@e56d (b60e94ce)] Proxying [GET /appium/device/info] to [GET http://127.0.0.1:57521/session/c835d11c-72d3-4667-82ed-db14a79f2fe4/appium/device/info] with no body
[ADB] Running '/Users/alekseybulygin/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys window'
[AndroidUiautomator2Driver@e56d (b60e94ce)] Got response with status 200: {"sessionId":"c835d11c-72d3-4667-82ed-db14a79f2fe4","value":2.75}
[AndroidUiautomator2Driver@e56d (b60e94ce)] Got response with status 200: {"sessionId":"c835d11c-72d3-4667-82ed-db14a79f2fe4","value":{"statusBar":83}}
[AndroidUiautomator2Driver@e56d (b60e94ce)] Got response with status 200: {"sessionId":"c835d11c-72d3-4667-82ed-db14a79f2fe4","value":{"height":2280,"width":1080}}
[AndroidUiautomator2Driver@e56d (b60e94ce)] Got response with status 200: {"sessionId":"c835d11c-72d3-4667-82ed-db14a79f2fe4","value":{"androidId":"7c258795133701da","apiVersion":"31","bluetooth":{"state":"ON"},"brand":"google","carrierName":"T-Mobile","displayDensity":440,"locale":"en_US","manufacturer":"Google","model":"sdk_gphone64_arm64","networks":[{"capabilities":{"SSID":null,"linkDownBandwidthKbps":4300,"linkUpstreamBandwidthKbps":1800,"networkCapabilities":"NET_CAPABILITY_MMS,NET_CAPABILITY_SUPL,NET_CAPABILITY_DUN,NET_CAPABILITY_FOTA,NET_CAPABILITY_IMS,NET_CAPABILITY_CBS,NET_CAPABILITY_INTERNET,NET_CAPABILITY_NOT_RESTRICTED,NET_CAPABILITY_TRUSTED,NET_CAPABILITY_NOT_VPN,NET_CAPABILITY_VALIDATED,NET_CAPABILITY_NOT_ROAMING,NET_CAPABILITY_NOT_CONGESTED,NET_CAPABILITY_NOT_SUSPENDED","signalStrength":-2147483648,"transportTypes":"TRANSPORT_CELLULAR"},"detailedState":"CONNECTED","extraInfo":"epc.tmobile.com","isAvailable":true,"isConnected":true,"isFailover":false,"isRoaming":false,"state":"CONNECTED","subtype":10,"subtypeName":"HSPA","type":0,"typeName":"MOBILE"},{"capabilitie...
[AndroidUiautomator2Driver@e56d (b60e94ce)] Screen already unlocked, doing nothing
[AppiumDriver@a31d] New AndroidUiautomator2Driver session created successfully, session b60e94ce-77a7-4002-b067-cdb50524999d added to master session list
[AppiumDriver@a31d] Event 'newSessionStarted' logged at 1718013142084 (12:52:22 GMT+0300 (Moscow Standard Time))
[device-farm-main] 📱 b92d9c1f-113d-49a6-b18e-ed6ea5b62693 Session response: 
[device-farm-main] {"protocol":"W3C","value":["b60e94ce-77a7-4002-b067-cdb50524999d",{"platformName":"android","df:skipReport":true,"automationName":"UIAutomator2","newCommandTimeout":120,"waitForIdleTimeout":10,"udid":"emulator-5554","systemPort":57521,"chromeDriverPort":57522,"adbPort":5037,"mjpegServerPort":57523,"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"android","df:skipReport":true,"automationName":"UIAutomator2","newCommandTimeout":120,"waitForIdleTimeout":10,"udid":"emulator-5554","systemPort":57521,"chromeDriverPort":57522,"adbPort":5037,"mjpegServerPort":57523},"deviceName":"emulator-5554","deviceUDID":"emulator-5554","pixelRatio":"2.75","statBarHeight":83,"viewportRect":{"left":0,"top":83,"width":1080,"height":2197},"deviceApiLevel":31,"platformVersion":"12","deviceManufacturer":"Google","deviceModel":"sdk_gphone64_arm64","deviceScreenSize":"1080x2280","deviceScreenDensity":440},"W3C"]}
[device-farm-main] 📱 Removing pending session with capability_id: b92d9c1f-113d-49a6-b18e-ed6ea5b62693
[device-farm-main] b92d9c1f-113d-49a6-b18e-ed6ea5b62693 📱 Session response is CreateSessionResponseInternal
[device-farm-main] 📱 b92d9c1f-113d-49a6-b18e-ed6ea5b62693 ----- Device UDID emulator-5554 blocked for session b60e94ce-77a7-4002-b067-cdb50524999d
[device-farm-main] Updating allocated device: "{"userBlocked":true,"offline":false,"adbPort":5037,"systemPort":57440,"sdk":"12","realDevice":false,"name":"sdk_gphone64_arm64","busy":false,"state":"device","udid":"emulator-5554","platform":"android","deviceType":"emulator","host":"http://192.168.88.44:4723","totalUtilizationTimeMilliSec":7808861,"sessionStartTime":0,"width":"1080","height":"2280","liveStreaming":false,"tags":[],"nodeId":"57128fea-a86b-4bf0-a043-99e4f10c67ae","meta":{"revision":1,"created":1718013132773,"version":0,"updated":1718013138564},"$loki":1}"
[device-farm-main] Updated allocated device: "[{"userBlocked":true,"offline":false,"adbPort":5037,"systemPort":57440,"sdk":"12","realDevice":false,"name":"sdk_gphone64_arm64","busy":true,"state":"device","udid":"emulator-5554","platform":"android","deviceType":"emulator","host":"http://192.168.88.44:4723","totalUtilizationTimeMilliSec":7808861,"sessionStartTime":1718013142084,"width":"1080","height":"2280","liveStreaming":false,"tags":[],"nodeId":"57128fea-a86b-4bf0-a043-99e4f10c67ae","meta":{"revision":4,"created":1718013132773,"version":0,"updated":1718013142084},"$loki":1,"newCommandTimeout":120,"session_id":"b60e94ce-77a7-4002-b067-cdb50524999d","lastCmdExecutedAt":1718013142084}]"
[device-farm-main] b92d9c1f-113d-49a6-b18e-ed6ea5b62693 📱 Updating Device emulator-5554 with session ID b60e94ce-77a7-4002-b067-cdb50524999d
[AppiumDriver@a31d] Promoting 1 sessionless plugins to be attached to session ID b60e94ce-77a7-4002-b067-cdb50524999d
[AndroidUiautomator2Driver@e56d (b60e94ce)] Cached the protocol value 'W3C' for the new session b60e94ce-77a7-4002-b067-cdb50524999d
[AndroidUiautomator2Driver@e56d (b60e94ce)] Responding to client with driver.createSession() result: {"capabilities":{"platformName":"android","df:skipReport":true,"automationName":"UIAutomator2","newCommandTimeout":120,"waitForIdleTimeout":10,"udid":"emulator-5554","systemPort":57521,"chromeDriverPort":57522,"adbPort":5037,"mjpegServerPort":57523,"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"android","df:skipReport":true,"automationName":"UIAutomator2","newCommandTimeout":120,"waitForIdleTimeout":10,"udid":"emulator-5554","systemPort":57521,"chromeDriverPort":57522,"adbPort":5037,"mjpegServerPort":57523},"deviceName":"emulator-5554","deviceUDID":"emulator-5554","pixelRatio":"2.75","statBarHeight":83,"viewportRect":{"left":0,"top":83,"width":1080,"height":2197},"deviceApiLevel":31,"platformVersion":"12","deviceManufacturer":"Google","deviceModel":"sdk_gphone64_arm64","deviceScreenSize":"1080x2280","deviceScreenDensity":440}}
[HTTP] <-- POST /wd/hub/session 200 3507 ms - 1073
[HTTP] 
[device-farm-main] Response from browser create session
[device-farm-main] {"value":{"capabilities":{"platformName":"android","df:skipReport":true,"automationName":"UIAutomator2","newCommandTimeout":120,"waitForIdleTimeout":10,"udid":"emulator-5554","systemPort":57521,"chromeDriverPort":57522,"adbPort":5037,"mjpegServerPort":57523,"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"android","df:skipReport":true,"automationName":"UIAutomator2","newCommandTimeout":120,"waitForIdleTimeout":10,"udid":"emulator-5554","systemPort":57521,"chromeDriverPort":57522,"adbPort":5037,"mjpegServerPort":57523},"deviceName":"emulator-5554","deviceUDID":"emulator-5554","pixelRatio":"2.75","statBarHeight":83,"viewportRect":{"left":0,"top":83,"width":1080,"height":2197},"deviceApiLevel":31,"platformVersion":"12","deviceManufacturer":"Google","deviceModel":"sdk_gphone64_arm64","deviceScreenSize":"1080x2280","deviceScreenDensity":440},"sessionId":"b60e94ce-77a7-4002-b067-cdb50524999d"}}
[device-farm-main] Updated devices with filter: {"udid":{"$in":["emulator-5554"]}}
[HTTP] <-- POST /device-farm/api/dashboard/appiumSession 200 3516 ms - 720
[HTTP] 
[HTTP] --> POST /device-farm/api/dashboard/installAndroidStreamingApp
[HTTP] {"udid":"emulator-5554","systemPort":57440}
[device-farm-main] Received non-webdriver request with url /device-farm/api/dashboard/installAndroidStreamingApp. So, not proxying it to downstream.
[device-farm-main] Updated devices with filter: {"udid":{"$in":["emulator-5554"]}}
[ADB] Using 'adb' from '/Users/alekseybulygin/Library/Android/sdk/platform-tools/adb'
[ADB] Running '/Users/alekseybulygin/Library/Android/sdk/platform-tools/adb -P 5037 start-server'
Current directory:  /Users/alekseybulygin/.appium/node_modules/appium-device-farm/lib/stream.apk
[ADB] Running '/Users/alekseybulygin/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 install /Users/alekseybulygin/.appium/node_modules/appium-device-farm/lib/stream.apk'
Installed /Users/alekseybulygin/.appium/node_modules/appium-device-farm/lib/stream.apk on device emulator-5554
[ADB] Running '/Users/alekseybulygin/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pm list packages'
Allowing recording permissions
[ADB] Running '/Users/alekseybulygin/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell appops set com.device.farm PROJECT_MEDIA allow'
[HTTP] --> GET /device-farm/api/device
[HTTP] {}
[device-farm-main] Received non-webdriver request with url /device-farm/api/device. So, not proxying it to downstream.
[HTTP] <-- GET /device-farm/api/device 200 3 ms - 32649
[HTTP] 
[HTTP] --> GET /device-farm/api/queue/length
[HTTP] {}
[device-farm-main] Received non-webdriver request with url /device-farm/api/queue/length. So, not proxying it to downstream.
[HTTP] <-- GET /device-farm/api/queue/length 304 1 ms - -
[HTTP] 
[ADB] Running '/Users/alekseybulygin/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am start -W -n com.device.farm/com.device.farm.ScreenCaptureActivity'
[ADB] Running '/Users/alekseybulygin/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 forward tcp:57440 tcp:1991'
Pressing home
[ADB] Running '/Users/alekseybulygin/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell input keyevent KEYCODE_HOME'
[device-farm-main] Websocket event received, streaming app is running
[HTTP] <-- POST /device-farm/api/dashboard/installAndroidStreamingApp 200 6720 ms - 715
[HTTP] 
[HTTP] --> GET /device-farm/ui-assets/device-loading-oDMbFkEz.gif
[HTTP] {}
[device-farm-main] Received non-webdriver request with url /device-farm/ui-assets/device-loading-oDMbFkEz.gif. So, not proxying it to downstream.
[HTTP] <-- GET /device-farm/ui-assets/device-loading-oDMbFkEz.gif 304 1 ms - -
[HTTP] 
[device-farm-main] Found 0 device candidates to be released
[device-farm-main] Cleaning pending sessions...
[device-farm-main] No pending sessions to clean
^C[Appium] Received SIGINT - shutting down
[AppiumDriver@a31d] Cleaning up 1 active session
[AppiumDriver@a31d] Ending session, cause was 'The process has received SIGINT signal'
[AppiumDriver@a31d] Plugin device-farm defines an unexpected shutdown handler; calling it now
[AppiumDriver@a31d] Removing session 'b60e94ce-77a7-4002-b067-cdb50524999d' from our master session list
[AndroidUiautomator2Driver@e56d (b60e94ce)] Deleting UiAutomator2 session
[AndroidUiautomator2Driver@e56d (b60e94ce)] Deleting UiAutomator2 server session
[AndroidUiautomator2Driver@e56d (b60e94ce)] Matched '/' to command name 'deleteSession'
[AndroidUiautomator2Driver@e56d (b60e94ce)] Proxying [DELETE /] to [DELETE http://127.0.0.1:57521/session/c835d11c-72d3-4667-82ed-db14a79f2fe4] with no body
[Logcat] Logcat terminated with code null, signal SIGINT
[Instrumentation] The process has exited with code null
[device-farm-main] Unblocking device mapped with filter {"session_id":"b60e94ce-77a7-4002-b067-cdb50524999d","udid":"emulator-5554"} onUnexpectedShutdown from server
Waiting for Android and iOS websocket handlers to be removed..
[AndroidUiautomator2Driver@e56d (b60e94ce)] Got response with status 200: {"sessionId":"c835d11c-72d3-4667-82ed-db14a79f2fe4","value":null}
[ADB] Running '/Users/alekseybulygin/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys activity services io.appium.settings/.recorder.RecorderService'
[Logcat] Stopping logcat capture
[Logcat] Logcat already stopped
[ADB] Removing forwarded port socket connection: 57521 
[ADB] Running '/Users/alekseybulygin/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 forward --remove tcp:57521'
[ADB] Removing forwarded port socket connection: 57523 
[ADB] Running '/Users/alekseybulygin/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 forward --remove tcp:57523'
[AndroidUiautomator2Driver@e56d (b60e94ce)] Restoring hidden api policy to the device default configuration
[ADB] Running '/Users/alekseybulygin/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell 'settings delete global hidden_api_policy_pre_p_apps;settings delete global hidden_api_policy_p_apps;settings delete global hidden_api_policy''
[HTTP] Waiting until the server is closed
[HTTP] Received server close event
saikrishna321 commented 5 months ago

@nskcashHH Is this resolved ?

nskcashHH commented 5 months ago

@nskcashHH Is this resolved ?

yes, the problem was that I started an appium session and connected locally. That is, an incorrect link was formed http://127.0.0.1:4723/device-farm/#/androidStream?port=4723&platform=android&host=192.168.88.44&udid=R58T31CCMQD&width=1080&height=2400 192.168.88.44 - it is not possible to connect to your address, if you connect via 192.168.88.44:4723 from another computer, the image appears. The home or back buttons work, but for some reason touches and swipes don't work, but this is another problem, I'm studying it. But in general, you can open this topic so as not to create a new one. Here is an example of logs where I started the device and try to make a click on the or swipe.

WebSocket message received: { action: 'click', args: { actions: [ [Object] ] } }
Performing action on the screen {
  actions: [
    {
      type: 'pointer',
      id: 'finger1',
      parameters: [Object],
      actions: [Array]
    }
  ]
} {
  userBlocked: true,
  offline: false,
  adbPort: 5037,
  systemPort: 60798,
  sdk: '13',
  realDevice: true,
  name: 'a52qnsxx',
  busy: true,
  state: 'device',
  udid: 'R58T31CCMQD',
  platform: 'android',
  deviceType: 'real',
  host: 'http://192.168.88.44:4723',
  totalUtilizationTimeMilliSec: 2238364,
  sessionStartTime: 1718029612177,
  width: '1080',
  height: '2400',
  liveStreaming: false,
  tags: [],
  nodeId: 'd6e2e294-18c7-4890-8e87-1e98de940ed8',
  meta: {
    revision: 12,
    created: 1718028896864,
    version: 0,
    updated: 1718029612178
  },
  '$loki': 2,
  newCommandTimeout: 120,
  session_id: '305bdc8c-c9a8-4b53-a1a1-dcaf6f301da0',
  lastCmdExecutedAt: 1718029612177
}
[HTTP] --> GET /device-farm/api/device
[HTTP] {}
[device-farm-main] Received non-webdriver request with url /device-farm/api/device. So, not proxying it to downstream.
[HTTP] <-- GET /device-farm/api/device 304 1 ms - -
[HTTP] 
[HTTP] --> GET /device-farm/api/queue/length
[HTTP] {}
[device-farm-main] Received non-webdriver request with url /device-farm/api/queue/length. So, not proxying it to downstream.
[HTTP] <-- GET /device-farm/api/queue/length 304 0 ms - -
[HTTP] 
[device-farm-main] Found 0 device candidates to be released
[device-farm-main] Cleaning pending sessions...
[device-farm-main] No pending sessions to clean
[HTTP] --> GET /device-farm/api/device
[HTTP] {}
[device-farm-main] Received non-webdriver request with url /device-farm/api/device. So, not proxying it to downstream.
[HTTP] <-- GET /device-farm/api/device 304 5 ms - -
[HTTP] 
[HTTP] --> GET /device-farm/api/queue/length
[HTTP] {}
[device-farm-main] Received non-webdriver request with url /device-farm/api/queue/length. So, not proxying it to downstream.
[HTTP] <-- GET /device-farm/api/queue/length 304 0 ms - -
[HTTP] 
[device-farm-main] ******  UnhandledRejection ******
[device-farm-main] Reason:  
AxiosError: connect ETIMEDOUT 192.168.88.44:4723
    at Function.AxiosError.from (/Users/alekseybulygin/.appium/node_modules/appium-device-farm/node_modules/axios/lib/core/AxiosError.js:89:14)
    at RedirectableRequest.handleRequestError (/Users/alekseybulygin/.appium/node_modules/appium-device-farm/node_modules/axios/lib/adapters/http.js:610:25)
    at RedirectableRequest.emit (node:events:532:35)
    at ClientRequest.eventHandlers.<computed> (/Users/alekseybulygin/.appium/node_modules/appium-device-farm/node_modules/follow-redirects/index.js:38:24)
    at ClientRequest.emit (node:events:520:28)
    at Socket.socketErrorListener (node:_http_client:502:9)
    at Socket.emit (node:events:520:28)
    at emitErrorNT (node:internal/streams/destroy:170:8)
    at emitErrorCloseNT (node:internal/streams/destroy:129:3)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)
    at Axios.request (/Users/alekseybulygin/.appium/node_modules/appium-device-farm/node_modules/axios/lib/core/Axios.js:45:41)
    at processTicksAndRejections (node:internal/process/task_queues:95:5) {
  port: 4723,
  address: '192.168.88.44',
  syscall: 'connect',
  code: 'ETIMEDOUT',
  errno: -60,
  config: {
    transitional: {
      silentJSONParsing: true,
      forcedJSONParsing: true,
      clarifyTimeoutError: false
    },
    adapter: [ 'xhr', 'http', 'fetch' ],
    transformRequest: [ [Function: transformRequest] ],
    transformResponse: [ [Function: transformResponse] ],
    timeout: 60000,
    xsrfCookieName: 'XSRF-TOKEN',
    xsrfHeaderName: 'X-XSRF-TOKEN',
    maxContentLength: -1,
    maxBodyLength: -1,
    env: { FormData: [Function], Blob: [class Blob] },
    validateStatus: [Function: validateStatus],
    headers: Object [AxiosHeaders] {
      Accept: 'application/json, text/plain, */*',
      'Content-Type': 'application/json',
      'User-Agent': 'axios/1.7.2',
      'Content-Length': '318',
      'Accept-Encoding': 'gzip, compress, deflate, br'
    },
    method: 'post',
    url: 'http://192.168.88.44:4723/wd/hub/session/305bdc8c-c9a8-4b53-a1a1-dcaf6f301da0/actions',
    data: '{"actions":[{"type":"pointer","id":"finger1","parameters":{"pointerType":"touch"},"actions":[{"type":"pointerMove","duration":0,"x":967,"y":817},{"type":"pointerDown","button":0},{"type":"pause","duration":0},{"type":"pointerMove","duration":100,"origin":"viewport","x":570,"y":797},{"type":"pointerUp","button":0}]}]}'
  },
  request: <ref *1> Writable {
    _events: {
      close: undefined,
      error: [Function: handleRequestError],
      prefinish: undefined,
      finish: undefined,
      drain: undefined,
      response: [Function: handleResponse],
      socket: [Array],
      timeout: undefined,
      abort: undefined
    },
    _writableState: WritableState {
      highWaterMark: 65536,
      length: 0,
      corked: 0,
      onwrite: [Function: bound onwrite],
      writelen: 0,
      bufferedIndex: 0,
      pendingcb: 0,
      [Symbol(kState)]: 17580812,
      [Symbol(kBufferedValue)]: null
    },
    _maxListeners: undefined,
    _options: {
      maxRedirects: 21,
      maxBodyLength: Infinity,
      protocol: 'http:',
      path: '/wd/hub/session/305bdc8c-c9a8-4b53-a1a1-dcaf6f301da0/actions',
      method: 'POST',
      headers: [Object: null prototype],
      agents: [Object],
      auth: undefined,
      family: undefined,
      beforeRedirect: [Function: dispatchBeforeRedirect],
      beforeRedirects: [Object],
      hostname: '192.168.88.44',
      port: '4723',
      agent: undefined,
      nativeProtocols: [Object],
      pathname: '/wd/hub/session/305bdc8c-c9a8-4b53-a1a1-dcaf6f301da0/actions'
    },
    _ended: false,
    _ending: true,
    _redirectCount: 0,
    _redirects: [],
    _requestBodyLength: 318,
    _requestBodyBuffers: [ [Object] ],
    _eventsCount: 3,
    _onNativeResponse: [Function (anonymous)],
    _currentRequest: ClientRequest {
      _events: [Object: null prototype],
      _eventsCount: 7,
      _maxListeners: undefined,
      outputData: [],
      outputSize: 0,
      writable: true,
      destroyed: false,
      _last: false,
      chunkedEncoding: false,
      shouldKeepAlive: true,
      maxRequestsOnConnectionReached: false,
      _defaultKeepAlive: true,
      useChunkedEncodingByDefault: true,
      sendDate: false,
      _removedConnection: false,
      _removedContLen: false,
      _removedTE: false,
      strictContentLength: false,
      _contentLength: '318',
      _hasBody: true,
      _trailer: '',
      finished: false,
      _headerSent: true,
      _closed: false,
      _header: 'POST /wd/hub/session/305bdc8c-c9a8-4b53-a1a1-dcaf6f301da0/actions HTTP/1.1\r\n' +
        'Accept: application/json, text/plain, */*\r\n' +
        'Content-Type: application/json\r\n' +
        'User-Agent: axios/1.7.2\r\n' +
        'Content-Length: 318\r\n' +
        'Accept-Encoding: gzip, compress, deflate, br\r\n' +
        'Host: 192.168.88.44:4723\r\n' +
        'Connection: keep-alive\r\n' +
        '\r\n',
      _keepAliveTimeout: 0,
      _onPendingData: [Function: nop],
      agent: [Agent],
      socketPath: undefined,
      method: 'POST',
      maxHeaderSize: undefined,
      insecureHTTPParser: undefined,
      joinDuplicateHeaders: undefined,
      path: '/wd/hub/session/305bdc8c-c9a8-4b53-a1a1-dcaf6f301da0/actions',
      _ended: false,
      res: null,
      aborted: false,
      timeoutCb: [Function: emitRequestTimeout],
      upgradeOrConnect: false,
      parser: null,
      maxHeadersCount: null,
      reusedSocket: false,
      host: '192.168.88.44',
      protocol: 'http:',
      _redirectable: [Circular *1],
      [Symbol(shapeMode)]: false,
      [Symbol(kCapture)]: false,
      [Symbol(kBytesWritten)]: 0,
      [Symbol(kNeedDrain)]: false,
      [Symbol(corked)]: 0,
      [Symbol(kChunkedBuffer)]: [],
      [Symbol(kChunkedLength)]: 0,
      [Symbol(kSocket)]: [Socket],
      [Symbol(kOutHeaders)]: [Object: null prototype],
      [Symbol(errored)]: null,
      [Symbol(kHighWaterMark)]: 65536,
      [Symbol(kRejectNonStandardBodyWrites)]: false,
      [Symbol(kUniqueHeaders)]: null
    },
    _currentUrl: 'http://192.168.88.44:4723/wd/hub/session/305bdc8c-c9a8-4b53-a1a1-dcaf6f301da0/actions',
    _timeout: null,
    [Symbol(shapeMode)]: true,
    [Symbol(kCapture)]: false
  },
  cause: Error: connect ETIMEDOUT 192.168.88.44:4723
      at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1606:16) {
    errno: -60,
    code: 'ETIMEDOUT',
    syscall: 'connect',
    address: '192.168.88.44',
    port: 4723
  }
}
[device-farm-main] Error: connect ETIMEDOUT 192.168.88.44:4723
[device-farm-main]     at Function.AxiosError.from (/Users/alekseybulygin/.appium/node_modules/appium-device-farm/node_modules/axios/lib/core/AxiosError.js:89:14)
[device-farm-main]     at RedirectableRequest.handleRequestError (/Users/alekseybulygin/.appium/node_modules/appium-device-farm/node_modules/axios/lib/adapters/http.js:610:25)
[device-farm-main]     at RedirectableRequest.emit (node:events:532:35)
[device-farm-main]     at ClientRequest.eventHandlers.<computed> (/Users/alekseybulygin/.appium/node_modules/appium-device-farm/node_modules/follow-redirects/index.js:38:24)
[device-farm-main]     at ClientRequest.emit (node:events:520:28)
[device-farm-main]     at Socket.socketErrorListener (node:_http_client:502:9)
[device-farm-main]     at Socket.emit (node:events:520:28)
[device-farm-main]     at emitErrorNT (node:internal/streams/destroy:170:8)
[device-farm-main]     at emitErrorCloseNT (node:internal/streams/destroy:129:3)
[device-farm-main]     at processTicksAndRejections (node:internal/process/task_queues:82:21)
[device-farm-main]     at Axios.request (/Users/alekseybulygin/.appium/node_modules/appium-device-farm/node_modules/axios/lib/core/Axios.js:45:41)
[device-farm-main]     at processTicksAndRejections (node:internal/process/task_queues:95:5)
[device-farm-main] Promise: 
[device-farm-main] [object Promise]
[device-farm-main] ******  UnhandledRejection ******
nskcashHH commented 5 months ago

@saikrishna321 I have this behavior on iOS too, I try it on the simulator, it doesn't start on the iPhone due to a bug #1155

saikrishna321 commented 5 months ago

@nskcashHH Check with latest rc version for ios fix.

nskcashHH commented 5 months ago

@saikrishna321 The connection to the iPhone is now successful, but the device control does not work, I only see its stream. 8.4.7-rc.38

WebSocket message received: { action: 'click', args: { actions: [ [Object] ] } }
Performing action on the ios screen {
  actions: [
    {
      type: 'pointer',
      id: 'finger1',
      parameters: [Object],
      actions: [Array]
    }
  ]
} {
  userBlocked: true,
  offline: false,
  wdaLocalPort: 55805,
  mjpegServerPort: 55806,
  udid: '00008101-000A0D5C34C3003A',
  sdk: '17.4.1',
  name: 'iPhone-12 AQA Black',
  busy: true,
  realDevice: true,
  deviceType: 'real',
  platform: 'ios',
  host: 'http://192.168.88.44:4723',
  wdaBundleId: '',
  productModel: 'iPhone13,2',
  totalUtilizationTimeMilliSec: 143262,
  sessionStartTime: 1718090584729,
  width: '390',
  height: '844',
  tags: [],
  nodeId: '71fab9b9-abdc-417f-a62d-c8d89ac88b0a',
  meta: {
    revision: 16,
    created: 1718089180167,
    version: 0,
    updated: 1718090584729
  },
  '$loki': 1,
  proxyUrl: 'http://127.0.0.1:55805',
  proxySessionId: '471C43EB-BB02-4970-90A6-917284181C4E',
  newCommandTimeout: 120,
  session_id: '24488d4f-42ee-45f6-9071-d10fb32e30bf',
  lastCmdExecutedAt: 1718090584729
}
[HTTP] --> GET /device-farm/api/device
[HTTP] {}
[device-farm-main] Received non-webdriver request with url /device-farm/api/device. So, not proxying it to downstream.
[HTTP] <-- GET /device-farm/api/device 304 1 ms - -
[HTTP] 
[HTTP] --> GET /device-farm/api/queue/length
[HTTP] {}
[device-farm-main] Received non-webdriver request with url /device-farm/api/queue/length. So, not proxying it to downstream.
[HTTP] <-- GET /device-farm/api/queue/length 304 1 ms - -
[HTTP] 
[device-farm-main] ******  UnhandledRejection ******
[device-farm-main] Reason:  
AxiosError: timeout of 5000ms exceeded
    at RedirectableRequest.handleRequestTimeout (/Users/alekseybulygin/.appium/node_modules/appium-device-farm/node_modules/axios/lib/adapters/http.js:647:16)
    at RedirectableRequest.emit (node:events:520:28)
    at Timeout.<anonymous> (/Users/alekseybulygin/.appium/node_modules/appium-device-farm/node_modules/follow-redirects/index.js:210:12)
    at listOnTimeout (node:internal/timers:573:17)
    at processTimers (node:internal/timers:514:7)
    at Axios.request (/Users/alekseybulygin/.appium/node_modules/appium-device-farm/node_modules/axios/lib/core/Axios.js:45:41)
    at runNextTicks (node:internal/process/task_queues:60:5)
    at listOnTimeout (node:internal/timers:540:9)
    at processTimers (node:internal/timers:514:7) {
  code: 'ECONNABORTED',
  config: {
    transitional: {
      silentJSONParsing: true,
      forcedJSONParsing: true,
      clarifyTimeoutError: false
    },
    adapter: [ 'xhr', 'http', 'fetch' ],
    transformRequest: [ [Function: transformRequest] ],
    transformResponse: [ [Function: transformResponse] ],
    timeout: 5000,
    xsrfCookieName: 'XSRF-TOKEN',
    xsrfHeaderName: 'X-XSRF-TOKEN',
    maxContentLength: -1,
    maxBodyLength: -1,
    env: { FormData: [Function], Blob: [class Blob] },
    validateStatus: [Function: validateStatus],
    headers: Object [AxiosHeaders] {
      Accept: 'application/json, text/plain, */*',
      'Content-Type': 'application/json',
      'User-Agent': 'axios/1.7.2',
      'Content-Length': '246',
      'Accept-Encoding': 'gzip, compress, deflate, br'
    },
    method: 'post',
    url: 'http://192.168.88.44:4723/wd/hub/session/24488d4f-42ee-45f6-9071-d10fb32e30bf/actions',
    data: '{"actions":[{"type":"pointer","id":"finger1","parameters":{"pointerType":"touch"},"actions":[{"type":"pointerMove","duration":0,"x":305,"y":254},{"type":"pointerDown","button":0},{"type":"pause","duration":100},{"type":"pointerUp","button":0}]}]}'
  },
  request: <ref *1> Writable {
    _events: {
      close: undefined,
      error: [Function: handleRequestError],
      prefinish: undefined,
      finish: undefined,
      drain: undefined,
      response: [Function: handleResponse],
      socket: [Array],
      timeout: undefined,
      abort: undefined
    },
    _writableState: WritableState {
      highWaterMark: 65536,
      length: 0,
      corked: 0,
      onwrite: [Function: bound onwrite],
      writelen: 0,
      bufferedIndex: 0,
      pendingcb: 0,
      [Symbol(kState)]: 17580812,
      [Symbol(kBufferedValue)]: null
    },
    _maxListeners: undefined,
    _options: {
      maxRedirects: 21,
      maxBodyLength: Infinity,
      protocol: 'http:',
      path: '/wd/hub/session/24488d4f-42ee-45f6-9071-d10fb32e30bf/actions',
      method: 'POST',
      headers: [Object: null prototype],
      agents: [Object],
      auth: undefined,
      family: undefined,
      beforeRedirect: [Function: dispatchBeforeRedirect],
      beforeRedirects: [Object],
      hostname: '192.168.88.44',
      port: '4723',
      agent: undefined,
      nativeProtocols: [Object],
      pathname: '/wd/hub/session/24488d4f-42ee-45f6-9071-d10fb32e30bf/actions'
    },
    _ended: false,
    _ending: true,
    _redirectCount: 0,
    _redirects: [],
    _requestBodyLength: 246,
    _requestBodyBuffers: [ [Object] ],
    _eventsCount: 3,
    _onNativeResponse: [Function (anonymous)],
    _currentRequest: ClientRequest {
      _events: [Object: null prototype],
      _eventsCount: 7,
      _maxListeners: undefined,
      outputData: [],
      outputSize: 0,
      writable: true,
      destroyed: false,
      _last: false,
      chunkedEncoding: false,
      shouldKeepAlive: true,
      maxRequestsOnConnectionReached: false,
      _defaultKeepAlive: true,
      useChunkedEncodingByDefault: true,
      sendDate: false,
      _removedConnection: false,
      _removedContLen: false,
      _removedTE: false,
      strictContentLength: false,
      _contentLength: '246',
      _hasBody: true,
      _trailer: '',
      finished: false,
      _headerSent: true,
      _closed: false,
      _header: 'POST /wd/hub/session/24488d4f-42ee-45f6-9071-d10fb32e30bf/actions HTTP/1.1\r\n' +
        'Accept: application/json, text/plain, */*\r\n' +
        'Content-Type: application/json\r\n' +
        'User-Agent: axios/1.7.2\r\n' +
        'Content-Length: 246\r\n' +
        'Accept-Encoding: gzip, compress, deflate, br\r\n' +
        'Host: 192.168.88.44:4723\r\n' +
        'Connection: keep-alive\r\n' +
        '\r\n',
      _keepAliveTimeout: 0,
      _onPendingData: [Function: nop],
      agent: [Agent],
      socketPath: undefined,
      method: 'POST',
      maxHeaderSize: undefined,
      insecureHTTPParser: undefined,
      joinDuplicateHeaders: undefined,
      path: '/wd/hub/session/24488d4f-42ee-45f6-9071-d10fb32e30bf/actions',
      _ended: false,
      res: null,
      aborted: false,
      timeoutCb: [Function: emitRequestTimeout],
      upgradeOrConnect: false,
      parser: [HTTPParser],
      maxHeadersCount: null,
      reusedSocket: false,
      host: '192.168.88.44',
      protocol: 'http:',
      _redirectable: [Circular *1],
      [Symbol(shapeMode)]: false,
      [Symbol(kCapture)]: false,
      [Symbol(kBytesWritten)]: 0,
      [Symbol(kNeedDrain)]: false,
      [Symbol(corked)]: 0,
      [Symbol(kChunkedBuffer)]: [],
      [Symbol(kChunkedLength)]: 0,
      [Symbol(kSocket)]: [Socket],
      [Symbol(kOutHeaders)]: [Object: null prototype],
      [Symbol(errored)]: null,
      [Symbol(kHighWaterMark)]: 65536,
      [Symbol(kRejectNonStandardBodyWrites)]: false,
      [Symbol(kUniqueHeaders)]: null
    },
    _currentUrl: 'http://192.168.88.44:4723/wd/hub/session/24488d4f-42ee-45f6-9071-d10fb32e30bf/actions',
    _timeout: null,
    [Symbol(shapeMode)]: true,
    [Symbol(kCapture)]: false
  }
}
[device-farm-main] AxiosError: timeout of 5000ms exceeded
[device-farm-main]     at RedirectableRequest.handleRequestTimeout (/Users/alekseybulygin/.appium/node_modules/appium-device-farm/node_modules/axios/lib/adapters/http.js:647:16)
[device-farm-main]     at RedirectableRequest.emit (node:events:520:28)
[device-farm-main]     at Timeout.<anonymous> (/Users/alekseybulygin/.appium/node_modules/appium-device-farm/node_modules/follow-redirects/index.js:210:12)
[device-farm-main]     at listOnTimeout (node:internal/timers:573:17)
[device-farm-main]     at processTimers (node:internal/timers:514:7)
[device-farm-main]     at Axios.request (/Users/alekseybulygin/.appium/node_modules/appium-device-farm/node_modules/axios/lib/core/Axios.js:45:41)
[device-farm-main]     at runNextTicks (node:internal/process/task_queues:60:5)
[device-farm-main]     at listOnTimeout (node:internal/timers:540:9)
[device-farm-main]     at processTimers (node:internal/timers:514:7)
[device-farm-main] Promise: 
[device-farm-main] [object Promise]
saikrishna321 commented 5 months ago

@nskcashHH Can you try with latest version 8.4.7-rc.39

nskcashHH commented 5 months ago

@saikrishna321 I launched version 8.4.7-rc.39 and it got much better. On Android, device management works without much delay. But on iOS, the control happens, but the picture is not automatically updated in the browser, they come after each action to refresh the browser page so that the current screen is displayed. I'm trying it on the iPhone and on the simulator. There is a delay of more than 30 seconds on the stimulator, and the image does not update automatically on the iPhone. I repeat that on android the delay is only a few seconds, not smoothly, but the frames are updated and this can generally be used.

nskcashHH commented 5 months ago

maybe I had some problems on the local network, it's working well now.