[FIXED] Opening a .net file

Once it's running
Post Reply [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
rckdl
Posts:2
Joined:19 Apr 2010 22:17
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
[FIXED] Opening a .net file

Post by rckdl » 19 Apr 2010 22:22

Hi,

I installed Gephi and was able to open the sample files that came with it. However when I tried opening a .net file (Pajek format) I keep getting an "unexpected error" message.

I tried opening the file in Pajek and there was no problem. It's a very simple Pajek file:

*Vertices 9954
....

*Arcs
...

And here is the error message:

java.lang.ArrayIndexOutOfBoundsException: 1
at org.gephi.io.importer.plugin.file.ImporterPajek.readVertex(ImporterPajek.java:167)
at org.gephi.io.importer.plugin.file.ImporterPajek.importData(ImporterPajek.java:126)
Caused: java.lang.RuntimeException
at org.gephi.io.importer.plugin.file.ImporterPajek.importData(ImporterPajek.java:149)
at org.gephi.io.importer.plugin.file.ImporterPajek.importData(ImporterPajek.java:63)
at org.gephi.desktop.importer.DesktopImportController$4.run(DesktopImportController.java:214)
at org.gephi.utils.longtask.api.LongTaskExecutor$RunningLongTask.run(LongTaskExecutor.java:228)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[catch] at java.lang.Thread.run(Thread.java:619)


Thanks a lot for your help! :|

User avatar
mbastian
Gephi Architect
Posts:728
Joined:10 Dec 2009 10:11
Location:San Francisco, CA
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: Opening a .net file

Post by mbastian » 20 Apr 2010 15:17

Hi, thanks for reporting the issue, this is a bug when labels are empty, for instance:

*Vertices 141
1 "Label A"
2 ""
3 "Label B"

I filed a bug on our code repository. The bug is easy to fix it will be available in the next release, due in 10 days.

rckdl
Posts:2
Joined:19 Apr 2010 22:17
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: Opening a .net file

Post by rckdl » 20 Apr 2010 19:52

Great - I'll be looking forward to your next release. Thanks!

User avatar
mbastian
Gephi Architect
Posts:728
Joined:10 Dec 2009 10:11
Location:San Francisco, CA
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: Opening a .net file

Post by mbastian » 29 Apr 2010 00:22

The bug has been fixed, it's in the next upcoming release.

Post Reply
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable