[QUESTION] Illegal instruction (core dumped) #65

Closed
opened 2026-02-04 17:06:37 +03:00 by OVERLORD · 11 comments
Owner

Originally created by @Atemu on GitHub (May 8, 2022).

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

docker-immich_microservices-1  | 
docker-immich_microservices-1  | > nest_microservices@0.0.1 prebuild
docker-immich_microservices-1  | > rimraf dist
docker-immich_microservices-1  | 
docker-immich_microservices-1  | 
docker-immich_microservices-1  | > nest_microservices@0.0.1 build
docker-immich_microservices-1  | > nest build
docker-immich_microservices-1  | 
docker-immich_microservices-1  | 
docker-immich_microservices-1  | > nest_microservices@0.0.1 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?

Originally created by @Atemu on GitHub (May 8, 2022). **Describe the bug** A clear and concise description of what the bug is. ``` docker-immich_microservices-1 | docker-immich_microservices-1 | > nest_microservices@0.0.1 prebuild docker-immich_microservices-1 | > rimraf dist docker-immich_microservices-1 | docker-immich_microservices-1 | docker-immich_microservices-1 | > nest_microservices@0.0.1 build docker-immich_microservices-1 | > nest build docker-immich_microservices-1 | docker-immich_microservices-1 | docker-immich_microservices-1 | > nest_microservices@0.0.1 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?
Author
Owner

@Atemu commented on GitHub (May 8, 2022):

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 commented on GitHub (May 8, 2022): 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.
Author
Owner

@alextran1502 commented on GitHub (May 8, 2022):

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 commented on GitHub (May 8, 2022): 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. :/
Author
Owner

@Atemu commented on GitHub (May 8, 2022):

I see.

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

@Atemu commented on GitHub (May 8, 2022): I see. Can TF be made to use the iGPU? Perhaps it doesn't use AVX when using a GPU.
Author
Owner

@alextran1502 commented on GitHub (May 8, 2022):

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 commented on GitHub (May 8, 2022): 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
Author
Owner

@sbkg0002 commented on GitHub (May 17, 2022):

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

@sbkg0002 commented on GitHub (May 17, 2022): @alextran1502 if there is a way I can help build or test, pm me.
Author
Owner

@mada199122 commented on GitHub (May 26, 2022):

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 commented on GitHub (May 26, 2022): 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...
Author
Owner

@sbkg0002 commented on GitHub (May 26, 2022):

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 commented on GitHub (May 26, 2022): 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!
Author
Owner

@dorianim commented on GitHub (Aug 10, 2022):

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

@dorianim commented on GitHub (Aug 10, 2022): This might help to build tfjs-node without avx: https://peterbabic.dev/blog/install-tfjs-node-from-source/
Author
Owner

@JVT038 commented on GitHub (Sep 7, 2022):

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 commented on GitHub (Sep 7, 2022): 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.
Author
Owner

@bertmelis commented on GitHub (Sep 7, 2022):

See #300
I run ML on a j4105

@bertmelis commented on GitHub (Sep 7, 2022): See #300 I run ML on a j4105
Author
Owner

@alextran1502 commented on GitHub (Sep 10, 2022):

Closing as this issue is now an information thread.

@alextran1502 commented on GitHub (Sep 10, 2022): Closing as this issue is now an information thread.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#65