jermainewang commented on issue #13658: Converting MX array to DLPack crashes 
when MX array goes out-of-scope
URL: 
https://github.com/apache/incubator-mxnet/issues/13658#issuecomment-448282032
 
 
   Error message:
   ```
   root@17d02f89890e:/tmp/dgl# for i in {0..100}; do echo $i && python3 
tt-tvm.py || break ; done
   0
   1
   2
   3
   Traceback (most recent call last):
     File "tt-tvm.py", line 12, in <module>
       y.asnumpy()
     File "/tmp/tvm/python/tvm/_ffi/ndarray.py", line 264, in asnumpy
       check_call(_LIB.TVMArrayCopyToBytes(self.handle, data, nbytes))
     File "/tmp/tvm/python/tvm/_ffi/base.py", line 72, in check_call
       raise TVMError(py_str(_LIB.TVMGetLastError()))
   tvm._ffi.base.TVMError: [16:29:28] /tmp/tvm/src/runtime/ndarray.cc:256: 
Check failed: arr_size == nbytes (16330860332007321568 vs. 16) 
TVMArrayCopyToBytes: size mismatch
   
   Stack trace returned 10 entries:
   [bt] (0) /tmp/tvm/build/libtvm.so(dmlc::StackTrace[abi:cxx11](unsigned 
long)+0x1fd) [0x7fe7c8dd7f6d]
   [bt] (1) /tmp/tvm/build/libtvm.so(TVMArrayCopyToBytes+0x665) [0x7fe7c9407415]
   [bt] (2) 
/usr/lib/python3.5/lib-dynload/_ctypes.cpython-35m-x86_64-linux-gnu.so(ffi_call_unix64+0x4c)
 [0x7fe80aa3fe20]
   [bt] (3) 
/usr/lib/python3.5/lib-dynload/_ctypes.cpython-35m-x86_64-linux-gnu.so(ffi_call+0x2eb)
 [0x7fe80aa3f88b]
   [bt] (4) 
/usr/lib/python3.5/lib-dynload/_ctypes.cpython-35m-x86_64-linux-gnu.so(_ctypes_callproc+0x49a)
 [0x7fe80aa3a01a]
   [bt] (5) 
/usr/lib/python3.5/lib-dynload/_ctypes.cpython-35m-x86_64-linux-gnu.so(+0x9fcb) 
[0x7fe80aa2dfcb]
   [bt] (6) python3(PyObject_Call+0x47) [0x5c20e7]
   [bt] (7) python3(PyEval_EvalFrameEx+0x4ed6) [0x53b656]
   [bt] (8) python3(PyEval_EvalFrameEx+0x4b14) [0x53b294]
   [bt] (9) python3() [0x53fc97]
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to