java.lang.RuntimeException: Internal compiler error: Inconsistent pop

Google Groups | Unknown author | 6 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Issue 389 in groovypptest: increment counter in Map: compilation error

    Google Groups | 6 years ago | Unknown author
    java.lang.RuntimeException: Internal compiler error: Inconsistent pop

    Root Cause Analysis

    1. java.lang.RuntimeException

      Internal compiler error: Inconsistent pop

      at org.mbte.groovypp.compiler.bytecode.BytecodeStack.pop()
    2. org.mbte.groovypp
      StaticCompiler.visitReturnStatement
      1. org.mbte.groovypp.compiler.bytecode.BytecodeStack.pop(BytecodeStack.java:45)
      2. org.mbte.groovypp.compiler.bytecode.StackAwareMethodAdapter.popArgs(StackAwareMethodAdapter.java:679)
      3. org.mbte.groovypp.compiler.bytecode.StackAwareMethodAdapter.visitMethodInsn(StackAwareMethodAdapter.java:606)
      4. org.mbte.groovypp.compiler.asm.IcmpZeroImproverMethodAdapter.visitMethodInsn(IcmpZeroImproverMethodAdapter.java:84)
      5. org.mbte.groovypp.compiler.asm.I2LL2IRemoverMethodAdapter.visitMethodInsn(I2LL2IRemoverMethodAdapter.java:75)
      6. org.mbte.groovypp.compiler.asm.UnneededBoxingRemoverMethodAdapter.dropBoxing(UnneededBoxingRemoverMethodAdapter.java:38)
      7. org.mbte.groovypp.compiler.asm.UnneededBoxingRemoverMethodAdapter.visitInsn(UnneededBoxingRemoverMethodAdapter.java:48)
      8. org.mbte.groovypp.compiler.asm.UnneededDupStoreRemoverMethodAdapter.dropDupStore(UnneededDupStoreRemoverMethodAdapter.java:66)
      9. org.mbte.groovypp.compiler.asm.UnneededDupStoreRemoverMethodAdapter.visitJumpInsn(UnneededDupStoreRemoverMethodAdapter.java:148)
      10. org.mbte.groovypp.compiler.asm.UnneededDupXStoreRemoverMethodAdapter.visitJumpInsn(UnneededDupXStoreRemoverMethodAdapter.java:156)
      11. org.mbte.groovypp.compiler.asm.UnneededLoadPopRemoverMethodAdapter.visitJumpInsn(UnneededLoadPopRemoverMethodAdapter.java:220)
      12. org.mbte.groovypp.compiler.CompilerTransformer$6.compile(CompilerTransformer.java:628)
      13. org.mbte.groovypp.compiler.bytecode.BytecodeExpr.visit(BytecodeExpr.java:39)
      14. org.mbte.groovypp.compiler.transformers.CastExpressionTransformer$6.compile(CastExpressionTransformer.java:668)
      15. org.mbte.groovypp.compiler.bytecode.BytecodeExpr.visit(BytecodeExpr.java:39)
      16. org.mbte.groovypp.compiler.bytecode.ResolvedMethodBytecodeExpr.loadParams(ResolvedMethodBytecodeExpr.java:248)
      17. org.mbte.groovypp.compiler.bytecode.ResolvedMethodBytecodeExpr.compile(ResolvedMethodBytecodeExpr.java:237)
      18. org.mbte.groovypp.compiler.bytecode.BytecodeExpr.visit(BytecodeExpr.java:39)
      19. org.mbte.groovypp.compiler.bytecode.ResolvedArrayLikeBytecodeExpr$18.compile(ResolvedArrayLikeBytecodeExpr.java:287)
      20. org.mbte.groovypp.compiler.bytecode.BytecodeExpr.visit(BytecodeExpr.java:39)
      21. org.mbte.groovypp.compiler.StaticCompiler.visitReturnStatement(StaticCompiler.java:726)
      21 frames
    3. Groovy
      ReturnStatement.visit
      1. org.codehaus.groovy.ast.stmt.ReturnStatement.visit(ReturnStatement.java:47)
      1 frame
    4. org.mbte.groovypp
      StaticCompiler.visitBlockStatement
      1. org.mbte.groovypp.compiler.StaticCompiler.visitBlockStatement(StaticCompiler.java:357)
      1 frame
    5. Groovy
      BlockStatement.visit
      1. org.codehaus.groovy.ast.stmt.BlockStatement.visit(BlockStatement.java:69)
      1 frame
    6. org.mbte.groovypp
      StaticCompiler.visitBlockStatement
      1. org.mbte.groovypp.compiler.StaticCompiler.visitBlockStatement(StaticCompiler.java:357)
      1 frame
    7. Groovy
      BlockStatement.visit
      1. org.codehaus.groovy.ast.stmt.BlockStatement.visit(BlockStatement.java:69)
      1 frame
    8. org.mbte.groovypp
      CompilerTransformer.transform
      1. org.mbte.groovypp.compiler.StaticCompiler.execute(StaticCompiler.java:1212)
      2. org.mbte.groovypp.compiler.StaticMethodBytecode.<init>(StaticMethodBytecode.java:73)
      3. org.mbte.groovypp.compiler.StaticMethodBytecode.replaceMethodCode(StaticMethodBytecode.java:106)
      4. org.mbte.groovypp.compiler.CompilerTransformer.replaceMethodCode(CompilerTransformer.java:175)
      5. org.mbte.groovypp.compiler.ClosureUtil.isMatch(ClosureUtil.java:182)
      6. org.mbte.groovypp.compiler.transformers.MethodCallExpressionTransformer.inferTypesForClosure(MethodCallExpressionTransformer.java:797)
      7. org.mbte.groovypp.compiler.transformers.MethodCallExpressionTransformer.foundMethodInference(MethodCallExpressionTransformer.java:729)
      8. org.mbte.groovypp.compiler.transformers.MethodCallExpressionTransformer.findMethodVariatingArgs(MethodCallExpressionTransformer.java:617)
      9. org.mbte.groovypp.compiler.transformers.MethodCallExpressionTransformer.findMethodWithClosureCoercion(MethodCallExpressionTransformer.java:832)
      10. org.mbte.groovypp.compiler.transformers.MethodCallExpressionTransformer.createNormalMethodCall(MethodCallExpressionTransformer.java:113)
      11. org.mbte.groovypp.compiler.transformers.MethodCallExpressionTransformer.transform(MethodCallExpressionTransformer.java:92)
      12. org.mbte.groovypp.compiler.transformers.MethodCallExpressionTransformer.transform(MethodCallExpressionTransformer.java:36)
      13. org.mbte.groovypp.compiler.transformers.ExprTransformer.transformExpression(ExprTransformer.groovy:103)
      14. org.mbte.groovypp.compiler.CompilerTransformer.transform(CompilerTransformer.java:114)
      14 frames
    9. Groovy
      ClassCodeExpressionTransformer.visitExpressionStatement
      1. org.codehaus.groovy.ast.ClassCodeExpressionTransformer.visitExpressionStatement(ClassCodeExpressionTransformer.java:139)
      1 frame
    10. org.mbte.groovypp
      StaticCompiler.visitExpressionStatement
      1. org.mbte.groovypp.compiler.StaticCompiler.visitExpressionStatement(StaticCompiler.java:387)
      1 frame
    11. Groovy
      ExpressionStatement.visit
      1. org.codehaus.groovy.ast.stmt.ExpressionStatement.visit(ExpressionStatement.java:40)
      1 frame
    12. org.mbte.groovypp
      StaticCompiler.visitBlockStatement
      1. org.mbte.groovypp.compiler.StaticCompiler.visitBlockStatement(StaticCompiler.java:357)
      1 frame
    13. Groovy
      BlockStatement.visit
      1. org.codehaus.groovy.ast.stmt.BlockStatement.visit(BlockStatement.java:69)
      1 frame
    14. org.mbte.groovypp
      StaticCompiler.visitBlockStatement
      1. org.mbte.groovypp.compiler.StaticCompiler.visitBlockStatement(StaticCompiler.java:357)
      1 frame
    15. Groovy
      BlockStatement.visit
      1. org.codehaus.groovy.ast.stmt.BlockStatement.visit(BlockStatement.java:69)
      1 frame
    16. org.mbte.groovypp
      CompileASTTransform.visit
      1. org.mbte.groovypp.compiler.StaticCompiler.execute(StaticCompiler.java:1212)
      2. org.mbte.groovypp.compiler.StaticMethodBytecode.<init>(StaticMethodBytecode.java:73)
      3. org.mbte.groovypp.compiler.StaticMethodBytecode.replaceMethodCode(StaticMethodBytecode.java:106)
      4. org.mbte.groovypp.compiler.CompileASTTransform.visit(CompileASTTransform.java:125)
      4 frames
    17. Groovy
      Console$_runScriptImpl_closure16.doCall
      1. org.codehaus.groovy.transform.ASTTransformationVisitor.visitClass(ASTTransformationVisitor.java:129)
      2. org.codehaus.groovy.transform.ASTTransformationVisitor$2.call(ASTTransformationVisitor.java:172)
      3. org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:957)
      4. org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:542)
      5. org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:520)
      6. org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:497)
      7. groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:306)
      8. groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:287)
      9. groovy.lang.GroovyShell.parseClass(GroovyShell.java:731)
      10. groovy.lang.GroovyShell.run(GroovyShell.java:516)
      11. groovy.lang.GroovyShell.run(GroovyShell.java:172)
      12. groovy.lang.GroovyShell$run.call(Unknown Source)
      13. groovy.ui.Console$_runScriptImpl_closure16.doCall(Console.groovy:910)
      13 frames
    18. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    19. Groovy
      Console$_runScriptImpl_closure16.doCall
      1. org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
      2. groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
      3. org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
      4. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:885)
      5. org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
      6. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
      7. groovy.ui.Console$_runScriptImpl_closure16.doCall(Console.groovy)
      7 frames
    20. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    21. Groovy
      Closure.run
      1. org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
      2. groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
      3. org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
      4. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:885)
      5. groovy.lang.Closure.call(Closure.java:405)
      6. groovy.lang.Closure.call(Closure.java:399)
      7. groovy.lang.Closure.run(Closure.java:483)
      7 frames
    22. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:662)
      1 frame