Getting "test framwork quit unexpectedly" randomly even after JDK is set
已回答
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
请先登录再写评论。
Does it help if you disable Gradle delegation for running tests? https://i.imgur.com/HpeUaUE.png.
What IntelliJ IDEA version do you use?
2022.1
If i disable gradle delegation i get this error "java: Compilation failed: internal java compiler error"
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?
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.
Internal compiler error can be usually fixed by updating to the most recent JDK build.
so are you saying this "test framework quit unexpectedly" is an internal compiler error
Yes, it happens when the JVM crashes for whatever reason. Just make sure you run the most recent available build for your JDK version.