jeff@ubuntu:~/Desktop/diacanvas2-0.14.4/demos$
./test-canvas
TEST-Message: start of main...
Dumping canvas 'canvas':
+ DiaCanvasGroup (0x0x8090020/1)
TEST-Message: creating object...
(lt-test-canvas:18966): DiaCanvas2-WARNING **: No
transaction
(lt-test-canvas:18966): DiaCanvas2-WARNING **: No
transaction
TEST-Message: Visibility = 1
TEST-Message: Item destroyed: DiaCanvasLine at 0x0x8095100
(lt-test-canvas:18966): GLib-GObject-WARNING **:
invalid unclassed pointer in cast to `GObject'
TEST-ERROR **: file test-canvas.c: line 886 (main):
assertion failed: (G_OBJECT (item)->ref_count == 1)
aborting...
Abandon
Logged In: NO
Found the same problem on FC4, although all of the unit
tests run OK.
Here's some GDB spew from the time of the crash:
862 g_assert (G_OBJECT (item)->ref_count == 1);
(gdb)
866 dia_canvas_item_connect (box,
item->handles->data);
(gdb)
(test-canvas:7261): DiaCanvas2-WARNING **: No transaction
882 dia_canvas_item_move (item, 100.0, 100.0);
(gdb)
884 g_signal_connect (item, "notify::parent",
G_CALLBACK (visible_cb), NULL);
(gdb)
885 g_object_unref (item);
(gdb)
(test-canvas:7261): DiaCanvas2-WARNING **: No transaction
TEST-Message: Visibility = 1
TEST-Message: Item destroyed: DiaCanvasLine at 0x0x8933f98
886 g_assert (G_OBJECT (item)->ref_count == 1);
(gdb)
Logged In: YES
user_id=1754521
Originator: NO
ithink tha t the test fails because there some wrong when make the fourth an fiveth object
on test-canvas.c
funtion: main (int argc, char* argv[])
on the code, when you add the second line (4th object)
and the clock(5th) object. you have to do some minor changes
or coment that code.
make
./test-canvas
and funtion :)