Closed JopSchaap closed 3 years ago
@mitchellolsthoorn any idea?
@gofraser from searching online (https://github.com/docker-library/openjdk/issues/335, https://github.com/docker-library/openjdk/issues/333, https://github.com/docker-library/openjdk/pull/322, https://github.com/docker-library/openjdk/issues/320), the openjdk docker base image removed the libfontmanager.so from the slim image. Apparently, this library is used within the sandbox of EvoSuite. Like @JopSchaap already indicated, the linked issues indicate that we have to switch to the non-slim variants. The only thing is that the images will become 90MB bigger.
Shall I make a quick PR?
I don't think the issue is in the sandbox but in the GuiManager
which tries to force-load the fonts once initially (the sandbox just explicitly allows this to happen), but in any case if using the non-slim variant solves the issue then fine! If it's just a matter of changing to FROM openjdk:11
then I can do this, if it needs more testing a MR would be welcome!
@gofraser I tested it locally on some projects and the code used in the issue. The linked PR (https://github.com/EvoSuite/evosuite/pull/374) fixes the problem. Since we don't have the automatic image set up, I will update the latest images on Docker Hub and back port it to the older versions.
Context
I tried running the docker image evosuite/evosuite:1.1.0-java -11 from dockerhub. It seems to complete every step as it should except for compiling and checking tests. When I tried running Evosuite through the jar file I did not receive an error and the entire test suite was generated.
Steps to Reproduce
Project I am using. level0.zip
gradle build
.docker run -v "${PWD}:/evosuite" evosuite/evosuite:1.1.0-java-11 -class Level -target build/classes/java/main
EvoSuite Arguments
docker run -v "${PWD}:/evosuite" evosuite/evosuite:1.1.0-java-11 -class Level -target build/classes/java/main
Current Result
Additional info
FROM openjdk:11
seemed to fix the problem.