java.lang.IllegalArgumentException: Stacks have different current sizes [2] and [8]

proguard | leegeng | 3 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

    static boolean problem with optimize

    proguard | 3 years ago | leegeng
    java.lang.IllegalArgumentException: Stacks have different current sizes [2] and [8]
  2. 0

    Why ant build fails with proguard enabled?

    Stack Overflow | 3 years ago | Minas
    java.lang.IllegalArgumentException: Value is not a reference value [proguard.evaluation.value.Instru ctionOffsetValue]
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Error with Proguard optimization and Android

    proguard | 6 years ago | *anonymous
    java.lang.IllegalArgumentException: Value is not a reference value
  5. 0

    IllegalArgumentException: Stacks have different current size

    proguard | 5 years ago | dudemanmax
    java.lang.IllegalArgumentException: Stacks have different curr ent sizes [0] and [2]

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Stacks have different current sizes [2] and [8]

      at proguard.evaluation.Stack.generalize()
    2. [${project.groupId}] ${project.artifactId}
      ProGuard.execute
      1. proguard.evaluation.Stack.generalize(Stack.java:125)
      2. proguard.evaluation.TracedStack.generalize(TracedStack.java:148)
      3. proguard.optimize.evaluation.PartialEvaluator.evaluateSingleInstructionBlock(PartialEvaluator.java:683)
      4. proguard.optimize.evaluation.PartialEvaluator.evaluateInstructionBlock(PartialEvaluator.java:602)
      5. proguard.optimize.evaluation.PartialEvaluator.evaluateInstructionBlockAndExceptionHandlers(PartialEvaluator.java:560)
      6. proguard.optimize.evaluation.PartialEvaluator.visitCodeAttribute0(PartialEvaluator.java:264)
      7. proguard.optimize.evaluation.PartialEvaluator.visitCodeAttribute(PartialEvaluator.java:181)
      8. proguard.optimize.evaluation.LivenessAnalyzer.visitCodeAttribute(LivenessAnalyzer.java:205)
      9. proguard.optimize.evaluation.VariableOptimizer.visitCodeAttribute(VariableOptimizer.java:105)
      10. proguard.classfile.attribute.CodeAttribute.accept(CodeAttribute.java:101)
      11. proguard.classfile.ProgramMethod.attributesAccept(ProgramMethod.java:79)
      12. proguard.classfile.attribute.visitor.AllAttributeVisitor.visitProgramMember(AllAttributeVisitor.java:95)
      13. proguard.classfile.util.SimplifiedVisitor.visitProgramMethod(SimplifiedVisitor.java:91)
      14. proguard.classfile.ProgramMethod.accept(ProgramMethod.java:71)
      15. proguard.classfile.ProgramClass.methodsAccept(ProgramClass.java:504)
      16. proguard.classfile.visitor.AllMethodVisitor.visitProgramClass(AllMethodVisitor.java:47)
      17. proguard.classfile.ProgramClass.accept(ProgramClass.java:346)
      18. proguard.classfile.ClassPool.classesAccept(ClassPool.java:124)
      19. proguard.optimize.Optimizer.execute(Optimizer.java:926)
      20. proguard.ProGuard.optimize(ProGuard.java:306)
      21. proguard.ProGuard.execute(ProGuard.java:115)
      21 frames
    3. proguard.ant
      ProGuardTask.execute
      1. proguard.ant.ProGuardTask.execute(ProGuardTask.java:316)
      1 frame
    4. Ant
      UnknownElement.execute
      1. org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
      1 frame
    5. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:601)
      3 frames
    6. Ant
      Main.startAnt
      1. org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
      2. org.apache.tools.ant.Task.perform(Task.java:348)
      3. org.apache.tools.ant.Target.execute(Target.java:435)
      4. org.apache.tools.ant.Target.performTasks(Target.java:456)
      5. org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
      6. org.apache.tools.ant.Project.executeTarget(Project.java:1364)
      7. org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
      8. org.apache.tools.ant.Project.executeTargets(Project.java:1248)
      9. org.apache.tools.ant.Main.runBuild(Main.java:851)
      10. org.apache.tools.ant.Main.startAnt(Main.java:235)
      10 frames
    7. Apache Ant Launcher
      Launcher.main
      1. org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
      2. org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
      2 frames