Skip to content

[BUG] accidential loop in trigger makes Companion unresponsive #3312

Open
@dnmeid

Description

@dnmeid

Is this a bug in companion itself or a module?

  • I believe this to be a bug in companion

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

You can write a loop with triggers. That can make Companion unresponsive because a lot logging is done and data is pushed between core and gui. At my machine a loop cycle takes ca. 0.4ms

Steps To Reproduce

  1. make custom variable loop with value 0
  2. make new trigger and activate
  3. set event to variable loop change
  4. add action: set custom variable with expression
  5. use variable loop and expression 1-$(custom:loop)
  6. change variable value to 1

Expected Behavior

Either trigger is retriggered as fast as possible but so slow that everything else go that pace
or trigger is not retriggered and there is a error log about the loop.

Environment (please complete the following information)

- OS: win 11
- Browser: Firefox
- Companion Version: 4.0.0 beta

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BUGSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions