Node-red-contrib-tfjs-coco-ssd crashes Node-RED when running on a M1 Mac

Mac mini (M1 2020)
macOS Big Sur
version 11.6

As soon as you try to deploy, after adding node-red-contrib-tfjs-coco-ssd to a flow, Node-RED crashes. Here is the log:

Paul@Mac-mini ~ % node-red --safe
18 Sep 12:10:52 - [info] 

Welcome to Node-RED
===================

18 Sep 12:10:52 - [info] Node-RED version: v2.0.5
18 Sep 12:10:52 - [info] Node.js  version: v14.16.0
18 Sep 12:10:52 - [info] Darwin 20.6.0 x64 LE
18 Sep 12:10:52 - [info] Loading palette nodes
18 Sep 12:10:54 - [info] Worldmap version 2.15.5
18 Sep 12:10:54 - [info] Dashboard version 2.30.0 started at /ui
18 Sep 12:10:54 - [warn] rpi-gpio : Raspberry Pi specific node set inactive
18 Sep 12:10:54 - [info] Settings file  : /Users/Paul/.node-red/settings.js
18 Sep 12:10:54 - [info] HTTP Static    : /Users/Paul/node-red-static
18 Sep 12:10:54 - [info] Context store  : 'default' [module=localfilesystem]
18 Sep 12:10:54 - [info] Context store  : 'memory' [module=memory]
18 Sep 12:10:54 - [info] User directory : /Users/Paul/.node-red
18 Sep 12:10:54 - [info] Projects directory: /Users/Paul/.node-red/projects
18 Sep 12:10:54 - [info] Server now running at http://127.0.0.1:1880/
18 Sep 12:10:54 - [info] Active project : hss_complete_v0_55_0_wk
18 Sep 12:10:54 - [info] Flows file     : /Users/Paul/.node-red/projects/hss_complete_v0_55_0_wk/flow.json
18 Sep 12:10:54 - [info] *****************************************************************
18 Sep 12:10:54 - [info] Flows stopped in safe mode. Deploy to start.
18 Sep 12:10:54 - [info] *****************************************************************
18 Sep 12:11:27 - [info] Stopping flows
18 Sep 12:11:27 - [info] Stopped flows
18 Sep 12:11:27 - [info] Starting flows
cpu backend was already registered. Reusing existing backend factory.
Platform node has already been set. Overwriting the platform with [object Object].
zsh: illegal hardware instruction  node-red --safe
Paul@Mac-mini ~ % 

I did find that people are having issues with TensorFlow on the new Apple M1 chips. There is a GitHub issue (Unsupported system error when installing on M1 / Apple Silicon · Issue #4514 · tensorflow/tfjs · GitHub)

@dceejay - Dave, do you want a GitHub issue opened for the node?

Well you can open it... but I won't be fixing it any time soon. :slight_smile:

1 Like

Haha, I didn't think so. I wanted to open an thread in case someone else stumbles over this.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.