You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a button with the action to toggle a trigger state and sometimes, when I press the button to enable it, it also executes the actions on the trigger and that should not happen.
I would show you the logs but apparently by restarting companion it deletes the logs, and in an attempt to reproduce this, I restarted companion and lost them...
The logs were something like:
Surface/Handler/streamdeck:A00xxxxx: Button 1.4 Pressed
Surface/Handler/streamdeck:A00xxxxx: Button 1.4 Released
Controls/ControlTypes/Triggers: Execute [name of my trigger]
Then I tried again and again and logs were just:
Surface/Handler/streamdeck:A00xxxxx: Button 1.4 Pressed
Surface/Handler/streamdeck:A00xxxxx: Button 1.4 Released
Surface/Handler/streamdeck:A00xxxxx: Button 1.4 Pressed
Surface/Handler/streamdeck:A00xxxxx: Button 1.4 Released
Surface/Handler/streamdeck:A00xxxxx: Button 1.4 Pressed
Surface/Handler/streamdeck:A00xxxxx: Button 1.4 Released
Since I don't have the logs anymore I cannot confirm for sure that "Controls/ControlTypes/Triggers" was what it said but was somethiing like it followed by "Execute" and the name of the trigger.
Also, "A00xxxxx" is my streamdeck serial number but redacted for safety.
Steps To Reproduce
Cannot tell you exactly how to reproduce as it happens randomly but I can show you all my configurations.
Trigger Settings:
Events and Conditions:
Actions:
Button to toggle trigger status:
Expected Behavior
The trigger should only be enabled and not executed.
Trigger should only execute when the events (and possible conditions) were met.
Environment (please complete the following information)
I would export the support bundle but I don't know where to upload it to or who to give it to!
You mention "It is not recommended to post this publicly, rather you should send it privately to the necessary party."
Let me know if you need it or who should I send it to should it be necessary.
Maybe related or can help to get some idea of what's wrong is #2566.
The text was updated successfully, but these errors were encountered:
The screenshots were enough to be able to reproduce this.
As a reminder to my future self or anyone wondering what the problem was:
Create a trigger with a 'time of day' event set 1 minute in the future
Briefly enable then disable the trigger
Wait until the time specified has past (another couple of minutes is good for clarity)
enable the trigger, and it will execute
This was a bug in how we were tracking when the next execution time of the trigger was. Because it was disabled, we didnt perform the proper flow for keeping the 'nextExecutionTime' updated, so after the time had passed it was still pointing to when the skipped execution should have been done. This meant that once it was enabled, it saw that it should have executed and did so, assuming it was late (caused by clock drift, or high cpu usage or something).
The fix is easy, always update the 'nextExecutionTime' updated, even when the trigger is disabled
This is fixed in beta, and will be in 3.1.2 due to be released this week.
Is this a bug in companion itself or a module?
Is there an existing issue for this?
Describe the bug
I have a button with the action to toggle a trigger state and sometimes, when I press the button to enable it, it also executes the actions on the trigger and that should not happen.
I would show you the logs but apparently by restarting companion it deletes the logs, and in an attempt to reproduce this, I restarted companion and lost them...
The logs were something like:
Surface/Handler/streamdeck:A00xxxxx: Button 1.4 Pressed
Surface/Handler/streamdeck:A00xxxxx: Button 1.4 Released
Controls/ControlTypes/Triggers: Execute [name of my trigger]
Then I tried again and again and logs were just:
Surface/Handler/streamdeck:A00xxxxx: Button 1.4 Pressed
Surface/Handler/streamdeck:A00xxxxx: Button 1.4 Released
Surface/Handler/streamdeck:A00xxxxx: Button 1.4 Pressed
Surface/Handler/streamdeck:A00xxxxx: Button 1.4 Released
Surface/Handler/streamdeck:A00xxxxx: Button 1.4 Pressed
Surface/Handler/streamdeck:A00xxxxx: Button 1.4 Released
Since I don't have the logs anymore I cannot confirm for sure that "Controls/ControlTypes/Triggers" was what it said but was somethiing like it followed by "Execute" and the name of the trigger.
Also, "A00xxxxx" is my streamdeck serial number but redacted for safety.
Steps To Reproduce
Cannot tell you exactly how to reproduce as it happens randomly but I can show you all my configurations.
Trigger Settings:
Events and Conditions:
Actions:
Button to toggle trigger status:
Expected Behavior
The trigger should only be enabled and not executed.
Trigger should only execute when the events (and possible conditions) were met.
Environment (please complete the following information)
Additional context
I would export the support bundle but I don't know where to upload it to or who to give it to!
You mention "It is not recommended to post this publicly, rather you should send it privately to the necessary party."
Let me know if you need it or who should I send it to should it be necessary.
Maybe related or can help to get some idea of what's wrong is #2566.
The text was updated successfully, but these errors were encountered: