Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StackOverflow error in the presentation compiler #7221

Closed
scabug opened this issue Mar 6, 2013 · 2 comments
Closed

StackOverflow error in the presentation compiler #7221

scabug opened this issue Mar 6, 2013 · 2 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Mar 6, 2013

The presentation compiler may recurse too much in pollForWork. This may happen if a lot of ask calls (interrupts) are queued, and the PC thread needs to service all of them before going further.

See #1001407.

java.lang.StackOverflowError
	at scala.reflect.internal.Symbols$Symbol.nameString(Symbols.scala:2318)
	at scala.tools.refactoring.common.PimpedTrees$TreeMethodsForPositions.nameString(PimpedTrees.scala:319)
	at scala.tools.refactoring.common.PimpedTrees$TreeMethodsForPositions.namePosition(PimpedTrees.scala:224)
	at scala.tools.eclipse.semantichighlighting.classifier.SafeSymbol$$anonfun$5.apply(SafeSymbol.scala:111)
	at scala.tools.eclipse.semantichighlighting.classifier.SafeSymbol$$anonfun$5.apply(SafeSymbol.scala:111)
	at scala.tools.nsc.util.InterruptReq.execute(InterruptReq.scala:26)
	at scala.tools.nsc.interactive.Global.pollForWork(Global.scala:340)
	at scala.tools.nsc.interactive.Global.pollForWork(Global.scala:345)
	at scala.tools.nsc.interactive.Global.pollForWork(Global.scala:345)
	at scala.tools.nsc.interactive.Global.pollForWork(Global.scala:345)
	at scala.tools.nsc.interactive.Global.pollForWork(Global.scala:345)
	at scala.tools.nsc.interactive.Global.pollForWork(Global.scala:345)
	at scala.tools.nsc.interactive.Global.pollForWork(Global.scala:345)
	at scala.tools.nsc.interactive.Global.pollForWork(Global.scala:345)
	at scala.tools.nsc.interactive.Global.pollForWork(Global.scala:345)
	at scala.tools.nsc.interactive.Global.pollForWork(Global.scala:345)
	at scala.tools.nsc.interactive.Global.pollForWork(Global.scala:345)
	at scala.tools.nsc.interactive.Global.pollForWork(Global.scala:345)
...
@scabug
Copy link
Author

scabug commented Mar 6, 2013

Imported From: https://issues.scala-lang.org/browse/SI-7221?orig=1
Reporter: @dragos
Affected Versions: 2.9.3, 2.10.1-RC3, 2.10.1

@scabug
Copy link
Author

scabug commented Nov 19, 2013

@huitseeker said:
scala/scala#3154

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants