immich icon indicating copy to clipboard operation
immich copied to clipboard

[QUESTION] Illegal instruction (core dumped)

Open Atemu opened this issue 3 years ago • 8 comments
trafficstars

Describe the bug A clear and concise description of what the bug is.

docker-immich_microservices-1  | 
docker-immich_microservices-1  | > [email protected] prebuild
docker-immich_microservices-1  | > rimraf dist
docker-immich_microservices-1  | 
docker-immich_microservices-1  | 
docker-immich_microservices-1  | > [email protected] build
docker-immich_microservices-1  | > nest build
docker-immich_microservices-1  | 
docker-immich_microservices-1  | 
docker-immich_microservices-1  | > [email protected] start:prod
docker-immich_microservices-1  | > node dist/main
docker-immich_microservices-1  | 
docker-immich_microservices-1  | Illegal instruction (core dumped)
docker-immich_microservices-1 exited with code 132

I am running this on a machine with a low-power Celeron CPU that does not have AVX instruction support, so that seems like a likely cause.
I assume this is the ML stuff? Is it possible to disable AVX instructions for these? Could I pass through the intel iGPU to do this on instead?

Atemu avatar May 08 '22 12:05 Atemu

Ah, should've read the README to the end...

It'd be nice if immich-microservices could be run on non-AVX CPUs and/or iGPUs instead though.

Atemu avatar May 08 '22 12:05 Atemu

Hi, unfortunately, it is TensorFlow that uses the AVX instruction. The only workaround is to build it from the source and disable it, the distributed node.js library that comes with Immich has it enabled. :/

alextran1502 avatar May 08 '22 12:05 alextran1502

I see.

Can TF be made to use the iGPU? Perhaps it doesn't use AVX when using a GPU.

Atemu avatar May 08 '22 12:05 Atemu

I have an experimental dockerfile that uses GPU but haven't actually gotten a chance to fully work on that to incorporate into the code. I will keep this issue opened and updated when I have more info

alextran1502 avatar May 08 '22 12:05 alextran1502

@alextran1502 if there is a way I can help build or test, pm me.

sbkg0002 avatar May 17 '22 14:05 sbkg0002

Me too I have a Synology NAS with INTEL Celeron J4125, I really would like to try immich-microservices on iGPU... If you need help on some test, I'm here...

mada199122 avatar May 26 '22 07:05 mada199122

Which nodejs package has the AVX dependency? Is there a non-avx version of the pkg? Im looking into building a iGPU multi-stage dockerfile to get this going!

sbkg0002 avatar May 26 '22 10:05 sbkg0002

This might help to build tfjs-node without avx: https://peterbabic.dev/blog/install-tfjs-node-from-source/

dorianim avatar Aug 10 '22 06:08 dorianim

Is there any update on this? I have a NAS with Intel Celeron J3455 that gives the same error, and now I can't run the machine learning container, causing more errors.

JVT038 avatar Sep 07 '22 19:09 JVT038

See #300 I run ML on a j4105

bertmelis avatar Sep 07 '22 20:09 bertmelis

Closing as this issue is now an information thread.

alextran1502 avatar Sep 10 '22 04:09 alextran1502