exadel-inc / CompreFace

Leading free and open-source face recognition system
https://exadel.com/accelerator-showcase/compreface/
Apache License 2.0
5.67k stars 773 forks source link

"qemu: uncaught target signal 6 (Aborted) - core dumped" on m1 Mac #673

Open conorarmstrong opened 2 years ago

conorarmstrong commented 2 years ago

Not starting on an m1 Mac (core dump)

compreFace-core is producing following log:

[uWSGI] getting INI configuration from uwsgi.ini

*** Starting uWSGI 2.0.19 (64bit) on [Tue Dec  7 23:07:57 2021] ***

compiled with version: 10.2.1 20210110 on 20 October 2021 09:21:55

os: Linux-5.10.76-linuxkit #1 SMP PREEMPT Mon Nov 8 11:22:26 UTC 2021

nodename: b9d8893ef004

machine: x86_64

clock source: unix

detected number of CPU cores: 4

current working directory: /app/ml

detected binary path: /usr/local/bin/uwsgi

!!! no internal routing support, rebuild with pcre support !!!

setgid() to 33

setuid() to 33

your memory page size is 4096 bytes

detected max file descriptor number: 1048576

lock engine: pthread robust mutexes

!!! it looks like your kernel does not support pthread robust mutexes !!!

!!! falling back to standard pthread mutexes !!!

thunder lock: disabled (you can enable it with --thunder-lock)

uwsgi socket 0 bound to TCP address 0.0.0.0:3000 fd 3

Python version: 3.7.12 (default, Sep 28 2021, 19:53:04)  [GCC 10.2.1 20210110]

Python main interpreter initialized at 0x4000130390

python threads support enabled

your server socket listen backlog is limited to 100 connections

your mercy for graceful operations on workers is 60 seconds

mapped 218712 bytes (213 KB) for 2 cores

*** Operational MODE: preforking ***

2021-12-07 23:08:01.358950: F tensorflow/core/platform/cpu_feature_guard.cc:37] The TensorFlow library was compiled to use AVX instructions, but these aren't available on your machine.

qemu: uncaught target signal 6 (Aborted) - core dumped

Steps to reproduce

(i) On an M1 Mac install Docker Desktop (apple silicon version). (ii) Install CompreFace 0.6.1 and run it

pospielov commented 2 years ago

M1 Mac works on ARM CPU and CompreFace doesn't support it. As I know it can somehow emulate x86, but we don't have now contributors with M1 Mac to check why it doesn't work. My guess - CompreFace also requires AVX, which is supported only by x86 CPU, and I don't know if Apple managed to emulate it.