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

JSON parsing exceptions thrown during parsing of pack.mcmeta of data and resource packs are not caught properly

XMLWordPrintable

    • Confirmed

      The bug

      JSON parsing exceptions, being thrown while the pack.mcmeta file of data or resource packs is read, are not properly caught.
      This can cause crashes or incorrect error messages when using /reload.

      Description: Initializing game
      
      com.google.gson.JsonSyntaxException: java.io.EOFException: End of input at line 1 column 2 path $.
      	at com.google.gson.internal.Streams.parse(Streams.java:58)
      	at com.google.gson.JsonParser.parse(JsonParser.java:84)
      	at com.google.gson.JsonParser.parse(JsonParser.java:59)
      	at rl.a(SourceFile:73)
      	at rl.a(SourceFile:66)
      	at sd.a(SourceFile:35)
      	at ry.a(SourceFile:38)
      	at sa.a(SourceFile:33)
      	at bnh.a(SourceFile:1170)
      	at bne.an(SourceFile:437)
      	at bne.a(SourceFile:365)
      	at net.minecraft.client.main.Main.main(SourceFile:140)
      

      How to reproduce

      1. Download the attached resource pack MC-123460 resource pack.zip
      2. Place the resource pack in the resourcepacks folder of your profile
      3. Start Minecraft
        It crashes

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

              Created:
              Updated:
              Resolved:
              CHK: