Skip to content

connect to this proxy server via TVM RPC application failed #638

Description

@haolongzhangm

1: follow the android build and connect steps:
2: run:
zhl@pc:~/mycode/tvm/apps/android_rpc/tests$ python -m tvm.exec.rpc_proxy
INFO:root:RPCProxy: client port bind to 0.0.0.0:9090
INFO:root:RPCProxy: Websock port bind to 9190

3: input 0.0.0.0 to Adddress to APK :
9090 to Port,

then apk show err: connect failed:

adb log:
-13 06:14:37.924 488 3676 E FastThread: did not receive expected priority boost
03-13 06:14:37.972 711 711 I MSM-irqbalance: Decided to move IRQ321 from CPU3 to CPU2
03-13 06:14:38.009 1342 3816 W qti_sensors_hal: timestampCalc: Adjusting timestamp for rollover: 367028416431594, -1
03-13 06:14:38.159 1342 3816 W qti_sensors_hal: timestampCalc: Adjusting timestamp for rollover: 367028567341018, -1
03-13 06:14:38.310 1342 3816 W qti_sensors_hal: timestampCalc: Adjusting timestamp for rollover: 367028718372512, -1
03-13 06:14:38.325 10773 10773 W Atfwd_Sendcmd: AtCmdFwd service not published, waiting... retryCnt : 4
03-13 06:14:38.461 1342 3816 W qti_sensors_hal: timestampCalc: Adjusting timestamp for rollover: 367028869434524, -1
03-13 06:14:38.612 1342 3816 W qti_sensors_hal: timestampCalc: Adjusting timestamp for rollover: 367029020496536, -1
03-13 06:14:38.749 10786 10800 W System.err: java.net.ConnectException: failed to connect to localhost/127.0.0.1 (port 9090) after 6000ms: isConnected failed: ECONNREFUSED (Connection refused)
03-13 06:14:38.749 10786 10800 W System.err: at libcore.io.IoBridge.isConnected(IoBridge.java:234)
03-13 06:14:38.749 10786 10800 W System.err: at libcore.io.IoBridge.connectErrno(IoBridge.java:171)
03-13 06:14:38.749 10786 10800 W System.err: at libcore.io.IoBridge.connect(IoBridge.java:122)
03-13 06:14:38.749 10786 10800 W System.err: at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:183)
03-13 06:14:38.749 10786 10800 W System.err: at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:452)
03-13 06:14:38.749 10786 10800 W System.err: at java.net.Socket.connect(Socket.java:884)
03-13 06:14:38.750 10786 10800 W System.err: at ml.dmlc.tvm.rpc.ConnectProxyServerProcessor.run(ConnectProxyServerProcessor.java:62)
03-13 06:14:38.750 10786 10800 W System.err: at ml.dmlc.tvm.tvmrpc.RPCProcessor.run(RPCProcessor.java:67)
03-13 06:14:38.750 10786 10800 W System.err: Caused by: android.system.ErrnoException: isConnected failed: ECONNREFUSED (Connection refused)
03-13 06:14:38.750 10786 10800 W System.err: at libcore.io.IoBridge.isConnected(IoBridge.java:223)
03-13 06:14:38.750 10786 10800 W System.err: ... 7 more
03-13 06:14:38.761 488 3678 D audio_hw_primary: out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs: routing=2
03-13 06:14:38.761 488 3678 V msm8916_platform: platform_get_output_snd_device: enter: output devices(0x2)
03-13 06:14:38.762 488 3678 V msm8916_platform: platform_get_output_snd_device: exit: snd_device(speaker)
03-13 06:14:38.762 488 3678 D audio_hw_extn: audio_extn_set_anc_parameters: anc_enabled:0
03-13 06:14:38.763 10786 10786 W System.err: Disconnected.
03-13 06:14:38.765 1342 3816 W qti_sensors_hal: timestampCalc: Adjusting timestamp for rollover: 367029171558547, -1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions