We see the same error message intermittently when running PMD on our Jenkins nodes (Gradle 5.4, JDK 1.8_161, Windows 10)
I haven’t been able to see any pattern to when it happens. It might be more frequent when the nodes are heavily loaded, but it still happens with only one executor and 2 gradle workers.
Thanks posting your problem here and opening an issue. I would like to follow up a couple more questions just to make sure we aren’t hiding a bug in the Native Platform. Could everyone answer the following questions regarding this issue:
1- Is Gradle running inside a Cygwin or msys shell? Or Windows Linux Subsystem?
2- Is the STDOUT/STDERR pipe redirected in any way to a file on disk? If so, where is the file being written (e.g. NFS server, NTFS drive, RAM drive, etc)?
3- Who is calling Gradle? A human at the command line or Jenkins or something else?
4- Is Gradle running inside a container? Is it a Windows or Linux container?
5- Is the output redirected to /dev/null or NUL ?