justadudewhohacks / face-api.js

JavaScript API for face detection and face recognition in the browser and nodejs with tensorflow.js
MIT License
16.66k stars 3.71k forks source link

Electron Crashing Inside IPC call on face-api.js call #674

Open a-r-db opened 4 years ago

a-r-db commented 4 years ago

Preflight Checklist

Issue Details

Expected Behavior

line 21 of my example project in recognition.ts should run faceapi.detectAllFaces(...)

Actual Behavior

Crashed with almost no information about why the process has failed.

To Reproduce

Please see below for a working example.

Recommended platform Linux Recommended OS Ubuntu 20.04.1 LTS

$ sudo apt install make g++ libpixman-1-dev libcairo2-dev libpango1.0-dev libjpeg8-dev libgif-dev
$ sudo npm i -g node-gyp
$ git clone https://github.com/a93h/electron-quick-start-typescript
$ cd electron-quick-start-typescript
$ npm i
$ ./node_modules/.bin/electron-rebuild 
$ export ELECTRON_ENABLE_LOGGING=true
$ npm start

Screenshots

Error Info

Additional Information

Was hoping somebody could show me why or why this is not a face-api.js problem. Thanks,

Really new to electron and not entirely certain if this is an electron issue or face-api.js I assume I don't fully comprehend how the electron library works and since face-api.js was working before I put it inside an ipc call I believe I am not integrating electron and face-api.js properly.

a-r-db commented 4 years ago

I found a proprietary replacement in the meantime but getting this working would be nice.