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

Crasher when running with parallelism enabled #913

Closed
lihaoyi opened this issue Jun 1, 2020 · 1 comment
Closed

Crasher when running with parallelism enabled #913

lihaoyi opened this issue Jun 1, 2020 · 1 comment

Comments

@lihaoyi
Copy link
Member

lihaoyi commented Jun 1, 2020

This is happening non-deterministically on the Hands-on Scala Programming build, when I try to use -j 8 to build all 4 distributable copies of the book in parallel. Note sure if user error or Mill bug, but even if user error it would be nice to have a better error message

[#2] Exception in thread "main" java.lang.Exception: Duplicated item inserted into OrderedSet: mill.define.Task$Sequence@59405dfd
[#2]    at mill.api.AggWrapper$Agg$Mutable.append(AggWrapper.scala:56)
[#2]    at mill.api.AggWrapper$Agg$.$anonfun$from$1(AggWrapper.scala:43)
[#2]    at scala.collection.immutable.VectorStatics$.foreachRec(Vector.scala:1794)
[#2]    at scala.collection.immutable.Vector.foreach(Vector.scala:1800)
[#2]    at scala.collection.IterableOnceExtensionMethods$.foreach$extension(IterableOnce.scala:152)
[#2]    at mill.api.AggWrapper$Agg$.from(AggWrapper.scala:43)
[#2]    at mill.eval.Evaluator.parallelEvaluate(Evaluator.scala:238)
[#2]    at mill.eval.Evaluator.evaluate(Evaluator.scala:78)
[#2]    at mill.main.RunScript$.evaluate(RunScript.scala:202)
[#2]    at mill.main.RunScript$.$anonfun$evaluateTasks$1(RunScript.scala:188)
[#2]    at scala.util.Either.map(Either.scala:382)
[#2]    at mill.main.RunScript$.evaluateTasks(RunScript.scala:187)
[#2]    at mill.main.RunScript$.$anonfun$runScript$4(RunScript.scala:66)
[#2]    at ammonite.util.Res$Success.flatMap(Res.scala:62)
[#2]    at mill.main.RunScript$.runScript(RunScript.scala:65)
[#2]    at mill.main.MainRunner.$anonfun$runScript$1(MainRunner.scala:115)
[#2]    at mill.main.MainRunner.watchLoop2(MainRunner.scala:64)
[#2]    at mill.main.MainRunner.runScript(MainRunner.scala:90)
[#2]    at mill.MillMain$.main0(MillMain.scala:239)
[#2]    at mill.MillMain$.main(MillMain.scala:30)
[#2]    at mill.MillMain.main(MillMain.scala)
@lefou
Copy link
Member

lefou commented Sep 17, 2021

This is probably fixed in recent versions.

@lefou lefou closed this as completed Sep 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants