-
-
Notifications
You must be signed in to change notification settings - Fork 311
🐞QMenu causes the application to crash #1012
Copy link
Copy link
Open
Description
Describe the bug
If you make a simple application with a QMenu, and then call a lot of window resize events, then when you further hover over the menu, the application collapses with an error:
/c/Program Files/nodejs/npm: line 44: 9202 Segmentation fault "$NODE_EXE" "$NPM_CLI_JS" "$@"
To Reproduce
Run this code then resize the window like in the video:
import { QMainWindow, QMenuBar, QMenu, QAction } from '@nodegui/nodegui';
const win = new QMainWindow();
const menuBar = new QMenuBar();
win.setMenuBar(menuBar);
const fileMenu = new QMenu();
fileMenu.setTitle('File');
const newAction = new QAction();
newAction.setText('New');
const openAction = new QAction();
openAction.setText('Open');
fileMenu.addAction(newAction);
fileMenu.addAction(openAction);
menuBar.addMenu(fileMenu);
win.show();
(global as any).win = win;issue.mp4
Expected behavior
App should be fine
Desktop (please complete the following information):
- OS: Windows
- NodeGUI version: 0.61.0
- OS Version: 10
Additional context
In fact, it’s not even about resizing, it’s just that it’s easy to catch an error on it with this minimal code for reproduction.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels