Getting "test framwork quit unexpectedly" randomly even after JDK is set

Answered

I run my tests using intelliJ. Since yesterday i started noticing that for a particualr git repo cloned to my local system, i get this error at random times. Its like i run my tests for an hour and i suddenly get this error. and i have to change my JDK version in intelliJ->Preferences->Build,Execution and Deployment ->Gradle -> Gradle JVM. Click Apply and OK. the tests run fine for certain amount of time and again the same issue comes

0
7 comments

Does it help if you disable Gradle delegation for running tests? https://i.imgur.com/HpeUaUE.png.

What IntelliJ IDEA version do you use?

0

2022.1

If i disable gradle delegation i get this error "java: Compilation failed: internal java compiler error"

0

What JDK version / vendor / build number do you use for this project? Are there any annotation processors?

Does it help if you update to a more recent JDK build?

0

when ever i get that error i am shifting my JDK version between 8 and 11. If its on JDK 8 and i get that error i shift to JDK 11 and again if i get that error i shift to JDK 8.

0

Internal compiler error can be usually fixed by updating to the most recent JDK build.

0

so are you saying this "test framework quit unexpectedly" is an internal compiler error

 

0

Yes, it happens when the JVM crashes for whatever reason. Just make sure you run the most recent available build for your JDK version.

0

Please sign in to leave a comment.