GNOME Bugzilla – Bug 647677
Seg Fault when applying effects in Gnome3
Last modified: 2011-09-09 14:59:35 UTC
Choosing an effect ends with a seg fault. (cheese:3074): GLib-GObject-CRITICAL **: g_object_get: assertion `G_IS_OBJECT (object)' failed Speicherzugriffsfehler
Thanks for taking the time to report this bug. Without a stack trace from the crash it's very hard to determine what caused it. Can you get us a stack trace? Please see http://live.gnome.org/GettingTraces for more information on how to do so. Thanks in advance!
Created attachment 185968 [details] trace I attached the trace output, made with gdb.
Can you please install debuginfo packages of gstreamer, cheese, glib and clutter and provide us updated traces, tia.
Uhh.. thats hard, in Archlinux are no *-dbg packages.
Here's a stacktrace, cheese built from the git right now :
+ Trace 226774
Thanks.
Something is not right about the generated C code here, cheese-window.c:1625: _tmp0_ = g_object_get_data ((GObject*) (*event).source, "effect"); I get a null (0x0) pointer for that in the debugger. I'm not that good at C programming, and haven't been able to figure out what really should be happening there. But (GObject*) (*event).source is a ClutterTexture, for what it's worth.
Created attachment 187031 [details] [review] Fix crash when user selects an effect Hello As said before by Paul W. Frieds, it seems that when the user clicks on an effect, the source of the event is the texture that shows the effect preview and not it's container (a ClutterBox). Since the effect was "attached" to the container instead of the texture, the value read from the event source is null. This patch "fixes" the problem by attaching the effect to the texture instead of the box. Some questions remain: 1. Does the fact that now the texture references the effect and vice-versa can create a memory leak or does vala manages it correctly? 2. Is it normal that the source of the event is the texture, or is this a bug in clutter?
For info, here are the installed versions of clutter in my computer: clutter 1.6.14-1 clutter-gtk 1.0.0-1 clutter-gst 1.3.8-1
Created attachment 190012 [details] [review] Here's a better patch. Rationale is in the commit message. window: use the right signature for button-release-event callback The signature is (ClutterActor, ClutterEvent). Using the event source there is wrong, as that's not guaranteed to be the same object emitting the callback (i.e. the object emitting could be just forwarding an event coming from one of its children).
Review of attachment 190012 [details] [review]: Thanks for the patch. Please, commit it to master and gnome-3-0.
Thanks, pushed.
*** Bug 652221 has been marked as a duplicate of this bug. ***
*** Bug 650388 has been marked as a duplicate of this bug. ***
*** Bug 649344 has been marked as a duplicate of this bug. ***
*** Bug 653839 has been marked as a duplicate of this bug. ***
*** Bug 655764 has been marked as a duplicate of this bug. ***
*** Bug 657878 has been marked as a duplicate of this bug. ***
*** Bug 658628 has been marked as a duplicate of this bug. ***