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

[Bug] can not runandroid_rpc_test.py #11536

Open
chayliu1991 opened this issue Jun 2, 2022 · 0 comments
Open

[Bug] can not runandroid_rpc_test.py #11536

chayliu1991 opened this issue Jun 2, 2022 · 0 comments

Comments

@chayliu1991
Copy link

chayliu1991 commented Jun 2, 2022

Thanks for participating in the TVM community! We use https://discuss.tvm.ai for any general usage questions and discussions. The issue tracker is used for actionable items such as feature proposals discussion, roadmaps, and bug tracking. You are always welcomed to post on the forum first 😸

Issues that are inactive for a period of time may get closed. We adopt this policy so that we won't lose track of actionable issues that may fall at the bottom of the pile. Feel free to reopen a new one if you feel there is an additional problem that needs attention when an old one gets closed.

Expected behavior

What you were expecting

Actual behavior

What actually happened

Environment

I create my own docker image from ubuntu 18.04,build the tvm from the source code.
I pull the code by:
git clone --recursive https://github.com/apache/tvm tvm

Any environment details, such as: Operating System, TVM version, etc

Steps to reproduce

It is in a docker environment,after compile android app and install it on my android phone.
run with the following steps:

1.python3 -m tvm.exec.rpc_tracker --host=0.0.0.0 --port=9190
INFO:RPCTracker:bind to 0.0.0.0:9190

2.python -m tvm.exec.query_rpc_tracker --port 9190
Tracker address 0.0.0.0:9190

Server List
------------------------------
server-address           key
------------------------------
   10.166.29.147:5001    server:android
------------------------------

Queue Status
-------------------------------
key       total  free  pending
-------------------------------
android   1      0     1
-------------------------------

3.python3 android_rpc_test.py

but it can not connect to the phone and print some result,after a lot of seconds waiting,it throw an exception:

Traceback (most recent call last):
  File "android_rpc_test.py", line 137, in <module>
    test_rpc_module()
  File "android_rpc_test.py", line 64, in test_rpc_module
    remote = tracker.request(key, priority=0, session_timeout=20)
  File "/opt/tvm/python/tvm/rpc/client.py", line 417, in request
    "Cannot request %s after %d retry, last_error:%s" % (key, max_retry, str(last_err))
RuntimeError: Cannot request android after 5 retry, last_error:Traceback (most recent call last):
  3: TVMFuncCall
  2: tvm::runtime::PackedFuncObj::Extractor<tvm::runtime::PackedFuncSubObj<tvm::runtime::{lambda(tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)#1}> >::Call(tvm::runtime::PackedFuncObj const*, tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)
  1: tvm::runtime::RPCClientConnect(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, tvm::runtime::TVMArgs)
  0: tvm::runtime::RPCConnect(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, tvm::runtime::TVMArgs)
  File "/opt/tvm/src/runtime/rpc/rpc_socket_impl.cc", line 72
TVMError:
---------------------------------------------------------------
An error occurred during the execution of TVM.
For more information, please see: https://tvm.apache.org/docs/errors.html
---------------------------------------------------------------
  Check failed: (sock.Connect(addr)) is false: Connect to 10.166.29.147:5001 failed
root@0eec9746c3eb:/opt/tvm/apps/android_rpc/tests#

Preferably a minimal script to cause the issue to occur.

@areusch areusch added the needs-triage PRs or issues that need to be investigated by maintainers to find the right assignees to address it label Oct 19, 2022
@hpanda-naut hpanda-naut added dev:ci and removed needs-triage PRs or issues that need to be investigated by maintainers to find the right assignees to address it labels Nov 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants