companion icon indicating copy to clipboard operation
companion copied to clipboard

[BUG] accidential loop in trigger makes Companion unresponsive

Open dnmeid opened this issue 10 months ago • 0 comments

Is this a bug in companion itself or a module?

  • [x] I believe this to be a bug in companion

Is there an existing issue for this?

  • [x] 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

dnmeid avatar Feb 22 '25 23:02 dnmeid