Re: Polygon regression?
- From: Jiří Techet <techet gmail com>
- To: Andrew Clayton <andrew digital-domain net>
- Cc: libchamplain-list gnome org
- Subject: Re: Polygon regression?
- Date: Wed, 12 May 2010 23:58:00 +0200
On Tue, May 11, 2010 at 11:12, Andrew Clayton <andrew digital-domain net> wrote:
> Hi,
>
> I have the following function
>
> static void add_a_polygon(ChamplainView *view)
> {
> ChamplainPolygon *polygon;
>
> polygon = champlain_polygon_new();
> champlain_polygon_append_point(polygon, 56.2250, -3.4229);
> champlain_polygon_append_point(polygon, 56.2250, -3.3282);
> champlain_polygon_append_point(polygon, 56.1769, -3.3282);
> champlain_polygon_append_point(polygon, 56.1769, -3.4229);
> champlain_polygon_append_point(polygon, 56.2250, -3.4229);
> g_object_set(polygon, "closed-path", TRUE, NULL);
> g_object_set(polygon, "fill", TRUE, NULL);
> champlain_view_add_polygon(CHAMPLAIN_VIEW(view), polygon);
> g_object_unref(G_OBJECT(polygon));
> }
>
> This was working a few days ago (with libchamplain 0.4.3), however it
> seems an update to 0.4.5 has broken this.
>
> Now when I launch the application I get a segfault
>
> (./map:11880): Clutter-CRITICAL **: clutter_cairo_texture_create: assertion `CLUTTER_IS_CAIRO_TEXTURE (self)' failed
> Segmentation fault
>
> Same problem hits the polygons.c demo program from the
> libchamplain-devel package.
>
> It seems to be the
>
> champlain_view_add_polygon(CHAMPLAIN_VIEW(view), polygon);
>
> line that triggers it. If I comment that line out, the program runs.
>
> Is this a bug or does this work differently now?
>
> Environment is Fedora 12, x86_64 64bit.
>
>
> Cheers,
> Andrew
> _______________________________________________
> libchamplain-list mailing list
> libchamplain-list gnome org
> http://mail.gnome.org/mailman/listinfo/libchamplain-list
>
Hi Andrew,
yes, I'm afraid you are right - right now the 0.4.x branch doesn't
look very stable. There has been a lot of feature development between
0.4.x releases that IMO should have been done on 0.5.x (for future
releases I plan to do _only_ bugfixes on the stable branch). Could you
please create a bug report in bugzilla? I'll look at it after the 0.6
release (in about a weak or so).
Originally I wanted to abandon the 0.4.x branch but I'm afraid that
because we are late with the 0.6 release, all linux distributions have
grabbed the latest release of the 0.4 branch so I'll do some
maintenance for it too.
Thanks,
Jiri
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]