KindleHe commented on issue #4884: [android_deploy] CRASH caused by `Module.load` func while running App on Android Device with URL: https://github.com/apache/incubator-tvm/issues/4884#issuecomment-586994657 @tqchen Yes! I find the answer finally! Your answer is right! TVM4J is Java Frontend for TVM Runtime, and the CRASH occurs at calling Module.load func. As [#4871](https://github.com/apache/incubator-tvm/pull/4871) said, runtime PackedFunc is changed at this commit. Namely, the corresponding Java interface for TVM runtime changed. So, even I synced my branch with remote master newest branch and rebuild the android apk, I get the same CRASH due to I forget to rebuild TVM4J to get a new java interface after [#4871](https://github.com/apache/incubator-tvm/pull/4871). The key is **rebuild TVM4J** before **rebuild the android apk** I am glad to learn more about Java as a Java newcomer and thanks for your kind help very much! > Thanks for your quick reply! > > As you said in [[REFACTOR][PY][API-Change] Polish tvm.runtime, tvm.runtime.module API update](https://github.com/apache/incubator-tvm/pull/4837#issue-372188411) > > ``` > API changes wrt to runtime.Module > tvm.module.load -> tvm.runtime.load_module > tvm.module.enabled -> tvm.runtime.enabled > tvm.module.system_lib -> tvm.runtime.system_lib > ``` > > However, the [tvm.module related codes](https://github.com/apache/incubator-tvm/blob/1dcf8a16ee3a93dff5ffc1ad1a66892eda03ef13/apps/android_deploy/app/src/main/java/org/apache/tvm/android/demo/MainActivity.java#L184) did not change yet, even I keep my dev branch the same with newest master branch. > in `src/main/java/org/apache/tvm/android/demo/MainActivity.java` > > ``` > Module modelLib = Module.load(libCacheFilePath); > ``` > > Finally, I get the same crash error ,and I m not sure what's the problem? > Could you offer me some further help? > > > Can you see if #4871 resolved your problem, please make sure to rebuild the native app along with the java source
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services