Re: [Vala] Vala Clutter example segfaults

Thanks for the fix, Jürg.

On Mon, Feb 1, 2010 at 12:43 PM, Jürg Billeter <j bitron ch> wrote:

On Mon, 2010-02-01 at 12:33 -0800, Adam B wrote:
Hello all,

I compiled the clutter example linked from the Vala website and it
near the end of the animation.

If I comment out this code it works:

                animations[i] = rectangles[i].animate (
                        AnimationMode.EASE_OUT_BOUNCE, 3000,
                        "x", Random.next_double () * stage.width,
                        "y", Random.next_double () * stage.height / 2
                                                   + stage.height / 2,
                        "opacity", 0.0);

Other wise it segfaults on the first iteration (i == 0).

I'm using Vala 0.7.9 and Clutter 1.0.6-0ubuntu1 on Ubuntu Karmic AMD64.
try it on the latest Clutter but I can't find packages for that.

Can anybody reproduce this?  Is it Vala's fault or Clutter's?

It's a bug in the above code snippet, "opacity" is expecting a guchar,
not a double. Replacing 0.0 by 0 fixes the issue. I've updated the wiki.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]