Usage of Gtk.Button crashes gnome-shell in Wayland session
Fedora 34 / Wayland users were reporting that a extension I have developed (latest version) is crashing, while old one worked fine. I tested it out in libvirt and I could reproduce the error. The new change in my extension was adding a Gtk.Button to a menu in Main.panel statusArea when extension is initializing.
I found out that the gnome-shell crashes if you login with extension enabled but when you enable extension after logging in it works fine. I just have a hunch that it is somehow related to Gtk not being initialize in right time in Wayland session. This only happens when using Wayland.
Extension link: Brightness control using ddcutil
Full journal log when the crash happened: journal.log