Skip to content
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

[Bug]: node_modules/electron/dist/electron exited with signal SIGSEGV #41980

Closed
3 tasks done
AgTech930 opened this issue Apr 27, 2024 · 2 comments
Closed
3 tasks done
Labels

Comments

@AgTech930
Copy link

Preflight Checklist

Electron Version

30.0.1

What operating system are you using?

Ubuntu

Operating System Version

20.04.1-Ubuntu

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

I wish to ensure that the Electron application runs smoothly.

Actual Behavior

An issue arises upon initiating the Electron script.
/home/gaurav/Downloads/op/op-1.1/ui/node_modules/electron/dist/electron exited with signal SIGSEGV

Testcase Gist URL

No response

Additional Information

This is my code

const {app, BrowserWindow, crashReporter} = require('electron');
const { spawn } = require('child_process')
const path = require('node:path');

let mainWindow


function createWindow() {
    mainWindow = new BrowserWindow({
        width:800,
        height:600,
    });
    
    mainWindow.loadFile("index.html");
    mainWindow.maximize();
    mainWindow.removeMenu();
    
    mainWindow.on('closed', function(){
        app.quit()
    });
}

app.whenReady().then(() => {
    createWindow();
    console.log(app.getPath('crashDumps'))
    crashReporter.start({ submitURL: '', uploadToServer: false })

});
@clavin
Copy link
Member

clavin commented Apr 29, 2024

Closing as a duplicate of #41839

@clavin clavin closed this as not planned Won't fix, can't repro, duplicate, stale Apr 29, 2024
@Nantris
Copy link
Contributor

Nantris commented May 8, 2024

I don't believe this should be closed. #41839 mentions maximizing is required to trigger it - but we cannot start our app at all due to this error (and it does not start maximized)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants