launch problem under mac leopard

Asked by jan2pass

Hi,

just downloaded gephi and cannot draw graphs following problem is shown:

javax.media.opengl.GLException: Attempt to make the same context current twice on thread Thread[AWT-EventQueue-1,6,IDE Main]
 at com.sun.opengl.impl.GLContextLock.lock(GLContextLock.java:83)
 at com.sun.opengl.impl.GLContextImpl.makeCurrent(GLContextImpl.java:131)
 at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:182)
 at javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:412)
 at javax.media.opengl.GLCanvas.display(GLCanvas.java:244)
 at javax.media.opengl.GLCanvas.paint(GLCanvas.java:277)
 at sun.awt.RepaintArea.paintComponent(RepaintArea.java:276)
 at sun.awt.RepaintArea.paint(RepaintArea.java:241)
 at apple.awt.ComponentModel.handleEvent(ComponentModel.java:263)
 at java.awt.Component.dispatchEventImpl(Component.java:4812)
 at java.awt.Component.dispatchEvent(Component.java:4566)
 at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:680)
 at java.awt.EventQueue.access$000(EventQueue.java:86)
 at java.awt.EventQueue$1.run(EventQueue.java:639)
 at java.awt.EventQueue$1.run(EventQueue.java:637)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
 at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
 at java.awt.EventQueue$2.run(EventQueue.java:653)
 at java.awt.EventQueue$2.run(EventQueue.java:651)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:650)
 at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:137)
 at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
 at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
 at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
 at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

thought it has to do with some unspecified java classpath, but dont know to be honest:

# ${HOME} will be replaced by user home directory according to platform
default_userdir="${HOME}/.${APPNAME}/dev"
default_mac_userdir="${HOME}/Library/Application Support/${APPNAME}/dev"

# options used by the launcher by default, can be overridden by explicit
# command line switches
default_options="--branding gephi07beta -J-Xms64m -J-Xmx1400m -J-Dsun.java2d.noddraw=true -J-Dsun.awt.noerasebackground=true -J-Duser.language=en"
# for development purposes you may wish to append: -J-Dnetbeans.logger.console=true -J-ea

# default location of JDK/JRE, can be overridden by using --jdkhome <dir> switch
# jdkhome="${HOME}/Library/Java/JavaVirtualMachines/1.6.0_22-b04-307.jdk"

# clusters' paths separated by path.separator (semicolon on Windows, colon on Unices)
#extra_clusters=

any ideas? thank you

Question information

Language:
English Edit question
Status:
Answered
For:
Gephi Edit question
Assignee:
Mathieu Bastian Edit question
Last query:
Last reply:
Revision history for this message
jan2pass (andre-menninger) said :
#1

nobody? (do u need any additional information?) would be really greatful for any answer thank you!

Revision history for this message
Mathieu Bastian (mathieu.bastian) said :
#2

Hi that seems to be a OpenGL related issue, what graphic card do you have?

Revision history for this message
jan2pass (andre-menninger) said :
#3

I have a macbook and the following card ... I didnt get it to work as yet so ur help is still highly appreciated. thanks

NVIDIA GeForce 9400M:

  Chipset Model: NVIDIA GeForce 9400M
  Type: GPU
  Bus: PCI
  VRAM (Total): 256 MB
  Vendor: NVIDIA (0x10de)
  Device ID: 0x0863
  Revision ID: 0x00b1
  ROM Revision: 3385
  Displays:
Color LCD:
  Resolution: 1280 x 800
  Pixel Depth: 32-Bit Color (ARGB8888)
  Main Display: Yes
  Mirror: Off
  Online: Yes
  Built-In: Yes
Display Connector:
  Status: No Display Connected

Revision history for this message
jan2pass (andre-menninger) said :
#4

Hi Mathieu, I was just wondering whether it has anything to do with netbeans and the open GL package.
When I had sent the error message I had been using netbeans 6.9, and as far as I know the NetBeans OpenGL Pack plugin doesnt work on netbeans 6.9 (--> http://services.netbeans.org/pluginportal-2.0/plugin/3260/netbeans-opengl-pack ... but correct me if I am wrong, I am quite an amateur in those things). I installed the netbeans 7.0 version, it didnt change anything however and I got exactly the same error as above.

I wanted to downgrade to netbeans 6.7 in order to install the NetBeans OpenGL Pack plugin, but havent found the older version anywhere to download as yet.

You are the expert Mathieu (thanx for help btw), am I on the right track or completely wrong? Any ideas?

Revision history for this message
Mathieu Bastian (mathieu.bastian) said :
#5

We don't use the OpenGL pack, we load the JOGL libraries manually.

As you were working with the OpenGL pack, have you ever copied the of the JOGL librairies manually in your system? Or maybe the pack did so? I've seen this problem before. If you did this, you may try to locate them and clean this. If JOGL libs are installed on the system, the have precedence on our own versions, and that could cause problems.

Revision history for this message
Dianne Patterson (dkp-g) said :
#6

Is there some reason you don't set the java classpath for gephi so that we don't have to remove parts of the apple sanctioned java install to get gephi to run?

Revision history for this message
Mathieu Bastian (mathieu.bastian) said :
#7

Netbeans Platform automatically includes what is installed in the JDK. This is the default behaviour, and if you have two libraires with different versions in the CLASSPATH that causes issues. If you have any solution.

And JOGL is not installed by default in the Apple JDK.

Can you help with this problem?

Provide an answer of your own, or ask jan2pass for more information if necessary.

To post a message you must log in.