electron: [Bug]: SIGSEGV crash when maximizing window
Preflight Checklist
- I have read the Contributing Guidelines for this project.
- I agree to follow the Code of Conduct that this project adheres to.
- I have searched the issue tracker for a bug report that matches the one I want to file, without success.
Electron Version
30.0.0-alpha7
What operating system are you using?
Ubuntu
Operating System Version
20.04, running on x11
What arch are you using?
x64
Last Known Working Electron version
30.0.0-alpha6
Expected Behavior
Maximizing/fullscreening the app does not sigfault.
Actual Behavior
Maximizing/fullscreening the window crashes the app.
Testcase Gist URL
This is visible in the default Fiddle template that opens with the app
Additional Information
There is no render-process-gone or child-process-gone event called when it crashes.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 29
- Comments: 43 (23 by maintainers)
Commits related to this issue
- Fix cast in ElectronDesktopWindowTreeHostLinux The frame view of the widget is an `ClientFrameViewLinux` instance only when both `frame` and `client_frame` booleans are set to `true`. Otherwise it is... — committed to indutny-signal/electron by indutny-signal 3 years ago
- fix: fix cast in ElectronDesktopWindowTreeHostLinux (#42179) Fix cast in ElectronDesktopWindowTreeHostLinux The frame view of the widget is an `ClientFrameViewLinux` instance only when both `fram... — committed to electron/electron by indutny-signal 3 years ago
- Fix cast in ElectronDesktopWindowTreeHostLinux The frame view of the widget is an `ClientFrameViewLinux` instance only when both `frame` and `client_frame` booleans are set to `true`. Otherwise it is... — committed to electron/electron by trop[bot] 3 years ago
- Fix cast in ElectronDesktopWindowTreeHostLinux The frame view of the widget is an `ClientFrameViewLinux` instance only when both `frame` and `client_frame` booleans are set to `true`. Otherwise it is... — committed to electron/electron by trop[bot] 3 years ago
- fix: fix cast in ElectronDesktopWindowTreeHostLinux (#42185) Fix cast in ElectronDesktopWindowTreeHostLinux The frame view of the widget is an `ClientFrameViewLinux` instance only when both `fram... — committed to electron/electron by trop[bot] 3 years ago
- fix: fix cast in ElectronDesktopWindowTreeHostLinux (#42184) Fix cast in ElectronDesktopWindowTreeHostLinux The frame view of the widget is an `ClientFrameViewLinux` instance only when both `fram... — committed to electron/electron by trop[bot] 3 years ago
- Fix crash of electron Electron < 30.05 crashes on maximize https://github.com/electron/electron/issues/41839 — committed to deltachat/deltachat-desktop by nicodh 3 years ago
- Fix crash of electron Electron < 30.05 crashes on maximize https://github.com/electron/electron/issues/41839 — committed to deltachat/deltachat-desktop by nicodh 3 years ago
- Fix crash of electron Electron < 30.05 crashes on maximize https://github.com/electron/electron/issues/41839 — committed to deltachat/deltachat-desktop by nicodh 3 years ago
- use stdio binary instead of dc node & update electron to 30 & update min node to 20 (#3567) * use stdio binary instead of dc node * new local instalation docs * move scripts and module to esm app ... — committed to deltachat/deltachat-desktop by Simon-Laux 3 years ago
- Advance to Electron 30.0.5 to get fix for https://github.com/electron/electron/issues/41839 — committed to brimdata/zui by philrz 2 years ago
- Advance to Electron 30.0.5 to get fix for electron#41839 (#3090) Advance to Electron 30.0.5 to get fix for https://github.com/electron/electron/issues/41839 — committed to brimdata/zui by philrz 2 years ago
The cast is bad because in the actuality no
ClientFrameViewLinuxinstance is ever created. Instead it is aNativeFrameViewthat the pointer points to.Can confirm that 30.0.5 runs gracefully. Thanks to everyone involved for a quick fix, especially @indutny-signal.
I can confirm that 30.0.2 also exhibits this issue. We have multiple users complaining about segfaults on launch across various distributions (Arch, Fedora, Debian). Some report that they have a window tiling manager that will also crash on a few older versions of Electron. I personally just tested this out with Manjaro and Plasma, and I can observe that the main window is being drawn properly, but not maximized. However, the app will call maximize immediately after window creation. But the window never actually maximizes, indicating that it is indeed the maximizing step that causes the core dump. Possibly also an interaction with tiling managers, so I think there may be a wider issue that in general relates to how window operations are handled.
EDIT: The bug seems to not appear on the current 29er line Electron version (29.3.2) and that one runs fine for all users who reported segfaults before.
temporary workaround for anyone experiencing this: launch vesktop with
(note: requires, obviously, electron29 to be installed)
30.0.6looks good here. Thanks for the quick attention on this Electron team!@VerteDinde
I’ve just found out that v30.0.4 crashes on Linux on just pure https://github.com/electron/electron-quick-start repo when you just maximize and then de-maximize the window. Make sure it runs v30.0.4 as it doesn’t crash on v30.0.0
when you just maximize and then de-maximize the window. Dump attached (same as taken from the actual app, ieSetBoundsRectstuff in the stack trace): electron-v30.0.4-linux-x64-symbols-dump-10.txt.Noting from investigation @VerteDinde and i did: https://chromium-review.googlesource.com/c/chromium/src/+/5318955 is likely the culprit here!
To avoid confusion and better help devs find this issue, I’m editing the title & original post to be about maximizing rather than fullscreen
Crashing here (Ubuntu) as well since I upgraded to version 30.0.1 from ~29. I see the same SIGSEGV issue.
The issue persists in 30.0.1 as well as 31.0.0-alpha.1 and 31.0.0-alpha.2.