Skip to content

macos-build branch: segmentation faults when closing modal dialogs #51

@klayoutmatthias

Description

@klayoutmatthias

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.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions