[SOLVED] Preview Does Nothing

Once it's running
elijah
Gephi Community Support
Posts:169
Joined:11 Sep 2010 18:09
Location:Stanford, CA
Contact:
[SOLVED] Preview Does Nothing

Post by elijah » 22 Sep 2010 23:37

Switching to Preview Mode gives me a blank screen. Refreshing it leaves it blank, as does clicking 'reset zoom'. Graph mode works just fine.

elijah
Gephi Community Support
Posts:169
Joined:11 Sep 2010 18:09
Location:Stanford, CA
Contact:

Re: Preview Does Nothing

Post by elijah » 23 Sep 2010 01:24

I reinstalled Gephi and even tried out random graphs and still preview is blank. It shows the loading icon when I zoom in or out or move across the canvas (with right-clicking) but it is completely blank.

elijah
Gephi Community Support
Posts:169
Joined:11 Sep 2010 18:09
Location:Stanford, CA
Contact:

Re: Preview Does Nothing

Post by elijah » 23 Sep 2010 20:35

Odd further adventures: The next morning, after letting Gephi run for 12 hours, I tried Preview mode now it works... The size of the visualization was enormous at that point (Force Atlas using an entire processor and 2GB of RAM for 12 hours) if that makes any difference.

ronaldomenezes
Posts:8
Joined:24 Sep 2010 14:33
[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 Does Nothing

Post by ronaldomenezes » 24 Sep 2010 14:35

I have the same problem and the network I'm dealing with is pretty small (160 nodes, 1000 edges). I can't see anything on preview. I left it running overnight and nothing happened.

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: Preview Does Nothing

Post by mbastian » 27 Sep 2010 10:11

That is strange, as this issue was never reported before. I would be interested by your log file to see if something went wrong silently. Instructions how to find the log file are here. Thanks!

peterkz
Posts:5
Joined:05 May 2010 09:45
Location:Stockholm, Sweden
[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 Does Nothing

Post by peterkz » 22 Oct 2010 12:50

I am having the same problem. The Preview window is blank but the graph window works fine. In 0.7 alpha 4 everything worked great. I can export my graph to PDF to inspect it but that is a rather cumbersome workaround. The preview tab looks like this:
gephi07b-preview-osx.jpg
Preview not showing
I am running the 0.7 beta version on a MacBook Pro OS X 10.6 with Java version SE 6 64 bit 1.6.0_22-b04-307 that was released a couple of days ago.

I have updated the memory settings to use 1400m for max mem.

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: Preview Does Nothing

Post by mbastian » 22 Oct 2010 13:04

Hi, did you update Gephi as well?

Otherwise I need the log file to fix this problem, instructions how to find the log file are here. Thanks!

peterkz
Posts:5
Joined:05 May 2010 09:45
Location:Stockholm, Sweden
[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 Does Nothing

Post by peterkz » 22 Oct 2010 13:28

Here is my messages.log.
messages.log.zip
(4.01KiB)Downloaded 223 times
The most relevant lines being these I guess:

Code: Select all

System Info: 
  Product Version         = Gephi 0.7 beta
  Operating System        = Mac OS X version 10.6.4 running on x86_64
  Java; VM; Vendor        = 1.6.0_22; Java HotSpot(TM) 64-Bit Server VM 17.1-b03-307; Apple Inc.
  Runtime                 = Java(TM) SE Runtime Environment 1.6.0_22-b04-307-10M3261
  Java Home               = /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
  System Locale; Encoding = en_SE (gephi07beta); MacRoman
  Home Directory          = /Users/pkr
  Current Directory       = /
  User Directory          = /Users/pkr/Library/Application Support/gephi07beta/dev
  Installation            = /Applications/gephi07beta.app/Contents/Resources/gephi07beta/gephi07beta
And

org.gephi.preview.api [0.7.1 100930]
org.gephi.desktop.preview [0.7.1.1 101008]

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: Preview Does Nothing

Post by mbastian » 22 Oct 2010 16:20

The problem seems more here:

Code: Select all

java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0
	at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:999)
	at java.awt.image.BufferedImage.<init>(BufferedImage.java:324)
	at processing.core.PGraphicsJava2D.allocate(PGraphicsJava2D.java:125)
	at processing.core.PGraphicsJava2D.setSize(PGraphicsJava2D.java:116)
	at processing.core.PApplet.resizeRenderer(PApplet.java:930)
	at processing.core.PApplet.run(PApplet.java:1322)
[catch] at java.lang.Thread.run(Thread.java:680)
I'm trying a patch, you can follow the discussion here and try the patch

dugundji
Posts:1
Joined:21 Dec 2010 14:39
[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 Does Nothing

Post by dugundji » 21 Dec 2010 14:50

I am having some difficulty to download the patch. I have posted details including log report and screenshots at the discussion at launchpad.

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