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]: Crash on app.exit()
#29260
Comments
Please attach a crash dump. You can collect them by adding the following snippet to your main process code, before app.whenReady: const { app, crashReporter } = require('electron')
console.log(app.getPath('crashDumps'))
crashReporter.start({ submitURL: '', uploadToServer: false }) Then reproduce the crash, zip up the crash dumps directory and attach it here. |
Looks like it's crashing due to Here's the abridged stack trace from the crashing thread:
First Electron stack frame is
which calls electron/shell/browser/native_window_mac.mm Line 542 in 343a879
which seems like it could plausibly be the locus of the issue. |
@codebytere This still happens with Electron v17. Could you reopen this? Here is a dump: crash.zip |
Symbolicated crash dump:
|
Just ran and see this:
Note: i see no crash with |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
This appears no longer to happen on latest supported versions so i'm closing it out. |
Preflight Checklist
Electron Version
12.0.8
What operating system are you using?
macOS
Operating System Version
10.15.7
What arch are you using?
x64
Last Known Working Electron version
11.3.0
Expected Behavior
App normally quits without an error.
Actual Behavior
App crashes:
Testcase Gist URL
No response
Additional Information
How to reproduce
I tried to minimize reproduction, but I could not. Very simple program did not cause this issue. So I describe how I caused this issue with my application. Frequency is 100%.
At first, please fetch my app repository and build the app.
git clone https://github.com/rhysd/tweet-app.git cd ./tweet-app git checkout ef03e5311c1ee5e29750f730daa934cacb0adc03 npm install npm run build
Launch the application.
Find 'Quit' menu item in menu bar and click it. App will crash immediately.
Here is a full text of crash report:
At first I thought this is the same issue as #25983 but it seems a different issue as far as looking at stacktrace.
Note that replacing
app.exit
withapp.quit
can avoid this crash at this line.The text was updated successfully, but these errors were encountered: