-
Notifications
You must be signed in to change notification settings - Fork 26
Description
While using genymotion emulators I'm getting this error when trying to use any of the emulated android devices:
STFagent is installed automatically but I'm also getting the errors in the docker log after app startup like this:
devicehub-provider | 2025-03-20T12:38:42.617Z INF/device:plugins:identity 44749 [192.168.242.112:5555] Solving identity
devicehub-provider | 2025-03-20T12:38:42.619Z INF/device:resources:service 44805 [192.168.242.113:5555] Checking whether we need to install STFService
devicehub-provider | 2025-03-20T12:38:42.619Z INF/device:resources:service 44805 [192.168.242.113:5555] Calling getPath()
devicehub-provider | 2025-03-20T12:38:42.660Z INF/device:plugins:service 44760 [R6CY2001CAR] Launching service
devicehub-provider | 2025-03-20T12:38:42.660Z INF/device:plugins:service 44760 [R6CY2001CAR] using 'start-foreground-service' command for API 34
devicehub-provider | 2025-03-20T12:38:42.666Z INF/device:plugins:service 44760 [R6CY2001CAR] Agent says: "InputClient started"
devicehub-provider | 2025-03-20T12:38:42.763Z INF/device:plugins:identity 44695 [R68T202S6BZ] Solving identity
devicehub-provider | 2025-03-20T12:38:42.797Z INF/provider 1 [] Starting to work
devicehub-provider | 2025-03-20T12:38:42.797Z INF/provider 1 [] Spawned a device worker
devicehub-provider | 2025-03-20T12:38:42.891Z INF/device:resources:service 44805 [192.168.242.113:5555] getPath pm exec returned package:/data/app/~~DhjWrPcAITGL8dRU6OD02Q==/jp.co.cyberagent.stf-c20a7uw_qRswDblsbhB7mQ==/base.apk
devicehub-provider | 2025-03-20T12:38:42.891Z INF/device:resources:service 44805 [192.168.242.113:5555] Running version check
devicehub-provider | Attacted device udid: undefined; name: undefined
devicehub-provider | 2025-03-20T12:38:42.896Z INF/device:plugins:solo 44749 [192.168.242.112:5555] Subscribing to permanent channel "woWayXi9jNvuMQLHM+zqSLWRMuc="
devicehub-provider | 2025-03-20T12:38:42.897Z INF/device:plugins:screen:stream 44749 [192.168.242.112:5555] ScreenGrabber option set to minicap-bin
devicehub-provider | 2025-03-20T12:38:42.897Z INF/device:plugins:screen:stream 44749 [192.168.242.112:5555] ScreenFrameRate option set to 20
devicehub-provider | 2025-03-20T12:38:42.897Z INF/device:plugins:screen:stream 44749 [192.168.242.112:5555] Starting WebSocket server on port NaN
devicehub-provider | 2025-03-20T12:38:42.901Z FTL/device 44749 [192.168.242.112:5555] Setup had an error RangeError [ERR_SOCKET_BAD_PORT]: options.port should be >= 0 and < 65536. Received type number (NaN).
devicehub-provider | at Server.listen (node:net:2055:5)
devicehub-provider | at new WebSocketServer (/app/node_modules/ws/lib/WebSocketServer.js:76:20)
devicehub-provider | at createServer (file:///app/lib/units/device/plugins/screen/stream.js:392:23)
devicehub-provider | at file:///app/lib/units/device/plugins/screen/stream.js:412:16
devicehub-provider | at ParallelSyrup.invoke (/app/node_modules/@devicefarmer/stf-syrup/lib/parallel.js:54:24)
devicehub-provider | at /app/node_modules/@devicefarmer/stf-syrup/lib/serial.js:43:33
devicehub-provider | at tryCatch1 (/app/node_modules/@devicefarmer/stf-syrup/node_modules/bluebird/js/main/util.js:63:19)
devicehub-provider | at Promise.Promise$_callHandler [as _callHandler] (/app/node_modules/@devicefarmer/stf-syrup/node_modules/bluebird/js/main/promise.js:708:13)
devicehub-provider | at Promise.Promise$_settlePromiseFromHandler [as _settlePromiseFromHandler] (/app/node_modules/@devicefarmer/stf-syrup/node_modules/bluebird/js/main/promise.js:724:18)
devicehub-provider | at Promise.Promise$_settlePromiseAt [as _settlePromiseAt] (/app/node_modules/@devicefarmer/stf-syrup/node_modules/bluebird/js/main/promise.js:896:14)
devicehub-provider | at Promise.Promise$_fulfillPromises [as _fulfillPromises] (/app/node_modules/@devicefarmer/stf-syrup/node_modules/bluebird/js/main/promise.js:1041:14)
devicehub-provider | at Async.Async$_consumeFunctionBuffer [as _consumeFunctionBuffer] (/app/node_modules/@devicefarmer/stf-syrup/node_modules/bluebird/js/main/async.js:74:12)
devicehub-provider | at Async$consumeFunctionBuffer (/app/node_modules/@devicefarmer/stf-syrup/node_modules/bluebird/js/main/async.js:37:14)
devicehub-provider | at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
devicehub-provider | 2025-03-20T12:38:42.901Z FTL/util:lifecycle 44749 [192.168.242.112:5555] Shutting down due to fatal error with optional error : undefined
devicehub-provider | 2025-03-20T12:38:42.931Z INF/provider 1 [] Cleaning up device worker "192.168.242.112:5555"
devicehub-provider | 2025-03-20T12:38:42.931Z ERR/provider 1 [] ExitError: Exit code "1"
devicehub-provider | at ChildProcess.exitListener (file:///app/lib/units/provider/index.js:158:41)
devicehub-provider | at ChildProcess.emit (node:events:519:28)
devicehub-provider | at ChildProcess.emit (node:domain:488:12)
devicehub-provider | at ChildProcess._handle.onexit (node:internal/child_process:294:12)
devicehub-provider | at Process.callbackTrampoline (node:internal/async_hooks:130:17) {
devicehub-provider | code: 1
devicehub-provider | }
devicehub-provider | 2025-03-20T12:38:42.932Z ERR/provider 1 [*] Device worker "192.168.242.112:5555" died with code 1
The workers on those devices seems to periodically restart, emulator screen goes dark for a few second, wakes up and cycle through. Is there any way to have ability to use emulators beside real phones. It's showing emulated phones in adb devices list and I also can connect to them via scrcpy app, but no luck with device hub.
Can I also contact you elsewhere beside vk? Can't seems to get it working. Can I please get your contacts please, maybe telegram, discord, email? Would like to discuss the possibility of partnership
