decord
decord copied to clipboard
Segmentation fault when run decord with cv2.imshow()
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
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")
(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)
same problem
I had the same issue. In my case, I noticed that the problem disappears by importing decord before importing cv2.