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

Loading data pack crashes client: java.lang.IllegalStateException: Trying to access unbound value

XMLWordPrintable

    • Confirmed
    • Crash, Custom Worlds
    • Important

      Steps to Reproduce

      1. Open create new world menu.
      2. Go to data packs menu.
      3. Add the attached data pack.
      4. Activate the data pack.
      5. Click "Done".

      Expected Results

      Data pack loads successfully or it shows "failed to load" screen.

      Actual Results

      The client crashes.

      ---- Minecraft Crash Report ----
      // There are four lights!
      
      Time: 2/14/22, 6:28 PM
      Description: mouseClicked event handler
      
      java.lang.IllegalStateException: Trying to access unbound value 'ResourceKey[minecraft:dimension / fabric_dimension:void]' from registry Registry[ResourceKey[minecraft:root / minecraft:dimension] (Stable)]
      	at gq$c.a(SourceFile:152)
      	at com.google.common.collect.Maps$9.transformEntry(Maps.java:2053)
      	at com.google.common.collect.Maps$12.getValue(Maps.java:2101)
      	at crq.a(SourceFile:69)
      	at com.mojang.datafixers.util.Pair.mapFirst(Pair.java:64)
      	at com.mojang.serialization.Decoder$2.lambda$decode$0(Decoder.java:63)
      	at java.base/java.util.Optional.map(Optional.java:260)
      	at com.mojang.serialization.DataResult.lambda$map$5(DataResult.java:112)
      	at com.mojang.datafixers.util.Either$Right.mapBoth(Either.java:94)
      	at com.mojang.serialization.DataResult.map(DataResult.java:110)
      	at com.mojang.serialization.Decoder$2.decode(Decoder.java:63)
      	at com.mojang.serialization.Codec$2.decode(Codec.java:71)
      	at com.mojang.serialization.Decoder.parse(Decoder.java:18)
      	at com.mojang.serialization.codecs.FieldDecoder.decode(FieldDecoder.java:29)
      	at com.mojang.serialization.MapCodec$1.decode(MapCodec.java:34)
      	at com.mojang.serialization.codecs.RecordCodecBuilder$Instance$5.decode(RecordCodecBuilder.java:324)
      	at com.mojang.serialization.codecs.RecordCodecBuilder$2.decode(RecordCodecBuilder.java:107)
      	at com.mojang.serialization.MapDecoder.lambda$compressedDecode$0(MapDecoder.java:52)
      	at com.mojang.serialization.DataResult.lambda$flatMap$10(DataResult.java:138)
      	at com.mojang.datafixers.util.Either$Left.map(Either.java:38)
      	at com.mojang.serialization.DataResult.flatMap(DataResult.java:136)
      	at com.mojang.serialization.MapDecoder.compressedDecode(MapDecoder.java:52)
      	at com.mojang.serialization.MapCodec$MapCodecCodec.decode(MapCodec.java:91)
      	at com.mojang.serialization.Decoder$1.decode(Decoder.java:49)
      	at com.mojang.serialization.Codec$2.decode(Codec.java:71)
      	at com.mojang.serialization.Decoder.parse(Decoder.java:18)
      	at egw.a(SourceFile:483)
      	at com.mojang.serialization.DataResult.lambda$flatMap$10(DataResult.java:138)
      	at com.mojang.datafixers.util.Either$Left.map(Either.java:38)
      	at com.mojang.serialization.DataResult.flatMap(DataResult.java:136)
      	at egw.a(SourceFile:483)
      	at zf.a(SourceFile:39)
      	at egw.a(SourceFile:474)
      	at efz.c(SourceFile:49)
      	at ega.ah_(SourceFile:80)
      	at ega.b(SourceFile:97)
      	at dzp.c(SourceFile:40)
      	at dzj.a(SourceFile:16)
      	at dzn.a(SourceFile:121)
      	at eam.a(SourceFile:27)
      	at dyd.b(SourceFile:94)
      	at edg.a(SourceFile:492)
      	at dyd.a(SourceFile:94)
      	at dyd.c(SourceFile:165)
      	at aup.execute(SourceFile:103)
      	at dyd.b(SourceFile:165)
      	at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:36)
      	at org.lwjgl.system.JNI.invokeV(Native Method)
      	at org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout(GLFW.java:3174)
      	at com.mojang.blaze3d.systems.RenderSystem.limitDisplayFPS(SourceFile:222)
      	at dyc.f(SourceFile:1141)
      	at dyc.e(SourceFile:728)
      	at net.minecraft.client.main.Main.main(SourceFile:236)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      	at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:210)
      	at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:245)
      	at org.multimc.EntryPoint.listen(EntryPoint.java:143)
      	at org.multimc.EntryPoint.main(EntryPoint.java:34)
      

        1. crash-2022-02-14_18.28.37-client.txt
          10 kB
          apple502j
        2. deobf_crash-2022-02-14_18.28.37-client.txt
          18 kB
          [Bot] Arisa

            boq [Mojang] Bartosz Bok
            apple502j apple502j
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: