majercakdavid opened a new issue #7734:
URL: https://github.com/apache/tvm/issues/7734


   I would like to report a problem with the JS runtime. Currently when being 
run the instantiation of tvm run smoothly, not resulting in any error:
   ```
   try {
       this.tvm = await tvmjs.instantiate(
           wasmSource,
           new EmccWASI()
       );
   } catch(e){
       console.log(e);
   }
   ```
   However, after invoking this line (just like proposed in the 
https://github.com/apache/tvm/blob/main/web/tests/node/test_module_load.js):
   
   ```
   this.sysLib = this.tvm.systemLib();
   ```
   
   The application ended up with the following error:
   
   ```
   tvmjs_runtime.wasi.js:formatted:410 Uncaught (in promise) RuntimeError: 
abort([object Object]). Build with -s ASSERTIONS=1 for more info.
       at abort (https://localhost:4443/tvm/wasm/tvmjs_runtime.wasi.js:3:9079)
       at _proc_exit 
(https://localhost:4443/tvm/wasm/tvmjs_runtime.wasi.js:3:66932)
       at <anonymous>:wasm-function[1680]:0x75969
       at <anonymous>:wasm-function[1683]:0x759d0
       at <anonymous>:wasm-function[188]:0x1eb8b
       at <anonymous>:wasm-function[193]:0x1f194
       at <anonymous>:wasm-function[866]:0x47c0f
       at TVMFuncCall (<anonymous>:wasm-function[78]:0x85e8)
       at packedFunc (https://localhost:4443/tvm/tvmjs.bundle.js:1877:46)
       at Instance.systemLib 
(https://localhost:4443/tvm/tvmjs.bundle.js:1466:22)
   ```
   Furthermore, I have been able to investigate it a little bit more and the 
issue most probably lies in here:
   
   
![image](https://user-images.githubusercontent.com/9350520/112303774-f8aff500-8c9c-11eb-8b16-223b2dc7f776.png)
   


-- 
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:
[email protected]


Reply via email to