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

A certain Woodland Mansion always crash with StackOverflowError and get "cut" when the game has only 512 MB RAM available

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 1.12, Minecraft 1.12.1
    • None
    • Maximum Java Heap size: 512 MB
       Processor: Intel(R) Celeron(R) CPU J1900 @ 1.99GHz
       Installed RAM: 2 GB
       32 bit Windows 10 running on x86-64 processor
       Java version: {{1.8.0_131}}
    • Unconfirmed

      The bug

      A certain Woodland Mansion always crash with StackOverflowError and get "cut" when running on a JVM with only 512 MB of RAM or less available.

      How to reproduce

      1. Launch Minecraft with the JVM argument: -Xmx512M, this limits the amount of memory available to the Java Virtual Machine (and thus the game) to a maximum of 512MB
      2. Create a new world in Minecraft 1.12. Enter the seed -8913466909937400889 into the world generator seed blank. (Due to the 1.13 world generator overhaul, this seed is just for version 1.12 and below and is not going to generate the same terrain on 1.13 or later versions)
      3. Use /locate Mansion command (make sure cheat is on) to find the nearest woodland Mansion at the spawn point.
      4. Use /tp command to teleport the player to the coordinate given by the output of the command with y coordinate being 128.
      5. After landing on the woodland mansion go around, explore, and you will eventually see the crash.
        Symptoms:
        After the crash, relaunch Minecraft and you will find the woodland Mansion being "cut" like my screenshots. (Some fatal chunks are replaced by normal roofed forest)

      I tried this twice and get another crash report with the same error/exception and layout

      Note: The mansion generates correctly with 1 GB (or more) maximum heap size (JVM arg: -Xmx1G)

      Crash report

      1.12: crash-2017-06-19_19.17.29-server.txt
      Description: Exception while updating neighbours
      
      java.lang.StackOverflowError: Exception while updating neighbours
      	at java.lang.ClassLoader.defineClass1(Native Method)
      	at java.lang.ClassLoader.defineClass(Unknown Source)
      	at java.security.SecureClassLoader.defineClass(Unknown Source)
      	at java.net.URLClassLoader.defineClass(Unknown Source)
      	at java.net.URLClassLoader.access$100(Unknown Source)
      	at java.net.URLClassLoader$1.run(Unknown Source)
      	at java.net.URLClassLoader$1.run(Unknown Source)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.net.URLClassLoader.findClass(Unknown Source)
      	at java.lang.ClassLoader.loadClass(Unknown Source)
      	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
      	at java.lang.ClassLoader.loadClass(Unknown Source)
      	at ams.a(SourceFile:475)
      	at ams.b(SourceFile:435)
      	...
      

            Unassigned Unassigned
            kevin_dvhs Kevin He
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: