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

Worldgen worker thread crash - Out of Memory error

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • Minecraft 18w14b, Minecraft 18w15a, Minecraft 18w20c, Minecraft 18w21a
    • Minecraft 18w22c
    • None
    • Windows 7 32 bit, -Xmx1024M
    • Unconfirmed

    Description

      When generating terrain, the Worldgen worker threads crash with Out of memory errors. This is especially likely to happen while generating Jungle biomes.

      The crashing of the worker threads is severe. When it happens, the game stops responding to attempts to save the game. Pressing Save and Exit causes the game to hang without doing anything and the game must be terminated externally (eg with Task Manager).

      Some examples of crashes from the log:

      Caught exception in thread Thread[WorldGen-Worker-93,5,main]
      java.lang.OutOfMemoryError: unable to create new native thread
      	at java.lang.Thread.start0(Native Method)
      	at java.lang.Thread.start(Thread.java:714)
      	at java.util.concurrent.ForkJoinPool.tryAddWorker(ForkJoinPool.java:1338)
      	at java.util.concurrent.ForkJoinPool.deregisterWorker(ForkJoinPool.java:1460)
      	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:167)
      	
      Caught exception in thread Thread[WorldGen-Worker-46,5,main]
      java.lang.OutOfMemoryError: unable to create new native thread
      	at java.lang.Thread.start0(Native Method)
      	at java.lang.Thread.start(Thread.java:714)
      	at java.util.concurrent.ForkJoinPool.tryAddWorker(ForkJoinPool.java:1338)
      	at java.util.concurrent.ForkJoinPool.deregisterWorker(ForkJoinPool.java:1460)
      	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:167)
      
      Caught exception in thread Thread[WorldGen-Worker-29,5,main]
      java.lang.OutOfMemoryError: unable to create new native thread
      	at java.lang.Thread.start0(Native Method)
      	at java.lang.Thread.start(Thread.java:714)
      	at java.util.concurrent.ForkJoinPool.tryAddWorker(ForkJoinPool.java:1338)
      	at java.util.concurrent.ForkJoinPool.deregisterWorker(ForkJoinPool.java:1460)
      	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:167)
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bdm68 bdm68
              Votes:
              4 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: