Title: Segmentation Fault in GraphIO.writeGML · Issue #3 · ogdf/ogdf-python · GitHub
Open Graph Title: Segmentation Fault in GraphIO.writeGML · Issue #3 · ogdf/ogdf-python
X Title: Segmentation Fault in GraphIO.writeGML · Issue #3 · ogdf/ogdf-python
Description: 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) -------------------...
Open Graph Description: 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", og...
X Description: 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...
Opengraph URL: https://github.com/ogdf/ogdf-python/issues/3
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Segmentation Fault in GraphIO.writeGML","articleBody":"The following code causes a segmentation fault:\r\n\r\n```\r\nfrom ogdf_python import ogdf\r\n\r\nG = ogdf.Graph()\r\nGA = ogdf.GraphAttributes(G, ogdf.GraphAttributes.all)\r\nG.newNode()\r\n\r\nogdf.GraphIO.write(GA, \"foo.gml\", ogdf.GraphIO.writeGML)\r\n```\r\n\r\n```\r\n---------------------------------------------------------------------------\r\nTypeError Traceback (most recent call last)\r\nCell In [1], line 8\r\n 5 GA = ogdf.GraphAttributes(G, ogdf.GraphAttributes.all)\r\n 6 G.newNode()\r\n----\u003e 8 ogdf.GraphIO.write(GA, \"foo.gml\", ogdf.GraphIO.writeGML)\r\n\r\nTypeError: static bool ogdf::GraphIO::write(const ogdf::GraphAttributes\u0026 GA, const std::string\u0026 filename, ogdf::GraphIO::AttrWriterFunc writer = nullptr) =\u003e\r\n TypeError: none of the 4 overloaded methods succeeded. Full details:\r\n static bool ogdf::GraphIO::writeGML(const ogdf::ClusterGraph\u0026 C, std::ostream\u0026 os) =\u003e\r\n TypeError: could not convert argument 1\r\n static bool ogdf::GraphIO::writeGML(const ogdf::ClusterGraphAttributes\u0026 A, std::ostream\u0026 os) =\u003e\r\n TypeError: could not convert argument 1\r\n static bool ogdf::GraphIO::writeGML(const ogdf::Graph\u0026 G, std::ostream\u0026 os) =\u003e\r\n TypeError: could not convert argument 1\r\n static bool ogdf::GraphIO::writeGML(const ogdf::GraphAttributes\u0026 A, std::ostream\u0026 os) =\u003e\r\n SegmentationViolation: segfault in C++; program state was reset\r\n```","author":{"url":"https://github.com/Prezma","@type":"Person","name":"Prezma"},"datePublished":"2023-01-30T11:14:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/3/ogdf-python/issues/3"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f28fc6f3-9388-ac38-c950-c1004f3e1b16 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C3CA:14F335:5EE8ADC:7BA2B4B:69754279 |
| html-safe-nonce | 8afe982c69c76e515159297c1ecbe7fd17409d2975612fa3acaf7d4044948d7d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDM0NBOjE0RjMzNTo1RUU4QURDOjdCQTJCNEI6Njk3NTQyNzkiLCJ2aXNpdG9yX2lkIjoiMjc5MzAwMTk4MjkyOTIyNDMxMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 820329d4c5b5b424e91e29ab23f1fc4ff5b57df722e59b155c7de0b98507b73f |
| hovercard-subject-tag | issue:1562235418 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ogdf/ogdf-python/3/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d043018537eb4b573e725c83442482a2946bbebaa9e1a3a1b99e4435d20649dc/ogdf/ogdf-python/issues/3 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d043018537eb4b573e725c83442482a2946bbebaa9e1a3a1b99e4435d20649dc/ogdf/ogdf-python/issues/3 |
| og:image:alt | 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", og... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Prezma |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f |
| turbo-cache-control | no-preview |
| go-import | github.com/ogdf/ogdf-python git https://github.com/ogdf/ogdf-python.git |
| octolytics-dimension-user_id | 4130341 |
| octolytics-dimension-user_login | ogdf |
| octolytics-dimension-repository_id | 293561429 |
| octolytics-dimension-repository_nwo | ogdf/ogdf-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 293561429 |
| octolytics-dimension-repository_network_root_nwo | ogdf/ogdf-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 488b30e96dfd057fbbe44c6665ccbc030b729dde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width