google / google/gapid

Error in Connecting to JDWP

Open
#1,877 0 comments 0 reactions 0 assignees View on GitHub
triaged
Dominant language
Go
Stars
2.2k
Forks
329
PR merge metrics
No merged PRs in 30d

Description

Hi, I try to use GAPID on different devices for different apps. For most of the time, I got errors in connecting to JDWP which disables the GPU captures. The following is the information I got from GAPID.

Press enter to stop capturing...
06:11:16.601 I: [gapidapk.EnsureInstalled] Examining gapid.apk on host...
06:11:16.606 I: [gapidapk.EnsureInstalled] Looking for gapid.apk...
06:11:17.138 I: [gapidapk.EnsureInstalled] Found gapid package...
06:11:18.427 I: Adding new device
06:11:18.427 I: Device list:
06:11:18.427 I: 13ae888d
06:11:18.891 I: Device is rooted
06:11:18.891 I: Clearing package cache
06:11:19.598 I: [start] Turning device screen on
06:11:19.692 I: [start] Checking for lockscreen
06:11:19.809 W: [start] Couldn't determine lockscreen state:
Cause: Couldn't get lockscreen state
06:11:19.811 I: [start] Checking gapid.apk is installed
06:11:19.811 I: [gapidapk.EnsureInstalled⇒start] Examining gapid.apk on host...
06:11:19.815 I: [gapidapk.EnsureInstalled⇒start] Looking for gapid.apk...
06:11:20.360 I: [gapidapk.EnsureInstalled⇒start] Found gapid package...
06:11:20.360 I: [start] Forwarding
06:11:20.543 I: [start] Starting activity in debug mode
06:11:21.111 I: [start] Forwarding TCP port 42052 -> JDWP pid 18484
06:11:21.227 I: [start] Connecting to JDWP
06:11:22.228 I: [start] Failed to connect to the application: read tcp 127.0.0.1:42057->127.0.0.1:42052: wsarecv: An existing connection was forcibly closed by the remote host.. Retrying...
06:11:24.243 I: [start] Failed to connect to the application: read tcp 127.0.0.1:42062->127.0.0.1:42052: wsarecv: An existing connection was forcibly closed by the remote host.. Retrying...
06:11:26.255 I: [start] Failed to connect to the application: read tcp 127.0.0.1:42068->127.0.0.1:42052: wsarecv: An existing connection was forcibly closed by the remote host.. Retrying...
06:11:28.255 I: [start] Failed to connect to the application: read tcp 127.0.0.1:42073->127.0.0.1:42052: wsarecv: An existing connection was forcibly closed by the remote host.. Retrying...
06:11:30.264 I: [start] Failed to connect to the application: read tcp 127.0.0.1:42079->127.0.0.1:42052: wsarecv: An existing connection was forcibly closed by the remote host.. Retrying...
06:11:32.273 I: [start] Failed to connect to the application: read tcp 127.0.0.1:42085->127.0.0.1:42052: wsarecv: An existing connection was forcibly closed by the remote host.. Retrying...
06:11:34.281 I: [start] Failed to connect to the application: read tcp 127.0.0.1:42095->127.0.0.1:42052: wsarecv: An existing connection was forcibly closed by the remote host.. Retrying...
06:11:36.284 I: [start] Failed to connect to the application: read tcp 127.0.0.1:42101->127.0.0.1:42052: wsarecv: An existing connection was forcibly closed by the remote host.. Retrying...
06:11:38.287 I: [start] Failed to connect to the application: read tcp 127.0.0.1:42108->127.0.0.1:42052: wsarecv: An existing connection was forcibly closed by the remote host.. Retrying...
06:11:40.289 I: [start] Failed to connect to the application: read tcp 127.0.0.1:42114->127.0.0.1:42052: wsarecv: An existing connection was forcibly closed by the remote host.. Retrying...
06:11:40.336 E: Main failed
Error: Connecting to JDWP
Cause: read tcp 127.0.0.1:42114->127.0.0.1:42052: wsarecv: An existing connection was forcibly closed by the remote host.

I have closed Android Studio already. And I have tried four different devices. GAPID only works on Huawei P9 for one app. When I switch to another app, it still got the above error in connecting to JDWP. Other devices, include Huawei P10, One Plus 5T, they cannot work for both apps that I have tried. I have also tried MI 4, but there is no gapid.apk package found for this model.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.