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

Softlock when attempting to validate datapack

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Awaiting Response
    • None
    • 1.16.2 Release Candidate 2
    • Unconfirmed
    • (Unassigned)

      I was trying to get custom biomes to work in a datapack I'm working on. I noticed that there was an error in the console, saying that there should be a name at the start of a list under the creature compound in the spawners compound in a custom biome's JSON file. I changed it such that the list went "minecraft:cow":[<the rest of the list], closed and reopened Minecraft, installed the datapack while creating a new world, pressed done to get it to validate the packs, and...freeze.

      Here's what seems to be the important bit of the log:

      [21:54:24] [Render thread/ERROR]: Carver: Not a JSON object: "cave1.0.json"
      [21:54:24] [Render thread/ERROR]: Carver: Not a JSON object: "underwater_cave1.0.json"
      [21:54:24] [Render thread/ERROR]: Spawn data: Not a json array: {"minecraft:cow":[{"type":"minecraft:cow","weight":0,"minCount":0,"maxCount":0}]}
      [21:54:24] [Render thread/ERROR]: Error loading registry data: Not a json array: {"minecraft:cow":[{"type":"minecraft:cow","weight":0,"minCount":0,"maxCount":0}]} missed input: {"creature":{"minecraft:cow":[{"type":"minecraft:cow","weight":0,"minCount":0,"maxCount":0}]}}; No key snowy in MapLike[{}]; Failed to parse superpack:worldgen/biome/cool_freshwater_ocean.json file: com.google.gson.stream.MalformedJsonException: Expected name at line 34 column 4 path $.spawners.creature.
      [21:54:24] [Render thread/ERROR]: Error loading registry data: No key snowy in MapLike[{}]
      [21:54:24] [Render thread/FATAL]: Error executing task on Client
      java.lang.NullPointerException: null
      	at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:770) ~[guava-21.0.jar:?]
      	at com.google.common.collect.ImmutableCollection$ArrayBasedBuilder.add(ImmutableCollection.java:477) ~[guava-21.0.jar:?]
      	at com.google.common.collect.ImmutableList$Builder.add(ImmutableList.java:758) ~[guava-21.0.jar:?]
      	at java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169) ~[?:1.8.0_265]
      	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) ~[?:1.8.0_265]
      	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) ~[?:1.8.0_265]
      	at java.util.Collections$2.tryAdvance(Collections.java:4719) ~[?:1.8.0_265]
      	at java.util.Collections$2.forEachRemaining(Collections.java:4727) ~[?:1.8.0_265]
      	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482) ~[?:1.8.0_265]
      	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472) ~[?:1.8.0_265]
      	at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) ~[?:1.8.0_265]
      	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_265]
      	at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:566) ~[?:1.8.0_265]
      	at bsv.<init>(SourceFile:38) ~[1.16.2-rc2.jar:?]
      	at bte.<init>(SourceFile:101) ~[1.16.2-rc2.jar:?]
      	at bte.<init>(SourceFile:97) ~[1.16.2-rc2.jar:?]
      	at com.mojang.datafixers.util.Function6.lambda$null$4(Function6.java:18) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.datafixers.util.Function3.lambda$null$0(Function3.java:10) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.datafixers.kinds.Applicative.lambda$null$8(Applicative.java:75) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.DataResult.lambda$null$17(DataResult.java:159) ~[datafixerupper-4.0.26.jar:?]
      	at java.util.Optional.map(Optional.java:215) ~[?:1.8.0_265]
      	at com.mojang.serialization.DataResult.lambda$null$18(DataResult.java:159) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.datafixers.util.Either$Right.mapBoth(Either.java:94) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.DataResult.lambda$ap$19(DataResult.java:157) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.datafixers.util.Either$Left.map(Either.java:38) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.DataResult.ap(DataResult.java:156) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.DataResult$Instance.ap(DataResult.java:301) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.datafixers.kinds.Applicative.ap2(Applicative.java:76) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.DataResult$Instance.ap2(DataResult.java:321) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.datafixers.kinds.Applicative.ap3(Applicative.java:80) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.DataResult$Instance.ap3(DataResult.java:344) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.codecs.RecordCodecBuilder$Instance$5.decode(RecordCodecBuilder.java:321) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.codecs.RecordCodecBuilder$2.decode(RecordCodecBuilder.java:107) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.codecs.EitherMapCodec.decode(EitherMapCodec.java:30) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.MapDecoder$4.decode(MapDecoder.java:94) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.MapCodec$1.decode(MapCodec.java:34) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.codecs.KeyDispatchCodec.lambda$null$1(KeyDispatchCodec.java:67) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.DataResult.lambda$flatMap$10(DataResult.java:138) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.datafixers.util.Either$Left.map(Either.java:38) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.DataResult.flatMap(DataResult.java:136) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.codecs.KeyDispatchCodec.lambda$decode$2(KeyDispatchCodec.java:58) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.DataResult.lambda$flatMap$10(DataResult.java:138) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.datafixers.util.Either$Left.map(Either.java:38) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.DataResult.flatMap(DataResult.java:136) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.codecs.KeyDispatchCodec.decode(KeyDispatchCodec.java:56) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.MapDecoder.lambda$compressedDecode$0(MapDecoder.java:52) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.DataResult.lambda$flatMap$10(DataResult.java:138) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.datafixers.util.Either$Left.map(Either.java:38) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.DataResult.flatMap(DataResult.java:136) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.MapDecoder.compressedDecode(MapDecoder.java:52) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.MapCodec$MapCodecCodec.decode(MapCodec.java:91) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.Decoder.parse(Decoder.java:18) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.codecs.FieldDecoder.decode(FieldDecoder.java:29) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.MapCodec$1.decode(MapCodec.java:34) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.codecs.RecordCodecBuilder$Instance$5.decode(RecordCodecBuilder.java:323) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.codecs.RecordCodecBuilder$2.decode(RecordCodecBuilder.java:107) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.codecs.KeyDispatchCodec.lambda$null$1(KeyDispatchCodec.java:67) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.DataResult.lambda$flatMap$10(DataResult.java:138) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.datafixers.util.Either$Left.map(Either.java:38) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.DataResult.flatMap(DataResult.java:136) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.codecs.KeyDispatchCodec.lambda$decode$2(KeyDispatchCodec.java:58) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.DataResult.lambda$flatMap$10(DataResult.java:138) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.datafixers.util.Either$Left.map(Either.java:38) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.DataResult.flatMap(DataResult.java:136) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.codecs.KeyDispatchCodec.decode(KeyDispatchCodec.java:56) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.MapDecoder.lambda$compressedDecode$0(MapDecoder.java:52) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.DataResult.lambda$flatMap$10(DataResult.java:138) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.datafixers.util.Either$Left.map(Either.java:38) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.DataResult.flatMap(DataResult.java:136) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.MapDecoder.compressedDecode(MapDecoder.java:52) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.MapCodec$MapCodecCodec.decode(MapCodec.java:91) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.Decoder.parse(Decoder.java:18) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.codecs.FieldDecoder.decode(FieldDecoder.java:29) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.MapCodec$1.decode(MapCodec.java:34) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.codecs.RecordCodecBuilder$Instance$3.decode(RecordCodecBuilder.java:249) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.codecs.RecordCodecBuilder$2.decode(RecordCodecBuilder.java:107) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.MapDecoder.lambda$compressedDecode$0(MapDecoder.java:52) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.DataResult.lambda$flatMap$10(DataResult.java:138) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.datafixers.util.Either$Left.map(Either.java:38) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.DataResult.flatMap(DataResult.java:136) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.MapDecoder.compressedDecode(MapDecoder.java:52) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.MapCodec$MapCodecCodec.decode(MapCodec.java:91) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.Decoder.parse(Decoder.java:18) ~[datafixerupper-4.0.26.jar:?]
      	at vh$b$1.a(SourceFile:204) ~[1.16.2-rc2.jar:?]
      	at vh.a(SourceFile:144) ~[1.16.2-rc2.jar:?]
      	at vh.a(SourceFile:115) ~[1.16.2-rc2.jar:?]
      	at com.mojang.serialization.DataResult.lambda$flatMap$10(DataResult.java:138) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.datafixers.util.Either$Left.map(Either.java:38) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.DataResult.flatMap(DataResult.java:136) ~[datafixerupper-4.0.26.jar:?]
      	at vh.a(SourceFile:115) ~[1.16.2-rc2.jar:?]
      	at ve.a(SourceFile:35) ~[1.16.2-rc2.jar:?]
      	at com.mojang.serialization.DataResult.lambda$flatMap$10(DataResult.java:138) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.datafixers.util.Either$Left.map(Either.java:38) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.DataResult.flatMap(DataResult.java:136) ~[datafixerupper-4.0.26.jar:?]
      	at ve.decode(SourceFile:35) ~[1.16.2-rc2.jar:?]
      	at com.mojang.serialization.Decoder$2.decode(Decoder.java:63) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.Codec$2.decode(Codec.java:71) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.Decoder.parse(Decoder.java:18) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.codecs.FieldDecoder.decode(FieldDecoder.java:29) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.MapCodec$1.decode(MapCodec.java:34) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.codecs.RecordCodecBuilder$Instance$5.decode(RecordCodecBuilder.java:324) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.codecs.RecordCodecBuilder$2.decode(RecordCodecBuilder.java:107) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.MapDecoder.lambda$compressedDecode$0(MapDecoder.java:52) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.DataResult.lambda$flatMap$10(DataResult.java:138) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.datafixers.util.Either$Left.map(Either.java:38) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.DataResult.flatMap(DataResult.java:136) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.MapDecoder.compressedDecode(MapDecoder.java:52) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.MapCodec$MapCodecCodec.decode(MapCodec.java:91) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.Decoder$1.decode(Decoder.java:49) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.Codec$2.decode(Codec.java:71) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.Decoder.parse(Decoder.java:18) ~[datafixerupper-4.0.26.jar:?]
      	at dsc.a(SourceFile:343) ~[1.16.2-rc2.jar:?]
      	at com.mojang.serialization.DataResult.lambda$flatMap$10(DataResult.java:138) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.datafixers.util.Either$Left.map(Either.java:38) ~[datafixerupper-4.0.26.jar:?]
      	at com.mojang.serialization.DataResult.flatMap(DataResult.java:136) ~[datafixerupper-4.0.26.jar:?]
      	at dsc.a(SourceFile:343) ~[1.16.2-rc2.jar:?]
      	at drx.a(SourceFile:492) ~[1.16.2-rc2.jar:?]
      	at any.c(SourceFile:144) [1.16.2-rc2.jar:?]
      	at aoc.c(SourceFile:23) [1.16.2-rc2.jar:?]
      	at any.y(SourceFile:118) [1.16.2-rc2.jar:?]
      	at any.bk(SourceFile:103) [1.16.2-rc2.jar:?]
      	at djw.e(SourceFile:990) [1.16.2-rc2.jar:?]
      	at djw.e(SourceFile:656) [1.16.2-rc2.jar:?]
      	at net.minecraft.client.main.Main.main(SourceFile:215) [1.16.2-rc2.jar:?]
      [21:55:28] [Render thread/INFO]: Stopping!
      

            Unassigned Unassigned
            BlueManedHawk BlueManedHawk (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: