Skip to content

[πŸ› Bug]: A fatal error has been detected by the Java Runtime EnvironmentΒ #2643

@KiithNabaal

Description

@KiithNabaal

What happened?

I get strange intermittent errors from a Rust server I have deployed on a Microsoft Azure Container App, which connects to a Selenium standalone-chrome container (also on an Azure container app) to do some web automation. Specifically, the Rust server will say it cannot connect to the standalone-chrome container with no indication as to what the problem is. I ran an experiment locally to see if I can reproduce the issue, and while viewing the container's run output in Docker Desktop it reported (truncated, see logs below):

2025-02-05 16:52:31 #
2025-02-05 16:52:31 # A fatal error has been detected by the Java Runtime Environment:
2025-02-05 16:52:31 #
2025-02-05 16:52:31 # SIGSEGV (0xb) at pc=0x00007ffffe936333, pid=58, tid=154

which terminated the Selenium connection I had. I didn't do anything other than try to establish a connection and it immediately crashed. This doesn't happen all of the time; only seemingly randomly... but it does feel like this happens on a first run, and is a bit smoother afterwards. So ex: it crashes, I restart the container and try to connect again, and then it works.

I also checked the logs for the container running Selenium standalone-chrome, but don't see the same output as above, although I am not sure if that would be caught by Azure? My laptop has significantly more resources than what we allocate to any Azure container.

I understand the error may not be fixable by Selenium devs, but was hoping maybe other people have seen this or any pointers on how to proceed?

Any help is appreciated.

Command used to start Selenium Grid with Docker (or Kubernetes)

docker pull --platform linux/x86_64 selenium/standalone-chrome:131.0

Then opened up Docker Desktop and:
Images > click on selenium/standalone-chrome > run > mapped port 4444:4444 (so I could view the dashboard) and container name to "chromedriver"

Relevant log output

2025-02-05 16:21:46 display-name = "chrome"
2025-02-05 16:21:46 stereotype = '{"browserName": "chrome", "browserVersion": "132.0", "platformName": "Linux", "goog:chromeOptions": {"binary": "/usr/bin/google-chrome"}, "se:containerName": "18d8878d37e8", "container:hostname": "18d8878d37e8"}'
2025-02-05 16:21:46 max-sessions = 1
2025-02-05 16:21:46 
2025-02-05 16:21:46 Starting Selenium Grid Standalone...
2025-02-05 16:21:46 Appending Selenium option: --tracing false
2025-02-05 16:21:46 Tracing is disabled
2025-02-05 16:21:46 Using JAVA_OPTS: -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/opt/selenium/logs  -Dwebdriver.remote.enableTracing=false -Dwebdriver.httpclient.version=HTTP_1_1
2025-02-05 16:21:47 Feb 05, 2025 9:21:47 PM org.openqa.selenium.grid.log.LoggingOptions getTracer
2025-02-05 16:21:47 INFO: Using null tracer
2025-02-05 16:21:47 Feb 05, 2025 9:21:47 PM org.openqa.selenium.grid.log.LoggingOptions getTracer
2025-02-05 16:21:47 INFO: Using null tracer
2025-02-05 16:21:47 Feb 05, 2025 9:21:47 PM org.openqa.selenium.grid.node.config.NodeOptions getSessionFactories
2025-02-05 16:21:47 INFO: Detected 12 available processors
2025-02-05 16:21:47 Feb 05, 2025 9:21:47 PM org.openqa.selenium.grid.node.config.NodeOptions report
2025-02-05 16:21:47 INFO: Adding chrome for {"browserName": "chrome","browserVersion": "132.0","container:hostname": "18d8878d37e8","goog:chromeOptions": {"binary": "\u002fusr\u002fbin\u002fgoogle-chrome"},"platformName": "linux","se:containerName": "18d8878d37e8","se:noVncPort": 7900,"se:vncEnabled": true} 1 times
2025-02-05 16:21:47 Feb 05, 2025 9:21:47 PM org.openqa.selenium.grid.node.Node <init>
2025-02-05 16:21:47 INFO: Binding additional locator mechanisms: relative
2025-02-05 16:21:47 Feb 05, 2025 9:21:47 PM org.openqa.selenium.grid.distributor.GridModel setAvailability
2025-02-05 16:21:47 INFO: Switching Node cde4e502-5a65-475e-b970-2750496d8626 (uri: http://172.17.0.2:4444) from DOWN to UP
2025-02-05 16:21:47 Feb 05, 2025 9:21:47 PM org.openqa.selenium.grid.distributor.local.LocalDistributor add
2025-02-05 16:21:47 INFO: Added node cde4e502-5a65-475e-b970-2750496d8626 at http://172.17.0.2:4444. Health check every 120s
2025-02-05 16:21:47 Feb 05, 2025 9:21:47 PM org.openqa.selenium.grid.commands.Standalone execute
2025-02-05 16:21:47 INFO: Started Selenium Standalone 4.28.1 (revision 73f5ad48a2): http://172.17.0.2:4444
2025-02-05 16:26:15 #
2025-02-05 16:26:15 # A fatal error has been detected by the Java Runtime Environment:
2025-02-05 16:26:15 #
2025-02-05 16:26:15 #  SIGSEGV (0xb) at pc=0x00007ffffe938370, pid=58, tid=142
2025-02-05 16:26:15 #
2025-02-05 16:26:15 # JRE version: OpenJDK Runtime Environment (17.0.13+11) (build 17.0.13+11-Ubuntu-2ubuntu124.04)
2025-02-05 16:26:15 # Java VM: OpenJDK 64-Bit Server VM (17.0.13+11-Ubuntu-2ubuntu124.04, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
2025-02-05 16:26:15 # Problematic frame:
2025-02-05 16:26:15 # V  [libjvm.so+0x748370]  G1ParScanThreadState::steal_and_trim_queue(GenericTaskQueueSet<OverflowTaskQueue<ScannerTask, (MEMFLAGS)5, 131072u>, (MEMFLAGS)5>*)+0x1e0
2025-02-05 16:26:15 #
2025-02-05 16:26:15 # No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
2025-02-05 16:26:15 #
2025-02-05 16:26:15 # An error report file with more information is saved as:
2025-02-05 16:26:15 # /tmp/hs_err_pid58.log
2025-02-05

Operating System

macOS Sonoma 14.4

Docker Selenium version (image tag)

131.0

Selenium Grid chart version (chart version)

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions