-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Unable to load global callgraph into memory #138
Comments
This is a GraphsIO.jl bug, not a Graphs.jl. I can reproduce it only when the file is encoded with LF (and not CRLF, otherwise I get a "cannot parse" error). The offender seems to be ParserCombinator.jl which generates an enormous object, and Julia, which can't handle it properly. I will file issues. |
ParseCombinator.jl seems also to be unmaintained, we should maybe find an alternative to it... |
andrewcooke/ParserCombinator.jl#39 might fix it. |
@KristofferC Thanks so much, it was a problem with For others that might have a similar problem, here is what you do. Make sure that you are using the (@v1.7) pkg> activate .
Activating project at `C:\Users\waltz\Documents\PolymorphicGNN`
(PolymorphicGNN) pkg> add https://github.com/andrewcooke/ParserCombinator.jl.git
Cloning git-repo `https://github.com/andrewcooke/ParserCombinator.jl.git`
Updating git-repo `https://github.com/andrewcooke/ParserCombinator.jl.git`
Updating registry at `C:\Users\waltz\.julia\registries\General.toml`
Resolving package versions...
Updating `C:\Users\waltz\Documents\PolymorphicGNN\Project.toml`
[fae87a5f] + ParserCombinator v2.1.1 `https://github.com/andrewcooke/ParserCombinator.jl.git#master`
Updating `C:\Users\waltz\Documents\PolymorphicGNN\Manifest.toml`
[15f4f7f2] + AutoHashEquals v0.2.0
[fae87a5f] + ParserCombinator v2.1.1 `https://github.com/andrewcooke/ParserCombinator.jl.git#master`
Precompiling project...
2 dependencies successfully precompiled in 4 seconds (142 already precompiled)
> using Graphs
> using GraphIO
> using ParserCombinator
> sample_graph() = loadgraph("path-to-awk", "code", GraphIO.DOT.DOTFormat())
> sample_graph() Have a good one, and thanks everyone who is working on this project :). |
Description of bug
I am trying to load global callgraphs of programs represented in Graphviz dot format into memory. Networkx is able to handle this whereas Graphs.jl/GraphsIO.jl is not.
How to reproduce
Detail steps to reproduce the behavior.
Expected behavior
I would expect it to be loaded into memory, as it is in networkx.
Actual behavior
Code demonstrating bug
Demonstrated above.
Version information
Additional context
Loading a global callgraph of the awk program into memory. I wouldn't think that memory would be a problem since there are not so many nodes.
The text was updated successfully, but these errors were encountered: