MessageUtil.doDelayed/postTick is thread-unsafe #4526
Labels
priority: high
status: fixed/implemented in dev
We've fixed this internally, however the fix hasn't been released publicly yet.
type: bug
Something isn't behaving as expected, from a developer perspective. (Except crashes are always bugs)
version: 1.12.2
The
MessageUtil.doDelayed
system relies on a single backing queue:BuildCraft/common/buildcraft/lib/misc/MessageUtil.java
Lines 45 to 59 in 8bac6a7
It is however used on the client (ref) and the server (ref), leading to runnables being shuffled between both threads at random and all the fun stuff that follows from that (e.g. Johni0702/BetterPortals#458).
Example stack trace of illegal access (with modified version of BP)
The text was updated successfully, but these errors were encountered: