Re: [scala-ide-dev] Buildmanager sbt fails with a stack overflow

53 views
Skip to first unread message

Mirco Dotta

unread,
Aug 15, 2012, 11:42:54 AM8/15/12
to scala-...@googlegroups.com
Hi,

If this happened while compiling your project, the odds are high that you can reproduce it outside of Eclipse (i.e., just by 
running Sbt - you need Sbt version 0.11.3 because that's the version we used for M1). Though, this may be extremely 
difficult to reproduce because of the number of dependent project you are working with.

Maybe you could try to update to the latest nightly (now we use SBT 0.13-SNAPSHOT) and check if the problem still occur.

-- Mirco

On Aug 15, 2012, at 5:18 PM, Markus wrote:

Hi,

I just started using Scala IDE 2.1 M1! (2.9).
1. I generated an Eclipse project using sbteclipse. I used sbt sub-project so it created ~25 projects.
2. The the IDE built the workspace and died with the below stack trace.
I already increased Eclipse memory and stack:
-XX:MaxPermSize=1024m
-Xss2m
-Xms40m
-Xmx3076m

Any idea?

!STACK 0
java.lang.StackOverflowError
        at scala.tools.nsc.symtab.Symbols$ClassSymbol.typeOfThis(Symbols.scala:2077)
        at scala.tools.nsc.symtab.Types$ThisType.underlying(Types.scala:1122)
        at scala.tools.nsc.symtab.Types$SimpleTypeProxy$class.boundSyms(Types.scala:189)
        at scala.tools.nsc.symtab.Types$SingletonType.boundSyms(Types.scala:1040)
        at scala.tools.nsc.symtab.Types$SubstMap.apply(Types.scala:3565)
        at scala.tools.nsc.symtab.Types$SubstMap.apply(Types.scala:3532)
        at scala.tools.nsc.symtab.Types$TypeMap.mapOver(Types.scala:3113)
        at scala.tools.nsc.symtab.Types$SubstMap.apply(Types.scala:3567)
        at scala.tools.nsc.symtab.Types$SubstMap.apply(Types.scala:3532)
        at scala.tools.nsc.symtab.Types$TypeMap.mapOver(Types.scala:3158)
        at scala.tools.nsc.symtab.Types$SubstMap.apply(Types.scala:3567)
        at scala.tools.nsc.symtab.Types$SubstMap.apply(Types.scala:3532)
        at scala.tools.nsc.symtab.Types$TypeMap$$anonfun$16.apply(Types.scala:3234)
        at scala.tools.nsc.symtab.Types$TypeMap$$anonfun$16.apply(Types.scala:3231)
        at scala.collection.LinearSeqOptimized$class.exists(LinearSeqOptimized.scala:79)
        at scala.collection.immutable.List.exists(List.scala:76)
        at scala.tools.nsc.symtab.Types$TypeMap.mapOver(Types.scala:3231)
        at scala.tools.nsc.symtab.Types$TypeMap.mapOver(Types.scala:3141)
        at scala.tools.nsc.symtab.Types$SubstMap.apply(Types.scala:3567)
        at scala.tools.nsc.symtab.Types$SubstMap.apply(Types.scala:3532)
        at scala.tools.nsc.symtab.Types$TypeMap$$anonfun$mapOverArgs$1.apply(Types.scala:3216)
        at scala.tools.nsc.symtab.Types$TypeMap$$anonfun$mapOverArgs$1.apply(Types.scala:3212)
        at scala.tools.nsc.symtab.Types$class.map2Conserve(Types.scala:4985)
        at scala.tools.nsc.symtab.SymbolTable.map2Conserve(SymbolTable.scala:13)
        at scala.tools.nsc.symtab.Types$TypeMap.mapOverArgs(Types.scala:3212)
        at scala.tools.nsc.symtab.Types$TypeMap.mapOver(Types.scala:3119)
        at scala.tools.nsc.symtab.Types$SubstMap.apply(Types.scala:3567)
        at scala.tools.nsc.symtab.Types$SubstMap.apply(Types.scala:3532)
        at scala.tools.nsc.symtab.Types$TypeMap.mapOver(Types.scala:3147)
        at scala.tools.nsc.symtab.Types$SubstMap.apply(Types.scala:3567)
        at scala.tools.nsc.symtab.Types$SubstMap.apply(Types.scala:3532)
        at scala.tools.nsc.symtab.Types$TypeMap.mapOver(Types.scala:3143)
        at scala.tools.nsc.symtab.Types$SubstMap.apply(Types.scala:3567)
        at scala.tools.nsc.ast.Trees$TreeTypeSubstituter.traverse(Trees.scala:977)
        at scala.reflect.generic.Trees$Traverser.traverse(Trees.scala:523)
        at scala.tools.nsc.ast.Trees$Traverser.traverse(Trees.scala:920)
        at scala.tools.nsc.ast.Trees$TreeTypeSubstituter.traverse(Trees.scala:983)
        at scala.tools.nsc.typechecker.Infer$Inferencer.substExpr(Infer.scala:1210)
        at scala.tools.nsc.typechecker.Infer$Inferencer.inferExprInstance(Infer.scala:1179)
        at scala.tools.nsc.typechecker.Typers$Typer.instantiate(Typers.scala:972)
        at scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:877)
        at scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:710)
        at scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:733)
        at scala.tools.nsc.typechecker.Implicits$ImplicitSearch.typedImplicit1(Implicits.scala:529)
        at scala.tools.nsc.typechecker.Implicits$ImplicitSearch.typedImplicit0(Implicits.scala:491)
        at scala.tools.nsc.typechecker.Implicits$ImplicitSearch.scala$tools$nsc$typechecker$Implicits$ImplicitSearch$$typedImplicit(Implicits.scala:403)
        at scala.tools.nsc.typechecker.Implicits$ImplicitSearch$ImplicitComputation.tryImplicitInfo$1(Implicits.scala:745)
        at scala.tools.nsc.typechecker.Implicits$ImplicitSearch$ImplicitComputation.rankImplicits(Implicits.scala:748)
        at scala.tools.nsc.typechecker.Implicits$ImplicitSearch$ImplicitComputation.findBest(Implicits.scala:772)
        at scala.tools.nsc.typechecker.Implicits$ImplicitSearch.searchImplicit(Implicits.scala:830)
        at scala.tools.nsc.typechecker.Implicits$ImplicitSearch.bestImplicit(Implicits.scala:1169)
        at scala.tools.nsc.typechecker.Implicits$class.inferImplicit(Implicits.scala:67)
        at scala.tools.nsc.Global$analyzer$.inferImplicit(Global.scala:351)
        at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$applyImplicitArgs$1.apply(Typers.scala:121)
        at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$applyImplicitArgs$1.apply(Typers.scala:116)
        at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
        at scala.collection.immutable.List.foreach(List.scala:76)
        at scala.tools.nsc.typechecker.Typers$Typer.applyImplicitArgs(Typers.scala:116)
        at scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:761)
        at scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:733)
        at scala.tools.nsc.typechecker.Implicits$ImplicitSearch.typedImplicit1(Implicits.scala:529)
        at scala.tools.nsc.typechecker.Implicits$ImplicitSearch.typedImplicit0(Implicits.scala:491)
        at scala.tools.nsc.typechecker.Implicits$ImplicitSearch.scala$tools$nsc$typechecker$Implicits$ImplicitSearch$$typedImplicit(Implicits.scala:403)
        at scala.tools.nsc.typechecker.Implicits$ImplicitSearch$ImplicitComputation.tryImplicitInfo$1(Implicits.scala:745)
        at scala.tools.nsc.typechecker.Implicits$ImplicitSearch$ImplicitComputation.rankImplicits(Implicits.scala:748)



---------------
Mirco Dotta
Typesafe - The software stack for applications that scale
PSE-D, 1015 Lausanne, Switzerland
Twitter: @mircodotta








Markus

unread,
Aug 16, 2012, 5:09:46 AM8/16/12
to scala-...@googlegroups.com
Thanks for the quick reply.
Using the latest nightly build solved the problem.

Markus

Sandro Gržičić

unread,
Aug 16, 2012, 10:47:02 AM8/16/12
to scala-...@googlegroups.com
I'd just like to add that I've been using the latest nightly (for 2.9) for several months and during that time it's mostly been perfectly stable and of course it includes all the latest features. :)
Reply all
Reply to author
Forward
0 new messages