ctm / mb2-doc

Mb2, poker software
https://devctm.com
7 stars 2 forks source link

Action Tracker surprise #1438

Closed ctm closed 2 weeks ago

ctm commented 3 weeks ago

Figure out why this warning appeared during my play this evening. I'm not marking it as a bug, because I didn't see any weirdness, other than a bit of what I think was lag at the end. I assume with the timestamps that this will be obvious.

18:13:16.550  WARN front-ends/web/src/action_tracker.rs:722 Not sure how we got this raise
18:13:21.216  WARN front-ends/web/src/action_tracker.rs:722 Not sure how we got this raise
18:13:23.062  WARN front-ends/web/src/action_tracker.rs:722 Not sure how we got this raise
18:14:08.852  WARN front-ends/web/src/action_tracker.rs:722 Not sure how we got this raise
18:14:10.676  WARN front-ends/web/src/action_tracker.rs:722 Not sure how we got this raise
18:14:16.314  WARN front-ends/web/src/action_tracker.rs:722 Not sure how we got this raise
18:17:36.416  WARN front-ends/web/src/action_tracker.rs:722 Not sure how we got this raise
18:18:49.434  WARN front-ends/web/src/action_tracker.rs:722 Not sure how we got this raise
18:19:03.916  WARN front-ends/web/src/action_tracker.rs:722 Not sure how we got this raise
18:19:22.275  WARN front-ends/web/src/action_tracker.rs:722 Not sure how we got this raise
18:19:29.240  WARN front-ends/web/src/action_tracker.rs:722 Not sure how we got this raise
18:20:53.272  WARN front-ends/web/src/action_tracker.rs:722 Not sure how we got this raise
18:20:54.424  WARN front-ends/web/src/action_tracker.rs:722 Not sure how we got this raise
18:24:09.388  WARN front-ends/web/src/action_tracker.rs:722 Not sure how we got this raise
18:25:14.417  WARN front-ends/web/src/action_tracker.rs:722 Not sure how we got this raise
18:42:51.443  WARN front-ends/web/src/action_tracker.rs:722 Not sure how we got this raise
18:47:36.411  WARN front-ends/web/src/action_tracker.rs:722 Not sure how we got this raise
18:54:01.403  WARN front-ends/web/src/action_tracker.rs:722 Not sure how we got this raise
19:02:23.859  WARN front-ends/web/src/action_tracker.rs:722 Not sure how we got this raise
19:20:36.184  WARN front-ends/web/src/action_tracker.rs:722 Not sure how we got this raise
19:21:49.361  WARN front-ends/web/src/action_tracker.rs:722 Not sure how we got this raise
19:23:45.469  WARN front-ends/web/src/action_tracker.rs:722 Not sure how we got this raise
ctm commented 2 weeks ago

This appears to simply be a matter of ActionTracker having a sanity checker (that issues a warning that nobody ever sees) fire on third street after there's been a raise after a completion.

This sanity check has been present since the beginning of the graphical code (introduced in commit f7813d3: [Feat] adds a lot of elements to the graphical view. Part of #688.). It's harmless, but it does point out the fact that not sending warnings from the client to the server means we can have warnings trigger that nobody ever sees. That will not scale, although scaling isn't currently my highest priority (/me coughs).

I will either tighten up the criteria that is used to determine when to emit the warning or I'll remove it entirely after I make sure that all of the instances have the same trigger and after I think a little bit about just what I was concerned with when I put the warning in.

FWIW, the replay-a-hand tool (#1288)—that I haven't yet taken the time to write—would reproduce this issue and if I made a headless version, I could actually run it against all hands that use the current protocol and have it point out any warnings. As such, I'll consider writing that tool when I'm too tired to work on more important things.

ctm commented 2 weeks ago

Fixed and deployed.