Skip to content

[BUG] possible memory leak to modbus tcp write #1976

@mcmilleraltronic

Description

@mcmilleraltronic

Describe the bug
after roughly 8 hours of running on a CM4, the memory of a process named "node main.js" went from almost no memory usage to taking up ~1gb of memory usage on a 2gb max, causing the system to crash.

To Reproduce
Steps to reproduce the behavior:
See the images and script below, writing values in the script to the "modbusTOde' is where the issue appears to be.

Expected behavior
I would expect FUXA to handle the writes without crashing.

Screenshots
Image

Image

Example project
FUXA_WH_16OCT2025_rev0.json

Environment

  • FUXA version: 1.2.5-2292
  • Node.js version: 20.15.1
  • npm version: 10.7.0
  • Platform/OS: Debian GNU/linux 12
  • Browser: chromium 125.0.6422.133

fuxa187.log

modbus_forward_script.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions