MC warns about racing #84
colemanomartin
started this conversation in
General
Replies: 1 comment
-
I have seen this too and would love to have an answer. I am wondering if this is a reason why sometimes my games stalls after the end of a game before it goes back to attract mode. The stall can be anywhere from 1-45 seconds. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use widget player to post two widgets to a slide when the player drains a ball. Here is the yaml.
widget_player:
balldevice_bd_trough_ball_enter:
left_drain:
slide: blank_transparent
right_drain:
slide: blank_transparent
This seems to work fine but in my log MC repeats a warning nearly verbatim 4 times, which makes me think I am doing something wrong. Is there a different way to add multiple widgets to a slide on an event which does not make MC cranky?
2023-02-19 15:15:18,773 : EventManager : Event: ======'widgets_play'====== Args={'settings': {'left_drain': {'slide': 'blank_transparent', 'priority': 0, 'action': 'add', 'key': None, 'target': None}, 'right_drain': {'slide': 'blank_transparent', 'priority': 0, 'action': 'add', 'key': None, 'target': None}}, 'context': 'sweep_server', 'calling_context': 'balldevice_bd_trough_ball_enter', 'priority': 3000, 'new_balls': 1, 'unclaimed_balls': 1, 'new_available_balls': 1, 'device': '<ball_device.bd_trough>'}
2023-02-19 15:15:18,774 : EventManager : Unordered handler for class McConfigPlayer.widgets on event slide_blank_transparent_created with priority 0. Handlers: [RegisteredHandler(callback=, priority=0, kwargs={'slide_name': 'blank_transparent', 'widget': 'triangle_scoop_sweep', 's': {'slide': 'blank_transparent', 'key': 'sweep_server-triangle_scoop_sweep', 'target': None}, 'play_kwargs': {}}, key=UUID('846a9923-13b4-4ccf-b849-42e85fb7cd3e'), condition=None, blocking_facility=None), RegisteredHandler(callback=, priority=0, kwargs={'slide_name': 'blank_transparent', 'widget': 'right_drain', 's': {'slide': 'blank_transparent', 'key': 'sweep_server-right_drain', 'target': None}, 'play_kwargs': {'new_balls': 1, 'unclaimed_balls': 1, 'new_available_balls': 1, 'device': '<ball_device.bd_trough>'}}, key=UUID('37b4a8e0-67be-44d4-bb0c-0e9fbca26022'), condition=None, blocking_facility=None), RegisteredHandler(callback=, priority=0, kwargs={'slide_name': 'blank_transparent', 'widget': 'left_drain', 's': {'slide': 'blank_transparent', 'key': 'sweep_server-left_drain', 'target': None}, 'play_kwargs': {'new_balls': 1, 'unclaimed_balls': 1, 'new_available_balls': 1, 'device': '<ball_device.bd_trough>'}}, key=UUID('c50a949d-d256-4afd-92c8-00a6c282daa2'), condition=None, blocking_facility=None)]. The order of those handlers is not defined and they will be executed in random order. This might lead to race conditions and potential bugs.
2023-02-19 15:15:18,774 : EventManager : Unordered handler for class McConfigPlayer.widgets on event slide_blank_transparent_created with priority 0. Handlers: [RegisteredHandler(callback=, priority=0, kwargs={'slide_name': 'blank_transparent', 'widget': 'triangle_scoop_sweep', 's': {'slide': 'blank_transparent', 'key': 'sweep_server-triangle_scoop_sweep', 'target': None}, 'play_kwargs': {}}, key=UUID('846a9923-13b4-4ccf-b849-42e85fb7cd3e'), condition=None, blocking_facility=None), RegisteredHandler(callback=, priority=0, kwargs={'slide_name': 'blank_transparent', 'widget': 'right_drain', 's': {'slide': 'blank_transparent', 'key': 'sweep_server-right_drain', 'target': None}, 'play_kwargs': {'new_balls': 1, 'unclaimed_balls': 1, 'new_available_balls': 1, 'device': '<ball_device.bd_trough>'}}, key=UUID('37b4a8e0-67be-44d4-bb0c-0e9fbca26022'), condition=None, blocking_facility=None), RegisteredHandler(callback=, priority=0, kwargs={'slide_name': 'blank_transparent', 'widget': 'left_drain', 's': {'slide': 'blank_transparent', 'key': 'sweep_server-left_drain', 'target': None}, 'play_kwargs': {'new_balls': 1, 'unclaimed_balls': 1, 'new_available_balls': 1, 'device': '<ball_device.bd_trough>'}}, key=UUID('c50a949d-d256-4afd-92c8-00a6c282daa2'), condition=None, blocking_facility=None)]. The order of those handlers is not defined and they will be executed in random order. This might lead to race conditions and potential bugs.
2023-02-19 15:15:18,780 : EventManager : Unordered handler for class McConfigPlayer.widgets on event slide_blank_transparent_created with priority 0. Handlers: [RegisteredHandler(callback=, priority=0, kwargs={'slide_name': 'blank_transparent', 'widget': 'triangle_scoop_sweep', 's': {'slide': 'blank_transparent', 'key': 'sweep_server-triangle_scoop_sweep', 'target': None}, 'play_kwargs': {}}, key=UUID('846a9923-13b4-4ccf-b849-42e85fb7cd3e'), condition=None, blocking_facility=None), RegisteredHandler(callback=, priority=0, kwargs={'slide_name': 'blank_transparent', 'widget': 'left_drain', 's': {'slide': 'blank_transparent', 'key': 'sweep_server-left_drain', 'target': None}, 'play_kwargs': {'new_balls': 1, 'unclaimed_balls': 1, 'new_available_balls': 1, 'device': '<ball_device.bd_trough>'}}, key=UUID('c50a949d-d256-4afd-92c8-00a6c282daa2'), condition=None, blocking_facility=None), RegisteredHandler(callback=, priority=0, kwargs={'slide_name': 'blank_transparent', 'widget': 'right_drain', 's': {'slide': 'blank_transparent', 'key': 'sweep_server-right_drain', 'target': None}, 'play_kwargs': {'new_balls': 1, 'unclaimed_balls': 1, 'new_available_balls': 1, 'device': '<ball_device.bd_trough>'}}, key=UUID('47143fa5-89c0-4512-960a-e49d8e1bad06'), condition=None, blocking_facility=None)]. The order of those handlers is not defined and they will be executed in random order. This might lead to race conditions and potential bugs.
2023-02-19 15:15:18,780 : EventManager : Unordered handler for class McConfigPlayer.widgets on event slide_blank_transparent_created with priority 0. Handlers: [RegisteredHandler(callback=, priority=0, kwargs={'slide_name': 'blank_transparent', 'widget': 'triangle_scoop_sweep', 's': {'slide': 'blank_transparent', 'key': 'sweep_server-triangle_scoop_sweep', 'target': None}, 'play_kwargs': {}}, key=UUID('846a9923-13b4-4ccf-b849-42e85fb7cd3e'), condition=None, blocking_facility=None), RegisteredHandler(callback=, priority=0, kwargs={'slide_name': 'blank_transparent', 'widget': 'left_drain', 's': {'slide': 'blank_transparent', 'key': 'sweep_server-left_drain', 'target': None}, 'play_kwargs': {'new_balls': 1, 'unclaimed_balls': 1, 'new_available_balls': 1, 'device': '<ball_device.bd_trough>'}}, key=UUID('c50a949d-d256-4afd-92c8-00a6c282daa2'), condition=None, blocking_facility=None), RegisteredHandler(callback=, priority=0, kwargs={'slide_name': 'blank_transparent', 'widget': 'right_drain', 's': {'slide': 'blank_transparent', 'key': 'sweep_server-right_drain', 'target': None}, 'play_kwargs': {'new_balls': 1, 'unclaimed_balls': 1, 'new_available_balls': 1, 'device': '<ball_device.bd_trough>'}}, key=UUID('47143fa5-89c0-4512-960a-e49d8e1bad06'), condition=None, blocking_facility=None)]. The order of those handlers is not defined and they will be executed in random order. This might lead to race conditions and potential bugs.
Beta Was this translation helpful? Give feedback.
All reactions