From gtk-app-devel Tue Apr 03 11:00:51 2018 From: Emmanuele Bassi Date: Tue, 03 Apr 2018 11:00:51 +0000 To: gtk-app-devel Subject: Re: widget show() / hide() crashes application Message-Id: X-MARC-Message: https://marc.info/?l=gtk-app-devel&m=152275326307520 You're likely trying to call GTK functions from different threads, which is not allowed. You should schedule UI updates in the main thread, using GLib.idle_add(). Ciao, Emmanuele. On 3 April 2018 at 10:28, stfl wrote: > I am writing a Python 3 GStreamer Client application. > I receive fps measurments from fpsdisplaysink as a GStreamer Signal. > If the fps drops too low I dissplay an overlay over the gtksink (which is > connected to the fpsdisplaysink). > > When I show() and hide() the overlayed Gtk.Box sometimes the entire > application crashes. > > I noticed that this happens when showing and hiding goes too close > together. > Also guarding it with 1.5s leads to such a crash. > > After some time of trying I saw this error message which is usually not > displayed. > > > > > > > > -- > Sent from: http://gtk.10911.n7.nabble.com/Gtk-Apps-Dev-f3.html > _______________________________________________ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list > -- https://www.bassi.io [@] ebassi [@gmail.com] _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list