computer-vision icon indicating copy to clipboard operation
computer-vision copied to clipboard

threadVideoShow error on macOS

Open choehn-signogy opened this issue 2 years ago • 3 comments

Hi.

I'm getting the following error when trying the code on Python 3.9 with MacOS 11.4

It is the same for
python3 thread_demo.py -s 1 -t show and python3 thread_demo.py -s 1 -t both

computer-vision_nrsyed/multithread/VideoShow.py", line 19, in show cv2.imshow("Video", self.frame) cv2.error: Unknown C++ exception from OpenCV code Assertion failed: (NSViewIsCurrentlyBuildingLayerTreeForDisplay() != currentlyBuildingLayerTree), function NSViewSetCurrentlyBuildingLayerTreeForDisplay, file /System/Volumes/Data/SWE/macOS/BuildRoots/e90674e518/Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-2022.50.114/AppKit.subproj/NSView.m, line 13412. [1] 61566 illegal hardware instruction python3 thread_demo.py -s 1 -t show

choehn-signogy avatar Aug 02 '21 12:08 choehn-signogy

@choehn-signogy I facing same error

monxarat avatar Oct 13 '21 02:10 monxarat

@choehn-signogy you have resolved this issue

monxarat avatar Oct 13 '21 02:10 monxarat

@monxarat @choehn-signogy Did you ever find a solution for this issue?

rsardal avatar Aug 05 '22 01:08 rsardal