Preview not showing network

Once it's running
holyfeld
Posts:12
Joined:30 Nov 2013 23: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
Preview not showing network

Post by holyfeld » 13 Aug 2016 17:42

I upgraded to 0.9.1 on two laptops. On one laptop, Preview will not show the network. The other laptop shows it fine. The laptops are essentially identical. MacBookPro11,5, running OSX 10.11.6.

I checked the plugins and both systems look the same.

I'm using the same .gephi file. The Preview Settings panel has Show Labels and Show Edges checked. I click on the Refresh button. On Snuggery (one laptop) I don't get a preview. On Snappy (other laptop) I get a preview. This causes me to think something's slightly different between the two configuration files.

Sadly, Snuggery is the laptop where I most need the Preview to work as I'm not always connected to Snappy.

I searched the forums, and only found 6 issues with Preview, none of which seem related to my issue. Suggestions on where to look? What to change?

holyfeld

User avatar
eduramiba
Gephi Code Manager
Posts:1064
Joined:22 Mar 2010 15:30
Location:Madrid, Spain
[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: Preview not showing network

Post by eduramiba » 13 Aug 2016 17:51

What are the java versions of each laptop? You can try to make them match. Probably the one is Snappy is more up to date.

holyfeld
Posts:12
Joined:30 Nov 2013 23: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: Preview not showing network

Post by holyfeld » 13 Aug 2016 20:32

thank you for the quick question. Both machines show:

grayd$ java -version
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-468-11M4833)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-468, mixed mode)

User avatar
eduramiba
Gephi Code Manager
Posts:1064
Joined:22 Mar 2010 15:30
Location:Madrid, Spain
[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: Preview not showing network

Post by eduramiba » 13 Aug 2016 20:43

Yeah that's an old version, you can try to run Java 7 at least, the problem should be fixed.

holyfeld
Posts:12
Joined:30 Nov 2013 23: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: Preview not showing network

Post by holyfeld » 13 Aug 2016 22:05

I may have hurt myself. Inkscape on the Mac requires and older version. I'll update and report back (tomorrow).

holyfeld
Posts:12
Joined:30 Nov 2013 23: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: Preview not showing network

Post by holyfeld » 14 Aug 2016 15:57

I downloaded and installed jre-8u101-macosx-x64.dmg When I look for the java version, I'm still geting 1.6.0xxx.

According to https://discussions.apple.com/message/29374026#29374026 removing java 1.6 is best accomplished by reinstalling the current version of OSX.

And while it's good to be current, since both laptops show the same version for jre, I wonder why it works on one but not the other.

Anyway, currently downloading the osxupdcombo10.11.6.dmg. I'll report back with results.

holyfeld
Posts:12
Joined:30 Nov 2013 23: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: Preview not showing network

Post by holyfeld » 14 Aug 2016 16:51

Reinstalling 10.11.6 does not change the results of $ java -version. Still 1.6.0...

I tried to revert to 10.11.4, but OSX won't let me do that. I'm not willing to wipe the drive and start again for this issue. While I'm waiting for 10.11.7 to be released, where else might I look for differences?

How unwise would it be to copy Library/Application/gephi/ from the laptop that displays the Preview to the laptop that does not display the Preview?

User avatar
eduramiba
Gephi Code Manager
Posts:1064
Joined:22 Mar 2010 15:30
Location:Madrid, Spain
[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: Preview not showing network

Post by eduramiba » 14 Aug 2016 17:33

That won't help. I never used OS X but this might help to get the right version of java to work: http://stackoverflow.com/questions/2196 ... on-on-os-x

holyfeld
Posts:12
Joined:30 Nov 2013 23: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: Preview not showing network

Post by holyfeld » 14 Aug 2016 23:34

Thank you for the link to stackoverflow. I had to do minor thinking. I was installing jre-8u10x. the java -version returns the jdk, not jre. After installing the jre-8 a couple of times, I installed the jdk. Now I get ...

DONGRAY-M-53VA:~ grayd$ /usr/libexec/java_home -V
Matching Java Virtual Machines (3):
1.8.0_101, x86_64: "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home
1.6.0_65-b14-468, x86_64: "Java SE 6" /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
1.6.0_65-b14-468, i386: "Java SE 6" /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

/Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home
DONGRAY-M-53VA:~ grayd$ java -version
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)
DONGRAY-M-53VA:~ grayd$

I also get
Java8.png
Java 8
in Safari.

Started gephi, loaded my network. Still no Preview.

Next thing to look at?

User avatar
eduramiba
Gephi Code Manager
Posts:1064
Joined:22 Mar 2010 15:30
Location:Madrid, Spain
[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: Preview not showing network

Post by eduramiba » 15 Aug 2016 00:03

Uhm, I think deleting gephi user directory has helped some people with this problem. Check https://github.com/gephi/gephi/wiki/Troubleshooting

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