New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Electron SIGSEGV Error When Running in Docker Container #41975
Comments
Could you please attach a crash dump to help us get more information? You can collect them by adding the following snippet to your main process code, before app.whenReady:
Then reproduce the crash, zip up the crash dumps directory and attach it here. |
I was able to resolve the issue by following these steps: Setting Up xvfb and Electron:
By this time, there is no more error with npm start however no window is appearing. The solution for the window is Configuring XQuartz on macOS:
Inside the Docker container, test X11 forwarding with: I've tested this setup successfully |
Issue Description:
I am trying to run an Electron application inside a Docker container, but I encounter the following error:
Electron Version: 13.6.9
Docker Version: 25.0.3
Operating System: MacOS
Questions:
What could be causing the SIGSEGV signal when running Electron in Docker?
How can I troubleshoot and resolve this issue to have Electron running successfully inside a Docker container?
Expected Behavior:
I expect the Electron application to run successfully inside the Docker container, but it exits with a SIGSEGV signal.
Steps Taken:
I have used a Dockerfile based on a Debian stretch image to set up the necessary environment for Electron, including installing X11 libraries and other dependencies. Here is the Dockerfile I used:
Dockerfile
The text was updated successfully, but these errors were encountered: