Clerezza
  1. Clerezza
  2. CLEREZZA-612

Clerezza build fails on Platform Account Control Panel Core (StackOverflow)

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.2-incubating
    • Component/s: None
    • Labels:
      None
    • Environment:
      Ubuntu 32bit
      2 GB RAM
      Open JDK 1.6/Sun JDK 1.6

      Description

      When compiling clerezza I get the following error:

      [INFO] ------------------------------------------------------------------------
      [INFO] Building Clerezza - Platform Account Control Panel Core
      [INFO] task-segment: [install]
      [INFO] ------------------------------------------------------------------------
      [INFO] [resources:resources

      {execution: default-resources}

      ]
      [INFO] Using 'utf-8' encoding to copy filtered resources.
      [INFO] Copying 1 resource to META-INF
      [INFO] Copying 4 resources
      [INFO] [compiler:compile

      {execution: default-compile}

      ]
      [INFO] Nothing to compile - all classes are up to date
      [INFO] [scala:compile

      {execution: default}

      ]
      [ERROR] /home/daniel/Desktop/clerezza-201107/platform.accountcontrolpanel/platform.accountcontrolpanel.core/src/main/java
      [ERROR] /home/daniel/Desktop/clerezza-201107/platform.accountcontrolpanel/platform.accountcontrolpanel.core/src/main/scala
      [INFO] Compiling 10 source files to /home/daniel/Desktop/clerezza-201107/platform.accountcontrolpanel/platform.accountcontrolpanel.core/target/classes
      [WARNING] Exception in thread "main" java.lang.StackOverflowError
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4118)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4203)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4271)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4277)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4089)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4203)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4271)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4277)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4089)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4203)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4271)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4277)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4089)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4203)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typedTypeConstructor(Typers.scala:4315)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typedTypeConstructor(Typers.scala:4338)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typedNew$1(Typers.scala:3220)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3974)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4203)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4271)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4277)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4089)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4203)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$typedApply$1$1.apply(Typers.scala:3362)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$typedApply$1$1.apply(Typers.scala:3362)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.silent(Typers.scala:722)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typedApply$1(Typers.scala:3362)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4049)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4203)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4265)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.computeType(Typers.scala:4341)
      [WARNING] at scala.tools.nsc.typechecker.Namers$Namer.typeSig(Namers.scala:1145)
      [WARNING] at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:523)
      [WARNING] at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:521)
      [WARNING] at scala.tools.nsc.typechecker.Namers$$anon$1.complete(Namers.scala:1309)
      [WARNING] at scala.tools.nsc.typechecker.Namers$$anon$1.complete(Namers.scala:1307)
      [WARNING] at scala.tools.nsc.symtab.Symbols$Symbol.info(Symbols.scala:735)
      [WARNING] at scala.tools.nsc.symtab.Symbols$Symbol.initialize(Symbols.scala:848)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3840)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4203)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typedStat$1(Typers.scala:2128)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$20.apply(Typers.scala:2196)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$20.apply(Typers.scala:2196)
      [WARNING] at scala.collection.immutable.List.loop$1(List.scala:115)
      [WARNING] at scala.collection.immutable.List.mapConserve(List.scala:132)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:2196)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typedBlock(Typers.scala:1948)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3894)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4203)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3981)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4203)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typedArg(Typers.scala:2202)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$typedArgs$3.apply(Typers.scala:2212)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$typedArgs$3.apply(Typers.scala:2211)
      [WARNING] at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:206)
      [WARNING] at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:206)
      [WARNING] at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:61)
      [WARNING] at scala.collection.immutable.List.foreach(List.scala:45)
      [WARNING] at scala.collection.TraversableLike$class.map(TraversableLike.scala:206)
      [WARNING] at scala.collection.immutable.List.map(List.scala:45)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typedArgs(Typers.scala:2211)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.doTypedApply(Typers.scala:2425)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typedApply$1(Typers.scala:3380)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4049)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4203)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typedBlock(Typers.scala:1949)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3894)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4203)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typedBlock(Typers.scala:1949)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3894)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4203)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer.typedArg(Typers.scala:2202)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$typedArgs$3.apply(Typers.scala:2212)
      [WARNING] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$typedArgs$3.apply(Typers.scala:2211)
      ...

      -----------------------------------------------------------------------------------------------------------------------------------------
      Observations:

      • Ubuntu 64bit operating system with same hardware resources is not affected by this problem.
      • MAVEN_OPTS do not affect this issue

      Possible resolution:

        Activity

        Hide
        Daniel Spicar added a comment -

        Increased stack size for maven scala plugin

        Show
        Daniel Spicar added a comment - Increased stack size for maven scala plugin
        Hide
        Henry Story added a comment -

        I wonder why on OSX I don't need to do this.

        Show
        Henry Story added a comment - I wonder why on OSX I don't need to do this.
        Hide
        Daniel Spicar added a comment -

        I guess OSX is 64bit or it has a different default stack size for the JVM (could depend on available system memory as well). I don't fully understand the reasons for the error other than on some systems the JVM may run out of stack space during the build.

        Show
        Daniel Spicar added a comment - I guess OSX is 64bit or it has a different default stack size for the JVM (could depend on available system memory as well). I don't fully understand the reasons for the error other than on some systems the JVM may run out of stack space during the build.

          People

          • Assignee:
            Daniel Spicar
            Reporter:
            Daniel Spicar
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development