christophgysin / pasystray

PulseAudio system tray
GNU Lesser General Public License v2.1
439 stars 43 forks source link

Important: gtk_widget_event: assertion ... failed #173

Closed aarondill closed 11 months ago

aarondill commented 11 months ago

Error on popup open / mouse interaction with popup:

gtk_widget_event: assertion 'WIDGET_REALIZED_FOR_EVENT (widget, event)' failed`

I've bisected and traced this back to this commit: 58d5a2b9a5d24d93919a8bf3fe5dc11ab498c877

Reproduction:

> make && ./src/pasystray
... (make output)
# Click on icon
(pasystray:41701): Gtk-CRITICAL **: 02:43:23.549: gtk_widget_event: assertion 'WIDGET_REALIZED_FOR_EVENT (widget, event)' failed
... (Repeated)

This error is thrown for every time a key is pressed, or the popup is moused over.

Also, after clicking the icon, I can't click outside the popup to close it anymore, and the escape key only works to close it if I mouse over the popup before I press it.

aarondill commented 11 months ago

This seems to be someone else who had the same issue in the past? https://luigidifraia.wordpress.com/2018/04/03/a-good-reason-to-be-careful-when-giving-a-gtk-widget-focus/

A google search results in 224 results which may be helpful?

aarondill commented 11 months ago

This might actually be an upstream: https://gitlab.gnome.org/GNOME/gtk/-/issues/885 Note: this was reported in 2017, so it doesn't seem like it's gonna be fixed any time soon

However, if there's anything we can do here to improve this, it would be greatly appreciated, as this issue makes pasystray nearly unusable in my case.

christophgysin commented 11 months ago

Thanks for reporting, I'll revert the change.