Max call stack exceed error on smooth nodes

#1

Good evening

All my smooth node functions are giving me on debug error as follows:

“RangeError: Maximum call stack size exceeded”
23/5/2018 22:13:56node: cc331629.f54448
msg : error
“RangeError: Maximum call stack size exceeded”
23/5/2018 22:13:57node: 490fdffd.016bf
msg : error

Any way to clean this up? Is a bit annoying and will prefer to avoid having to restart the service.

Regards

0 Likes

#2

I believe that the most common cause of this is that you have a loop in your flow somewhere so that the nodes never get the processor to action messages. If you look at the processor utilisation do you see that it is heavily utilised when node-red is running? If so then possibly you have an MQTT loop so that you are publishing to a topic, subscribing to that topic and the value received causes another publish etc, etc.

0 Likes

#3

Hello Colin

If you look at, most of the cases are going directly from a MQTT message o a smooth (with the error) and a graph, so there is nothing in there than can make a loop.

Also checking the utilization of the CPU and RAM are not high (only on the moment of some deploy gets high)

I can not ensure 100% but I thinks this came after my latest upgrade of all system (including node red)

The flows related to this didn't change and were not giving any fault previously.

Regards

0 Likes

#4

If you take disconnect the inputs to the the smooth nodes and feed the unsmoothed values to the dashboard instead, does it all work as expected? If so then try adding new smooth nodes configured the same as the old ones.

0 Likes

#5

It will take some time (maybe days) to get it done and see if problem comes again after receiving a lot of data but I will try and will return the feedback.

Thanks a lot for your time Colin, much apreciated.

0 Likes