X Error: BadDrawable (invalid Pixmap or Window parameter) 9 when running webcam
Willianflower opened this issue · comments
when I run "python run_webcam.py --source 0 --show 0 --landmark-model shape_predictor_68_face_landmarks.dat --tf-model face2face-reduced-model/frozen_model.pb"
The result showed following:
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
Major opcode: 62 (X_CopyArea)
Resource id: 0x220000e
And new video window is always black.
I use the virtual machine with Ubuntu 16.04.
Does anybody encounter such a problem?
All right...
I find one method could solve this problem.
The "X Error:BadDrawable" such problem is caused by QT, you should make sure you install the QT.
when you finished the installation, add the environment variables.
Then don't foget export QT_X11_NO_MITSHM=1.