Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- org.jetbrains.kotlin.backend.common.BackendException: Backend Internal error: Exception during IR lowering
- File being compiled: C:/Users/Pierre/IdeaProjects/compose/minecraft-jsons/src/main/kotlin/templates/Recipe.kt
- The root cause java.lang.RuntimeException was thrown at: org.jetbrains.kotlin.backend.jvm.codegen.FunctionCodegen.generate(FunctionCodegen.kt:50)
- at org.jetbrains.kotlin.backend.common.CodegenUtil.reportBackendException(CodegenUtil.kt:239)
- at org.jetbrains.kotlin.backend.common.CodegenUtil.reportBackendException$default(CodegenUtil.kt:235)
- at org.jetbrains.kotlin.backend.common.phaser.PerformByIrFilePhase.invokeSequential(performByIrFile.kt:68)
- at org.jetbrains.kotlin.backend.common.phaser.PerformByIrFilePhase.invoke(performByIrFile.kt:55)
- at org.jetbrains.kotlin.backend.common.phaser.PerformByIrFilePhase.invoke(performByIrFile.kt:41)
- at org.jetbrains.kotlin.backend.common.phaser.NamedCompilerPhase.invoke(CompilerPhase.kt:96)
- at org.jetbrains.kotlin.backend.common.phaser.CompositePhase.invoke(PhaseBuilders.kt:29)
- at org.jetbrains.kotlin.backend.common.phaser.NamedCompilerPhase.invoke(CompilerPhase.kt:96)
- at org.jetbrains.kotlin.backend.common.phaser.CompositePhase.invoke(PhaseBuilders.kt:29)
- at org.jetbrains.kotlin.backend.common.phaser.NamedCompilerPhase.invoke(CompilerPhase.kt:96)
- at org.jetbrains.kotlin.backend.common.phaser.CompilerPhaseKt.invokeToplevel(CompilerPhase.kt:43)
- at org.jetbrains.kotlin.backend.jvm.JvmIrCodegenFactory.doGenerateFilesInternal(JvmIrCodegenFactory.kt:195)
- at org.jetbrains.kotlin.backend.jvm.JvmIrCodegenFactory.generateModule(JvmIrCodegenFactory.kt:60)
- at org.jetbrains.kotlin.codegen.KotlinCodegenFacade.compileCorrectFiles(KotlinCodegenFacade.java:35)
- at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.generate(KotlinToJVMBytecodeCompiler.kt:331)
- at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileModules$cli(KotlinToJVMBytecodeCompiler.kt:123)
- at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileModules$cli$default(KotlinToJVMBytecodeCompiler.kt:58)
- at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:170)
- at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:52)
- at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:92)
- at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:44)
- at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:98)
- at org.jetbrains.kotlin.incremental.IncrementalJvmCompilerRunner.runCompiler(IncrementalJvmCompilerRunner.kt:434)
- at org.jetbrains.kotlin.incremental.IncrementalJvmCompilerRunner.runCompiler(IncrementalJvmCompilerRunner.kt:120)
- at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compileIncrementally(IncrementalCompilerRunner.kt:357)
- at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compileIncrementally$default(IncrementalCompilerRunner.kt:299)
- at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compileImpl$rebuild(IncrementalCompilerRunner.kt:118)
- at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compileImpl(IncrementalCompilerRunner.kt:169)
- at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compile(IncrementalCompilerRunner.kt:80)
- at org.jetbrains.kotlin.daemon.CompileServiceImplBase.execIncrementalCompiler(CompileServiceImpl.kt:622)
- at org.jetbrains.kotlin.daemon.CompileServiceImplBase.access$execIncrementalCompiler(CompileServiceImpl.kt:100)
- at org.jetbrains.kotlin.daemon.CompileServiceImpl.compile(CompileServiceImpl.kt:1713)
- 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 java.rmi/sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:360)
- at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:200)
- at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:197)
- at java.base/java.security.AccessController.doPrivileged(AccessController.java:712)
- at java.rmi/sun.rmi.transport.Transport.serviceCall(Transport.java:196)
- at java.rmi/sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:587)
- at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:828)
- at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:705)
- at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
- at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:704)
- at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
- at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
- at java.base/java.lang.Thread.run(Thread.java:833)
- Caused by: java.lang.RuntimeException: Exception while generating code for:
- FUN name:write$Self visibility:public modality:FINAL <> (self:templates.CraftingShapedRecipeTemplate, output:kotlinx.serialization.encoding.CompositeEncoder, serialDesc:kotlinx.serialization.descriptors.SerialDescriptor) returnType:kotlin.Unit
- annotations:
- JvmStatic
- VALUE_PARAMETER name:self index:0 type:templates.CraftingShapedRecipeTemplate
- VALUE_PARAMETER name:output index:1 type:kotlinx.serialization.encoding.CompositeEncoder
- VALUE_PARAMETER name:serialDesc index:2 type:kotlinx.serialization.descriptors.SerialDescriptor
- BLOCK_BODY
- CALL 'public final fun write$Self (self: templates.CraftRecipe, output: kotlinx.serialization.encoding.CompositeEncoder, serialDesc: kotlinx.serialization.descriptors.SerialDescriptor): kotlin.Unit declared in templates.CraftRecipe' type=kotlin.Unit origin=null
- self: GET_VAR 'self: templates.CraftingShapedRecipeTemplate declared in templates.CraftingShapedRecipeTemplate.write$Self' type=templates.CraftingShapedRecipeTemplate origin=null
- output: GET_VAR 'output: kotlinx.serialization.encoding.CompositeEncoder declared in templates.CraftingShapedRecipeTemplate.write$Self' type=kotlinx.serialization.encoding.CompositeEncoder origin=null
- serialDesc: GET_VAR 'serialDesc: kotlinx.serialization.descriptors.SerialDescriptor declared in templates.CraftingShapedRecipeTemplate.write$Self' type=kotlinx.serialization.descriptors.SerialDescriptor origin=null
- WHEN type=kotlin.Unit origin=null
- BRANCH
- if: WHEN type=kotlin.Boolean origin=null
- BRANCH
- if: CALL 'public open fun shouldEncodeElementDefault (descriptor: kotlinx.serialization.descriptors.SerialDescriptor, index: kotlin.Int): kotlin.Boolean declared in kotlinx.serialization.encoding.CompositeEncoder' type=kotlin.Boolean origin=null
- $this: GET_VAR 'output: kotlinx.serialization.encoding.CompositeEncoder declared in templates.CraftingShapedRecipeTemplate.write$Self' type=kotlinx.serialization.encoding.CompositeEncoder origin=null
- descriptor: GET_VAR 'serialDesc: kotlinx.serialization.descriptors.SerialDescriptor declared in templates.CraftingShapedRecipeTemplate.write$Self' type=kotlinx.serialization.descriptors.SerialDescriptor origin=null
- index: CONST Int type=kotlin.Int value=2
- then: CONST Boolean type=kotlin.Boolean value=true
- BRANCH
- if: CONST Boolean type=kotlin.Boolean value=true
- then: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ
- $this: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EXCLEQ
- arg0: BLOCK type=androidx.compose.runtime.snapshots.SnapshotStateList<kotlin.String> origin=null
- GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:pattern type:androidx.compose.runtime.snapshots.SnapshotStateList<kotlin.String> visibility:private [final]' type=androidx.compose.runtime.snapshots.SnapshotStateList<kotlin.String> origin=null
- receiver: GET_VAR 'self: templates.CraftingShapedRecipeTemplate declared in templates.CraftingShapedRecipeTemplate.write$Self' type=templates.CraftingShapedRecipeTemplate origin=null
- arg1: CALL 'public final fun mutableStateListOf <T> (): androidx.compose.runtime.snapshots.SnapshotStateList<T of androidx.compose.runtime.SnapshotStateKt.mutableStateListOf> declared in androidx.compose.runtime.SnapshotStateKt' type=androidx.compose.runtime.snapshots.SnapshotStateList<kotlin.String> origin=null
- <T>: kotlin.String
- then: CALL 'public abstract fun encodeSerializableElement <T> (descriptor: kotlinx.serialization.descriptors.SerialDescriptor, index: kotlin.Int, serializer: kotlinx.serialization.SerializationStrategy<T of kotlinx.serialization.encoding.CompositeEncoder.encodeSerializableElement>, value: T of kotlinx.serialization.encoding.CompositeEncoder.encodeSerializableElement): kotlin.Unit declared in kotlinx.serialization.encoding.CompositeEncoder' type=kotlin.Unit origin=null
- <T>: androidx.compose.runtime.snapshots.SnapshotStateList<kotlin.String>
- $this: GET_VAR 'output: kotlinx.serialization.encoding.CompositeEncoder declared in templates.CraftingShapedRecipeTemplate.write$Self' type=kotlinx.serialization.encoding.CompositeEncoder origin=null
- descriptor: GET_VAR 'serialDesc: kotlinx.serialization.descriptors.SerialDescriptor declared in templates.CraftingShapedRecipeTemplate.write$Self' type=kotlinx.serialization.descriptors.SerialDescriptor origin=null
- index: CONST Int type=kotlin.Int value=2
- serializer: CONSTRUCTOR_CALL 'public constructor <init> (dataSerializer: kotlinx.serialization.KSerializer<T of templates.SnapshotListSerializer>) [primary] declared in templates.SnapshotListSerializer' type=templates.SnapshotListSerializer<kotlin.String> origin=null
- <class: T>: kotlin.String
- dataSerializer: GET_FIELD 'FIELD FIELD_FOR_OBJECT_INSTANCE name:INSTANCE type:kotlinx.serialization.internal.StringSerializer visibility:public [final,static]' type=kotlinx.serialization.internal.StringSerializer origin=null
- value: BLOCK type=androidx.compose.runtime.snapshots.SnapshotStateList<kotlin.String> origin=null
- GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:pattern type:androidx.compose.runtime.snapshots.SnapshotStateList<kotlin.String> visibility:private [final]' type=androidx.compose.runtime.snapshots.SnapshotStateList<kotlin.String> origin=null
- receiver: GET_VAR 'self: templates.CraftingShapedRecipeTemplate declared in templates.CraftingShapedRecipeTemplate.write$Self' type=templates.CraftingShapedRecipeTemplate origin=null
- WHEN type=kotlin.Unit origin=null
- BRANCH
- if: WHEN type=kotlin.Boolean origin=null
- BRANCH
- if: CALL 'public open fun shouldEncodeElementDefault (descriptor: kotlinx.serialization.descriptors.SerialDescriptor, index: kotlin.Int): kotlin.Boolean declared in kotlinx.serialization.encoding.CompositeEncoder' type=kotlin.Boolean origin=null
- $this: GET_VAR 'output: kotlinx.serialization.encoding.CompositeEncoder declared in templates.CraftingShapedRecipeTemplate.write$Self' type=kotlinx.serialization.encoding.CompositeEncoder origin=null
- descriptor: GET_VAR 'serialDesc: kotlinx.serialization.descriptors.SerialDescriptor declared in templates.CraftingShapedRecipeTemplate.write$Self' type=kotlinx.serialization.descriptors.SerialDescriptor origin=null
- index: CONST Int type=kotlin.Int value=3
- then: CONST Boolean type=kotlin.Boolean value=true
- BRANCH
- if: CONST Boolean type=kotlin.Boolean value=true
- then: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ
- $this: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EXCLEQ
- arg0: BLOCK type=androidx.compose.runtime.snapshots.SnapshotStateList<kotlin.Pair<kotlin.String, templates.ItemTemplate>> origin=null
- GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:key type:androidx.compose.runtime.snapshots.SnapshotStateList<kotlin.Pair<kotlin.String, templates.ItemTemplate>> visibility:private [final]' type=androidx.compose.runtime.snapshots.SnapshotStateList<kotlin.Pair<kotlin.String, templates.ItemTemplate>> origin=null
- receiver: GET_VAR 'self: templates.CraftingShapedRecipeTemplate declared in templates.CraftingShapedRecipeTemplate.write$Self' type=templates.CraftingShapedRecipeTemplate origin=null
- arg1: CALL 'public final fun mutableStateListOf <T> (): androidx.compose.runtime.snapshots.SnapshotStateList<T of androidx.compose.runtime.SnapshotStateKt.mutableStateListOf> declared in androidx.compose.runtime.SnapshotStateKt' type=androidx.compose.runtime.snapshots.SnapshotStateList<kotlin.Pair<kotlin.String, templates.ItemTemplate>> origin=null
- <T>: kotlin.Pair<kotlin.String, templates.ItemTemplate>
- then: CALL 'public abstract fun encodeSerializableElement <T> (descriptor: kotlinx.serialization.descriptors.SerialDescriptor, index: kotlin.Int, serializer: kotlinx.serialization.SerializationStrategy<T of kotlinx.serialization.encoding.CompositeEncoder.encodeSerializableElement>, value: T of kotlinx.serialization.encoding.CompositeEncoder.encodeSerializableElement): kotlin.Unit declared in kotlinx.serialization.encoding.CompositeEncoder' type=kotlin.Unit origin=null
- <T>: androidx.compose.runtime.snapshots.SnapshotStateList<kotlin.Pair<kotlin.String, templates.ItemTemplate>>
- $this: GET_VAR 'output: kotlinx.serialization.encoding.CompositeEncoder declared in templates.CraftingShapedRecipeTemplate.write$Self' type=kotlinx.serialization.encoding.CompositeEncoder origin=null
- descriptor: GET_VAR 'serialDesc: kotlinx.serialization.descriptors.SerialDescriptor declared in templates.CraftingShapedRecipeTemplate.write$Self' type=kotlinx.serialization.descriptors.SerialDescriptor origin=null
- index: CONST Int type=kotlin.Int value=3
- serializer: CONSTRUCTOR_CALL 'public constructor <init> (keySerializer: kotlinx.serialization.KSerializer<K of templates.SnapshotListPairSerializer>, valueSerializer: kotlinx.serialization.KSerializer<V of templates.SnapshotListPairSerializer>) [primary] declared in templates.SnapshotListPairSerializer' type=templates.SnapshotListPairSerializer<kotlin.Pair<kotlin.String, templates.ItemTemplate>, V of templates.SnapshotListPairSerializer> origin=null
- <class: K>: kotlin.Pair<kotlin.String, templates.ItemTemplate>
- <class: V>: <none>
- keySerializer: CONSTRUCTOR_CALL 'public constructor <init> (keySerializer: kotlinx.serialization.KSerializer<K of kotlinx.serialization.internal.PairSerializer>, valueSerializer: kotlinx.serialization.KSerializer<V of kotlinx.serialization.internal.PairSerializer>) [primary] declared in kotlinx.serialization.internal.PairSerializer' type=kotlinx.serialization.internal.PairSerializer<kotlin.String, templates.ItemTemplate> origin=null
- <class: K>: kotlin.String
- <class: V>: templates.ItemTemplate
- keySerializer: GET_FIELD 'FIELD FIELD_FOR_OBJECT_INSTANCE name:INSTANCE type:kotlinx.serialization.internal.StringSerializer visibility:public [final,static]' type=kotlinx.serialization.internal.StringSerializer origin=null
- valueSerializer: GET_FIELD 'FIELD FIELD_FOR_OBJECT_INSTANCE name:INSTANCE type:templates.ItemTemplate.$serializer visibility:public [final,static]' type=templates.ItemTemplate.$serializer origin=null
- value: BLOCK type=androidx.compose.runtime.snapshots.SnapshotStateList<kotlin.Pair<kotlin.String, templates.ItemTemplate>> origin=null
- GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:key type:androidx.compose.runtime.snapshots.SnapshotStateList<kotlin.Pair<kotlin.String, templates.ItemTemplate>> visibility:private [final]' type=androidx.compose.runtime.snapshots.SnapshotStateList<kotlin.Pair<kotlin.String, templates.ItemTemplate>> origin=null
- receiver: GET_VAR 'self: templates.CraftingShapedRecipeTemplate declared in templates.CraftingShapedRecipeTemplate.write$Self' type=templates.CraftingShapedRecipeTemplate origin=null
- at org.jetbrains.kotlin.backend.jvm.codegen.FunctionCodegen.generate(FunctionCodegen.kt:50)
- at org.jetbrains.kotlin.backend.jvm.codegen.FunctionCodegen.generate$default(FunctionCodegen.kt:43)
- at org.jetbrains.kotlin.backend.jvm.codegen.ClassCodegen.generateMethodNode(ClassCodegen.kt:360)
- at org.jetbrains.kotlin.backend.jvm.codegen.ClassCodegen.generateMethod(ClassCodegen.kt:377)
- at org.jetbrains.kotlin.backend.jvm.codegen.ClassCodegen.generate(ClassCodegen.kt:131)
- at org.jetbrains.kotlin.backend.jvm.JvmLowerKt$codegenPhase$1$1.lower(JvmLower.kt:304)
- at org.jetbrains.kotlin.backend.common.phaser.FileLoweringPhaseAdapter.invoke(PhaseBuilders.kt:120)
- at org.jetbrains.kotlin.backend.common.phaser.FileLoweringPhaseAdapter.invoke(PhaseBuilders.kt:116)
- at org.jetbrains.kotlin.backend.common.phaser.NamedCompilerPhase.invoke(CompilerPhase.kt:96)
- at org.jetbrains.kotlin.backend.common.phaser.PerformByIrFilePhase.invokeSequential(performByIrFile.kt:65)
- ... 46 more
- Caused by: java.lang.IllegalStateException: Null argument in ExpressionCodegen for parameter VALUE_PARAMETER name:valueSerializer index:1 type:kotlinx.serialization.KSerializer<V of templates.SnapshotListPairSerializer>
- at org.jetbrains.kotlin.backend.jvm.codegen.ExpressionCodegen.generateConstructorArguments(ExpressionCodegen.kt:614)
- at org.jetbrains.kotlin.backend.jvm.codegen.ExpressionCodegen.visitConstructorCall(ExpressionCodegen.kt:603)
- at org.jetbrains.kotlin.backend.jvm.codegen.ExpressionCodegen.visitConstructorCall(ExpressionCodegen.kt:131)
- at org.jetbrains.kotlin.ir.expressions.impl.IrConstructorCallImpl.accept(IrConstructorCallImpl.kt:28)
- at org.jetbrains.kotlin.backend.jvm.codegen.ExpressionCodegen.gen(ExpressionCodegen.kt:211)
- at org.jetbrains.kotlin.backend.jvm.codegen.IrCallGenerator$DefaultImpls.genValueAndPut(IrCallGenerator.kt:49)
- at org.jetbrains.kotlin.backend.jvm.codegen.IrCallGenerator$DefaultCallGenerator.genValueAndPut(IrCallGenerator.kt:52)
- at org.jetbrains.kotlin.backend.jvm.codegen.ExpressionCodegen.visitCall(ExpressionCodegen.kt:486)
- at org.jetbrains.kotlin.backend.jvm.codegen.ExpressionCodegen.visitCall(ExpressionCodegen.kt:131)
- at org.jetbrains.kotlin.ir.expressions.impl.IrCallImpl.accept(IrCallImpl.kt:47)
- at org.jetbrains.kotlin.backend.jvm.codegen.ExpressionCodegen.visitWhen(ExpressionCodegen.kt:996)
- at org.jetbrains.kotlin.backend.jvm.codegen.ExpressionCodegen.visitWhen(ExpressionCodegen.kt:131)
- at org.jetbrains.kotlin.ir.expressions.IrWhen.accept(IrWhen.kt:29)
- at org.jetbrains.kotlin.backend.jvm.codegen.ExpressionCodegen.visitStatementContainer(ExpressionCodegen.kt:433)
- at org.jetbrains.kotlin.backend.jvm.codegen.ExpressionCodegen.visitBlockBody(ExpressionCodegen.kt:437)
- at org.jetbrains.kotlin.backend.jvm.codegen.ExpressionCodegen.visitBlockBody(ExpressionCodegen.kt:131)
- at org.jetbrains.kotlin.ir.expressions.IrBlockBody.accept(IrBody.kt:54)
- at org.jetbrains.kotlin.backend.jvm.codegen.ExpressionCodegen.generate(ExpressionCodegen.kt:228)
- at org.jetbrains.kotlin.backend.jvm.codegen.FunctionCodegen.doGenerate(FunctionCodegen.kt:122)
- at org.jetbrains.kotlin.backend.jvm.codegen.FunctionCodegen.generate(FunctionCodegen.kt:48)
- ... 55 more
Add Comment
Please, Sign In to add comment