macOS builds stalling w/10 min timeout before installing dependencies (after cache install)

A significant percentage (including last three in a row) of our macOS builds are hitting the 10 min no output timeout, but the logs aren’t very informative as to exactly what’s timing out. On the surface, it’s the command $ java -Xmx32m -version which doesn’t really make any sense.

Failed build logs look like this:

Setting up build cache
75$ java -Xmx32m -version
78No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.

While successful build logs contain:

Setting up build cache
72$ java -Xmx32m -version
73openjdk version "14.0.2" 2020-07-14
74OpenJDK Runtime Environment (build 14.0.2+12-46)
75OpenJDK 64-Bit Server VM (build 14.0.2+12-46, mixed mode, sharing)
76$ javac -J-Xmx32m -version
77javac 14.0.2
78Installing Homebrew Packages

It seems much more likely that it’s actually the Homebrew installation of prerequisites that’s timing out than the java version command, but that’s not what the logs are showing, although perhaps there’s some buffering that’s causing output to be discarded.

Successful build:
Failed builds:

Since the Homebrew install is managed by Travis, is there a way that I can increase the timeout for it?
Any suggestions for how to figure out exactly what’s timing out and/or fix it?

Thanks in advance!


Hey @tfmorris,

Is this still occurring?

Travis CI Staff

@Montana Yes. See, for example, this build from last night:

I migrated the repo to in the hopes that the problem was unique to the .org site, but it’s failing on the .com site as well:


Hello @tfmorris, thanks for your patience. Our Engineers have identified a bug with Java on the Xcode 11.6 image. A fix is on the way and it should be ready by Thursday Pacific Time. Thanks

Thanks for following up! Was the fix deployed on as well? We migrated there since I first reported the problem (partly to see if it would help, but it didn’t).

We are still seeing occasional failures, including both yesterday and the day before:

We had two successful builds in the last couple of days, so the failure is intermittent.

Now that Travis has dropped support for open source software projects, we’ve switched to Github Actions, so we no longer need this fixed.