Re: [Vala] Vala Clutter example segfaults
- From: Adam B <cruxic gmail com>
- To: vala-list gnome org
- Subject: Re: [Vala] Vala Clutter example segfaults
- Date: Tue, 2 Feb 2010 13:02:52 -0800
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:
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 (
"x", Random.next_double () * stage.width,
"y", Random.next_double () * stage.height / 2
+ stage.height / 2,
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.
] [Thread Prev