gephi / gephi/gephi-plugins

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

Open
#320 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
292
Forks
645
PR merge metrics
No merged PRs in 30d

Description

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
4. 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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.