Skip to content

Animation with add_vertex() causes regenerate_surface() to hang #6

@calebjacksonhoward

Description

@calebjacksonhoward

I am attempting to create an animation like the animations in the animation section of the documents, but using add_vertex() (which none of the examples use).

When I add a single vertex to my random_graph as a starting point, regenerate_surface() in the update_state() function then hangs.

I have gone into regenerate_surface() and then from there, into cairo_draw(), and then from there found that the hang happens in line 702 of cairo_draw.py:

generator = libgraph_tool_draw.cairo_draw(g._Graph__graph,
                                              _prop("v", g, pos),
                                              _prop("v", g, vorder),
                                              _prop("e", g, eorder),
                                              nodesfirst, vattrs, eattrs, vdefs, edefs, res,
                                              max_render_time, cr)

The first call to regenerate_surface() - on the newly created random_graph() - works fine. calling random_graph() after adding a single vertex hangs. Inspecting the arguments passed to libgraph_tool_draw.cairo_draw() prior to the call shows that the parameters are not changing.

I would dearly like to get this working for an educational video I am trying to put together, but may have to try another library if I cannot get this working. Any help will be greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions