We expected the crashes to be connected with the callbacks of the dialog buttons but, unfortunately, when we tried to remove these buttons completely, the crashes last, they only appeared less often.
On the other hand, there are no crashes when the dialog contains no callback, and it is closed using the window close button.
The Spec-Gtk dialogs, when opened modal, often cause VM crashes after closing.
How to reproduce
Execute this code, always click on the big button to close the dialog.
We expected the crashes to be connected with the callbacks of the dialog buttons but, unfortunately, when we tried to remove these buttons completely, the crashes last, they only appeared less often. On the other hand, there are no crashes when the dialog contains no callback, and it is closed using the window close button.