[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtk-app-devel
Subject:    Re: widget show() / hide() crashes application
From:       Emmanuele Bassi <ebassi () gmail ! com>
Date:       2018-04-03 11:00:51
Message-ID: CALnHYQGmGpGKkZzP+05unP0pOnWYtkWwgh9BaK+vRbywAdU2kg () mail ! gmail ! com
[Download RAW message or body]

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 <ste.lendl@gmail.com> 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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic