Thanks for the fix, Jürg. On Mon, Feb 1, 2010 at 12:43 PM, Jürg Billeter <[email protected]> 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 > segfaults > > near the end of the animation. > > http://live.gnome.org/Vala/ClutterSamples > > > > 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, > > "rotation-angle-z", > rectangles[i].rotation_angle_z, > > "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. > I'd > > 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. > > Jürg > >
_______________________________________________ Vala-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/vala-list
