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

Exception when generating chunk when creating world with one layer. (Caused by not enough heap space)

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Affects Version/s: Minecraft 1.9
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Windows Vista
      Java 1.8

    • Confirmation Status:
      Unconfirmed

      Description

      Making a superflat world with one layer causes an Exception, because there is hardly any heap space:

      net.minecraft.util.ReportedException: Exception generating new chunk
      at net.minecraft.world.WorldServer.initialize(WorldServer.java:814)
      at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:119)
      	at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:152)
      	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:527)
      	at java.lang.Thread.run(Unknown Source) [?:1.8.0_66]
      Caused by: java.lang.OutOfMemoryError: Java heap space
      	at net.minecraft.world.chunk.NibbleArray.<init>(NibbleArray.java:14)	at net.minecraft.world.chunk.storage.ExtendedBlockStorage.<init>(ExtendedBlockStorage.java:42)
      	at net.minecraft.world.chunk.Chunk.<init>(Chunk.java:163)
      	at net.minecraft.world.gen.ChunkProviderFlat.provideChunk(ChunkProviderFlat.java:150)
      	at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:130)
      	at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:160)
      	at net.minecraft.world.World.getChunkFromChunkCoords(World.java:346)
      	at net.minecraft.world.World.getChunkFromBlockCoords(World.java:335)
      	at net.minecraft.world.World.getBlockState(World.java:859)
      	at net.minecraft.world.World.isAirBlock(World.java:257)
      	at net.minecraft.world.World.getGroundAboveSeaLevel(World.java:239)
      	at net.minecraft.world.WorldProvider.canCoordinateBeSpawn(WorldProvider.java:110)
      	at net.minecraft.world.WorldServer.createSpawnPosition(WorldServer.java:872)
      	at net.minecraft.world.WorldServer.initialize(WorldServer.java:792)
      	... 4 more
      [11:47:57] [Server thread/ERROR]: This crash report has been saved to: C:\Users\<censored>\AppData\Roaming\.minecraft\crash-reports\crash-2016-03-21_11.47.52-server.txt
      

      I also get another insuffecient heap space error when I try to close down Minecraft:

      [11:47:57] [Server thread/INFO]: Stopping server
      [11:47:57] [Server thread/INFO]: Saving players
      [11:47:57] [Server thread/INFO]: Saving worlds
      [11:47:57] [Server thread/INFO]: Saving chunks for level 'Village Finder'/Overworld
      Exception in thread "Server thread" java.lang.OutOfMemoryError: Java heap space
      	at java.util.Arrays.copyOf(Unknown Source)
      	at java.lang.AbstractStringBuilder.expandCapacity(Unknown Source)
      	at java.lang.AbstractStringBuilder.ensureCapacityInternal(Unknown Source)
      	at java.lang.AbstractStringBuilder.append(Unknown Source)
      	at java.lang.StringBuilder.append(Unknown Source)
      	at java.lang.StringBuilder.append(Unknown Source)
      Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
      

      Here is the crash report:

      ---- Minecraft Crash Report ----
      // Don't do that.
      
      Time: 3/21/16 11:47 AM
      Description: Exception generating new chunk
      
      java.lang.OutOfMemoryError: Java heap space
      	at net.minecraft.world.chunk.NibbleArray.<init>(NibbleArray.java:14)
      	at net.minecraft.world.chunk.storage.ExtendedBlockStorage.<init>(ExtendedBlockStorage.java:42)
      	at net.minecraft.world.chunk.Chunk.<init>(Chunk.java:163)
      	at net.minecraft.world.gen.ChunkProviderFlat.provideChunk(ChunkProviderFlat.java:150)
      	at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:130)
      	at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:160)
      	at net.minecraft.world.World.getChunkFromChunkCoords(World.java:346)
      	at net.minecraft.world.World.getChunkFromBlockCoords(World.java:335)
      	at net.minecraft.world.World.getBlockState(World.java:859)
      	at net.minecraft.world.World.isAirBlock(World.java:257)
      	at net.minecraft.world.World.getGroundAboveSeaLevel(World.java:239)
      	at net.minecraft.world.WorldProvider.canCoordinateBeSpawn(WorldProvider.java:110)
      	at net.minecraft.world.WorldServer.createSpawnPosition(WorldServer.java:872)
      	at net.minecraft.world.WorldServer.initialize(WorldServer.java:792)
      	at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:119)
      	at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:152)
      	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:527)
      	at java.lang.Thread.run(Unknown Source)
      
      
      A detailed walkthrough of the error, its code path and all known details is as follows:
      ---------------------------------------------------------------------------------------
      
      -- Head --
      Stacktrace:
      	at net.minecraft.world.chunk.NibbleArray.<init>(NibbleArray.java:14)
      	at net.minecraft.world.chunk.storage.ExtendedBlockStorage.<init>(ExtendedBlockStorage.java:42)
      	at net.minecraft.world.chunk.Chunk.<init>(Chunk.java:163)
      	at net.minecraft.world.gen.ChunkProviderFlat.provideChunk(ChunkProviderFlat.java:150)
      
      -- Chunk to be generated --
      Details:
      	Location: -3,51
      	Position hash: 223338299389
      	Generator: FlatLevelSource
      Stacktrace:
      	at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:130)
      	at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:160)
      	at net.minecraft.world.World.getChunkFromChunkCoords(World.java:346)
      	at net.minecraft.world.World.getChunkFromBlockCoords(World.java:335)
      	at net.minecraft.world.World.getBlockState(World.java:859)
      	at net.minecraft.world.World.isAirBlock(World.java:257)
      	at net.minecraft.world.World.getGroundAboveSeaLevel(World.java:239)
      	at net.minecraft.world.WorldProvider.canCoordinateBeSpawn(WorldProvider.java:110)
      	at net.minecraft.world.WorldServer.createSpawnPosition(WorldServer.java:872)
      
      -- Affected level --
      Details:
      	Level name: Village Finder
      	All players: 0 total; []
      	Chunk stats: ServerChunkCache: 520 Drop: 0
      	Level seed: 6508721325
      	Level generator: ID 01 - flat, ver 0. Features enabled: true
      	Level generator options: 3;minecraft:bedrock;1;village
      	Level spawn location: 0.00,0.00,0.00 - World: (0,0,0), Chunk: (at 0,0,0 in 0,0; contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
      	Level time: 0 game time, 0 day time
      	Level dimension: 0
      	Level storage version: 0x04ABD - Anvil
      	Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
      	Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: true
      Stacktrace:
      	at net.minecraft.world.WorldServer.initialize(WorldServer.java:792)
      	at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:119)
      	at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:152)
      	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:527)
      	at java.lang.Thread.run(Unknown Source)
      
      -- Client Details --
      Session ID: token:fa6652af00ba4a46a6ba6daba78f800b:a5b571be309843b7b035f05298422d38
      LWJGL Version: 2.9.4
      Reloading ResourceManager: Default
      Local Player ID: [local:E:dc1f21d2]
      Entity ID: 135
      Location: X: -1463.722650610396, Y: 83.58051006549411, 
      Z: 1920.213808177263
      -- System Details --
      Details:
      	Minecraft Version: 1.9
      	Operating System: Windows Vista (x86) version 6.1
      	Java Version: 1.8.0_66, Oracle Corporation
      	Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
      	Memory: 28248 bytes (0 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB)
      	JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M
      	IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95
      	Profiler Position: N/A (disabled)
      	Player Count: 0 / 8; []
      	Type: Integrated Server (map_client.txt)
      	Is Modded: Probably not. Jar signature remains and client brand is untouched.
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                The Papa The Papa
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: