Can't import the same file twice in Welcome window
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| Gephi |
Fix Released
|
Low
|
Unassigned | |
| 0.7 |
Fix Released
|
Low
|
Unassigned |
Bug Description
Way to reproduce:
* Launch Gephi
* Open Les_Miserable.gexf from the Welcome window
* Open this window again and try to import the same file.
[Fatal Error] :1:1: Premature end of file.
java.lang.
at org.gephi.
at org.gephi.
at java.util.
at java.util.
at java.util.
at java.util.
at java.util.
at java.lang.
Caused by: java.lang.
at org.gephi.
at org.gephi.
... 7 more
Caused by: java.lang.
at org.gephi.
at org.gephi.
at org.gephi.
at org.gephi.
... 8 more
Changed in gephi: | |
milestone: | none → 0.7alpha4 |
importance: | Undecided → Low |
Christian Tominski (ct-informatik) wrote : | #1 |
Eduardo Ramos (eduramiba) wrote : | #2 |
Thanks for the patch, the fix is now commited.
Changed in gephi: | |
status: | New → Fix Committed |
Changed in gephi: | |
status: | Fix Committed → Fix Released |
I re-open this bug, as the fix is no longer valid in Gephi 0.7beta.
It is still a premature end of file.
Changed in gephi: | |
milestone: | 0.7alpha4 → 0.7beta |
milestone: | 0.7beta → 0.7alpha4 |
tags: | added: import |
Changed in gephi: | |
status: | Fix Released → Confirmed |
Can't reproduce this bug again, it may have been solved recently on the fly...
Changed in gephi: | |
status: | Confirmed → Fix Committed |
Christian Tominski (ct-informatik) wrote : | #5 |
I've checked again. The bug is solved indeed, the stream is reset to avoid EOF when reading a file for the second time.
Changed in gephi: | |
status: | Fix Committed → Fix Released |
The problem is that when the stream is read for the second time, it is at the EOF. A solution is to simply call stream.reset() before starting the import.