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

Minecraft.pointedEntity leaks the previous world when returning to the title screen

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 1.9.2, Minecraft 1.12.2, Minecraft 18w15a, Minecraft 1.13, Minecraft 18w30a, Minecraft 18w30b
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      Note

      The following is based on a decompiled version of Minecraft 1.9 using MCP 9.24 beta.

      This has very likely only an effect on the title screen.

      The bug

      When you switch to title screen the garbage collection cannot collect everything from the world you had open before because Minecraft.pointedEntity still references it.

      To reproduce, simply quit to the title screen while looking at an entity. The field will not be set, and a WorldClient instance will be leaked.

      This happens because the field is not set to null on the world changing, and EntityRenderer.getMouseOver only sets it to null when there is a render view entity (and a world to render).

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              marcono1234 [Mod] Marcono1234
            • Votes:
              6 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                CHK: