[FIXED] OSX / Java 7

Started by normen, August 14, 2012, 17:07:59

Previous topic - Next topic

kappa

@princec native mouse cursors not implemented yet, probably the last biggish feature left to implement. Focused mainly on the Display.setParent() stuff this update. AWTGLCanvas also not implemented yet but shouldn't be too hard once there is further confirmation that Display.setParent() works. The rest should mostly be there.

@pizza2004, control + click should hopefully be implemented for the native Display soon, should already work when using the new Display.setParent mode (e.g. Minecraft) as that uses AWT for input.

princec

hmm how'd you get Revenge of the Titans working then? It should crash...

Cas :)

kappa

Quote from: princec on January 17, 2013, 10:14:24
hmm how'd you get Revenge of the Titans working then? It should crash...

Cas :)
As far as I can tell, it doesn't use native cursors, its just grabs the mouse and draws its own (unless you changed that in more recent updates, not updated my version in a while).

edit: oh, just updated to latest ROTT and it seems that it does now use native cursors, guess the native cursor support will need to be implemented before ROTT works.

princec

Yeah, if you recall I had to remove mouse grabbing because it misbehaved somewhat wrt. mouse acceleration etc etc. and this was my workaround - I set the cursor to a nearly invisible dot and don't grab it any more.

Cas :)

princec

... I will be sending you a special gift when you get this working :)

Cas :)

pizza2004

Okay, I tested Minecraft and it appears to be working entirely correctly.  So I'm happy about that!  Now we just need to get Mojang to support 1.7 on Mac as well, they'll have to release a new launcher to allow that.

duffycola

Hey guys, thumbs up for the good work on this. However, I was wondering, if by accident anyone was testing the binaries with jmonkey sdk? I have to do some work on jmonkey and am a complete new user. I don't have access to a linux/windows machine, so I am trying to figure out what is the least painful way of getting jmonkey. There's either finding out how to build jmonkey sdk with your libraries or freeing up enough space to set up a virtual machine...

kappa

Quote from: duffycola on January 19, 2013, 01:34:18
Hey guys, thumbs up for the good work on this. However, I was wondering, if by accident anyone was testing the binaries with jmonkey sdk? I have to do some work on jmonkey and am a complete new user. I don't have access to a linux/windows machine, so I am trying to figure out what is the least painful way of getting jmonkey. There's either finding out how to build jmonkey sdk with your libraries or freeing up enough space to set up a virtual machine...
Least painful way is to just drop the above binaries over any existing LWJGL binaries included with it and you should be good to go.

adamk33n3r

I got the latest files from @kappa's post but since that only had osx natives in it I am getting this error when I run it on a windows system

jar version is '24', native library version is '23'


should I just not use the newer .jar? or are there updated windows natives too?

pizza2004

Hey, this current version of Minecraft runs perfectly with the latest version you provide in Java 6.  It fails to start in Java 7, here's the crash report, maybe it will be helpful:

---- Minecraft Crash Report ----
// Don't be sad. I'll do better next time, I promise!

Time: 1/19/13 8:09 PM
Description: Failed to start game

org.lwjgl.LWJGLException: Could not get the JAWT interface
	at org.lwjgl.opengl.AWTSurfaceLock.lockAndInitHandle(Native Method)
	at org.lwjgl.opengl.AWTSurfaceLock.access$100(AWTSurfaceLock.java:51)
	at org.lwjgl.opengl.AWTSurfaceLock$1.run(AWTSurfaceLock.java:94)
	at org.lwjgl.opengl.AWTSurfaceLock$1.run(AWTSurfaceLock.java:92)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.lwjgl.opengl.AWTSurfaceLock.privilegedLockAndInitHandle(AWTSurfaceLock.java:92)
	at org.lwjgl.opengl.AWTSurfaceLock.lockAndGetHandle(AWTSurfaceLock.java:66)
	at org.lwjgl.opengl.MacOSXCanvasPeerInfo.initHandle(MacOSXCanvasPeerInfo.java:54)
	at org.lwjgl.opengl.MacOSXDisplayPeerInfo.doLockAndInitHandle(MacOSXDisplayPeerInfo.java:56)
	at org.lwjgl.opengl.PeerInfo.lockAndGetHandle(PeerInfo.java:85)
	at org.lwjgl.opengl.MacOSXDisplay.createWindow(MacOSXDisplay.java:132)
	at org.lwjgl.opengl.Display.createWindow(Display.java:303)
	at org.lwjgl.opengl.Display.create(Display.java:845)
	at org.lwjgl.opengl.Display.create(Display.java:754)
	at org.lwjgl.opengl.Display.create(Display.java:736)
	at net.minecraft.client.Minecraft.a(SourceFile:232)
	at aub.a(SourceFile:56)
	at net.minecraft.client.Minecraft.run(SourceFile:506)
	at java.lang.Thread.run(Thread.java:722)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- System Details --
Details:
	Minecraft Version: 13w03a
	Operating System: Mac OS X (x86_64) version 10.7.5
	Java Version: 1.7.0_10, Oracle Corporation
	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
	Memory: 414681880 bytes (395 MB) / 514523136 bytes (490 MB) up to 954466304 bytes (910 MB)
	JVM Flags: 2 total; -Xmx1024M -Xms512M
	AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
	Suspicious classes: No suspicious classes found.
	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
	LWJGL: 2.8.5
	OpenGL: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.
	Is Modded: Probably not. Jar signature remains and client brand is untouched.
	Type: Client (map_client.txt)
	Texture Pack: Default
	Profiler Position: N/A (disabled)
	Vec3 Pool Size: ~~ERROR~~ NullPointerException: null


Edit: It appears I've gotten this same error in the past when trying to use this version of LWJGL and Java 7 instead of Java 6.  So, that's why Minecraft won't work with Java 7 on Mac at the moment.  Once this is finished and merged into the default version of LWJGL and there's a new version released perhaps it can come standard with the latest version of Minecraft.

cookies

Hi,

I was testing the latest binaries you supplied in this thread with JDK 1.7.0_11 and the latest JME nightly snapshot on OS X 10.8.2 and found 2 issues:


  • on exiting the game, an error message is logged, no idea about what exactly: [error] AL lib: ReleaseALC: 1 device not closed
  • when I turn on multisampling/AA, the JVM crashes:
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x000000016d5b39fe, pid=2885, tid=43527
#
# JRE version: 7.0_11-b21
# Java VM: Java HotSpot(TM) 64-Bit Server VM (23.6-b04 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# C  [liblwjgl.dylib+0x159fe]  Java_org_lwjgl_opengl_MacOSXContextImplementation_nCreate+0xce
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

---------------  T H R E A D  ---------------

Current thread (0x00007fb4442d8000):  JavaThread "LWJGL Renderer Thread" [_thread_in_native, id=43527, stack(0x000000016e23d000,0x000000016e33d000)]

siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0x0000000000000050

Registers:
RAX=0x0000000000000000, RBX=0x0000000000000000, RCX=0x00007fb444af3090, RDX=0x00007fb446131800
RSP=0x000000016e33c460, RBP=0x000000016e33c4b0, RSI=0x0000010000000100, RDI=0x0000000000000103
R8 =0x0000000000012068, R9 =0x000000016e33c3c0, R10=0x00000000000010bc, R11=0x0000000000000000
R12=0x00007fb444af3090, R13=0x00007fb4442d81d8, R14=0x00007fb444af2c30, R15=0x00007fb448e201f8
RIP=0x000000016d5b39fe, EFLAGS=0x0000000000010206, ERR=0x0000000000000004
  TRAPNO=0x000000000000000e

Top of Stack: (sp=0x000000016e33c460)
0x000000016e33c460:   000000016e33c4a0 00007fb448e0fec0
0x000000016e33c470:   000000016e33c470 000000010aea1248
0x000000016e33c480:   00007fb4442d8000 000000010aeb1f58
0x000000016e33c490:   0000000000000000 000000010aeb1f50
0x000000016e33c4a0:   000000016e33c538 00007fb4442d8000
0x000000016e33c4b0:   000000016e33c510 0000000106af2f90
0x000000016e33c4c0:   0000000146e1fad8 000000016e33c538
0x000000016e33c4d0:   000000016e33c4d0 000000010aeb1f50
0x000000016e33c4e0:   000000016e33c538 000000010aeb3638
0x000000016e33c4f0:   0000000000000000 000000010aeb1f58
0x000000016e33c500:   0000000000000000 000000016e33c530
0x000000016e33c510:   000000016e33c580 0000000106ae7333
0x000000016e33c520:   0000000146e345c8 0000000106aefddb
0x000000016e33c530:   0000000000000000 0000000146e1fad8
0x000000016e33c540:   000000016e33c540 000000010aeb1e21
0x000000016e33c550:   000000016e33c5c0 000000010aeb3638
0x000000016e33c560:   0000000000000000 000000010aeb1e80
0x000000016e33c570:   000000016e33c530 000000016e33c5a8
0x000000016e33c580:   000000016e33c620 0000000106ae79e1
0x000000016e33c590:   0000000000000000 0000000000000000
0x000000016e33c5a0:   0000000146e1fad8 0000000000000000
0x000000016e33c5b0:   0000000000000000 0000000146e1fa30
0x000000016e33c5c0:   0000000146e34638 0000000146e34648
0x000000016e33c5d0:   0000000146e34648 0000000146e34648
0x000000016e33c5e0:   000000016e33c5d0 000000010aeaeea7
0x000000016e33c5f0:   000000016e33c668 000000010aeb0f88
0x000000016e33c600:   0000000000000000 000000010aeaef50
0x000000016e33c610:   000000016e33c5a8 000000016e33c650
0x000000016e33c620:   000000016e33c6c0 0000000106ae7158
0x000000016e33c630:   0000000000000000 0000000000000000
0x000000016e33c640:   0000000146e34648 0000000146e34648
0x000000016e33c650:   0000000000000000 0000000000000000 

Instructions: (pc=0x000000016d5b39fe)
0x000000016d5b39de:   48 89 d9 48 8d 35 38 56 02 00 ff 15 32 56 02 00
0x000000016d5b39ee:   49 89 c4 48 85 c0 0f 84 f1 00 00 00 49 8b 46 08
0x000000016d5b39fe:   80 78 50 00 0f 85 88 00 00 00 48 8d 35 d1 54 02
0x000000016d5b3a0e:   00 4c 89 e7 ff 15 c8 54 02 00 48 89 c7 be 31 01 

Register to memory mapping:

RAX=0x0000000000000000 is an unknown value
RBX=0x0000000000000000 is an unknown value
RCX=0x00007fb444af3090 is an unknown value
RDX=0x00007fb446131800 is an unknown value
RSP=0x000000016e33c460 is pointing into the stack for thread: 0x00007fb4442d8000
RBP=0x000000016e33c4b0 is pointing into the stack for thread: 0x00007fb4442d8000
RSI=0x0000010000000100 is an unknown value
RDI=0x0000000000000103 is an unknown value
R8 =0x0000000000012068 is an unknown value
R9 =0x000000016e33c3c0 is pointing into the stack for thread: 0x00007fb4442d8000
R10=0x00000000000010bc is an unknown value
R11=0x0000000000000000 is an unknown value
R12=0x00007fb444af3090 is an unknown value
R13=0x00007fb4442d81d8 is an unknown value
R14=0x00007fb444af2c30 is an unknown value
R15=0x00007fb448e201f8 is an unknown value


Stack: [0x000000016e23d000,0x000000016e33d000],  sp=0x000000016e33c460,  free space=1021k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [liblwjgl.dylib+0x159fe]  Java_org_lwjgl_opengl_MacOSXContextImplementation_nCreate+0xce
j  org.lwjgl.opengl.MacOSXContextImplementation.nCreate(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;+0
j  org.lwjgl.opengl.MacOSXContextImplementation.create(Lorg/lwjgl/opengl/PeerInfo;Ljava/nio/IntBuffer;Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;+9
j  org.lwjgl.opengl.ContextGL.<init>(Lorg/lwjgl/opengl/PeerInfo;Lorg/lwjgl/opengl/ContextAttribs;Lorg/lwjgl/opengl/ContextGL;)V+103
j  org.lwjgl.opengl.Pbuffer.<init>(IILorg/lwjgl/opengl/PixelFormat;Lorg/lwjgl/opengl/RenderTexture;Lorg/lwjgl/opengl/Drawable;Lorg/lwjgl/opengl/ContextAttribs;)V+88
j  org.lwjgl.opengl.Pbuffer.<init>(IILorg/lwjgl/opengl/PixelFormat;Lorg/lwjgl/opengl/RenderTexture;Lorg/lwjgl/opengl/Drawable;)V+9
j  org.lwjgl.opengl.Pbuffer.<init>(IILorg/lwjgl/opengl/PixelFormat;Lorg/lwjgl/opengl/Drawable;)V+7
j  com.jme3.system.lwjgl.LwjglContext.determineMaxSamples(I)I+96
j  com.jme3.system.lwjgl.LwjglContext.getNumSamplesToUse()I+23
j  com.jme3.system.lwjgl.LwjglDisplay.createContext(Lcom/jme3/system/AppSettings;)V+92
j  com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread()Z+25
j  com.jme3.system.lwjgl.LwjglAbstractDisplay.run()V+32
j  java.lang.Thread.run()V+11
v  ~StubRoutines::call_stub
V  [libjvm.dylib+0x28855f]
V  [libjvm.dylib+0x288a3c]
V  [libjvm.dylib+0x288b76]
V  [libjvm.dylib+0x2bf4f0]
V  [libjvm.dylib+0x4782b4]
V  [libjvm.dylib+0x47979a]
V  [libjvm.dylib+0x3b51b5]
C  [libsystem_c.dylib+0x14742]  _pthread_start+0x147
C  [libsystem_c.dylib+0x1181]  thread_start+0xd

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  org.lwjgl.opengl.MacOSXContextImplementation.nCreate(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;+0
j  org.lwjgl.opengl.MacOSXContextImplementation.create(Lorg/lwjgl/opengl/PeerInfo;Ljava/nio/IntBuffer;Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;+9
j  org.lwjgl.opengl.ContextGL.<init>(Lorg/lwjgl/opengl/PeerInfo;Lorg/lwjgl/opengl/ContextAttribs;Lorg/lwjgl/opengl/ContextGL;)V+103
j  org.lwjgl.opengl.Pbuffer.<init>(IILorg/lwjgl/opengl/PixelFormat;Lorg/lwjgl/opengl/RenderTexture;Lorg/lwjgl/opengl/Drawable;Lorg/lwjgl/opengl/ContextAttribs;)V+88
j  org.lwjgl.opengl.Pbuffer.<init>(IILorg/lwjgl/opengl/PixelFormat;Lorg/lwjgl/opengl/RenderTexture;Lorg/lwjgl/opengl/Drawable;)V+9
j  org.lwjgl.opengl.Pbuffer.<init>(IILorg/lwjgl/opengl/PixelFormat;Lorg/lwjgl/opengl/Drawable;)V+7
j  com.jme3.system.lwjgl.LwjglContext.determineMaxSamples(I)I+96
j  com.jme3.system.lwjgl.LwjglContext.getNumSamplesToUse()I+23
j  com.jme3.system.lwjgl.LwjglDisplay.createContext(Lcom/jme3/system/AppSettings;)V+92
j  com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread()Z+25
j  com.jme3.system.lwjgl.LwjglAbstractDisplay.run()V+32
j  java.lang.Thread.run()V+11
v  ~StubRoutines::call_stub


Hope this helps.  :)

ajr_1

Hi,

I tried the latest version, firstly on Java 1.6_37 with OS X 10.8.2 as an applet in Eclipse.  I get the following native crash report:

Process:         java [5279]
Path:            /usr/bin/java
Identifier:      com.apple.javajdk16.cmd
Version:         1.0 (1.0)
Code Type:       X86-64 (Native)
Parent Process:  eclipse [5187]
User ID:         501

PlugIn Path:       /Users/USER/*/liblwjgl.jnilib
PlugIn Identifier: liblwjgl.jnilib
PlugIn Version:    ??? (0)

Date/Time:       2013-01-22 14:39:09.632 +0000
OS Version:      Mac OS X 10.8.2 (12C3012)
Report Version:  10

Interval Since Last Report:          224728 sec
Crashes Since Last Report:           11
Per-App Interval Since Last Report:  71078 sec
Per-App Crashes Since Last Report:   4
Anonymous UUID:                      D91619B8-7DB3-882E-F46B-8D8BD4C9635F

Crashed Thread:  34  Java: AWT-EventQueue-1

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000050

VM Regions Near 0x50:
--> 
    __TEXT                 00000001039c5000-00000001039cd000 [   32K] r-x/rwx SM=COW  /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java

Application Specific Information:
Java information:
 Exception type: Bus Error (0xa) at pc=113a099fe
 
 Java VM: Java HotSpot(TM) 64-Bit Server VM (20.12-b01-434 mixed mode macosx-amd64)
 
Current thread (7fb4ef892000):  JavaThread "AWT-EventQueue-1" [_thread_in_native, id=331317248, stack(113af8000,113bf8000)]
Stack: [113af8000,113bf8000]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  org.lwjgl.opengl.MacOSXContextImplementation.nCreate(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;+0
j  org.lwjgl.opengl.MacOSXContextImplementation.create(Lorg/lwjgl/opengl/PeerInfo;Ljava/nio/IntBuffer;Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;+9
j  org.lwjgl.opengl.ContextGL.<init>(Lorg/lwjgl/opengl/PeerInfo;Lorg/lwjgl/opengl/ContextAttribs;Lorg/lwjgl/opengl/ContextGL;)V+103
j  org.lwjgl.opengl.AWTGLCanvas.paint(Ljava/awt/Graphics;)V+101
j  sun.awt.RepaintArea.paintComponent(Ljava/awt/Component;Ljava/awt/Graphics;)V+6
j  sun.awt.RepaintArea.paint(Ljava/lang/Object;Z)V+368
j  apple.awt.ComponentModel.handleEvent(Ljava/awt/AWTEvent;)V+70
j  java.awt.Component.dispatchEventImpl(Ljava/awt/AWTEvent;)V+861
j  java.awt.Component.dispatchEvent(Ljava/awt/AWTEvent;)V+2
j  java.awt.EventQueue.dispatchEventImpl(Ljava/awt/AWTEvent;Ljava/lang/Object;)V+41
j  java.awt.EventQueue.access$400(Ljava/awt/EventQueue;Ljava/awt/AWTEvent;Ljava/lang/Object;)V+3
j  java.awt.EventQueue$2.run()Ljava/lang/Void;+12
j  java.awt.EventQueue$2.run()Ljava/lang/Object;+1
v  ~StubRoutines::call_stub
j  java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;+0
j  java.security.AccessControlContext$1.doIntersectionPrivilege(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;Ljava/security/AccessControlContext;)Ljava/lang/Object;+28
j  java.security.AccessControlContext$1.doIntersectionPrivilege(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;+6
j  java.awt.EventQueue$3.run()Ljava/lang/Void;+11
j  java.awt.EventQueue$3.run()Ljava/lang/Object;+1
v  ~StubRoutines::call_stub
j  java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;+0
j  java.security.AccessControlContext$1.doIntersectionPrivilege(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;Ljava/security/AccessControlContext;)Ljava/lang/Object;+28
j  java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+73
j  java.awt.EventDispatchThread.pumpOneEventForFilters(I)Z+204
j  java.awt.EventDispatchThread.pumpEventsForFilter(ILjava/awt/Conditional;Ljava/awt/EventFilter;)V+30
j  java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+11
j  java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
j  java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
j  java.awt.EventDispatchThread.run()V+9
v  ~StubRoutines::call_stub
 
Java Threads: ( => current thread )
=>7fb4ef892000 JavaThread "AWT-EventQueue-1" [_thread_in_native, id=331317248, stack(113af8000,113bf8000)]
  7fb4e9089000 JavaThread "DestroyJavaVM" [_thread_blocked, id=69853184, stack(10419e000,10429e000)]
  7fb4e9085800 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=329097216, stack(1138da000,1139da000)]
  7fb4e9082800 JavaThread "thread applet-avc.TackFoot3D.AVC_Applet.class" [_thread_blocked, id=328036352, stack(1137d7000,1138d7000)]
  7fb4ea851800 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=326975488, stack(1136d4000,1137d4000)]
  7fb4eb9b5000 JavaThread "AWT-Shutdown" [_thread_blocked, id=222179328, stack(10d2e3000,10d3e3000)]
  7fb4eb9b4800 JavaThread "AWT-AppKit" daemon [_thread_in_native, id=1994916224, stack(7fff5ba3b000,7fff5c23b000)]
  7fb4eb96f000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=217055232, stack(10ce00000,10cf00000)]
  7fb4eb96e000 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=215994368, stack(10ccfd000,10cdfd000)]
  7fb4eb96d800 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=214933504, stack(10cbfa000,10ccfa000)]
  7fb4ea818800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=213872640, stack(10caf7000,10cbf7000)]
  7fb4ea817800 JavaThread "Surrogate Locker Thread (Concurrent GC)" daemon [_thread_blocked, id=212811776, stack(10c9f4000,10caf4000)]
  7fb4eb96c800 JavaThread "Finalizer" daemon [_thread_blocked, id=210669568, stack(10c7e9000,10c8e9000)]
  7fb4eb96c000 JavaThread "Reference Handler" daemon [_thread_blocked, id=209608704, stack(10c6e6000,10c7e6000)]
Other Threads:
  7fb4eb967800 VMThread [stack: 10c5e3000,10c6e3000] [id=208547840]
  7fb4eb980800 WatcherThread [stack: 10cf03000,10d003000] [id=218116096]
 
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
 
Heap
 par new generation   total 19136K, used 9962K [7dae00000, 7dc2c0000, 7dee00000)
  eden space 17024K,  58% used [7dae00000, 7db7ba940, 7dbea0000)
  from space 2112K,   0% used [7dbea0000, 7dbea0000, 7dc0b0000)
  to   space 2112K,   0% used [7dc0b0000, 7dc0b0000, 7dc2c0000)
 concurrent mark-sweep generation total 63872K, used 0K [7dee00000, 7e2c60000, 7fae00000)
 concurrent-mark-sweep perm gen total 21248K, used 12062K [7fae00000, 7fc2c0000, 800000000)
 
Code Cache  [1044df000, 104750000, 1074df000)
 total_blobs=430 nmethods=41 adapters=352 free_code_cache=49730624 largest_free_block=7360
 
Virtual Machine Arguments:
JVM Args: -Xmx512m -Djava.library.path=/Users/Alan/PerforceWorkspace/AVC/JME2.0_19_05_10/lib/lwjgl/native/windows:/Users/Alan/PerforceWorkspace/AVC/JME2.0_19_05_10/lib/jogl/native/macosx:/Users/Alan/PerforceWorkspace/AVC/JME2.0_19_05_10/lib/jogl/native/macosx:/Users/Alan/PerforceWorkspace/AVC/JME2.0_19_05_10/lib/lwjgl/native/macosx:/Users/Alan/PerforceWorkspace/AVC/JME2.0_19_05_10/lib/lwjgl/native/macosx:/Users/Alan/PerforceWorkspace/AVC/JME2.0_19_05_10/lib/lwjgl/native/macosx:/Users/Alan/PerforceWorkspace/AVC/JME2.0_19_05_10/lib/lwjgl/native/macosx -Djava.security.policy=java.policy.applet -Dfile.encoding=MacRoman 
Java Command: sun.applet.AppletViewer avc.TackFoot3D.AVC_Applet1358865547056.html
Launcher Type: SUN_STANDARD
Physical Memory: Page Size = 4k, Total = 16384M, Free = 4428M


When run as an application there are no problems.

Using Java 1.7_11, as an applet in Eclipse, a blank applet window loads, but I get the following error in the console and my app doesn't load up:

JavaVM WARNING: JAWT_GetAWT must be called after loading a JVM

It works as an application with no issues.

Hope this helps.

kappa

@ajr_1 thx for testing, as mentioned above, AWTGLCanvas isn't yet implemented with the new CALayer stuff, however the more commonly used method of Display.setParent() should work fine and allow you to run LWJGL in the browser.

ajr_1

Ok, thanks for the update.  I've inherited this app, and being mainly a web developer, I've not quite got my head around a lot of the concepts.

Should I be thinking of moving to Display.setParent(), or is it even possible(as the AWTGLCanvas stuff looks to be part of jMonkeyEngine 2)?

ac

Hello, I'm also testing the new OSX-java7 branch (building binaries myself) on OSX 10.8.2. Everything appears to run fine with Java 1.6 (except re-initializing the Display, I can go into more detail later). But with 1.7 I get:

JavaVM WARNING: JAWT_GetAWT must be called after loading a JVM
JavaVM WARNING: JAWT_GetAWT must be called after loading a JVM
org.lwjgl.LWJGLException: Could not get the JAWT interface
	at org.lwjgl.opengl.AWTSurfaceLock.lockAndInitHandle(Native Method)
	at org.lwjgl.opengl.AWTSurfaceLock.access$100(AWTSurfaceLock.java:51)
	at org.lwjgl.opengl.AWTSurfaceLock$1.run(AWTSurfaceLock.java:94)
	at org.lwjgl.opengl.AWTSurfaceLock$1.run(AWTSurfaceLock.java:92)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.lwjgl.opengl.AWTSurfaceLock.privilegedLockAndInitHandle(AWTSurfaceLock.java:92)
	at org.lwjgl.opengl.AWTSurfaceLock.lockAndGetHandle(AWTSurfaceLock.java:66)
	at org.lwjgl.opengl.MacOSXCanvasPeerInfo.initHandle(MacOSXCanvasPeerInfo.java:54)
	at org.lwjgl.opengl.MacOSXDisplayPeerInfo.doLockAndInitHandle(MacOSXDisplayPeerInfo.java:56)
	at org.lwjgl.opengl.PeerInfo.lockAndGetHandle(PeerInfo.java:85)
	at org.lwjgl.opengl.MacOSXDisplay.createWindow(MacOSXDisplay.java:132)
	at org.lwjgl.opengl.Display.createWindow(Display.java:303)
	at org.lwjgl.opengl.Display.create(Display.java:845)
	at org.lwjgl.opengl.Display.create(Display.java:754)
...


From what I see in earlier comments, this is what I should expect at this point since AWTGLCanvas is not yet implemented, am I correct? I initialize my application along the following lines, using Display.setParent() with a canvas object:

canvas = new Canvas();
canvas.setFocusable(true);
canvas.requestFocus();
canvas.setBackground(Color.BLACK);
canvas.setForeground(Color.BLACK);   
canvas.setBounds(0, 0, width, height);
    
parent.setLayout(new BorderLayout());
parent.add(canvas, BorderLayout.CENTER);  

 try {      
      PixelFormat format = new PixelFormat(32, 8, 24, 8, 1);
      Display.setDisplayMode(new DisplayMode(width, height));
      Display.setParent(canvas);      
      Display.create(format);
      Display.setVSyncEnabled(true);
 } catch (LWJGLException e) {
      e.printStackTrace();
 }


where canvas is an AWT canvas, and parent a subclass of Applet.