pharo-spec / Spec-Gtk

Spec GTK bindings for Pharo
13 stars 3 forks source link

Modal dialogs often cause VM crashes #23

Open pavel-krivanek opened 1 year ago

pavel-krivanek commented 1 year ago

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.

| app presenter |
20 timesRepeat: [ 
    app :=  SpApplication new useBackend: #Gtk.
    presenter := SpButtonPresenter newApplication: app.
    presenter action: [ presenter window close ].
    presenter openModal.
].

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.

| app presenter |
20 timesRepeat: [ 
    app :=  SpApplication new useBackend: #Gtk.
    presenter := SpButtonPresenter newApplication: app.
    presenter openModal.
].
guillep commented 1 year ago

Could you post the crash or an excerpt? :)