Re: widget show() / hide() crashes application
- From: Emmanuele Bassi <ebassi gmail com>
- To: stfl <ste lendl gmail com>
- Cc: gtk-app-devel-list list <gtk-app-devel-list gnome org>
- Subject: Re: widget show() / hide() crashes application
- Date: Tue, 3 Apr 2018 12:00:51 +0100
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]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]