Skip to content

Segmentation Fault in GraphIO.writeGML #3

Open
@Prezma

Description

@Prezma

The following code causes a segmentation fault:

from ogdf_python import ogdf

G = ogdf.Graph()
GA = ogdf.GraphAttributes(G, ogdf.GraphAttributes.all)
G.newNode()

ogdf.GraphIO.write(GA, "foo.gml", ogdf.GraphIO.writeGML)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In [1], line 8
      5 GA = ogdf.GraphAttributes(G, ogdf.GraphAttributes.all)
      6 G.newNode()
----> 8 ogdf.GraphIO.write(GA, "foo.gml", ogdf.GraphIO.writeGML)

TypeError: static bool ogdf::GraphIO::write(const ogdf::GraphAttributes& GA, const std::string& filename, ogdf::GraphIO::AttrWriterFunc writer = nullptr) =>
    TypeError: none of the 4 overloaded methods succeeded. Full details:
  static bool ogdf::GraphIO::writeGML(const ogdf::ClusterGraph& C, std::ostream& os) =>
    TypeError: could not convert argument 1
  static bool ogdf::GraphIO::writeGML(const ogdf::ClusterGraphAttributes& A, std::ostream& os) =>
    TypeError: could not convert argument 1
  static bool ogdf::GraphIO::writeGML(const ogdf::Graph& G, std::ostream& os) =>
    TypeError: could not convert argument 1
  static bool ogdf::GraphIO::writeGML(const ogdf::GraphAttributes& A, std::ostream& os) =>
    SegmentationViolation: segfault in C++; program state was reset

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions