Re: Segfault in tests (was: Goffice documentation)



On Tue, 2010-08-03 at 11:40 +0200, Jean Brefort wrote:
Hi Jon,

There are two demos in the goffice/tests directory: the minimal
pie-demo.c and the more involved go-demo.c.

Thanks for the quick response, these tests looks like a good start.
However, I'm getting a segfault when running the tests in git master.
After building with ./autogen.sh && make && make check

./tests/pie-demo
(lt-pie-demo:26871): GLib-GObject-WARNING **: cannot create instance of
abstract (non-instantiatable) type `GogPlot'
Segmentation fault (core dumped)

And the segfault is from:
96            gog_object_add_by_name (GOG_OBJECT (chart), "Plot",
GOG_OBJECT (pie));

It seems like the reason is that:
95            pie = (GogPlot *) gog_plot_new_by_name ("GogPiePlot");
is returning NULL, but I do not know why that would happen. The issue is
also present when checking out 0.8.8 and 0.8.0. Any clues?

Full output here: http://pastebin.org/444854





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