Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- e: org.jetbrains.kotlin.backend.common.BackendException: Backend Internal error: Exception during IR lowering
- File being compiled: /home/rjaros/git/kvision/kvision-modules/kvision-server-javalin/src/jvmMain/kotlin/io/kvision/remote/KVServiceManager.kt
- The root cause java.lang.RuntimeException was thrown at: org.jetbrains.kotlin.backend.jvm.codegen.FunctionCodegen.generate(FunctionCodegen.kt:51)
- at org.jetbrains.kotlin.backend.common.CodegenUtil.reportBackendException(CodegenUtil.kt:253)
- at org.jetbrains.kotlin.backend.common.CodegenUtil.reportBackendException$default(CodegenUtil.kt:237)
- at org.jetbrains.kotlin.backend.common.phaser.PerformByIrFilePhase.invokeSequential(performByIrFile.kt:65)
- at org.jetbrains.kotlin.backend.common.phaser.PerformByIrFilePhase.invoke(performByIrFile.kt:52)
- at org.jetbrains.kotlin.backend.common.phaser.PerformByIrFilePhase.invoke(performByIrFile.kt:38)
- at org.jetbrains.kotlin.backend.common.phaser.NamedCompilerPhase.phaseBody(CompilerPhase.kt:147)
- at org.jetbrains.kotlin.backend.common.phaser.AbstractNamedCompilerPhase.invoke(CompilerPhase.kt:94)
- at org.jetbrains.kotlin.backend.common.phaser.CompositePhase.invoke(PhaseBuilders.kt:29)
- at org.jetbrains.kotlin.backend.common.phaser.CompositePhase.invoke(PhaseBuilders.kt:16)
- at org.jetbrains.kotlin.backend.common.phaser.NamedCompilerPhase.phaseBody(CompilerPhase.kt:147)
- at org.jetbrains.kotlin.backend.common.phaser.AbstractNamedCompilerPhase.invoke(CompilerPhase.kt:94)
- at org.jetbrains.kotlin.backend.common.phaser.CompilerPhaseKt.invokeToplevel(CompilerPhase.kt:43)
- at org.jetbrains.kotlin.backend.jvm.JvmIrCodegenFactory.invokeCodegen(JvmIrCodegenFactory.kt:361)
- at org.jetbrains.kotlin.codegen.CodegenFactory.generateModule(CodegenFactory.kt:45)
- at org.jetbrains.kotlin.backend.jvm.JvmIrCodegenFactory.generateModuleInFrontendIRMode(JvmIrCodegenFactory.kt:379)
- at org.jetbrains.kotlin.cli.jvm.compiler.pipeline.CompilerPipelineKt.generateCodeFromIr(compilerPipeline.kt:244)
- at org.jetbrains.kotlin.cli.jvm.compiler.pipeline.CompilerPipelineKt.compileModulesUsingFrontendIrAndLightTree(compilerPipeline.kt:151)
- at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:146)
- at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:50)
- at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:104)
- at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:48)
- at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:101)
- at org.jetbrains.kotlin.incremental.IncrementalJvmCompilerRunner.runCompiler(IncrementalJvmCompilerRunner.kt:463)
- at org.jetbrains.kotlin.incremental.IncrementalJvmCompilerRunner.runCompiler(IncrementalJvmCompilerRunner.kt:62)
- at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.doCompile(IncrementalCompilerRunner.kt:477)
- at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compileImpl(IncrementalCompilerRunner.kt:400)
- at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compileNonIncrementally(IncrementalCompilerRunner.kt:281)
- at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compile(IncrementalCompilerRunner.kt:125)
- at org.jetbrains.kotlin.daemon.CompileServiceImplBase.execIncrementalCompiler(CompileServiceImpl.kt:657)
- at org.jetbrains.kotlin.daemon.CompileServiceImplBase.access$execIncrementalCompiler(CompileServiceImpl.kt:105)
- at org.jetbrains.kotlin.daemon.CompileServiceImpl.compile(CompileServiceImpl.kt:1624)
- at jdk.internal.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
- 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 FUNCTION_FOR_DEFAULT_PARAMETER name:bind$default visibility:public modality:FINAL <RET> ($this:io.kvision.remote.KVServiceBinder<T of io.kvision.remote.KVServiceBinder, RH of io.kvision.remote.KVServiceBinder, WH of io.kvision.remote.KVServiceBinder, SH of io.kvision.remote.KVServiceBinder>, function:@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<T of io.kvision.remote.KVServiceManager, RET of io.kvision.remote.KVServiceManager.bind$default>, method:io.kvision.remote.HttpMethod?, route:kotlin.String?, $mask0:kotlin.Int, $handler:kotlin.Any?) returnType:kotlin.Unit [inline]
- TYPE_PARAMETER name:RET index:0 variance: superTypes:[kotlin.Any?] reified:true
- VALUE_PARAMETER MOVED_DISPATCH_RECEIVER name:$this index:0 type:io.kvision.remote.KVServiceBinder<T of io.kvision.remote.KVServiceBinder, RH of io.kvision.remote.KVServiceBinder, WH of io.kvision.remote.KVServiceBinder, SH of io.kvision.remote.KVServiceBinder>
- VALUE_PARAMETER name:function index:1 type:@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<T of io.kvision.remote.KVServiceManager, RET of io.kvision.remote.KVServiceManager.bind$default> [noinline]
- VALUE_PARAMETER name:method index:2 type:io.kvision.remote.HttpMethod? [assignable]
- EXPRESSION_BODY
- ERROR_EXPR 'Default Stub' type=io.kvision.remote.HttpMethod
- VALUE_PARAMETER name:route index:3 type:kotlin.String? [assignable]
- EXPRESSION_BODY
- ERROR_EXPR 'Default Stub' type=kotlin.String?
- VALUE_PARAMETER MASK_FOR_DEFAULT_FUNCTION name:$mask0 index:4 type:kotlin.Int
- VALUE_PARAMETER METHOD_HANDLER_IN_DEFAULT_FUNCTION name:$handler index:5 type:kotlin.Any?
- BLOCK_BODY
- WHEN type=kotlin.Unit origin=null
- BRANCH
- if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCL
- $this: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ
- arg0: GET_VAR '$handler: kotlin.Any? declared in io.kvision.remote.KVServiceManager.bind$default' type=kotlin.Any? origin=null
- arg1: CONST Null type=kotlin.Nothing? value=null
- then: CALL 'public final fun throwUnsupportedOperationException (message: kotlin.String): kotlin.Nothing declared in kotlin.jvm.internal.Intrinsics' type=kotlin.Nothing origin=null
- message: CONST String type=kotlin.String value="Super calls with default arguments not supported in this target, function: bind"
- WHEN type=kotlin.Unit origin=null
- BRANCH
- if: 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: CALL 'public final fun and (other: kotlin.Int): kotlin.Int [infix] declared in kotlin.Int' type=kotlin.Int origin=null
- $this: GET_VAR '$mask0: kotlin.Int declared in io.kvision.remote.KVServiceManager.bind$default' type=kotlin.Int origin=null
- other: CONST Int type=kotlin.Int value=2
- arg1: CONST Int type=kotlin.Int value=0
- then: SET_VAR 'method: io.kvision.remote.HttpMethod? [assignable] declared in io.kvision.remote.KVServiceManager.bind$default' type=kotlin.Unit origin=EQ
- GET_FIELD 'FIELD FIELD_FOR_ENUM_ENTRY name:POST type:io.kvision.remote.HttpMethod visibility:public [final,static]' type=io.kvision.remote.HttpMethod origin=null
- WHEN type=kotlin.Unit origin=null
- BRANCH
- if: 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: CALL 'public final fun and (other: kotlin.Int): kotlin.Int [infix] declared in kotlin.Int' type=kotlin.Int origin=null
- $this: GET_VAR '$mask0: kotlin.Int declared in io.kvision.remote.KVServiceManager.bind$default' type=kotlin.Int origin=null
- other: CONST Int type=kotlin.Int value=4
- arg1: CONST Int type=kotlin.Int value=0
- then: SET_VAR 'route: kotlin.String? [assignable] declared in io.kvision.remote.KVServiceManager.bind$default' type=kotlin.Unit origin=EQ
- CONST Null type=kotlin.Nothing? value=null
- RETURN type=kotlin.Nothing from='public final fun bind$default <RET> ($this: io.kvision.remote.KVServiceBinder<T of io.kvision.remote.KVServiceBinder, RH of io.kvision.remote.KVServiceBinder, WH of io.kvision.remote.KVServiceBinder, SH of io.kvision.remote.KVServiceBinder>, function: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<T of io.kvision.remote.KVServiceManager, RET of io.kvision.remote.KVServiceManager.bind$default>, method: io.kvision.remote.HttpMethod?, route: kotlin.String?, $mask0: kotlin.Int, $handler: kotlin.Any?): kotlin.Unit [inline] declared in io.kvision.remote.KVServiceManager'
- CALL 'public final fun bind <RET> (function: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<T of io.kvision.remote.KVServiceBinder, RET of io.kvision.remote.KVServiceBinder.bind>, method: io.kvision.remote.HttpMethod, route: kotlin.String?): kotlin.Unit [inline] declared in io.kvision.remote.KVServiceBinder' type=kotlin.Unit origin=DEFAULT_STUB_CALL_TO_IMPLEMENTATION
- <RET>: RET of io.kvision.remote.KVServiceManager.bind$default
- $this: TYPE_OP type=io.kvision.remote.KVServiceBinder<T of io.kvision.remote.KVServiceBinder, RH of io.kvision.remote.KVServiceBinder, WH of io.kvision.remote.KVServiceBinder, SH of io.kvision.remote.KVServiceBinder> origin=IMPLICIT_CAST typeOperand=io.kvision.remote.KVServiceBinder<T of io.kvision.remote.KVServiceBinder, RH of io.kvision.remote.KVServiceBinder, WH of io.kvision.remote.KVServiceBinder, SH of io.kvision.remote.KVServiceBinder>
- GET_VAR '$this: io.kvision.remote.KVServiceBinder<T of io.kvision.remote.KVServiceBinder, RH of io.kvision.remote.KVServiceBinder, WH of io.kvision.remote.KVServiceBinder, SH of io.kvision.remote.KVServiceBinder> declared in io.kvision.remote.KVServiceManager.bind$default' type=io.kvision.remote.KVServiceBinder<T of io.kvision.remote.KVServiceBinder, RH of io.kvision.remote.KVServiceBinder, WH of io.kvision.remote.KVServiceBinder, SH of io.kvision.remote.KVServiceBinder> origin=null
- function: GET_VAR 'function: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<T of io.kvision.remote.KVServiceManager, RET of io.kvision.remote.KVServiceManager.bind$default> [noinline] declared in io.kvision.remote.KVServiceManager.bind$default' type=@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<T of io.kvision.remote.KVServiceManager, RET of io.kvision.remote.KVServiceManager.bind$default> origin=null
- method: TYPE_OP type=io.kvision.remote.HttpMethod origin=IMPLICIT_CAST typeOperand=io.kvision.remote.HttpMethod
- GET_VAR 'method: io.kvision.remote.HttpMethod? [assignable] declared in io.kvision.remote.KVServiceManager.bind$default' type=io.kvision.remote.HttpMethod? origin=null
- route: GET_VAR 'route: kotlin.String? [assignable] declared in io.kvision.remote.KVServiceManager.bind$default' type=kotlin.String? origin=null
- at org.jetbrains.kotlin.backend.jvm.codegen.FunctionCodegen.generate(FunctionCodegen.kt:51)
- at org.jetbrains.kotlin.backend.jvm.codegen.FunctionCodegen.generate$default(FunctionCodegen.kt:43)
- at org.jetbrains.kotlin.backend.jvm.codegen.ClassCodegen.generateMethodNode(ClassCodegen.kt:396)
- at org.jetbrains.kotlin.backend.jvm.codegen.ClassCodegen.generateMethod(ClassCodegen.kt:407)
- at org.jetbrains.kotlin.backend.jvm.codegen.ClassCodegen.generate(ClassCodegen.kt:169)
- at org.jetbrains.kotlin.backend.jvm.FileCodegen.lower(JvmPhases.kt:41)
- 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.phaseBody(CompilerPhase.kt:147)
- at org.jetbrains.kotlin.backend.common.phaser.AbstractNamedCompilerPhase.invoke(CompilerPhase.kt:94)
- at org.jetbrains.kotlin.backend.common.phaser.PerformByIrFilePhase.invokeSequential(performByIrFile.kt:62)
- ... 44 more
- Caused by: java.lang.RuntimeException: Exception while generating code for:
- FUN IR_EXTERNAL_DECLARATION_STUB name:bind visibility:public modality:FINAL <RET> ($this:io.kvision.remote.KVServiceBinder<T of io.kvision.remote.KVServiceBinder, RH of io.kvision.remote.KVServiceBinder, WH of io.kvision.remote.KVServiceBinder, SH of io.kvision.remote.KVServiceBinder>, function:@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<T of io.kvision.remote.KVServiceBinder, RET of io.kvision.remote.KVServiceBinder.bind>, method:io.kvision.remote.HttpMethod, route:kotlin.String?) returnType:kotlin.Unit [inline]
- TYPE_PARAMETER name:RET index:0 variance: superTypes:[kotlin.Any?] reified:true
- $this: VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:<this> type:io.kvision.remote.KVServiceBinder<T of io.kvision.remote.KVServiceBinder, RH of io.kvision.remote.KVServiceBinder, WH of io.kvision.remote.KVServiceBinder, SH of io.kvision.remote.KVServiceBinder>
- VALUE_PARAMETER name:function index:0 type:@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<T of io.kvision.remote.KVServiceBinder, RET of io.kvision.remote.KVServiceBinder.bind> [noinline]
- VALUE_PARAMETER name:method index:1 type:io.kvision.remote.HttpMethod
- VALUE_PARAMETER name:route index:2 type:kotlin.String?
- at org.jetbrains.kotlin.backend.jvm.codegen.FunctionCodegen.generate(FunctionCodegen.kt:51)
- at org.jetbrains.kotlin.backend.jvm.codegen.FunctionCodegen.generate$default(FunctionCodegen.kt:43)
- at org.jetbrains.kotlin.backend.jvm.codegen.ClassCodegen.generateMethodNode(ClassCodegen.kt:396)
- at org.jetbrains.kotlin.backend.jvm.codegen.IrInlineDefaultCodegen.genInlineCall(IrInlineDefaultCodegen.kt:45)
- at org.jetbrains.kotlin.backend.jvm.codegen.IrInlineCallGenerator.genCall(IrInlineCallGenerator.kt:36)
- at org.jetbrains.kotlin.backend.jvm.codegen.ExpressionCodegen.visitCall(ExpressionCodegen.kt:627)
- at org.jetbrains.kotlin.backend.jvm.codegen.ExpressionCodegen.visitCall(ExpressionCodegen.kt:134)
- at org.jetbrains.kotlin.ir.expressions.IrCall.accept(IrCall.kt:26)
- at org.jetbrains.kotlin.backend.jvm.codegen.ExpressionCodegen.visitReturn(ExpressionCodegen.kt:1018)
- at org.jetbrains.kotlin.backend.jvm.codegen.ExpressionCodegen.visitReturn(ExpressionCodegen.kt:134)
- at org.jetbrains.kotlin.ir.expressions.IrReturn.accept(IrReturn.kt:26)
- at org.jetbrains.kotlin.backend.jvm.codegen.ExpressionCodegen.visitStatementContainer(ExpressionCodegen.kt:562)
- at org.jetbrains.kotlin.backend.jvm.codegen.ExpressionCodegen.visitBlockBody(ExpressionCodegen.kt:567)
- at org.jetbrains.kotlin.backend.jvm.codegen.ExpressionCodegen.visitBlockBody(ExpressionCodegen.kt:134)
- at org.jetbrains.kotlin.ir.expressions.IrBlockBody.accept(IrBlockBody.kt:25)
- 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:47)
- ... 54 more
- Caused by: java.lang.IllegalStateException: No file parent: org.jetbrains.kotlin.fir.lazy.Fir2IrLazySimpleFunction@2330ccda
- at org.jetbrains.kotlin.backend.jvm.ir.JvmIrUtilsKt.getFileParent(JvmIrUtils.kt)
- at org.jetbrains.kotlin.backend.jvm.ir.JvmIrInlineUtilsKt.getFileParentBeforeInline(JvmIrInlineUtils.kt:102)
- at org.jetbrains.kotlin.backend.jvm.codegen.LineNumberMapper.<init>(LineNumberMapper.kt:49)
- at org.jetbrains.kotlin.backend.jvm.codegen.ExpressionCodegen.<init>(ExpressionCodegen.kt:164)
- at org.jetbrains.kotlin.backend.jvm.codegen.FunctionCodegen.doGenerate(FunctionCodegen.kt:122)
- at org.jetbrains.kotlin.backend.jvm.codegen.FunctionCodegen.generate(FunctionCodegen.kt:47)
- ... 71 more
Add Comment
Please, Sign In to add comment