org.jetbrains.org.objectweb.asm.tree.analysis.AnalyzerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Exception on inlining
    via by Unknown author,
  • Internal error: couldn't inline method call
    via by Unknown author,
    • org.jetbrains.org.objectweb.asm.tree.analysis.AnalyzerException: Error at instruction 5: Cannot pop operand off an empty stack. File being compiled and position: (7,5) in /Simplest version.kt PsiElement: @JvmOverloads fun a(a: Boolean = false, b: Boolean = false) {} The root cause was thrown at: MethodTransformer.java:34 at org.jetbrains.kotlin.codegen.FunctionCodegen.endVisit(FunctionCodegen.java:503) at org.jetbrains.kotlin.codegen.DefaultParameterValueSubstitutor.generateOverloadWithSubstitutedParameters(DefaultParameterValueSubstitutor.kt:216) at org.jetbrains.kotlin.codegen.DefaultParameterValueSubstitutor.generateOverloadsIfNeeded(DefaultParameterValueSubstitutor.kt:89) at org.jetbrains.kotlin.codegen.FunctionCodegen.generateOverloadsWithDefaultValues(FunctionCodegen.java:129) at org.jetbrains.kotlin.codegen.FunctionCodegen.gen(FunctionCodegen.java:121) at org.jetbrains.kotlin.codegen.MemberCodegen.genFunctionOrProperty(MemberCodegen.java:180) at org.jetbrains.kotlin.codegen.ClassBodyCodegen.generateDeclaration(ClassBodyCodegen.java:124) at org.jetbrains.kotlin.codegen.ClassBodyCodegen.generateBody(ClassBodyCodegen.java:74) at org.jetbrains.kotlin.codegen.MemberCodegen.generate(MemberCodegen.java:117) at org.jetbrains.kotlin.codegen.ImplementationBodyCodegen.generateDefaultImplsIfNeeded(ImplementationBodyCodegen.java:245) at org.jetbrains.kotlin.codegen.ClassBodyCodegen.generateBody(ClassBodyCodegen.java:80) at org.jetbrains.kotlin.codegen.MemberCodegen.generate(MemberCodegen.java:117) at org.jetbrains.kotlin.codegen.MemberCodegen.genClassOrObject(MemberCodegen.java:231) at org.jetbrains.kotlin.codegen.PackageCodegen.generateClassOrObject(PackageCodegen.java:147) at org.jetbrains.kotlin.codegen.PackageCodegen.generateFile(PackageCodegen.java:98) at org.jetbrains.kotlin.codegen.PackageCodegen.generate(PackageCodegen.java:61) at org.jetbrains.kotlin.codegen.KotlinCodegenFacade.generatePackage(KotlinCodegenFacade.java:99) at org.jetbrains.kotlin.codegen.KotlinCodegenFacade.doGenerateFiles(KotlinCodegenFacade.java:77) at org.jetbrains.kotlin.codegen.KotlinCodegenFacade.compileCorrectFiles(KotlinCodegenFacade.java:44) at org.jetbrains.webdemo.backend.responseHelpers.CompileAndRunExecutor.getResult(CompileAndRunExecutor.java:86) at org.jetbrains.webdemo.backend.MyHttpSession.sendExecutorResult(MyHttpSession.java:86) at org.jetbrains.webdemo.backend.MyHttpSession.handle(MyHttpSession.java:47) at org.jetbrains.webdemo.backend.ServerHandler.handle(ServerHandler.java:41) at org.jetbrains.webdemo.backend.BackendHttpServlet.service(BackendHttpServlet.java:126) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:409) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1044) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: java.lang.RuntimeException: org.jetbrains.org.objectweb.asm.tree.analysis.AnalyzerException: Error at instruction 5: Cannot pop operand off an empty stack. at org.jetbrains.kotlin.codegen.optimization.transformer.MethodTransformer.runAnalyzer(MethodTransformer.java:34) at org.jetbrains.kotlin.codegen.optimization.transformer.MethodTransformer.analyze(MethodTransformer.java:44) at org.jetbrains.kotlin.codegen.optimization.boxing.RedundantNullCheckMethodTransformer.removeRedundantNullCheckPass(RedundantNullCheckMethodTransformer.java:40) at org.jetbrains.kotlin.codegen.optimization.boxing.RedundantNullCheckMethodTransformer.transform(RedundantNullCheckMethodTransformer.java:33) at org.jetbrains.kotlin.codegen.optimization.OptimizationMethodVisitor.visitEnd(OptimizationMethodVisitor.java:82) at org.jetbrains.kotlin.codegen.FunctionCodegen.endVisit(FunctionCodegen.java:496) ... 43 more Caused by: org.jetbrains.org.objectweb.asm.tree.analysis.AnalyzerException: Error at instruction 5: Cannot pop operand off an empty stack. at org.jetbrains.org.objectweb.asm.tree.analysis.Analyzer.analyze(Analyzer.java:298) at org.jetbrains.kotlin.codegen.optimization.transformer.MethodTransformer.runAnalyzer(MethodTransformer.java:31) ... 48 more Caused by: java.lang.IndexOutOfBoundsException: Cannot pop operand off an empty stack. at org.jetbrains.org.objectweb.asm.tree.analysis.Frame.pop(Frame.java:221) at org.jetbrains.org.objectweb.asm.tree.analysis.Frame.execute(Frame.java:612) at org.jetbrains.org.objectweb.asm.tree.analysis.Analyzer.analyze(Analyzer.java:200) ... 49 more
    No Bugmate found.