Issue 1:
System information (version)

OpenCV => 4.4.0

Operating System / Platform => OSX 10.15.5 (Catalina)

Compiler => Python 3.8.5, pip 20.2.2

Detailed description

Running cv2.imshow() with any graphic caused segfault Python_2020-08-13-173300_Richards-MacBook-Pro-2.crash.txt

% pip freeze
certifi==2020.6.20
chardet==3.0.4
cycler==0.10.0
gluoncv==0.8.0
graphviz==0.8.4
idna==2.10
kiwisolver==1.2.0
matplotlib==3.3.0
mxnet==1.6.0
numpy==1.19.1
opencv-python==4.4.0.40
Pillow==7.2.0
portalocker==2.0.0
pyparsing==2.4.7
python-dateutil==2.8.1
requests==2.24.0
scipy==1.5.2
six==1.15.0
tqdm==4.48.2
urllib3==1.25.10
% brew ls
aom	giflib	leptonica	libvorbis	openssl@1.1	sqlite
boost	glib	libass	libvpx	opus	srt
cairo	glog	libbluray	libwebsockets	p11-kit	suite-sparse
ceres-solver	gmp	libevent	little-cms2	pandoc	szip
cmake	gnutls	libffi	lzo	pango	tbb
dav1d	gobject-introspection	libidn2	metis	pcre	tesseract
eigen	graphite2	libmpc	mpfr	pixman	theora
ffmpeg	graphviz	libogg	netcdf	pkg-config	unbound
flac	gts	libpng	netpbm	protobuf	webp
fontconfig	harfbuzz	libsamplerate	nettle	python@3.8	x264
freetype	hdf5	libsndfile	nginx	rav1e	x265
frei0r	icu4c	libsoxr	nmap	readline	xvid
fribidi	ilmbase	libtasn1	node	rtmpdump	xz
gcc	iperf3	libtiff	numpy	rubberband
gd	isl	libtool	openblas	sdl2
gdbm	jasper	libunistring	opencore-amr	sip
gettext	jpeg	libuv	openexr	snappy
gflags	lame	libvidstab	openjpeg	speex

Steps to reproduce

import cv2
img = cv2.imread('image.jpg',0) # any jpeg
cv2.imshow('frame',img)

Issue submission checklist

I report the issue, it's not a question

I checked the problem with documentation, FAQ, open issues,

answers.opencv.org, Stack Overflow, etc and have not found solution

I updated to latest OpenCV version and the issue is still there

[?] There is reproducer code and related data files: videos, images, onnx, etc

Issue 2:
PIP opencv-python package issue: opencv/opencv-python#376

System information (version)

OpenCV => ❔

Operating System / Platform => ❔

Compiler => ❔

Model Name:	MacBook Air

Model Identifier:	MacBookAir7,2

Processor Name:	Dual-Core Intel Core i5

Processor Speed:	1.8 GHz

Number of Processors:	1

Total Number of Cores:	2

L2 Cache (per Core):	256 KB

L3 Cache:	3 MB

Hyper-Threading Technology:	Enabled

Memory:	8 GB

python --version

Python 3.8.5 [3.7,3.6]

❯ pip --version

pip 20.2.2 from /Users/xxx/.pyenv/versions/3.8.5/envs/AI-3.8.5/lib/python3.8/site-packages/pip (python 3.8)

Python 3.8.5 (default, Aug 12 2020, 19:20:20)

[Clang 11.0.3 (clang-1103.0.32.62)] on darwin

Type "help", "copyright", "credits" or "license" for more information.

import cv2

cv2.version

'4.4.0'

Detailed description

Got "[1] 26545 segmentation fault " While running the official OpenCV documentation tutorial code from https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_gui/py_video_display/py_video_display.html

Tested Code:

import numpy as np
import cv2

cap = cv2.VideoCapture(0)

while(True):
# Capture frame-by-frame
ret, frame = cap.read()

# Our operations on the frame come here
gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)

# Display the resulting frame
cv2.imshow('frame',gray)
if cv2.waitKey(1) & 0xFF == ord('q'):
break

# When everything done, release the capture
cap.release()
cv2.destroyAllWindows()

Error message:

"""

python test.py

[1] 60134 segmentation fault python test.py

╭─ ~/Projects/cv2 ✘ SEGV  AI-3.8.5 3.8.5 21:39:57

"""

What I've. tried :

Used different terminals to run the code. (system terminal app, JetBrains PyCharm terminal, viscose terminal, iterm2, iterm2 is setup for camera access )

Used different Python versions (3.6,3.7,3.8)

Tried to build from source code. (same problem)

Steps to reproduce

Issue submission checklist

I report the issue, it's not a question

I checked the problem with documentation, FAQ, open issues,

answers.opencv.org, Stack Overflow, etc and have not found solution

I updated to latest OpenCV version and the issue is still there

There is reproducer code and related data files: videos, images, onnx, etc