dmlc / dmlc/decord

Compat issue with Taichi - Exception ignored in: <function VideoLoader.__del__ at 0x000001CE8DE18EE0>

Open
#227 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
2.5k
Forks
232
PR merge metrics
No merged PRs in 30d

Description

When I try to combine `decord` with `taichi` like so:
```python
import taichi as ti
import decord as d

mp4 = d.VideoLoader(["../../data_out/9fd43132-8c77-4c4f-a2e0-725bfde186d1.mp4"], ctx=d.gpu(), shape=(32, 1080, 1920, 3), interval=1, skip=0, shuffle=0)
```

I get the following error message:

```
[Taichi] version 1.1.2, llvm 10.0.0, commit f25cf4a2, win, python 3.10.5
[09:46:44] C:\Users\rb\Development\Source\_thirdparty\decord\src\video\nvcodec\cuda_threaded_decoder.cc:36: Using device: NVIDIA GeForce RTX 2080 Ti
[09:46:44] C:\Users\rb\Development\Source\_thirdparty\decord\src\video\nvcodec\cuda_threaded_decoder.cc:56: Kernel module version 516.94, so using our own stream.
Exception ignored in:
Traceback (most recent call last):
File "decord\video_loader.py", line 62, in __del__
File "decord\_ffi\_ctypes\function.py", line 170, in __call__
File "decord\_ffi\_ctypes\function.py", line 94, in _make_decord_args
TypeError: isinstance() arg 2 must be a type, a tuple of types, or a union

Process finished with exit code 0
```

The error is moderated by the line `import taichi as ti`. If that is disabled, decord won't complain:

```
[09:50:33] C:\Users\rb\Development\Source\_thirdparty\decord\src\video\nvcodec\cuda_threaded_decoder.cc:36: Using device: NVIDIA GeForce RTX 2080 Ti
[09:50:33] C:\Users\rb\Development\Source\_thirdparty\decord\src\video\nvcodec\cuda_threaded_decoder.cc:56: Kernel module version 516.94, so using our own stream.

Process finished with exit code 0
```

I am using

- Windows 11
- Python 3.10 (Mambaforge)
- Decord d2e56190286ae394032a8141885f76d5372bd44b compiled with CUDA support
- Taichi 1.1.2

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.