Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to connect: read tcp 127.0.0.1:51470->127.0.0.1:51464: wsarecv: An existing connection was forcibly closed by the remote host. #912

Closed
acenodie opened this issue Aug 15, 2017 · 8 comments

Comments

@acenodie
Copy link

Hello, I got this error:
Failed to connect: read tcp 127.0.0.1:51470->127.0.0.1:51464: wsarecv: An existing connection was forcibly closed by the remote host.

The detail:
0:23:54.045 I: [gapidapk.EnsureInstalled] Examining gapid.apk on host...
10:23:54.059 I: [gapidapk.EnsureInstalled] Looking at installed packages...
10:23:56.391 I: [gapidapk.EnsureInstalled] Found gapid package...
10:23:58.927 I: Adding new device
10:23:58.927 I: Device list:
10:23:58.927 I: 0715f7f3c6bc1704
10:24:00.455 I: Device is rooted
10:24:00.455 I: Clearing package cache
10:24:01.787 I: [start] Turning device screen on
10:24:02.076 I: [start] Checking for lockscreen
10:24:02.379 I: [start] Checking gapid.apk is installed
10:24:02.379 I: [gapidapk.EnsureInstalled⇒start] Examining gapid.apk on host...
10:24:02.387 I: [gapidapk.EnsureInstalled⇒start] Looking at installed packages...
10:24:04.725 I: [gapidapk.EnsureInstalled⇒start] Found gapid package...
10:24:04.725 I: [start] Forwarding
10:24:05.202 I: [start] Starting activity in debug mode
10:24:06.766 I: [start] Forwarding TCP port 51464 -> JDWP pid 25590
10:24:06.952 I: [start] Connecting to JDWP
10:24:07.962 I: [start] Failed to connect: read tcp 127.0.0.1:51470->127.0.0.1:51464: wsarecv: An existing connection was forcibly closed by the remote host.
10:24:09.975 I: [start] Failed to connect: read tcp 127.0.0.1:51472->127.0.0.1:51464: wsarecv: An existing connection was forcibly closed by the remote host.
10:24:11.984 I: [start] Failed to connect: read tcp 127.0.0.1:51476->127.0.0.1:51464: wsarecv: An existing connection was forcibly closed by the remote host.
10:24:13.992 I: [start] Failed to connect: read tcp 127.0.0.1:51481->127.0.0.1:51464: wsarecv: An existing connection was forcibly closed by the remote host.
10:24:16.005 I: [start] Failed to connect: read tcp 127.0.0.1:51483->127.0.0.1:51464: wsarecv: An existing connection was forcibly closed by the remote host.
10:24:18.010 I: [start] Failed to connect: read tcp 127.0.0.1:51495->127.0.0.1:51464: wsarecv: An existing connection was forcibly closed by the remote host.
10:24:20.019 I: [start] Failed to connect: read tcp 127.0.0.1:51511->127.0.0.1:51464: wsarecv: An existing connection was forcibly closed by the remote host.
10:24:22.029 I: [start] Failed to connect: read tcp 127.0.0.1:51513->127.0.0.1:51464: wsarecv: An existing connection was forcibly closed by the remote host.
10:24:24.041 I: [start] Failed to connect: read tcp 127.0.0.1:51518->127.0.0.1:51464: wsarecv: An existing connection was forcibly closed by the remote host.
10:24:26.054 I: [start] Failed to connect: read tcp 127.0.0.1:51520->127.0.0.1:51464: wsarecv: An existing connection was forcibly closed by the remote host.
10:24:27.724 F: Main failed
Error: Connecting to JDWP
Cause: read tcp 127.0.0.1:51520->127.0.0.1:51464: wsarecv: An existing connection was forcibly closed by the remote host.
Tracing failed:
com.google.gapid.server.ChildProcess$EarlyExitException: gapit has exited with exit code 1
at com.google.gapid.server.ChildProcess.runProcess(ChildProcess.java:98)
at com.google.gapid.server.ChildProcess$1.run(ChildProcess.java:69)

@ben-clayton
Copy link
Contributor

Hi @acenodie,

Please can you confirm whether Android Studio is also running?
If not, is there anything printed by adb logcat that could suggest why the application might have crashed?

Many thanks,
Ben

@acenodie
Copy link
Author

Hello,I already closed my Android studio!

@ben-clayton
Copy link
Contributor

What device are you attempting to trace on?
What version of Android is it running?
Is there anything printed by running adb logcat that could suggest why the application might have crashed?

@acenodie
Copy link
Author

thanks, i can get the trace;
But i have some question about how i should use this software?
any some specification?
example: i am developing a camera application, i used openGL, How can I get the camera frame by capturing the trace?
sorry, my english is poor, hope you can get me.

@ben-clayton
Copy link
Contributor

There's some WIP documentation being written here.

Unfortunately we do not currently capture video frames from the camera. We intend to add support for this in the near future. I've created #913 to track this.

@acenodie
Copy link
Author

ok.
if i draw the oes texture from the camera to FBO, can i capture the frame?

@ben-clayton
Copy link
Contributor

Currently no. GAPID doesn't make any attempt to read the OES textures, hence at replay we do not have the data to correctly reproduce what would have been displayed. This is becoming more of a priority for us, so we'll hopefully have this implemented soon.

@ben-clayton
Copy link
Contributor

Closing the issue as we have #913 to track the feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants