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

Invalid advancement frame type crashes server

XMLWordPrintable

    • Confirmed

      The bug

      Specifying an invalid advancement frame type crashes the server when loading the world.

      Description: Exception in server tick loop
      
      java.lang.IllegalArgumentException: Unknown frame type 'SOME_INVALID_VALUE'
      	at s.a(SourceFile:31)
      	at r.a(SourceFile:72)
      	at i$a.a(SourceFile:185)
      	at my$1.a(SourceFile:52)
      	at my$1.deserialize(SourceFile:48)
      	at com.google.gson.internal.bind.TreeTypeAdapter.read(TreeTypeAdapter.java:69)
      	at com.google.gson.Gson.fromJson(Gson.java:887)
      	at com.google.gson.Gson.fromJson(Gson.java:852)
      	at com.google.gson.Gson.fromJson(Gson.java:801)
      	at com.google.gson.Gson.fromJson(Gson.java:773)
      	at my.d(SourceFile:99)
      	at my.a(SourceFile:72)
      	at my.<init>(SourceFile:66)
      	at nt.b(SourceFile:162)
      	at cgc.a(SourceFile:98)
      	at cgc.j(SourceFile:130)
      	at net.minecraft.server.MinecraftServer.run(SourceFile:436)
      	at java.lang.Thread.run(Unknown Source)
      

      How to reproduce

      1. Download the attached advancement root.json and place it in the following directory of your world folder
        data\advancements\custom
        
      2. Try to open the world

            dinnerbone [Mojang] Nathan Adams
            marcono1234 Marcono1234
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: