-
Notifications
You must be signed in to change notification settings - Fork 747
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Devs: Java -> streams -> forEach can broke the game (lost priority bug)? #6207
Comments
Was this ever validated or not? It is a pretty important issue nowadays. |
In current server's logs I can find rare concurrent access/modification exceptions -- but it maybe something else. Example:
P.S. |
As a preventive measure: try not use any user intercation code (pay/choose/etc) from streams (e.g. from |
[[Whirlwind Denial]] can cause
|
Whirlwind Denial - (Gatherer) (Scryfall) (EDHREC)
|
Example code from
Whirlwind Denial
:It uses a direct game objects list like Stack. If something can change it inside then it will be broken by ConcurrentModificationException (example with stack processing - if something add or remove from stack). It can be modified in the same code or by ApplyEffect, ProcessActions, game events and other “hidden” logic.
Recommends:
The text was updated successfully, but these errors were encountered: