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

Oracle GraalVM EE 22.2.0 Crashes Minecraft

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • None
    • 1.19.1
    • Windows 10 Home
      GraalVM EE 22.2.0 Java 17
    • Plausible
    • Crash
    • Important

      Oracle GraalVM Enterprise Edition 22.2.0 for Java 17 crashes the Minecraft 1.19.2 dedicated server when generating a world.  

      Minecraft does not crash in GraalVM 22.2.0 with this Java flag: Dgraal.UsePriorityInlining=false

      It also crashes the client. But it does not crash the server when the `nogui` launch option is used.

      This appears to be a regression in Oracle GraalVM, as the previous release (22.1.0) does not crash Minecraft, and other Java distributions do not crash it either.

       

      Repro steps:

      • Download the Minecraft dedicated server jar
      • Run it with [path to graalvm] -Xmx1024M -Xms1024M -jar server.jar
      • Accept the eula in the generated file.
      • Add this file if you want a consistent world seed: server.properties.zip
      • Run it again. Minecraft will crash if running GraalVM 22.2.0
      • Now run [path to graalvm] -Xmx1024M -Xms1024M -jar server.jar nogui
      • Minecraft will not crash.
      • Now run [path to java] -Xmx1024M -Xms1024M -Dgraal.UsePriorityInlining=false -jar server.jar
      • Minecraft will not crash{}

      I've attached logs with a crash and with no crash.

      This is possibly an issue on Oracle's end, and I've opened this same issue on their repo: Regression: UsePriorityInlining crashes Minecraft - Issue #4776 - oracle/graal (github.com)

       

       

        1. crash.log
          13 kB
        2. nocrash.log
          2 kB

            Unassigned Unassigned
            brucethemoose brucethemoose
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: