Error during building openmrs core (Corrupted STDOUT by directly writing to native stream)

On a fresh clone of openmrs-core,i pull the latest changes from upstream,and try building using maven clean install ,i then run into Corrupted STDOUT by directly writing to native stream error as seen here in the full logs G:\openmrs\openmrs-core>mvn clean install[INFO] Scanning for projects...[INF - .Will be grate full for any work around to get this fixed!! cc @dkayiwa @ibacher

What’s the output of mvn -v?

thanks @ibacher its

Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f) Maven home: C:\Program Files\apache-maven-3.6.3\bin… Java version: 1.8.0-262, vendor: OpenLogic-OpenJDK, runtime: C:\Program Files\java\jre Default locale: en_US, platform encoding: Cp1252 OS name: “windows 10”, version: “10.0”, arch: “x86”, family: “windows”

Can you try running it again with the -X parameter, e.g. mvn -X clean install.

1 Like

logs are kinder big,i had to use note pad.On running mvn -X clean install i get logs.txt (760.6 KB)

In theory that should’ve given us some more information, but I’m none the wiser for having looked at that.

Do things work if you run mvn clean install -Dfork=false?

1 Like

hi @ibacher,on running the above i get Microsoft Windows [Version 10.0.19041.928](c) Microsoft Corporation. All right -

Ok… two suggestions:

  1. Can you pull the latest changes to Core? @dkayiwa just updated the Jacoco version in core and I suspect that’s the part that’s causing the issue.

If that doesn’t work try:

  1. Comment out this plugin in your local copy of the POM, but please don’t commit that.

PS I’m sorry I don’t have an easy solution for you.

thats ok @ibacher ,on my search too around gooogle i see the error has some relation with Jacoco version ,let me try out the suggestions and see how things go,will let you know,thanks

still breaks with the above, let me continue trying out a couple of suggested solutions online

@ibacher to solve this i have specified the maximum allowed JVM heap size ie added this to the environment variables in windows,Variable name: _JAVA_OPTIONS
and Variable value: -Xmx512M.I can now run mvn clean install successfully thanks much

1 Like

@herbert24 can you confirm that we you change that to a lower value, you get exactly the same error as before?

1 Like

@dkayiwa building this with Xmx100M breaks with out of memory, am trying another value

Xmx200M breaks things while Xmx300M builds successfully

@herbert24 breaks with what error message?

1 Like