pentamassiv / gtk4-layer-shell-gir

Unsafe bindings and a safe wrapper for gtk4-layer-shell, automatically generated from a .gir file
MIT License
23 stars 2 forks source link

Window.set_visible segfault with gtk4_layer_shell #6

Closed fr33zing closed 1 year ago

fr33zing commented 1 year ago

Bug description

Segfault only occurs after using gtk4_layer_shell::init_for_window to setup a window. Using gtk::Window.set_visible then has a small chance to cause a segfault. I've included a minimal repro to create a window, initialize it with layer shell, and then toggle its visibility rapidly in order to make the segfault occur faster.

Further details

For further details including repro code and logs, please see here:

https://github.com/gtk-rs/gtk4-rs/issues/1402

fr33zing commented 1 year ago

Determined that this is not an issue with gtk4-layer-shell-gir, see here: https://github.com/gtk-rs/gtk4-rs/issues/1402#issuecomment-1585198845