Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
macos-build branch: segmentation faults when closing modal dialogs #51
Upon closing modal dialogs (like the assistant), segmentation faults are observed.
The stack trace points to a place inside the event handler, specifically the QTimerEvent handling. Apparently, some things are messed up in the menu area.
Experiments show that the menu synchronisation is causing this issue. In this step, the main menu is cleared and rebuilt from scratch. Apparently this is not allows on MacOS. Probably because of the merging of the application menu with the system menu.
Further experiments show that the issue can be avoided if remove/add sequences are avoided on the menus. Such sequences happen inside the synchronization algorithm to establish a certain order of menu items.
Just adding or just removing items seems not to cause any problems.
So a quick solution is to disable reordering for menus. New items will always appear at the menu end initially. This happens when a new macro or package is added. Upon restart of the application, the menu is built from scratch and the proper order is established.