Skip to content
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

Bluesky Gephi Plugin: IllegalArgumentException: Node id=-1 is invalid #320

Open
simosathan9 opened this issue Dec 17, 2024 · 0 comments
Open

Comments

@simosathan9
Copy link

simosathan9 commented Dec 17, 2024

The same issue was previously reported and resolved in Issue #238 .

Expected Behavior

Open project file and initialize graph.

Current Behavior

When importing a network with less than approximately 20.000 nodes the graph is initialized. When I attempt to open a larger project file that contains more than 30.000 nodes I get the following exception

java.lang.IllegalArgumentException: Node id=-1 is invalid
at org.gephi.graph.impl.NodeStore.checkValidId(NodeStore.java:549)
at org.gephi.graph.impl.NodeStore.get(NodeStore.java:123)
at org.gephi.graph.impl.Serialization.deserializeEdge(Serialization.java:420)
at org.gephi.graph.impl.Serialization.deserialize(Serialization.java:2063)
at org.gephi.graph.impl.Serialization.deserializeGraphStore(Serialization.java:358)
at org.gephi.graph.impl.Serialization.deserialize(Serialization.java:2075)
at org.gephi.graph.impl.Serialization.deserializeGraphModel(Serialization.java:256)
at org.gephi.graph.api.GraphModel$Serialization.read(GraphModel.java:151)
at org.gephi.graph.GraphPersistenceProvider.readBytes(GraphPersistenceProvider.java:90)
at org.gephi.project.io.LoadTask.readWorkspaceChildrenBytes(LoadTask.java:366)
at org.gephi.project.io.LoadTask.execute(LoadTask.java:160)
Caused: org.gephi.project.api.GephiFormatException: Gephi failed importing the project.

Exception: IllegalArgumentException : Node id=-1 is invalid
File: org.gephi.graph.impl.NodeStore
Line : 549
at org.gephi.project.io.LoadTask.execute(LoadTask.java:205)
at org.gephi.project.impl.ProjectControllerImpl.lambda$openProject$3(ProjectControllerImpl.java:139)
at org.gephi.utils.longtask.api.LongTaskExecutor$RunningLongTask.call(LongTaskExecutor.java:338)
at org.gephi.utils.longtask.api.LongTaskExecutor.execute(LongTaskExecutor.java:179)
at org.gephi.utils.longtask.api.LongTaskExecutor.execute(LongTaskExecutor.java:165)
at org.gephi.project.impl.ProjectControllerImpl.openProject(ProjectControllerImpl.java:138)
at org.gephi.desktop.project.ProjectControllerUIImpl.lambda$openFile$8(ProjectControllerUIImpl.java:611)
[catch] at org.gephi.utils.longtask.api.LongTaskExecutor$RunningLongTask.call(LongTaskExecutor.java:336)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)

Possible Solution

Steps to Reproduce

  1. Run Bluesky Gephi plugin
  2. Save network
  3. Close and try reopen project file/ find project file won't load graph

Your Environment

  • Gephi Version used: Gephi 0.10.0
  • Plugin Version used: 0.1.0
  • Operating System: macOS Sonoma 14.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant