Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-7496

Latest Spigot Fails to load Datapacks with Multiple Identical Predicate JSONs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • Occurs both on my laptop (16 GB RAM, AMD CPU, Arch Linux) and on whatever virtual nonsense BisectHosting uses, so specs are certainly irrelevant.

    • This server is running CraftBukkit version 3898-Spigot-a0f3d48-ef7a474 (MC: 1.20.2) (Implementing API version 1.20.2-R0.1-SNAPSHOT)
    • Yes

      This issue affects:

      • Spigot 1.20.2 (tested on "This server is running CraftBukkit version 3898-Spigot-a0f3d48-ef7a474 (MC: 1.20.2) (Implementing API version 1.20.2-R0.1-SNAPSHOT)")
      • CraftBukkit 1.20.2 (tested on "This server is running CraftBukkit version 3898-Bukkit-ef7a474 (MC: 1.20.2) (Implementing API version 1.20.2-R0.1-SNAPSHOT)")

      This issue does not affect:

      • Vanilla 1.20.2
      • Vanilla 1.20.1
      • Spigot 1.20.1 (tested on "This server is running CraftBukkit version 3871-Spigot-d2eba2c-3f9263b (MC: 1.20.1) (Implementing API version 1.20.1-R0.1-SNAPSHOT)")

       

      The core of the issue is stated in the title. As of 1.20.2, if Spigot or CraftBukkit attempts to load a datapack containing multiple predicate .json files with the exact same contents, it will crash on startup with the attached error (latest.log). A minimal datapack for reproducing this issue has also been attached (predicate_bug.zip).

      Exact steps for reproduction:

      1. Create a new server running the latest version of Spigot 1.20.2.
      2. Add the attached reproduction datapack (predicate_bug.zip) to the world/datapacks/ folder.
      3. Attempt to start the server. An error will be given and the server will not start.

      The thread linked in the report guidelines tells me to say how much time I spent getting the above information together, so uh, it was around a half hour, I think? I wasn't timing myself.

        1. latest.log
          3 kB
          aspargas2

            Unassigned Unassigned
            aspargas2 aspargas2
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: