Event Controller - incorrectly listens while offline/unpowered - skips events on server
There are multiple issues, but they are probably connected, so I write them one by one
Event Controller listens while offline
Details
Reproduction
Grid setup:
- Setup new grid using cockpit, event controller, battery, light (and set it static)
- Event Controller setup: condition switch block on/off, action-true-1: turn this event controller off, action-true-2: toggle light on/off
- Turn Event Controller off
- Enter cockpit and setup toolbar-action-1: turn event controller on
Observation:
When using toolbar-1 in cockpit, event controller is turned on, light will toggle and event controller is turned off.
Expected behavior:
Common sense, offline controller shouldn't listen to events. Turning the controller on then shouldn't trigger the light and shouldn't turn the controller off.
As we do not have detailed description of how this should't interact, I can't 100% say this is a bug. But I belive this might be a source of other different bugs and issues. This is about the principle of event loops.
Event Controller skips events on server
Details
Reproduction
Grid setup:
Same as Event Controller listens while offline
Observation:
When using toolbar-1 in cockpit, event controller is turned on, light will toggle and event controller is turned off.
But sometimes! Event controller is not turned off or light is not toggled. In other words, one or both of event controllers actions are skipped.
Expected behavior:
Consistency. The behavior where toolbar action is selected, but not properly delivered or handled by server can happen. But it shouldn't happen only some actions of event controller are fired.
Event Controller listens while not powered and triggers actions when re-powered
Details
Reproduction
Grid setup:
Same as Event Controller listens while offline
Observation:
Turn the battery off. Use toolbar-1 in cockpit. Light is toggled (check via K->control panel).
Expected behavior:
Common sense, depowered event controller shouldn't be able to listen to events and fire actions.
I have the same bug
Replies have been locked on this page!