Skip to content

Incorrect use of action to set custom variable causes companion to lock-up #1848

Description

@champagj

Describe the bug
When using internal: Set custom variable value instead of internal: Set custom variable expression action to set a value with an expression, companion locks up.

I incorrectly chose set value to update a custom variable with an expression

To Reproduce
Create a custom variable: jf_segment
Create a button to increment the value of jf_segment by 1
Select Action internal: Set custom variable value with Value $(internal:custom_jf_segment) + 1
Press button.
Companion is frozen

Expected behavior
While this is caused by user error, it is fairly likely to happen as the actions are similar and relate to similar functions
The section on getting-started#3-custom-variables mentions that invalid expressions would be ignored.
Similar test/check should be done on value set to ensure they are valid as well

Screenshots
image

Environment
Companion Pi 2.2.0 running built 3694

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