Open
Description
Hi, I'm unable to run EvoMaster through the JAR file, nor IntelliJ build.
If there are stacktraces of the errors, please paste them here.
* EvoMaster version: 3.4.0
* Loading configuration file from: /Users/miguerodrigu/Personal/University/thesis-evomaster/repos/EvoMaster/core/target/em.yaml
* Initializing...
15:18:52.141 [main] WARN o.t.containers.SeleniumUtils - Failed to determine Selenium version from classpath - will use default version of 2.45.0
* It was not possible to start Chrome in Docker. Make sure you have Docker installed, and that it is up and running, with a working internet connection
org.testcontainers.containers.ContainerLaunchException: Container startup failed
at org.testcontainers.containers.GenericContainer.doStart(GenericContainer.java:349)
at org.testcontainers.containers.GenericContainer.start(GenericContainer.java:322)
at org.evomaster.core.problem.webfrontend.service.BrowserController.startChromeInDocker(BrowserController.kt:37)
at org.evomaster.core.problem.webfrontend.service.WebSampler.initialize(WebSampler.kt:57)
at com.netflix.governator.lifecycle.LifecycleMethods.methodInvoke(LifecycleMethods.java:313)
at com.netflix.governator.lifecycle.LifecycleMethods.methodInvoke(LifecycleMethods.java:298)
at com.netflix.governator.lifecycle.LifecycleManager.startInstance(LifecycleManager.java:266)
at com.netflix.governator.lifecycle.LifecycleManager.add(LifecycleManager.java:175)
at com.netflix.governator.guice.InternalLifecycleModule.onProvision(InternalLifecycleModule.java:81)
at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:117)
at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:66)
at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:93)
at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:296)
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:169)
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:45)
at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:60)
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:169)
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:45)
at com.google.inject.internal.InternalInjectorCreator.loadEagerSingletons(InternalInjectorCreator.java:213)
at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:186)
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:113)
at com.google.inject.internal.InjectorImpl.createChildInjector(InjectorImpl.java:239)
at com.netflix.governator.guice.LifecycleInjector.createChildInjector(LifecycleInjector.java:331)
at com.netflix.governator.guice.LifecycleInjector.createInjector(LifecycleInjector.java:411)
at com.netflix.governator.guice.LifecycleInjector.createInjector(LifecycleInjector.java:352)
at org.evomaster.core.Main$Companion.init(Main.kt:468)
at org.evomaster.core.Main$Companion.initAndRun(Main.kt:194)
at org.evomaster.core.Main$Companion.main(Main.kt:114)
at org.evomaster.core.Main.main(Main.kt)
Caused by: com.github.dockerjava.api.exception.DockerClientException: Could not pull image: [DEPRECATION NOTICE] Docker Image Format v1 and Docker Image manifest version 2, schema 1 support is disabled by default and will be removed in an upcoming release. Suggest the author of docker.io/selenium/standalone-chrome-debug:2.45.0 to upgrade the image to the OCI Format or Docker Image manifest v2, schema 2. More information at https://docs.docker.com/go/deprecated-image-specs/
at com.github.dockerjava.api.command.PullImageResultCallback.checkDockerClientPullSuccessful(PullImageResultCallback.java:97)
at com.github.dockerjava.api.command.PullImageResultCallback.throwFirstError(PullImageResultCallback.java:112)
at com.github.dockerjava.api.async.ResultCallbackTemplate.awaitCompletion(ResultCallbackTemplate.java:93)
at org.testcontainers.images.TimeLimitedLoggedPullImageResultCallback.awaitCompletion(TimeLimitedLoggedPullImageResultCallback.java:58)
at org.testcontainers.images.RemoteDockerImage.resolve(RemoteDockerImage.java:96)
... 36 common frames omitted
* [ERROR] EvoMaster process terminated abruptly. This is likely a bug in EvoMaster. Please copy&paste the following stacktrace, and create a new issue on https://github.com/EMResearch/EvoMaster/issues
java.lang.reflect.InvocationTargetException: invokedynamic: method=public void org.evomaster.core.problem.webfrontend.service.WebSampler.initialize(), target=org.evomaster.core.problem.webfrontend.service.WebSampler@2047981
at com.netflix.governator.lifecycle.LifecycleMethods.methodInvoke(LifecycleMethods.java:316)
at com.netflix.governator.lifecycle.LifecycleMethods.methodInvoke(LifecycleMethods.java:298)
at com.netflix.governator.lifecycle.LifecycleManager.startInstance(LifecycleManager.java:266)
at com.netflix.governator.lifecycle.LifecycleManager.add(LifecycleManager.java:175)
at com.netflix.governator.guice.InternalLifecycleModule.onProvision(InternalLifecycleModule.java:81)
at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:117)
at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:66)
at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:93)
at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:296)
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:169)
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:45)
at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:60)
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:169)
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:45)
at com.google.inject.internal.InternalInjectorCreator.loadEagerSingletons(InternalInjectorCreator.java:213)
at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:186)
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:113)
at com.google.inject.internal.InjectorImpl.createChildInjector(InjectorImpl.java:239)
at com.netflix.governator.guice.LifecycleInjector.createChildInjector(LifecycleInjector.java:331)
at com.netflix.governator.guice.LifecycleInjector.createInjector(LifecycleInjector.java:411)
at com.netflix.governator.guice.LifecycleInjector.createInjector(LifecycleInjector.java:352)
at org.evomaster.core.Main$Companion.init(Main.kt:468)
at org.evomaster.core.Main$Companion.initAndRun(Main.kt:194)
at org.evomaster.core.Main$Companion.main(Main.kt:114)
at org.evomaster.core.Main.main(Main.kt)
Caused by: org.testcontainers.containers.ContainerLaunchException: Container startup failed
at org.testcontainers.containers.GenericContainer.doStart(GenericContainer.java:349)
at org.testcontainers.containers.GenericContainer.start(GenericContainer.java:322)
at org.evomaster.core.problem.webfrontend.service.BrowserController.startChromeInDocker(BrowserController.kt:37)
at org.evomaster.core.problem.webfrontend.service.WebSampler.initialize(WebSampler.kt:57)
at com.netflix.governator.lifecycle.LifecycleMethods.methodInvoke(LifecycleMethods.java:313)
... 26 common frames omitted
Caused by: org.testcontainers.containers.ContainerFetchException: Can't get Docker image: RemoteDockerImage(imageName=selenium/standalone-chrome-debug:2.45.0, imagePullPolicy=DefaultPullPolicy(), imageNameSubstitutor=org.testcontainers.utility.ImageNameSubstitutor$LogWrappedImageNameSubstitutor@b5de9ac)
at org.testcontainers.containers.GenericContainer.getDockerImageName(GenericContainer.java:1371)
at org.testcontainers.containers.GenericContainer.logger(GenericContainer.java:651)
at org.testcontainers.containers.GenericContainer.doStart(GenericContainer.java:331)
... 30 common frames omitted
Caused by: org.testcontainers.containers.ContainerFetchException: Failed to get Docker client for selenium/standalone-chrome-debug:2.45.0
at org.testcontainers.images.RemoteDockerImage.resolve(RemoteDockerImage.java:121)
at org.testcontainers.images.RemoteDockerImage.resolve(RemoteDockerImage.java:28)
at org.testcontainers.utility.LazyFuture.getResolvedValue(LazyFuture.java:17)
at org.testcontainers.utility.LazyFuture.get(LazyFuture.java:39)
at org.testcontainers.containers.GenericContainer.getDockerImageName(GenericContainer.java:1369)
... 32 common frames omitted
Other important info:
- version of EvoMaster (EM) used: 3.4.0
- how EM is run (eg, if from JAR or from one of its OS installers): From downloaded JAR on GitHub
- version of applicable runtimes (eg, JVM, NodeJS and .Net). For Java, can paste the output of
java --version
openjdk 23.0.2 2025-01-21
OpenJDK Runtime Environment Homebrew (build 23.0.2)
OpenJDK 64-Bit Server VM Homebrew (build 23.0.2, mixed mode, sharing)
- command-line options used to run EM:
java -jar evomaster.jar --maxTime 10s --outputFolder ~/Personal/University/thesis-evomaster/EMB/jdk_17_maven/em/embedded/web/spring-petclinic/src/evo
Extra information:
- I'm executing this from a Macbook Pro M3 with Sequoia 15.5
- I'm using Docker with Colima, and using the following settings from Test Container documentation to prevent issues.
colima version 0.8.1 ; git commit: 96598cc5b64e5e9e1e64891642b91edc8ac49d16
runtime: docker
arch: aarch64
client: v28.1.1
server: v27.4.0
While running EvoMaster from IntelliJ with the tag version I'm getting further into the execution of EvoMaster, but I'm having another problem (the Docker image with selenium-chrome errors out):
15:35:09.896 WARN [SeleniumSpanExporter$1.lambda$export$1] - Error while creating session with the driver service. Stopping driver service: Could not start a new session. Response code 500. Message: unknown error: Chrome failed to start: crashed.
(unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
Host info: host: '8cb88e268679', ip: '172.18.0.2'
Build info: version: '4.7.2', revision: '4d4020c3b7'
System info: os.name: 'Linux', os.arch: 'amd64', os.version: '6.8.0-50-generic', java.version: '11.0.17'
Driver info: driver.version: unknown
15:35:09.898 WARN [SeleniumSpanExporter$1.lambda$export$1] - org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: unknown error: Chrome failed to start: crashed.
(unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
The only way I'm able to run evomaster is through its docker image, but that doesn't work for me since I need white box testing since I'm trying to add OpenSearch support