Skip to content

threadVideoShow error on macOS #8

@choehn-signogy

Description

@choehn-signogy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions