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

Game freeze after closing an "Open to LAN" single player world

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 1.8, Minecraft 1.8.1-pre1, Minecraft 1.8.1-pre2, Minecraft 1.8.1-pre4, Minecraft 1.8.1, Minecraft 1.8.2-pre6, Minecraft 1.8.3, Minecraft 1.8.4, Minecraft 1.8.5, Minecraft 1.8.7, Minecraft 1.8.8, Minecraft 15w31a, Minecraft 15w40b, Minecraft 15w41b, Minecraft 15w45a, Minecraft 15w46a, Minecraft 15w47a, Minecraft 1.8.9, Minecraft 15w50a, Minecraft 16w02a, Minecraft 16w03a, Minecraft 16w04a, Minecraft 16w05a, Minecraft 16w05b, Minecraft 1.9 Pre-Release 1, Minecraft 1.9 Pre-Release 2, Minecraft 1.9 Pre-Release 3, Minecraft 1.9 Pre-Release 4, Minecraft 1.9, Minecraft 1.9.1, Minecraft 1.9.2, Minecraft 16w14a, Minecraft 16w15a, Minecraft 1.9.4, Minecraft 16w20a, Minecraft 1.10, Minecraft 1.10.2, Minecraft 16w32b, Minecraft 16w39a, Minecraft 16w43a, Minecraft 16w44a, Minecraft 1.11 Pre-Release 1, Minecraft 1.11, Minecraft 16w50a, Minecraft 1.11.1, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 17w13a, Minecraft 17w13b, Minecraft 17w14a, Minecraft 17w15a, Minecraft 17w16a, Minecraft 17w16b, Minecraft 17w17b, Minecraft 17w18a, Minecraft 17w18b, Minecraft 1.12 Pre-Release 1, Minecraft 1.12 Pre-Release 2, Minecraft 1.12 Pre-Release 3, Minecraft 1.12 Pre-Release 4, Minecraft 1.12 Pre-Release 5, Minecraft 1.12 Pre-Release 6, Minecraft 1.12 Pre-Release 7, Minecraft 1.12, Minecraft 17w31a, Minecraft 1.12.1 Pre-Release 1, Minecraft 1.12.1, Minecraft 1.12.2 Pre-Release 1, Minecraft 1.12.2 Pre-Release 2, Minecraft 1.12.2, Minecraft 17w43a, Minecraft 17w43b, Minecraft 17w45a, Minecraft 17w45b, Minecraft 17w46a, Minecraft 17w47a, Minecraft 17w47b, Minecraft 17w48a, Minecraft 17w50a, Minecraft 18w20a, Minecraft 1.13-pre1, Minecraft 1.13-pre3
    • Environment:

      Windows Vista. Java version 7 update 67.
      OS X 10.10.3 Java 8u45

    • Confirmation Status:
      Confirmed

      Description

      The bug

      When the host of a singleplayer world which was opened to LAN tries to close the world their game (client) may freeze.
      The log shows that the server was successfully stopped though.

      [17:42:54] [Server thread/INFO]: BartZeroSix left the game
      [17:42:54] [Server thread/INFO]: Stopping singleplayer server as player logged out
      [17:42:54] [Server thread/INFO]: Stopping server
      [17:42:54] [Server thread/INFO]: Saving players
      [17:42:54] [Server thread/INFO]: Saving worlds
      [17:42:54] [Server thread/INFO]: Saving chunks for level 'Freebuild 1.8'/Overworld
      [17:42:54] [Server thread/INFO]: Saving chunks for level 'Freebuild 1.8'/Nether
      [17:42:54] [Server thread/INFO]: Saving chunks for level 'Freebuild 1.8'/The End
      

      How to reproduce

      1. Open a world
      2. Open it to LAN
      3. Try to close the world

      Note: Since this bug seems to be caused by a race condition it could be possible that you cannot reproduce this bug with some computers.

      Code analysis and debugging results

      JStack, WhatIsHang, and debug logs related to this issue

      This bug seems to have the same cause like MC-92255, which is caused by the method IntegratedServer.initiateShutdown being called twice.

        Attachments

        1. latest.log
          5 kB
        2. latest.log
          5 kB
        3. latest.log
          4 kB
        4. mc_freeze_03_10_2015.txt
          23 kB
        5. MC-72943_jstack_16w39a.txt
          28 kB
        6. MC-72943_jstack_16w43a.txt
          27 kB
        7. MC-72943_jstack_17w15a.txt
          27 kB

          Issue Links

            Activity

              People

              • Assignee:
                cojomax99 [Mojang] Cory Scheviak
                Reporter:
                BartZeroSix Bart Mons
              • Votes:
                87 Vote for this issue
                Watchers:
                54 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK: