Guest User

Untitled

a guest
Nov 15th, 2023
8
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.46 KB | None | 0 0
  1. e: org.jetbrains.kotlin.backend.common.BackendException: Backend Internal error: Exception during IR lowering
  2. File being compiled: /home/rjaros/git/kvision/kvision-modules/kvision-server-javalin/src/jvmMain/kotlin/io/kvision/remote/KVServiceManager.kt
  3. The root cause java.lang.RuntimeException was thrown at: org.jetbrains.kotlin.backend.jvm.codegen.FunctionCodegen.generate(FunctionCodegen.kt:51)
  4. at org.jetbrains.kotlin.backend.common.CodegenUtil.reportBackendException(CodegenUtil.kt:253)
  5. at org.jetbrains.kotlin.backend.common.CodegenUtil.reportBackendException$default(CodegenUtil.kt:237)
  6. at org.jetbrains.kotlin.backend.common.phaser.PerformByIrFilePhase.invokeSequential(performByIrFile.kt:65)
  7. at org.jetbrains.kotlin.backend.common.phaser.PerformByIrFilePhase.invoke(performByIrFile.kt:52)
  8. at org.jetbrains.kotlin.backend.common.phaser.PerformByIrFilePhase.invoke(performByIrFile.kt:38)
  9. at org.jetbrains.kotlin.backend.common.phaser.NamedCompilerPhase.phaseBody(CompilerPhase.kt:147)
  10. at org.jetbrains.kotlin.backend.common.phaser.AbstractNamedCompilerPhase.invoke(CompilerPhase.kt:94)
  11. at org.jetbrains.kotlin.backend.common.phaser.CompositePhase.invoke(PhaseBuilders.kt:29)
  12. at org.jetbrains.kotlin.backend.common.phaser.CompositePhase.invoke(PhaseBuilders.kt:16)
  13. at org.jetbrains.kotlin.backend.common.phaser.NamedCompilerPhase.phaseBody(CompilerPhase.kt:147)
  14. at org.jetbrains.kotlin.backend.common.phaser.AbstractNamedCompilerPhase.invoke(CompilerPhase.kt:94)
  15. at org.jetbrains.kotlin.backend.common.phaser.CompilerPhaseKt.invokeToplevel(CompilerPhase.kt:43)
  16. at org.jetbrains.kotlin.backend.jvm.JvmIrCodegenFactory.invokeCodegen(JvmIrCodegenFactory.kt:361)
  17. at org.jetbrains.kotlin.codegen.CodegenFactory.generateModule(CodegenFactory.kt:45)
  18. at org.jetbrains.kotlin.backend.jvm.JvmIrCodegenFactory.generateModuleInFrontendIRMode(JvmIrCodegenFactory.kt:379)
  19. at org.jetbrains.kotlin.cli.jvm.compiler.pipeline.CompilerPipelineKt.generateCodeFromIr(compilerPipeline.kt:244)
  20. at org.jetbrains.kotlin.cli.jvm.compiler.pipeline.CompilerPipelineKt.compileModulesUsingFrontendIrAndLightTree(compilerPipeline.kt:151)
  21. at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:146)
  22. at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:50)
  23. at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:104)
  24. at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:48)
  25. at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:101)
  26. at org.jetbrains.kotlin.incremental.IncrementalJvmCompilerRunner.runCompiler(IncrementalJvmCompilerRunner.kt:463)
  27. at org.jetbrains.kotlin.incremental.IncrementalJvmCompilerRunner.runCompiler(IncrementalJvmCompilerRunner.kt:62)
  28. at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.doCompile(IncrementalCompilerRunner.kt:477)
  29. at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compileImpl(IncrementalCompilerRunner.kt:400)
  30. at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compileNonIncrementally(IncrementalCompilerRunner.kt:281)
  31. at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compile(IncrementalCompilerRunner.kt:125)
  32. at org.jetbrains.kotlin.daemon.CompileServiceImplBase.execIncrementalCompiler(CompileServiceImpl.kt:657)
  33. at org.jetbrains.kotlin.daemon.CompileServiceImplBase.access$execIncrementalCompiler(CompileServiceImpl.kt:105)
  34. at org.jetbrains.kotlin.daemon.CompileServiceImpl.compile(CompileServiceImpl.kt:1624)
  35. at jdk.internal.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
  36. at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  37. at java.base/java.lang.reflect.Method.invoke(Method.java:568)
  38. at java.rmi/sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:360)
  39. at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:200)
  40. at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:197)
  41. at java.base/java.security.AccessController.doPrivileged(AccessController.java:712)
  42. at java.rmi/sun.rmi.transport.Transport.serviceCall(Transport.java:196)
  43. at java.rmi/sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:587)
  44. at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:828)
  45. at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:705)
  46. at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
  47. at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:704)
  48. at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
  49. at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
  50. at java.base/java.lang.Thread.run(Thread.java:833)
  51. Caused by: java.lang.RuntimeException: Exception while generating code for:
  52. 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]
  53. TYPE_PARAMETER name:RET index:0 variance: superTypes:[kotlin.Any?] reified:true
  54. 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>
  55. 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]
  56. VALUE_PARAMETER name:method index:2 type:io.kvision.remote.HttpMethod? [assignable]
  57. EXPRESSION_BODY
  58. ERROR_EXPR 'Default Stub' type=io.kvision.remote.HttpMethod
  59. VALUE_PARAMETER name:route index:3 type:kotlin.String? [assignable]
  60. EXPRESSION_BODY
  61. ERROR_EXPR 'Default Stub' type=kotlin.String?
  62. VALUE_PARAMETER MASK_FOR_DEFAULT_FUNCTION name:$mask0 index:4 type:kotlin.Int
  63. VALUE_PARAMETER METHOD_HANDLER_IN_DEFAULT_FUNCTION name:$handler index:5 type:kotlin.Any?
  64. BLOCK_BODY
  65. WHEN type=kotlin.Unit origin=null
  66. BRANCH
  67. if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCL
  68. $this: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ
  69. arg0: GET_VAR '$handler: kotlin.Any? declared in io.kvision.remote.KVServiceManager.bind$default' type=kotlin.Any? origin=null
  70. arg1: CONST Null type=kotlin.Nothing? value=null
  71. then: CALL 'public final fun throwUnsupportedOperationException (message: kotlin.String): kotlin.Nothing declared in kotlin.jvm.internal.Intrinsics' type=kotlin.Nothing origin=null
  72. message: CONST String type=kotlin.String value="Super calls with default arguments not supported in this target, function: bind"
  73. WHEN type=kotlin.Unit origin=null
  74. BRANCH
  75. if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ
  76. $this: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EXCLEQ
  77. arg0: CALL 'public final fun and (other: kotlin.Int): kotlin.Int [infix] declared in kotlin.Int' type=kotlin.Int origin=null
  78. $this: GET_VAR '$mask0: kotlin.Int declared in io.kvision.remote.KVServiceManager.bind$default' type=kotlin.Int origin=null
  79. other: CONST Int type=kotlin.Int value=2
  80. arg1: CONST Int type=kotlin.Int value=0
  81. then: SET_VAR 'method: io.kvision.remote.HttpMethod? [assignable] declared in io.kvision.remote.KVServiceManager.bind$default' type=kotlin.Unit origin=EQ
  82. 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
  83. WHEN type=kotlin.Unit origin=null
  84. BRANCH
  85. if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ
  86. $this: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EXCLEQ
  87. arg0: CALL 'public final fun and (other: kotlin.Int): kotlin.Int [infix] declared in kotlin.Int' type=kotlin.Int origin=null
  88. $this: GET_VAR '$mask0: kotlin.Int declared in io.kvision.remote.KVServiceManager.bind$default' type=kotlin.Int origin=null
  89. other: CONST Int type=kotlin.Int value=4
  90. arg1: CONST Int type=kotlin.Int value=0
  91. then: SET_VAR 'route: kotlin.String? [assignable] declared in io.kvision.remote.KVServiceManager.bind$default' type=kotlin.Unit origin=EQ
  92. CONST Null type=kotlin.Nothing? value=null
  93. 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'
  94. 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
  95. <RET>: RET of io.kvision.remote.KVServiceManager.bind$default
  96. $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>
  97. 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
  98. 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
  99. method: TYPE_OP type=io.kvision.remote.HttpMethod origin=IMPLICIT_CAST typeOperand=io.kvision.remote.HttpMethod
  100. GET_VAR 'method: io.kvision.remote.HttpMethod? [assignable] declared in io.kvision.remote.KVServiceManager.bind$default' type=io.kvision.remote.HttpMethod? origin=null
  101. route: GET_VAR 'route: kotlin.String? [assignable] declared in io.kvision.remote.KVServiceManager.bind$default' type=kotlin.String? origin=null
  102.  
  103. at org.jetbrains.kotlin.backend.jvm.codegen.FunctionCodegen.generate(FunctionCodegen.kt:51)
  104. at org.jetbrains.kotlin.backend.jvm.codegen.FunctionCodegen.generate$default(FunctionCodegen.kt:43)
  105. at org.jetbrains.kotlin.backend.jvm.codegen.ClassCodegen.generateMethodNode(ClassCodegen.kt:396)
  106. at org.jetbrains.kotlin.backend.jvm.codegen.ClassCodegen.generateMethod(ClassCodegen.kt:407)
  107. at org.jetbrains.kotlin.backend.jvm.codegen.ClassCodegen.generate(ClassCodegen.kt:169)
  108. at org.jetbrains.kotlin.backend.jvm.FileCodegen.lower(JvmPhases.kt:41)
  109. at org.jetbrains.kotlin.backend.common.phaser.FileLoweringPhaseAdapter.invoke(PhaseBuilders.kt:120)
  110. at org.jetbrains.kotlin.backend.common.phaser.FileLoweringPhaseAdapter.invoke(PhaseBuilders.kt:116)
  111. at org.jetbrains.kotlin.backend.common.phaser.NamedCompilerPhase.phaseBody(CompilerPhase.kt:147)
  112. at org.jetbrains.kotlin.backend.common.phaser.AbstractNamedCompilerPhase.invoke(CompilerPhase.kt:94)
  113. at org.jetbrains.kotlin.backend.common.phaser.PerformByIrFilePhase.invokeSequential(performByIrFile.kt:62)
  114. ... 44 more
  115. Caused by: java.lang.RuntimeException: Exception while generating code for:
  116. 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]
  117. TYPE_PARAMETER name:RET index:0 variance: superTypes:[kotlin.Any?] reified:true
  118. $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>
  119. 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]
  120. VALUE_PARAMETER name:method index:1 type:io.kvision.remote.HttpMethod
  121. VALUE_PARAMETER name:route index:2 type:kotlin.String?
  122.  
  123. at org.jetbrains.kotlin.backend.jvm.codegen.FunctionCodegen.generate(FunctionCodegen.kt:51)
  124. at org.jetbrains.kotlin.backend.jvm.codegen.FunctionCodegen.generate$default(FunctionCodegen.kt:43)
  125. at org.jetbrains.kotlin.backend.jvm.codegen.ClassCodegen.generateMethodNode(ClassCodegen.kt:396)
  126. at org.jetbrains.kotlin.backend.jvm.codegen.IrInlineDefaultCodegen.genInlineCall(IrInlineDefaultCodegen.kt:45)
  127. at org.jetbrains.kotlin.backend.jvm.codegen.IrInlineCallGenerator.genCall(IrInlineCallGenerator.kt:36)
  128. at org.jetbrains.kotlin.backend.jvm.codegen.ExpressionCodegen.visitCall(ExpressionCodegen.kt:627)
  129. at org.jetbrains.kotlin.backend.jvm.codegen.ExpressionCodegen.visitCall(ExpressionCodegen.kt:134)
  130. at org.jetbrains.kotlin.ir.expressions.IrCall.accept(IrCall.kt:26)
  131. at org.jetbrains.kotlin.backend.jvm.codegen.ExpressionCodegen.visitReturn(ExpressionCodegen.kt:1018)
  132. at org.jetbrains.kotlin.backend.jvm.codegen.ExpressionCodegen.visitReturn(ExpressionCodegen.kt:134)
  133. at org.jetbrains.kotlin.ir.expressions.IrReturn.accept(IrReturn.kt:26)
  134. at org.jetbrains.kotlin.backend.jvm.codegen.ExpressionCodegen.visitStatementContainer(ExpressionCodegen.kt:562)
  135. at org.jetbrains.kotlin.backend.jvm.codegen.ExpressionCodegen.visitBlockBody(ExpressionCodegen.kt:567)
  136. at org.jetbrains.kotlin.backend.jvm.codegen.ExpressionCodegen.visitBlockBody(ExpressionCodegen.kt:134)
  137. at org.jetbrains.kotlin.ir.expressions.IrBlockBody.accept(IrBlockBody.kt:25)
  138. at org.jetbrains.kotlin.backend.jvm.codegen.ExpressionCodegen.generate(ExpressionCodegen.kt:228)
  139. at org.jetbrains.kotlin.backend.jvm.codegen.FunctionCodegen.doGenerate(FunctionCodegen.kt:122)
  140. at org.jetbrains.kotlin.backend.jvm.codegen.FunctionCodegen.generate(FunctionCodegen.kt:47)
  141. ... 54 more
  142. Caused by: java.lang.IllegalStateException: No file parent: org.jetbrains.kotlin.fir.lazy.Fir2IrLazySimpleFunction@2330ccda
  143. at org.jetbrains.kotlin.backend.jvm.ir.JvmIrUtilsKt.getFileParent(JvmIrUtils.kt)
  144. at org.jetbrains.kotlin.backend.jvm.ir.JvmIrInlineUtilsKt.getFileParentBeforeInline(JvmIrInlineUtils.kt:102)
  145. at org.jetbrains.kotlin.backend.jvm.codegen.LineNumberMapper.<init>(LineNumberMapper.kt:49)
  146. at org.jetbrains.kotlin.backend.jvm.codegen.ExpressionCodegen.<init>(ExpressionCodegen.kt:164)
  147. at org.jetbrains.kotlin.backend.jvm.codegen.FunctionCodegen.doGenerate(FunctionCodegen.kt:122)
  148. at org.jetbrains.kotlin.backend.jvm.codegen.FunctionCodegen.generate(FunctionCodegen.kt:47)
  149. ... 71 more
  150.  
Add Comment
Please, Sign In to add comment