Gradle hangs if worker process fails with e.g. OutOfMemory exception


(jeppe) #1

As I mentioned here: http://forums.gradle.org/gradle/topics/builds_hangs_while_running_tests

it seems gradle doesn’t always behave nicely when the worker process fails with an exception.


(Torben Ruby) #2

I also have this problem. It is not security manager related. The builds process simply hangs with no cpu use. I can work around it by adding

test {

forkEvery 1000

}

The project has around 5000 tests.


(Peter Niederwieser) #3

Gradle 1.4 fixes several such problems. Can you try with 1.4-rc-2?


(Torben Ruby) #4

1.4-rc-2 fixed the issue. Thanks.