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

Crash when going through end portals or creating a single biome world with end biomes // java.lang.NegativeArraySizeException: -5

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.18 Pre-release 4
    • 1.18 Pre-release 3
    • None
    • Confirmed
    • Crash

      The Bug

      When going through an end portal the game will proceed to crash due to it checking entity block collisions

      Crash report
      ---- Minecraft Crash Report ----
      // I let you down. Sorry :(
      
      Time: 11/17/21, 9:57 AM
      Description: Checking entity block collision
      
      java.lang.NegativeArraySizeException: -5
      	at r.b(SourceFile:142)
      	at q.a(SourceFile:198)
      	at q.a(SourceFile:169)
      	at awt.aI(SourceFile:1070)
      	at awt.ax(SourceFile:757)
      	at awt.a(SourceFile:726)
      	at axh.a(SourceFile:2247)
      	at axh.h(SourceFile:2192)
      	at bnr.h(SourceFile:1582)
      	at axh.w_(SourceFile:2643)
      	at bnr.w_(SourceFile:559)
      	at axh.k(SourceFile:2349)
      	at bnr.k(SourceFile:274)
      	at adj.l(SourceFile:479)
      	at aea.b(SourceFile:212)
      	at pl.a(SourceFile:238)
      	at adz.c(SourceFile:183)
      	at net.minecraft.server.MinecraftServer.b(SourceFile:890)
      	at net.minecraft.server.MinecraftServer.a(SourceFile:823)
      	at fcr.a(SourceFile:99)
      	at net.minecraft.server.MinecraftServer.w(SourceFile:684)
      	at net.minecraft.server.MinecraftServer.a(SourceFile:270)
      	at java.base/java.lang.Thread.run(Thread.java:833)
      
      
      A detailed walkthrough of the error, its code path and all known details is as follows:
      ---------------------------------------------------------------------------------------
      
      -- Head --
      Thread: Server thread
      Stacktrace:
      	at r.b(SourceFile:142)
      	at q.a(SourceFile:198)
      	at q.a(SourceFile:169)
      	at awt.aI(SourceFile:1070)
      
      -- Entity being checked for collision --
      Details:
      	Entity Type: minecraft:player (adj)
      	Entity ID: 197
      	Entity Name: Thumpbacker
      	Entity's Exact location: -86.42, 117.95, 92.59
      	Entity's Block location: World: (-87,117,92), Section: (at 9,5,12 in -6,7,5; chunk contains blocks -96,-64,80 to -81,319,95), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,-64,0 to -1,319,511)
      	Entity's Momentum: 0.00, 0.00, 0.00
      	Entity's Passengers: []
      	Entity's Vehicle: null
      Stacktrace:
      	at awt.ax(SourceFile:757)
      	at awt.a(SourceFile:726)
      	at axh.a(SourceFile:2247)
      	at axh.h(SourceFile:2192)
      	at bnr.h(SourceFile:1582)
      	at axh.w_(SourceFile:2643)
      	at bnr.w_(SourceFile:559)
      	at axh.k(SourceFile:2349)
      	at bnr.k(SourceFile:274)
      
      -- Player being ticked --
      Details:
      	Entity Type: minecraft:player (adj)
      	Entity ID: 197
      	Entity Name: Thumpbacker
      	Entity's Exact location: -86.42, 117.95, 92.59
      	Entity's Block location: World: (-87,117,92), Section: (at 9,5,12 in -6,7,5; chunk contains blocks -96,-64,80 to -81,319,95), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,-64,0 to -1,319,511)
      	Entity's Momentum: 0.00, 0.00, 0.00
      	Entity's Passengers: []
      	Entity's Vehicle: null
      Stacktrace:
      	at adj.l(SourceFile:479)
      	at aea.b(SourceFile:212)
      	at pl.a(SourceFile:238)
      	at adz.c(SourceFile:183)
      	at net.minecraft.server.MinecraftServer.b(SourceFile:890)
      	at net.minecraft.server.MinecraftServer.a(SourceFile:823)
      	at fcr.a(SourceFile:99)
      	at net.minecraft.server.MinecraftServer.w(SourceFile:684)
      	at net.minecraft.server.MinecraftServer.a(SourceFile:270)
      	at java.base/java.lang.Thread.run(Thread.java:833)
      
      -- System Details --
      Details:
      	Minecraft Version: 1.18 Pre-release 3
      	Minecraft Version ID: 1.18-pre3
      	Operating System: Windows 10 (amd64) version 10.0
      	Java Version: 17.0.1, Microsoft
      	Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Microsoft
      	Memory: 1017075976 bytes (969 MiB) / 2147483648 bytes (2048 MiB) up to 2147483648 bytes (2048 MiB)
      	CPUs: 16
      	Processor Vendor: AuthenticAMD
      	Processor Name: AMD Ryzen 7 2700X Eight-Core Processor         
      	Identifier: AuthenticAMD Family 23 Model 8 Stepping 2
      	Microarchitecture: Zen+
      	Frequency (GHz): 3.70
      	Number of physical packages: 1
      	Number of physical CPUs: 8
      	Number of logical CPUs: 16
      	Graphics card #0 name: Radeon RX 5500 XT
      	Graphics card #0 vendor: Advanced Micro Devices, Inc. (0x1002)
      	Graphics card #0 VRAM (MB): 4095.00
      	Graphics card #0 deviceId: 0x7340
      	Graphics card #0 versionInfo: DriverVersion=27.20.1034.6
      	Memory slot #0 capacity (MB): 8192.00
      	Memory slot #0 clockSpeed (GHz): 2.40
      	Memory slot #0 type: DDR4
      	Memory slot #1 capacity (MB): 8192.00
      	Memory slot #1 clockSpeed (GHz): 2.40
      	Memory slot #1 type: DDR4
      	Virtual memory max (MB): 21435.27
      	Virtual memory used (MB): 15868.38
      	Swap memory total (MB): 13312.00
      	Swap memory used (MB): 1224.60
      	JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
      	Player Count: 1 / 8; [adj['Thumpbacker'/197, l='ServerLevel[Snowy Fox]', x=-86.42, y=117.95, z=92.59]]
      	Data Packs: vanilla
      	Type: Integrated Server (map_client.txt)
      	Is Modded: Probably not. Client jar signature and brand is untouched; Server jar signature and brand is untouched
      

      Reproduce

      • Do /setblock ~ ~ ~ end_portal

      Note

      When reproducing keep in mind the re entering the world will result in the game to crash again due to this issue

      Observed Result

      The game crashed

      Expected Result

      The game wouldn't crash

            Unassigned Unassigned
            Thumpbacker [Mod] Anthony Cicinelli
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: