score:1
i think i've finally figured out what was going on.
i was able to reproduce the problem in the travisci/ci-garnet:packer-1512502276-986baf0 docker container. although to get sbt running i had to find and install the sbt-launch.jar for version 1.1.1 because the installed bootstrapper doesn't work for any version 1.0 or higher. i deleted several folders from the home folder with stuff for other languages to free disk space for downloading artifacts.
after it stalled i took a thread dump of the java process (by sending it a quit signal).
the output included this:
found one java-level deadlock:
=============================
"specs2-6":
waiting to lock monitor 0x00007fc6a4b9fb68 (object 0x00000000997e39f0, a sbt.internal.inc.classpath.classpathfilter),
which is held by "specs2-3"
"specs2-3":
waiting to lock monitor 0x00007fc6d0df7298 (object 0x0000000098f700b0, a sbt.internal.inc.classpath.classpathutilities$$anon$1),
which is held by "specs2-6"
so i knew there was a deadlock which was preventing it from progressing.
after some googling i found a bug for mockito (https://github.com/mockito/mockito/issues/1067).
a workaround is to disable parallelexecution for tests.
score:0
i got the same issue. add to your build.sbt
loglevel := level.debug
so that you can use the log-debug to check what is going in on. in my case sbt was looking for
sbt-chain: module revision found in cache: com.fasterxml.jackson#jackson-parent;2.8
[debug] tried /home/travis/.ivy2/local/com.fasterxml.jackson/jackson-bom/2.8.11/jars/jackson-bom.jar
[debug] tried https://repo1.maven.org/maven2/com/fasterxml/jackson/jackson-bom/2.8.11/jackson-bom-2.8.11.jar
[debug] client error: not found url=https://repo1.maven.org/maven2/com/fasterxml/jackson/jackson-bom/2.8.11/jackson-bom-2.8.11.jar
[debug] tried /home/travis/.sbt/preloaded/com.fasterxml.jackson/jackson-bom/2.8.11/jars/jackson-bom.jar
[debug] tried file:////home/travis/.sbt/preloaded/com/fasterxml/jackson/jackson-bom/2.8.11/jackson-bom-2.8.11.jar
[debug] tried https://repo1.maven.org/maven2/com/fasterxml/jackson/jackson-bom/2.8.11/jackson-bom-2.8.11.jar
[debug] client error: not found url=https://repo1.maven.org/maven2/com/fasterxml/jackson/jackson-bom/2.8.11/jackson-bom-2.8.11.jar
score:1
it's a 10min compiler timeout. maybe the memory limits cause too much swapping.
-xms2048m
-xmx2048m
-xss6m
-xx:maxpermsize=512m
Source: stackoverflow.com
Related Query
- sbt hangs during tests on travis-ci
- How to compile tests with SBT without running them
- How can I get complete stacktraces for exceptions thrown in tests when using sbt and testng?
- How can I skip tests in an SBT build?
- How to have SBT re-run only failed tests
- How to exclude resources during packaging with SBT but not during testing
- Compile tests with SBT and package them to be run later
- ScalaTest on sbt not running any tests
- Debug scala sbt integration tests in IntelliJ
- Make tests in multi project sbt projects run only if tests pass in dependent projects
- How to run tests on every code change in IntelliJ IDEA from Scala sbt project?
- sbt - exclude certain dependency only during publish
- Exclude Specifically Tagged tests from SBT when using ScalaTest
- Excluding a ScalaTest test when calling my tests from within sbt
- How to get a list of defined tests in sbt project in sbt 0.12?
- sbt aggregate coverage reports for unit and integration tests
- How to run sbt tests for debugging when debug is disabled by default?
- "Error during sbt execution: No Scala version specified or detected" with SBT from Homebrew
- Configuring junitxml output for specs2 tests in sbt 0.10
- Run tests in broken project using SBT
- Create assembly jar that contains all tests in SBT project+subprojects
- Creating SBT task to copy directories during compile?
- Configure repo for SBT launcher in Travis build
- Sbt won't run ScalaTest tests
- How to run task before all tests from all modules in sbt
- How to disable dependency resolution during 'package' in sbt
- sbt skip tests in subproject unless running from within that project?
- sbt test-only not picking up jvm option when forking a jvm for tests
- Custom sbt task to run tests by tag
- SBT hangs waiting for orphaned subprocess to complete
More Query from same tag
- Akka - what after an actor has been stopped?
- How to integrate my testbench in chisel with a C++ library?
- Let build.sbt define dependency on another local library
- How to get Future[Seq[Person]] instead of Seq[Future[Person]]
- Scala function transformation
- Humane guidance for sbt DSL
- Keep specific chars from a column of strings (Array[String, Int]) and apply algorithm per group
- Filter List in Functional Programming Style
- Add a cookie in a Play Framework 2.x filter?
- Scala Regex with $ and String Interpolation
- Akka Stream: Combine `Flow[T, T2, M] + Sink[T2, M2]` to get `Sink[T, M2]`
- How to filter a spark dataframe based on occurrence of a value in a column with a condition a date column?
- Artifact is pulled without explicit dependency shown by sbt-dependency-graph
- The usage of `getClass` method in Scala/Java?
- How to use Seq with Cat in Chisel?
- How to solve ambiguous reference to overloaded definition
- Queue implementation in Odersky Scala book. Chapter 19
- Why a Thread.sleep or closing the connection is required after waiting for a remove call to complete?
- IoC container that supports constructor injection with Scala named/default arguments?
- Google Drive: algorithm to compute breadcrumb for a FS where nodes have multiple parents
- Create Map holding a # of appearance for each List element
- How to install and maintain 2 versions of sbt(say 1.2.7 and 1.2.8) on windows 10 without any library issues?
- How to perform join with where clause on previously filtered single record integer value in Scala Spark?
- All Scala futures completed
- How do I run a basic ScalaFX application?
- sequenceU returns G.M[List[G.A]] instead of expected type
- Prepare file path using Java.IO
- What's the cleanest way to turn a TraversableOnce[T] into a Multiset-like or Histogram-ish Map[T, Int]?
- Why SBT custom plugin resolution is slow
- Scala-Chart histrogram with multiple bars per bin