Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-244102

Server pinging is not thread safe

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.18
    • None
    • Plausible
    • Networking
    • Low
    • Platform

      This bug appears to affect all versions of Minecraft to date

      I recently discovered a bug while working on some code in earlier versions of Minecraft (1.8.9) that causes servers to sometimes fail when being pinged for the first time after first launch requiring the player to hit the refresh button before their servers show the correct ping and message of the day. From my quick testing this issues seems to be present in the current release versions.  I've attached an image explaining the problem and solution. The class name referred to in the screenshot is most likely different to what you have in source as its name is from the MCP mappings (LazyLoadBase) this class is used in your networking to Lazy load the netty event loops so I hope that makes it easier to find. All that needs to be done is make this class thread safe and then the issue should be fixed

            Unassigned Unassigned
            jacobtread Jacob Read
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              CHK: