decord icon indicating copy to clipboard operation
decord copied to clipboard

Segmentation fault when run decord with cv2.imshow()

Open youliangtan opened this issue 1 year ago • 2 comments

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)

youliangtan avatar Oct 22 '24 00:10 youliangtan

same problem

wp133716 avatar Dec 11 '24 13:12 wp133716

I had the same issue. In my case, I noticed that the problem disappears by importing decord before importing cv2.

JuxhinoKavaja avatar Jan 12 '25 17:01 JuxhinoKavaja