Home » Android » android tcp streams for gpu host

android tcp streams for gpu host

Posted by: admin November 1, 2017 Leave a comment

Questions:

I had modified the aosp generic version 6.0.71r in order for the emulator and the host to be able to used tcp streams for gpu host, but I am getting the error below. Can someone help me to understand what else I need to modified? Clearly said that it cannot connect to the tcp stream that mean on the emulator I have to change some parameters as well?

modification:
https://android.googlesource.com/device/generic/goldfish-opengl/+/master/system/OpenglSystemCommon/HostConnection.cpp

/* Set to 1 to use a QEMU pipe, or 0 for a TCP connection */

#define  USE_QEMU_PIPE  1

Error:

init: Starting service 'media'...
init: Starting service 'zygote'...
emulator: Error while connecting to socket '127.0.0.1:1970': 111 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 35
10-22 20:17:11.612    64    64 F DEBUG   : 
10-22 20:17:11.612    64    64 F DEBUG   : Tombstone written to: /data/tombstones/tombstone_04
init: Service 'surfaceflinger' (pid 204) killed by signal 6
init: Service 'surfaceflinger' (pid 204) killing any children in process group
init: Service 'zygote' is being killed...
init: Service 'zygote' (pid 216) killed by signal 9
init: Service 'zygote' (pid 216) killing any children in process group
init: write_file: Unable to open '/sys/android_power/request_state': No such file or directory
init: write_file: Unable to write to '/sys/power/state': Invalid argument
init: Service 'media' is being killed...
init: Service 'netd' is being killed...
init: Service 'netd' (pid 203) killed by signal 9
init: Service 'netd' (pid 203) killing any children in process group
init: Service 'media' (pid 215) killed by signal 9
init: Service 'media' (pid 215) killing any children in process group
init: Untracked pid 223 killed by signal 9
init: Starting service 'netd'...
init: Starting service 'surfaceflinger'...
emulator: Error while connecting to socket '127.0.0.1:1970': 111 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 35
10-22 20:17:13.956   226   226 I Netd    : Netd 1.0 starting
10-22 20:17:13.959   226   226 D TetherController: Setting IP forward enable = 0
10-22 20:17:14.223   227   227 I SurfaceFlinger: SurfaceFlinger is starting
10-22 20:17:14.236   227   227 I SurfaceFlinger: SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
10-22 20:17:14.253   227   227 D libEGL  : loaded /system/lib/egl/libEGL_emulation.so
10-22 20:17:14.260   227   227 D libEGL  : loaded /system/lib/egl/libGLESv1_CM_emulation.so
10-22 20:17:14.337   227   227 D libEGL  : loaded /system/lib/egl/libGLESv2_emulation.so
10-22 20:17:14.419   227   227 E         : Failed to connect to host (TcpStream)!!!
10-22 20:17:14.419   227   227 E EGL_emulation: Failed to establish connection with the host
10-22 20:17:14.419   227   227 W libEGL  : eglInitialize(0xb667a014) failed (EGL_SUCCESS)
init: Starting service 'media'...
init: Starting service 'zygote'...
10-22 20:17:14.447   227   227 E         : Failed to connect to host (TcpStream)!!!
10-22 20:17:14.447   227   227 E gralloc_goldfish: gralloc: Failed to get host connection
10-22 20:17:14.451   227   227 E SurfaceFlinger: hwcomposer module not found
10-22 20:17:14.451   227   227 E SurfaceFlinger: ERROR: failed to open framebuffer (I/O error), aborting
10-22 20:17:14.453   227   227 F libc    : Fatal signal 6 (SIGABRT), code -6 in tid 227 (surfaceflinger)
10-22 20:17:14.583    64    64 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
10-22 20:17:14.599    64    64 F DEBUG   : Build fingerprint: 'Android/aosp_arm/generic:6.0.1/M4B30Z/michel10171819:eng/test-keys'
10-22 20:17:14.599    64    64 F DEBUG   : Revision: '0'
10-22 20:17:14.599    64    64 F DEBUG   : ABI: 'arm'
10-22 20:17:14.602    64    64 F DEBUG   : pid: 227, tid: 227, name: surfaceflinger  >>> /system/bin/surfaceflinger <<<
10-22 20:17:14.603    64    64 F DEBUG   : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
10-22 20:17:14.642    64    64 F DEBUG   :     r0 00000000  r1 000000e3  r2 00000006  r3 b6f6fb7c
10-22 20:17:14.642    64    64 F DEBUG   :     r4 b6f6fb84  r5 b6f6fb34  r6 00000002  r7 0000010c
10-22 20:17:14.642    64    64 F DEBUG   :     r8 ffffffbc  r9 b6629018  sl b6f20940  fp be99fbbc
10-22 20:17:14.642    64    64 F DEBUG   :     ip 00000006  sp be99f9d8  lr b6db6f69  pc b6db9364  cpsr 40000010
10-22 20:17:14.776    64    64 F DEBUG   : 
10-22 20:17:14.776    64    64 F DEBUG   : backtrace:
10-22 20:17:14.777    64    64 F DEBUG   :     #00 pc 00041364  /system/lib/libc.so (tgkill+12)
10-22 20:17:14.777    64    64 F DEBUG   :     #01 pc 0003ef65  /system/lib/libc.so (pthread_kill+32)
10-22 20:17:14.777    64    64 F DEBUG   :     #02 pc 0001b55b  /system/lib/libc.so (raise+10)
10-22 20:17:14.777    64    64 F DEBUG   :     #03 pc 0001870f  /system/lib/libc.so (__libc_android_abort+34)
10-22 20:17:14.777    64    64 F DEBUG   :     #04 pc 00017490  /system/lib/libc.so (abort+4)
10-22 20:17:14.778    64    64 F DEBUG   :     #05 pc 00022d11  /system/lib/libsurfaceflinger.so
10-22 20:17:14.778    64    64 F DEBUG   :     #06 pc 00018993  /system/lib/libsurfaceflinger.so (_ZN7android14SurfaceFlinger4initEv+266)
10-22 20:17:14.778    64    64 F DEBUG   :     #07 pc 00000e9d  /system/bin/surfaceflinger
10-22 20:17:14.778    64    64 F DEBUG   :     #08 pc 0001733d  /system/lib/libc.so (__libc_init+44)
10-22 20:17:14.778    64    64 F DEBUG   :     #09 pc 00000d60  /system/bin/surfaceflinger
10-22 20:17:16.802    64    64 F DEBUG   : 
10-22 20:17:16.802    64    64 F DEBUG   : Tombstone written to: /data/tombstones/tombstone_05
Answers: