avatarify-python
avatarify-python copied to clipboard
Segfault on startup Ubuntu 18.04
Running bash run.sh causes the webcam light to blink on for a second and then the program segfaults. No windows are shown.
Ubuntu 18.04 with a GTX 1050 M
$ conda activate avatarify
$ bash run.sh
0: ./avatars/einstein.jpg
/home/miles/miniconda3/envs/avatarify/lib/python3.7/site-packages/skimage/transform/_warps.py:105: UserWarning: The default mode, 'constant', will be changed to 'reflect' in skimage 0.15.
warn("The default mode, 'constant', will be changed to 'reflect' in "
/home/miles/miniconda3/envs/avatarify/lib/python3.7/site-packages/skimage/transform/_warps.py:110: UserWarning: Anti-aliasing will be enabled by default in skimage 0.15 to avoid aliasing artifacts when down-sampling images.
warn("Anti-aliasing will be enabled by default in skimage 0.15 to "
1: ./avatars/eminem.jpg
2: ./avatars/jobs.jpg
3: ./avatars/mona.jpg
4: ./avatars/obama.jpg
5: ./avatars/potter.jpg
6: ./avatars/ronaldo.png
7: ./avatars/schwarzenegger.png
load checkpoints..
QObject::moveToThread: Current thread (0x556393a71f10) is not the object's thread (0x556392be11f0).
Cannot move to target thread (0x556393a71f10)
run.sh: line 17: 5765 Segmentation fault (core dumped) python cam_fomm.py --config $CONFIG --checkpoint $CKPT --cam $CAMID --virt-cam $CAMID_VIRT --relative --adapt_scale $@
$ git rev-parse HEAD
d051c20f67369208cea065ee67cd8593d734277d
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic
$ nvidia-smi
Thu Apr 23 10:02:17 2020
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 435.21 Driver Version: 435.21 CUDA Version: 10.1 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 1050 Off | 00000000:01:00.0 Off | N/A |
| N/A 46C P0 N/A / N/A | 95MiB / 4042MiB | 1% Default |
+-------------------------------+----------------------+----------------------+
...
$ python -c 'import torch; print(torch.cuda.is_available())'
True
$ python -c 'import torch; print(torch.cuda.get_device_name(0))'
GeForce GTX 1050
see #86
Huh, I switched from i3 to stock ubuntu desktop environment and that fixed it. Then switched back to i3 and it works. Thanks!