p-e-w / argos

Create GNOME Shell extensions in seconds
https://extensions.gnome.org/extension/1176/argos/
1.68k stars 114 forks source link

Gnome crash when config script is updated while menu is already open: Object has already been deallocated #156

Open mdepot opened 9 months ago

mdepot commented 9 months ago

If a shell script in ~/.config/argos is modified (or just touched), the directory monitor inside the enable() function in extension.js will trigger removeButtons() and then addButtons() to refresh the menu options. If this happens while the menu is already open on screen it will crash the Gnome session, sending you all the way back to the login screen. When this happens the following error appears in the log:

Object ... has been already deallocated - impossible to get any property from it. This might be caused by the object having been destroyed from C code using something such as destroy(), dispose(), or remove() vfuncs.

My gnome shell is 3.32.2 on Rocky 8.9, and I'm using the last release of Argos prior to the updates made for Gnome 45.