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

Mods that create an inventory screen from the Netty network thread trigger a wrong thread exception which leads to the server connection closing immediately

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.17
    • None
    • Windows 10, Java 16
    • Unconfirmed
    • (Unassigned)

      In the MinecraftClient class, the openScreen method has a new call added to

      BufferRenderer.unbindAll();  We have a mod that calls the openScreen method to implement a cross server 'vault' from the Netty Client IO thread.  This results in an exception in the RenderSystem class (IllegalStateException("Rendersystem called from wrong thread").  We can get around the issue by using a Mixin to overide the openScreen method, but I'm wondering if there is another, more proper way to do this.  Or is this a bug?

       

       

            Unassigned Unassigned
            djlawler David Lawler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: