machinebox / issues

Machine Box issues, bugs and feature requests
2 stars 0 forks source link

Facebox Error SIGILL: illegal instruction when running demo #47

Closed danlakey closed 5 years ago

danlakey commented 5 years ago

Encountering an error with the built in Facebox demo. Below are my system specs: Dell PowerEdge T310 running VMWare ESXi 5.5 One VM with Ubuntu 18.04 LTS with 2 CPU and 4 GB RAM Docker version 18.09.3, build 774a1f4

  1. launching the Facebox container per the simple instructions on the Teaching Faces page.
  2. navigating to http://localhost:8080/demo
  3. click on the Beatles image to load the URL (https://machinebox.io/samples/faces/thebeatles.jpg) and click Check images for faces
  4. Receive the following error message on the demo page: Oops, something went wrong - check the console for more details

Attached a full dump of the console when the demo page button is clicked. First few lines of the print out are:

SIGILL: illegal instruction
PC=0xb80b7a m=10 sigcode=2

goroutine 0 [idle]:
runtime: unknown pc 0xb80b7a

facebox crash log.txt

Thank you for your help, looking forward to being able to use this product.

dahernan commented 5 years ago

It looks to me that in the VM some CPU instructions are not supported, facebox uses AVX2 instructions, can you verify some way that VM has that instructions available?

You can maybe verify that is the instruction set, using the docker image machinebox/facebox_noavx (not officially supported, but available for the home assistant project)

matryer commented 5 years ago

Excellent bug report. :)

danlakey commented 5 years ago

@dahernan thank you for the suggestion of machinebox/facebox_noavx, that appears to have resolved my issue! I executed docker pull machinebox/facebox_noavx and the launched the container via docker run -p 8080:8080 -e "MB_KEY=$MB_KEY" machinebox/facebox_noavx and was able to continue on with the demo successfully.

I actually came across MachineBox from the Home Assistant Community and am looking to implement Facebox as a potential solution for in-house presence detection (who is in certain rooms of the house).

Will this version machinebox/facebox_noavx ever become officially supported?

Thank you again for the quick reply.

dahernan commented 5 years ago

Great, glad to hear that. We don't have plans right to support noavx, we currently focus on cloud build, and still are small team

ArtemM commented 3 years ago

Any solution for objectbox? Naive pull of machinebox/objectbox_noavx:latest did not work :( .

mfarley281 commented 3 years ago

I'm trying to run facebox on bare metal (no VM) on a Intel Core 2 Quad Q6600 and ran into this issue. noavx got me a step further, but now even though facebox says it's ready, any request to train responds "box is not ready, try again later".