question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Android_rpc demo error] code == RPCCode::kReturn code=4

See original GitHub issue

Hi all,

I’ve tried to run the Android_rpc demo on Huawei Mate10 which have libOpenCL.so under /vendor/lib64.

To run the android_rpc_test.py on v0.2, I tweaked the .py file a bit.

from: from tvm.contrib import rpc, util, ndk, rpc_proxy to: from tvm.contrib import rpc, util, ndk#, rpc_proxy

The script runs well, but the App will crash after calling remote.cpu(0) or remote.gpu(0).

The key error is:

File “/home/adt/tensorflow/local/lib/python2.7/site-packages/tvm-0.2.0-py2.7-linux-x86_64.egg/tvm/_ffi/base.py”, line 66, in check_call raise TVMError(py_str(_LIB.TVMGetLastError())) tvm._ffi.base.TVMError: [11:21:50] src/runtime/rpc/rpc_session.cc:741: Check failed: code == RPCCode::kReturn code=4

Does this demo work only with v0.1?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
ZihengJiangcommented, Apr 29, 2019

FYI, I fixed this issue after changing the ndk version to v16

0reactions
vadimAnyVisioncommented, Sep 10, 2019

changing to v16 didnt work for me. did anyone solved it? thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

GRPC Core: Status codes and their use in gRPC
Code Number Description OK 0 Not an error; returned on success. FAILED_PRECONDITION 9 OUT_OF_RANGE 11
Read more >
Build client-server applications with gRPC - Android Developers
Build a Channel that serves as the medium for RPC calls between client and server.
Read more >
Basics tutorial | Android Java - gRPC
Generate client code using the protocol buffer compiler. Use the Java gRPC API to write a simple mobile client for your service. It...
Read more >
Errors | Cloud APIs - Google Cloud
Below is a table containing all of the gRPC error codes defined in google.rpc.Code and a short description of their cause. To handle...
Read more >
grpc-android · GitHub Topics
A Full Stack demo app with gRPC and Modern Android Development/Svelte to keep up ... Android client implementation of Rapunzel blog using Kotlin...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found