Skip to content

Building a dev module version causes persistent high CPU usage #153

@arikorn

Description

@arikorn

When a Companion auto-restarts to load a module with changed files, Companion CPU usage goes up to 70% while idle (on my Windows system, even without the admin WebUI open) and stays there. See images below. I did this by just running yarn build in my Typescript projects without changing the file contents.

This behavior appears to be the same in Companion version v4.0.3, v4.1.0, and the latest 4.2 beta: 8448, with module-base versions 1.11.0 - 1.13 (only 1.11 was tested with 4.0.3). I didn't check earlier versions.

I have been able to reproduce the problem with module-template-ts, but only inconsistently (maybe one in 10 null re-builds?). The problem shows up much less consistently, for example, the Osee GoStream module. It does it for me even if the module is disabled. (It's possible that having buttons that use the module is necessary for the problem to show up.)

OS: Windows 10
Browser: Chrome (though the browser doesn't have to be open.)

Normal usage:

Image

After re-building the module:

Image

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