Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (408)
games submitted by our members
Games in WIP (293)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Error - Please port CPU detection (32/64 bit) to your platform (mac os x/x86_64)  (Read 1824 times)
0 Members and 1 Guest are viewing this topic.
Offline shawnkendall

Senior Member




Apathy Error: Don't bother striking any key.


« Posted 2009-01-08 04:35:56 »

I get a strange new error trying to run a JOGL app on Mac OS 10.5 with Java 6. (Mac Pro, dual screen, nVidia gfx)

The main interesting part is this:
Caused by: java.lang.RuntimeException: Please port CPU detection (32/64 bit) to your platform (mac os x/x86_64)
        at com.sun.gluegen.runtime.CPU.<clinit>(CPU.java:72)

The frame pops up but it is empty of the JOGL canvas that was once there.
I get this with the latest release and the nightly build.  I am doing development for Project Wonderland and this effectively stopped my development (at least on my main dev machine).

Thanks for any help!

init:
deps-jar:
compile:
run:
Current Directory: /Volumes/Untitled RAID Set 1/work/Projects/Avatars
Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError
        at com.sun.opengl.impl.JAWT.size(JAWT.java:17)
        at com.sun.opengl.impl.JAWT.create(JAWT.java:25)
        at com.sun.opengl.impl.JAWT$1.run(JAWT.java:97)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.opengl.impl.JAWT.getJAWT(JAWT.java:95)
        at com.sun.opengl.impl.macosx.MacOSXOnscreenGLDrawable.lockSurface(MacOSXOnscreenGLDrawable.java:144)
        at com.sun.opengl.impl.macosx.MacOSXOnscreenGLContext.makeCurrentImpl(MacOSXOnscreenGLContext.java:57)
        at com.sun.opengl.impl.GLContextImpl.makeCurrent(GLContextImpl.java:134)
        at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:182)
        at javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:265)
        at javax.media.opengl.GLCanvas.display(GLCanvas.java:130)
        at javax.media.opengl.GLCanvas.paint(GLCanvas.java:142)
        at com.jmex.awt.jogl.JOGLAWTCanvas.paint(JOGLAWTCanvas.java:223)
        at sun.awt.RepaintArea.paintComponent(RepaintArea.java:276)
        at sun.awt.RepaintArea.paint(RepaintArea.java:241)
        at apple.awt.ComponentModel.handleEvent(ComponentModel.java:268)
        at java.awt.Component.dispatchEventImpl(Component.java:4573)
        at java.awt.Component.dispatchEvent(Component.java:4327)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:300)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:210)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:200)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:195)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:187)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Caused by: java.lang.RuntimeException: Please port CPU detection (32/64 bit) to your platform (mac os x/x86_64)
        at com.sun.gluegen.runtime.CPU.<clinit>(CPU.java:72)
        ... 25 more
Exception in thread "AWT-EventQueue-0" javax.media.opengl.GLException: Can not destroy context while it is current
        at com.sun.opengl.impl.GLContextImpl.destroy(GLContextImpl.java:176)
        at javax.media.opengl.GLCanvas$DestroyAction.run(GLCanvas.java:324)
        at javax.media.opengl.GLCanvas.removeNotify(GLCanvas.java:185)
        at java.awt.Container.removeNotify(Container.java:2663)
        at javax.swing.JComponent.removeNotify(JComponent.java:4699)
        at java.awt.Container.removeNotify(Container.java:2663)
        at javax.swing.JComponent.removeNotify(JComponent.java:4699)
        at java.awt.Container.removeNotify(Container.java:2663)
        at javax.swing.JComponent.removeNotify(JComponent.java:4699)
        at java.awt.Container.removeNotify(Container.java:2663)
        at javax.swing.JComponent.removeNotify(JComponent.java:4699)
        at javax.swing.JRootPane.removeNotify(JRootPane.java:750)
        at java.awt.Container.removeNotify(Container.java:2663)
        at java.awt.Window.removeNotify(Window.java:650)
        at java.awt.Frame.removeNotify(Frame.java:879)
        at java.awt.Window$1DisposeAction.run(Window.java:978)
        at java.awt.Window.doDispose(Window.java:990)
        at java.awt.Window.dispose(Window.java:937)
        at imi.tests.DemoBase$SwingFrame$1.windowClosing(DemoBase.java:807)
        at java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:332)
        at java.awt.Window.processWindowEvent(Window.java:1827)
        at javax.swing.JFrame.processWindowEvent(JFrame.java:279)
        at java.awt.Window.processEvent(Window.java:1785)
        at java.awt.Component.dispatchEventImpl(Component.java:4497)
        at java.awt.Container.dispatchEventImpl(Container.java:2160)
        at java.awt.Window.dispatchEventImpl(Window.java:2440)
        at java.awt.Component.dispatchEvent(Component.java:4327)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:300)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:210)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:200)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:195)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:187)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)


Shawn Kendall
Full Sail Real World Education
Immediate Mode Interactive, LLC
<A HREF="http://cosmic-game-engine.blogspot.com/">Cosmic Game Engine Dev Journal</a>
Offline gouessej

JGO Ninja


Medals: 33
Projects: 1


TUER


« Reply #1 - Posted 2009-01-08 17:29:04 »

If I understand your problem, you had already succeeded to use an older version of JOGL on this machine, hadn't you? Which one?

Offline shawnkendall

Senior Member




Apathy Error: Don't bother striking any key.


« Reply #2 - Posted 2009-01-08 17:40:10 »

I had it all working with Java 5.0 and JOGL from May 08.

The issue is updating to Java 6.0. The older JOGL fails (with a native lib link error).  With the latest JOGL set up to be found by library path I get this error.

If you put the latest JOGL in the extensions folder it fails with a different error, but of course that also breaks any other java .apps you have the use JOGL as well.

Shawn Kendall
Full Sail Real World Education
Immediate Mode Interactive, LLC
<A HREF="http://cosmic-game-engine.blogspot.com/">Cosmic Game Engine Dev Journal</a>
Games published by our own members! Check 'em out!
Play the free demo of Revenge of the Titans!
Offline gouessej

JGO Ninja


Medals: 33
Projects: 1


TUER


« Reply #3 - Posted 2009-01-09 16:00:16 »

It might come from the Apple's JVM as it worked fine under Java 1.5 and no more under Java 1.6. Are you sure you used a 64 bits JVM when you used Java 1.5? Did you look at the source code of GlueGen? Did you open a bug report?

Offline shawnkendall

Senior Member




Apathy Error: Don't bother striking any key.


« Reply #4 - Posted 2009-01-09 21:03:49 »

This has been resolved.
The final fix is to absolutely make sure all instances of gluegen-rt.jar and associate libs are removed from all system folders (and a Spotlight search will not find them all).

To be sure what is being loaded use the VM option:
-verbose:class
To see the path(s) and confirm the right glue-gen-rt and JOGL files are loaded.

Once it's all the right files, it works fine.
Hope that helps someone else someday.

Shawn Kendall
Full Sail Real World Education
Immediate Mode Interactive, LLC
<A HREF="http://cosmic-game-engine.blogspot.com/">Cosmic Game Engine Dev Journal</a>
Offline cgunn

Senior Newbie





« Reply #5 - Posted 2009-03-13 21:06:08 »

I've got this problem too.  I've searched  everywhere I can think of for stray copies of gluegen-rt.jar, but without success -- I've found some copies but the problem is still there.  Can you give any hints about where one can look to find these unwanted copies? 

Also, I only see this problem with webstarts.  I try to activate the vm option "-verbose:class" in the jnlp file by adding
1  
java-vm-args="-verbose:class"
in the <j2se> tag,  but I don't see any verbose output on the java console. 

Thanks in advance for any tips.
Offline cgunn

Senior Newbie





« Reply #6 - Posted 2009-03-15 10:15:11 »

I found the offending copy of gluegen-rt.jar (I'm embarrassed to admit it was in ~/Library/Java/Extensions!) and after removing it everything runs fine.  Thanks for the help.
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars and Titan!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (111 views)
2013-05-17 21:29:12

alaslipknot (120 views)
2013-05-16 21:24:48

gouessej (149 views)
2013-05-16 00:53:38

gouessej (143 views)
2013-05-16 00:17:58

theagentd (156 views)
2013-05-15 15:01:13

theagentd (140 views)
2013-05-15 15:00:54

StreetDoggy (184 views)
2013-05-14 15:56:26

kutucuk (208 views)
2013-05-12 17:10:36

kutucuk (208 views)
2013-05-12 15:36:09

UnluckyDevil (214 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!
Page created in 0.127 seconds with 21 queries.