Repository navigation
Closed
Description
- Electron Version: 2.0.7
- Operating System (Platform and Version): Windows 10
- Last known working Electron version: possibly 1.7.x
Expected Behavior
Updating menu while visible should not crash when hovering over it
Actual behavior
In VSCode we recently added code to update the main menu bar more frequently right after startup. If a user manages to interact with the menu while it is being replaced, chances are a crash comes up.
The crash reveals some details when using a debug build of 2.0.7:
ui_base.dll!0000028cc4e233f5()
views.dll!0000028cc50f4be3()
electron.exe!atom::MenuDelegate::SelectionChanged(views::MenuItemView * menu) Line 88
at c:\gitdevelopment\electron\atom\browser\ui\views\menu_delegate.cc(88)
views.dll!0000028cc50ddabb()
views.dll!0000028cc50d7abd()
views.dll!0000028cc50d9d4d()
views.dll!0000028cc50e7b90()
views.dll!0000028cc51f79bb()
views.dll!0000028cc529dd71()
events.dll!0000028cbfbfd413()
events.dll!0000028cbfbfa333()
events.dll!0000028cbfbfae02()
events.dll!0000028cbfbfaa16()
events.dll!0000028cbfbfa4d4()
events.dll!0000028cbfbfe274()
events.dll!0000028cbfc0070a()
events.dll!0000028cbfc00bf8()
views.dll!0000028cc52bc3ec()
views.dll!0000028cc5226dd4()
views.dll!0000028cc522b584()
views.dll!0000028cc521319a()
views.dll!0000028cc522ef03()
gfx.dll!0000028cc01bce9c()
gfx.dll!0000028cc01ba345()
[External Code]
base.dll!0000028cb2f91526()
base.dll!0000028cb2f9164b()
base.dll!0000028cb2f90983()
base.dll!0000028cb2f91f8d()
base.dll!0000028cb2f870f0()
base.dll!0000028cb308ec8f()
content.dll!0000028cba8733c9()
content.dll!0000028cba875af7()
content.dll!0000028cba87d6f4()
content.dll!0000028cba862e20()
content.dll!0000028cbd01e794()
content.dll!0000028cbd01e5f3()
content.dll!0000028cbd01b80f()
embedder.dll!0000028cc9a2f9d2()
content.dll!0000028cbd01be86()
electron.exe!wWinMain(HINSTANCE__ * instance, HINSTANCE__ * __formal, wchar_t * cmd, int __formal) Line 153
at c:\gitdevelopment\electron\atom\app\atom_main.cc(153)
[External Code]
To Reproduce
I still was not able to reproduce this outside of VSCode. But for VSCode the steps are:
- start VSCode
- right when the "File" menu shows up, click it
- move the mouse up and down so that menu items get selected
- wait for the application to crash after a while

Activity
bpasero commentedon Aug 20, 2018
Minimal repro (though different crash it seems): https://gist.github.com/bpasero/dd1290a862368e0590016a16065d29c7
Steps:
bpasero commentedon Aug 20, 2018
I believe a good solution would be to implement somthing like #13966 for Windows and Linux as well.
codebytere commentedon Aug 20, 2018
@bpasero does this happen on 3.0 betas as well?
bpasero commentedon Aug 21, 2018
@codebytere yes, reproduces with 3.0 beta 6 as well.
sofianguy commentedon Aug 9, 2019
@bpasero is this bug happening on version 4.x or later?
bpasero commentedon Aug 9, 2019
We no longer use the native menu on Electron.
patsimm commentedon Sep 5, 2019
@sofianguy Yes this is still happening to us. Just testet with version 4.x, 5.x and 6.x. I would vote for reopening this issue.
Edit: Also this happens on linux and windows but not on macOS
electron-triage commentedon Mar 9, 2021
The Electron version reported on this issue is no longer supported. See our supported versions documentation.
If this is still reproducible on a supported version, please open a new issue with any other new information that a maintainer should know.
Thank you for taking the time to report this issue and helping to make Electron better! Your help is appreciated.