Can i manually connect devices?? #739
Replies: 4 comments 6 replies
-
@stormkuter , please post your issue filling the corresponding template, look also at #662 |
Beta Was this translation helpful? Give feedback.
-
@stormkuter , first you should upgrade to the latest version of DeviceFarmer/STF, second I saw an error of minicap "failed to instantiate.." but it is difficult to determine the cause from the logs you provided, may be it is because a hardware connection issue or a permission issue on your phone, please provide briefly what are your architecture and configuartion: are you using USB hubs to connect phones to computers, how phones (and how many) are connected on computers, how STF service units are launched (local mode or not), operating system of computers, VM or not, etc. |
Beta Was this translation helpful? Give feedback.
-
@stormkuter , sorry but from information you provided I have no other idea on what cause your issue, I just know a clean deployment of STF (cf. DEPLOYMENT.md documention) is very stable in time, without untimely disconnections. |
Beta Was this translation helpful? Give feedback.
-
@stormkuter , I see you are using a USB hub 3.0 which is not recommended with STF because instability issues (cf FAQ & Troubleshooting & Recommended hardware), so I strongly recommend you to use a USB 2.0 chain to connect your device to your PC (Hub, cable, port), there is a good chance that your problem comes from there. |
Beta Was this translation helpful? Give feedback.
-
Description:
Sometimes the device connection is disconnected from the provider. It is normally connected when checked with adb devices, but it cannot
be connected unless the provider docker is re-start. is there any way I can do it whenever I want to provide device connection?
Steps to reproduce:
I used 3.6.4 version.
connect the device to the provider pc and leave it for a long time. (about 3~4 week)
Expected result:
The device must be connected to the provider.
Debugging(error log):
{"log":"2023-12-12T03:34:37.547Z INF/device:plugins:screen:stream 21 [000009d64e966153] Launching screen service minicap-apk\n","stream":"stderr","time":"2023-12-12T03:34:37.547808961Z"}
{"log":"2023-12-12T03:34:37.547Z INF/device:resources:minicap 21 [000009d64e966153] CLASSPATH=/data/local/tmp/minicap.apk app_process /system/bin io.devicefarmer.minicap.Main -S -Q 80 -P 1080x2400@864x865/0\n","stream":"stderr","time":"2023-12-12T03:34:37.547842233Z"}
{"log":"2023-12-12T03:34:37.938Z INF/device:plugins:screen:stream 21 [000009d64e966153] minicap says: "Failed to instantiate [ch.qos.logback.classic.LoggerContext]"\n","stream":"stderr","time":"2023-12-12T03:34:37.938583253Z"}
{"log":"2023-12-12T03:34:37.938Z INF/device:plugins:screen:stream 21 [000009d64e966153] minicap says: "Reported exception:"\n","stream":"stderr","time":"2023-12-12T03:34:37.938610467Z"}
{"log":"2023-12-12T03:34:37.938Z INF/device:plugins:screen:stream 21 [000009d64e966153] minicap says: "java.lang.ArrayIndexOutOfBoundsException: length=0; index=0"\n","stream":"stderr","time":"2023-12-12T03:34:37.938615504Z"}
{"log":"2023-12-12T03:34:37.938Z INF/device:plugins:screen:stream 21 [000009d64e966153] minicap says: "\u0009at android.os.Environment.getExternalStorageState(Environment.java:1279)"\n","stream":"stderr","time":"2023-12-12T03:34:37.9386195Z"}
{"log":"2023-12-12T03:34:37.938Z INF/device:plugins:screen:stream 21 [000009d64e966153] minicap says: "\u0009at ch.qos.logback.core.android.AndroidContextUtil.getMountedExternalStorageDirectoryPath(Unknown Source:0)"\n","stream":"stderr","time":"2023-12-12T03:34:37.938655107Z"}
{"log":"2023-12-12T03:34:37.938Z INF/device:plugins:screen:stream 21 [000009d64e966153] minicap says: "\u0009at ch.qos.logback.core.android.AndroidContextUtil.setupProperties(Unknown Source:14)"\n","stream":"stderr","time":"2023-12-12T03:34:37.938672754Z"}
{"log":"2023-12-12T03:34:37.938Z INF/device:plugins:screen:stream 21 [000009d64e966153] minicap says: "\u0009at ch.qos.logback.classic.util.ContextInitializer.autoConfig(Unknown Source:12)"\n","stream":"stderr","time":"2023-12-12T03:34:37.938676864Z"}
{"log":"2023-12-12T03:34:37.938Z INF/device:plugins:screen:stream 21 [000009d64e966153] minicap says: "\u0009at org.slf4j.impl.StaticLoggerBinder.init(Unknown Source:7)"\n","stream":"stderr","time":"2023-12-12T03:34:37.938679595Z"}
{"log":"2023-12-12T03:34:37.938Z INF/device:plugins:screen:stream 21 [000009d64e966153] minicap says: "\u0009at org.slf4j.impl.StaticLoggerBinder.\u003cclinit\u003e(Unknown Source:20)"\n","stream":"stderr","time":"2023-12-12T03:34:37.938835281Z"}
{"log":"2023-12-12T03:34:37.938Z INF/device:plugins:screen:stream 21 [000009d64e966153] minicap says: "\u0009at org.slf4j.LoggerFactory.bind(LoggerFactory.java:150)"\n","stream":"stderr","time":"2023-12-12T03:34:37.93885294Z"}
{"log":"2023-12-12T03:34:37.938Z INF/device:plugins:screen:stream 21 [000009d64e966153] minicap says: "\u0009at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:124)"\n","stream":"stderr","time":"2023-12-12T03:34:37.938858567Z"}
{"log":"2023-12-12T03:34:37.938Z INF/device:plugins:screen:stream 21 [000009d64e966153] minicap says: "\u0009at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:417)"\n","stream":"stderr","time":"2023-12-12T03:34:37.938861801Z"}
{"log":"2023-12-12T03:34:37.938Z INF/device:plugins:screen:stream 21 [000009d64e966153] minicap says: "\u0009at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:362)"\n","stream":"stderr","time":"2023-12-12T03:34:37.938864512Z"}
{"log":"2023-12-12T03:34:37.938Z INF/device:plugins:screen:stream 21 [000009d64e966153] minicap says: "\u0009at io.devicefarmer.minicap.provider.BaseProvider.\u003cclinit\u003e(BaseProvider.kt:44)"\n","stream":"stderr","time":"2023-12-12T03:34:37.938867454Z"}
{"log":"2023-12-12T03:34:37.938Z INF/device:plugins:screen:stream 21 [000009d64e966153] minicap says: "\u0009at io.devicefarmer.minicap.Main$Companion.main(Main.kt:62)"\n","stream":"stderr","time":"2023-12-12T03:34:37.93887042Z"}
{"log":"2023-12-12T03:34:37.938Z INF/device:plugins:screen:stream 21 [000009d64e966153] minicap says: "\u0009at io.devicefarmer.minicap.Main.main(Unknown Source:2)"\n","stream":"stderr","time":"2023-12-12T03:34:37.938873142Z"}
{"log":"2023-12-12T03:34:37.938Z INF/device:plugins:screen:stream 21 [000009d64e966153] minicap says: "\u0009at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)"\n","stream":"stderr","time":"2023-12-12T03:34:37.938875751Z"}
{"log":"2023-12-12T03:34:37.938Z INF/device:plugins:screen:stream 21 [000009d64e966153] minicap says: "\u0009at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:359)"\n","stream":"stderr","time":"2023-12-12T03:34:37.938878435Z"}
{"log":"2023-12-12T03:34:37.940Z INF/device:plugins:screen:stream 21 [000009d64e966153] minicap says: "PID: 11413"\n","stream":"stderr","time":"2023-12-12T03:34:37.940548302Z"}
{"log":"2023-12-12T03:34:37.940Z INF/device:plugins:screen:stream 21 [000009d64e966153] minicap says: "INFO: 1080x2400@389x865/0"\n","stream":"stderr","time":"2023-12-12T03:34:37.940561892Z"}
{"log":"2023-12-12T03:34:37.940Z INF/device:plugins:screen:stream 21 [000009d64e966153] Connecting to minicap service\n","stream":"stderr","time":"2023-12-12T03:34:37.940567432Z"}
{"log":"2023-12-12T03:34:37.942Z INF/device:plugins:screen:stream 21 [000009d64e966153] Reading minicap banner\n","stream":"stderr","time":"2023-12-12T03:34:37.942405326Z"}
...
{"log":"2023-12-12T03:35:29.688Z WRN/provider 1 [] Device worker "000009d64e966153" was killed with signal SIGKILL, assuming deliberate action and not restarting\n","stream":"stderr","time":"2023-12-12T03:35:29.688342642Z"}
{"log":"2023-12-12T03:35:29.688Z INF/provider 1 [] Cleaning up device worker "000009d64e966153"\n","stream":"stderr","time":"2023-12-12T03:35:29.688367013Z"}
{"log":"2023-12-12T03:35:29.688Z INF/provider 1 [*] Device worker "000009d64e966153" has retired\n","stream":"stderr","time":"2023-12-12T03:35:29.688394489Z"}
Beta Was this translation helpful? Give feedback.
All reactions