dmlc / dmlc/decord

Segmentation fault when run decord with cv2.imshow()

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

Description

## Summary

Getting seg fault when run the im.show with decord being import, no issue when comment out decord.

- opencv Version: 4.10.0.84
- decord Version: 0.6.0

## Reproduce this

```py
import cv2
import numpy as np
import decord # try comment this
img = np.zeros((512, 512, 3), np.uint8)

cv2.imshow("Test Image", img)
cv2.waitKey(1000)
cv2.destroyAllWindows()
print("Done")
```

```sh
(base) youliang@youliang-Precision-5690:~/$ python test.py
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Segmentation fault (core dumped)

```

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.