[SOLVED] JVM MAC OSX - crash when running an app using JME3

Hi,

My friend has a problem when he try to run a small application using JME3 on his mac (OS X Yosemite version 10.10.5). It works perfectly in Windows.

Any help is welcome!

A fatal error has been detected by the Java Runtime Environment:

SIGSEGV (0xb) at pc=0x000000010e306c38, pid=12769, tid=33979

JRE version: Java™ SE Runtime Environment (8.0_40-b27) (build 1.8.0_40-b27)

Java VM: Java HotSpot™ 64-Bit Server VM (25.40-b25 mixed mode bsd-amd64 compressed oops)

Problematic frame:

V [libjvm.dylib+0x306c38]

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.java.com/bugreport/crash.jsp

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

Current thread (0x00007fa532982000): JavaThread “LWJGL Renderer Thread” [_thread_in_vm, id=33979, stack(0x00000001288ba000,0x00000001289ba000)]

siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x0000000100000001

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

Current thread (0x00007fa532982000): JavaThread “LWJGL Renderer Thread” [_thread_in_vm, id=33979, stack(0x00000001288ba000,0x00000001289ba000)]

siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x0000000100000001

Registers:
RAX=0x00000007c003f8e0, RBX=0x00007fa530c2ac28, RCX=0x000000010e8b8494, RDX=0x00007fa530c2ac28
RSP=0x00000001289b9390, RBP=0x00000001289b93b0, RSI=0x0000000100000001, RDI=0x00000007801c6fd0
R8 =0x0000000000000280, R9 =0x00000000000001e0, R10=0x00007fa530c431c0, R11=0x00007fff7d80f5e0
R12=0x00007fa5329821f8, R13=0x0000000100000000, R14=0x0000000100000001, R15=0x00007fa5329821f8
RIP=0x000000010e306c38, EFLAGS=0x0000000000010202, ERR=0x0000000000000004
TRAPNO=0x000000000000000e

Top of Stack: (sp=0x00000001289b9390)
0x00000001289b9390: 00007fa532982000 0000000100000001
0x00000001289b93a0: 00007fa5329821f8 00007fa532982000
0x00000001289b93b0: 00000001289b93e0 000000010e315763
0x00000001289b93c0: 00000001289b93e0 0000000000000000
0x00000001289b93d0: 0000000000000000 0000000000000000
0x00000001289b93e0: 00000001289b9440 000000012961937b
0x00000001289b93f0: 000000a532982000 00000280000001e0
0x00000001289b9400: 00000140000000a0 00000001289b9580
0x00000001289b9410: 000000012d477120 000000012d477120
0x00000001289b9420: 0000000000000000 000000012d477118
0x00000001289b9430: 00000001289b9580 00007fa532982000
0x00000001289b9440: 00000001289b9500 000000010ef7e954
0x00000001289b9450: 0000000100000000 0000000100000000
0x00000001289b9460: 00007fa500000000 00007fa500000000
0x00000001289b9470: 0000000100000001 0000000100000000
0x00000001289b9480: 00000001289b9528 0000000000000000
0x00000001289b9490: 000000012d477120 00000001289b9580
0x00000001289b94a0: 00000001289b9500 000000010ef7e6d9
0x00000001289b94b0: 000000010ef8a563 000000010ef7e6a2
0x00000001289b94c0: 00000001289b94c0 000000012d477118
0x00000001289b94d0: 00000001289b9580 000000012d47dd08
0x00000001289b94e0: 0000000000000000 000000012d477120
0x00000001289b94f0: 0000000000000000 00000001289b9520
0x00000001289b9500: 00000001289b95d0 000000010ef709d0
0x00000001289b9510: 0000000000000000 000000010ef7857b
0x00000001289b9520: 0000000000000000 00000007b3cb8a88
0x00000001289b9530: 0000000000000000 0000000000000001
0x00000001289b9540: 0000000000000000 0000000000000000
0x00000001289b9550: 0000000000000000 0000000000000000
0x00000001289b9560: 00000000000001e0 0000000000000280
0x00000001289b9570: 00000000000000a0 0000000000000140
0x00000001289b9580: 00000007b3ca5350 00000007b3ca5350

Instructions: (pc=0x000000010e306c38)
0x000000010e306c18: 04 b0 01 eb 46 48 8b 3b e8 0b a6 fd ff 48 85 c0
0x000000010e306c28: 75 04 30 c0 eb 35 48 8d 0d 5f 18 5b 00 80 39 00
0x000000010e306c38: 49 8b 16 74 15 48 8d 35 dc e8 50 00 8a 4e 08 8b
0x000000010e306c48: 7a 08 48 d3 e7 48 03 3e eb 04 48 8b 7a 08 48 89

Register to memory mapping:

RAX=0x00000007c003f8e0 is pointing into metadata
RBX=0x00007fa530c2ac28 is a global jni handle
RCX=0x000000010e8b8494: UseCompressedClassPointers+0 in /Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/jre/lib/server/libjvm.dylib at 0x000000010e000000
RDX=0x00007fa530c2ac28 is a global jni handle
RSP=0x00000001289b9390 is pointing into the stack for thread: 0x00007fa532982000
RBP=0x00000001289b93b0 is pointing into the stack for thread: 0x00007fa532982000
RSI=0x0000000100000001 is an unknown value
RDI=0x00000007801c6fd0 is an oop
java.lang.Class

  • klass: ‘java/lang/Class’
    R8 =0x0000000000000280 is an unknown value
    R9 =0x00000000000001e0 is an unknown value
    R10=0x00007fa530c431c0 is an unknown value
    R11=0x00007fff7d80f5e0: OBJC_CLASS_$_NSAutoreleasePool+0 in /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation at 0x00007fff95f3f000
    R12=0x00007fa5329821f8 is an unknown value
    R13=0x0000000100000000 is an unknown value
    R14=0x0000000100000001 is an unknown value
    R15=0x00007fa5329821f8 is an unknown value

Stack: [0x00000001288ba000,0x00000001289ba000], sp=0x00000001289b9390, free space=1020k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.dylib+0x306c38]
V [libjvm.dylib+0x315763]
C [liblwjgl.dylib+0xb37b] Java_org_lwjgl_opengl_MacOSXDisplay_nCreateWindow+0x8b
j org.lwjgl.opengl.MacOSXDisplay.nCreateWindow(IIIIZZZZZZLjava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;+0
j org.lwjgl.opengl.MacOSXDisplay.createWindow(Lorg/lwjgl/opengl/DrawableLWJGL;Lorg/lwjgl/opengl/DisplayMode;Ljava/awt/Canvas;II)V+191
j org.lwjgl.opengl.Display.createWindow()V+71
j org.lwjgl.opengl.Display.create(Lorg/lwjgl/opengl/PixelFormat;Lorg/lwjgl/opengl/Drawable;Lorg/lwjgl/opengl/ContextAttribs;)V+72
j org.lwjgl.opengl.Display.create(Lorg/lwjgl/opengl/PixelFormat;)V+12
j com.jme3.system.lwjgl.LwjglDisplay.createContext(Lcom/jme3/system/AppSettings;)V+375
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+0x2e036e]
V [libjvm.dylib+0x2e0afc]
V [libjvm.dylib+0x2e0ca8]
V [libjvm.dylib+0x3331e9]
V [libjvm.dylib+0x549acf]
V [libjvm.dylib+0x54b1c0]
V [libjvm.dylib+0x46ea8e]
C [libsystem_pthread.dylib+0x405a] _pthread_body+0x83
C [libsystem_pthread.dylib+0x3fd7] _pthread_body+0x0
C [libsystem_pthread.dylib+0x13ed] thread_start+0xd
C 0x0000000000000000

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j org.lwjgl.opengl.MacOSXDisplay.nCreateWindow(IIIIZZZZZZLjava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;+0
j org.lwjgl.opengl.MacOSXDisplay.createWindow(Lorg/lwjgl/opengl/DrawableLWJGL;Lorg/lwjgl/opengl/DisplayMode;Ljava/awt/Canvas;II)V+191
j org.lwjgl.opengl.Display.createWindow()V+71
j org.lwjgl.opengl.Display.create(Lorg/lwjgl/opengl/PixelFormat;Lorg/lwjgl/opengl/Drawable;Lorg/lwjgl/opengl/ContextAttribs;)V+72
j org.lwjgl.opengl.Display.create(Lorg/lwjgl/opengl/PixelFormat;)V+12
j com.jme3.system.lwjgl.LwjglDisplay.createContext(Lcom/jme3/system/AppSettings;)V+375
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

--------------- P R O C E S S ---------------

Java Threads: ( => current thread )
=>0x00007fa532982000 JavaThread “LWJGL Renderer Thread” [_thread_in_vm, id=33979, stack(0x00000001288ba000,0x00000001289ba000)]
0x00007fa532086800 JavaThread “AWT-Shutdown” [_thread_blocked, id=20763, stack(0x0000000126a30000,0x0000000126b30000)]
0x00007fa5319d0000 JavaThread “Timer-0” daemon [_thread_blocked, id=54051, stack(0x000000012b79e000,0x000000012b89e000)]
0x00007fa5311e5800 JavaThread “Java2D Disposer” daemon [_thread_blocked, id=37915, stack(0x000000012ab7c000,0x000000012ac7c000)]
0x00007fa5312c3000 JavaThread “Java2D Queue Flusher” daemon [_thread_blocked, id=44059, stack(0x00000001253f9000,0x00000001254f9000)]
0x00007fa53214e800 JavaThread “DestroyJavaVM” [_thread_blocked, id=4867, stack(0x000000010d6a0000,0x000000010d7a0000)]
0x00007fa532880800 JavaThread “TimerQueue” daemon [_thread_blocked, id=46603, stack(0x0000000128750000,0x0000000128850000)]
0x00007fa53282a800 JavaThread “AppKit Thread” daemon [_thread_in_native, id=1811, stack(0x00007fff51e77000,0x00007fff52677000)]
0x00007fa53181d000 JavaThread “Service Thread” daemon [_thread_blocked, id=17923, stack(0x0000000124722000,0x0000000124822000)]
0x00007fa532825800 JavaThread “C1 CompilerThread2” daemon [_thread_blocked, id=17411, stack(0x000000012461f000,0x000000012471f000)]
0x00007fa532824800 JavaThread “C2 CompilerThread1” daemon [_thread_blocked, id=16899, stack(0x000000012451c000,0x000000012461c000)]
0x00007fa532820800 JavaThread “C2 CompilerThread0” daemon [_thread_blocked, id=16143, stack(0x0000000124419000,0x0000000124519000)]
0x00007fa532818000 JavaThread “Signal Dispatcher” daemon [_thread_blocked, id=12307, stack(0x0000000124316000,0x0000000124416000)]
0x00007fa532814000 JavaThread “Finalizer” daemon [_thread_blocked, id=11523, stack(0x0000000122975000,0x0000000122a75000)]
0x00007fa532813800 JavaThread “Reference Handler” daemon [_thread_blocked, id=11011, stack(0x0000000122872000,0x0000000122972000)]

Other Threads:
0x00007fa532002000 VMThread [stack: 0x000000012276f000,0x000000012286f000] [id=10499]
0x00007fa532803000 WatcherThread [stack: 0x0000000124825000,0x0000000124925000] [id=18435]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap:
PSYoungGen total 328192K, used 175071K [0x00000007aab00000, 0x00000007c0000000, 0x00000007c0000000)
eden space 307200K, 50% used [0x00000007aab00000,0x00000007b417fd08,0x00000007bd700000)
from space 20992K, 99% used [0x00000007bd700000,0x00000007beb781f0,0x00000007beb80000)
to space 20992K, 0% used [0x00000007beb80000,0x00000007beb80000,0x00000007c0000000)
ParOldGen total 116736K, used 76967K [0x0000000780000000, 0x0000000787200000, 0x00000007aab00000)
object space 116736K, 65% used [0x0000000780000000,0x0000000784b29c98,0x0000000787200000)
Metaspace used 17264K, capacity 17494K, committed 17920K, reserved 1064960K
class space used 2173K, capacity 2224K, committed 2304K, reserved 1048576K

Card table byte_map: [0x000000011e329000,0x000000011e52a000] byte_map_base: 0x000000011a729000

Marking Bits: (ParMarkBitMap*) 0x000000010e8c27a0
Begin Bits: [0x000000011ea8c000, 0x000000011fa8c000)
End Bits: [0x000000011fa8c000, 0x0000000120a8c000)

Polling page: 0x000000010d7e5000

CodeCache: size=245760Kb used=4689Kb max_used=4691Kb free=241070Kb
bounds [0x000000010ef69000, 0x000000010f409000, 0x000000011df69000]
total_blobs=1996 nmethods=1431 adapters=478
compilation: enabled

Compilation events (10 events):
Event: 112.864 Thread 0x00007fa532825800 1700 1 java.nio.DirectByteBuffer::ix (10 bytes)
Event: 112.865 Thread 0x00007fa532825800 nmethod 1700 0x000000010f3ebf90 code [0x000000010f3ec0e0, 0x000000010f3ec1f0]
Event: 113.398 Thread 0x00007fa532825800 1701 3 sun.util.calendar.ZoneInfo::getOffsets (276 bytes)
Event: 113.399 Thread 0x00007fa532825800 nmethod 1701 0x000000010f3fead0 code [0x000000010f3fed00, 0x000000010f3ffa88]
Event: 113.399 Thread 0x00007fa532825800 1702 3 sun.net.www.protocol.file.Handler::hostsEqual (69 bytes)
Event: 113.399 Thread 0x00007fa532825800 nmethod 1702 0x000000010f4002d0 code [0x000000010f4004a0, 0x000000010f400be8]
Event: 113.399 Thread 0x00007fa532825800 1703 3 java.net.URLStreamHandler::hostsEqual (75 bytes)
Event: 113.400 Thread 0x00007fa532825800 nmethod 1703 0x000000010f400d90 code [0x000000010f400f60, 0x000000010f4018d8]
Event: 113.797 Thread 0x00007fa532825800 1704 3 java.security.CodeSource::matchCerts (254 bytes)
Event: 113.799 Thread 0x00007fa532825800 nmethod 1704 0x000000010f401ad0 code [0x000000010f401ce0, 0x000000010f402878]

GC Heap History (10 events):
Event: 12.127 GC heap before
{Heap before GC invocations=15 (full 1):
PSYoungGen total 334336K, used 326353K [0x00000007aab00000, 0x00000007c0000000, 0x00000007c0000000)
eden space 320512K, 100% used [0x00000007aab00000,0x00000007be400000,0x00000007be400000)
from space 13824K, 42% used [0x00000007be400000,0x00000007be9b44a8,0x00000007bf180000)
to space 14848K, 0% used [0x00000007bf180000,0x00000007bf180000,0x00000007c0000000)
ParOldGen total 73216K, used 43876K [0x0000000780000000, 0x0000000784780000, 0x00000007aab00000)
object space 73216K, 59% used [0x0000000780000000,0x0000000782ad9058,0x0000000784780000)
Metaspace used 4180K, capacity 4768K, committed 4864K, reserved 1056768K
class space used 439K, capacity 468K, committed 512K, reserved 1048576K
Event: 12.200 GC heap after
Heap after GC invocations=15 (full 1):
PSYoungGen total 322048K, used 14830K [0x00000007aab00000, 0x00000007c0000000, 0x00000007c0000000)
eden space 307200K, 0% used [0x00000007aab00000,0x00000007aab00000,0x00000007bd700000)
from space 14848K, 99% used [0x00000007bf180000,0x00000007bfffb858,0x00000007c0000000)
to space 20992K, 0% used [0x00000007bd700000,0x00000007bd700000,0x00000007beb80000)
ParOldGen total 73216K, used 51436K [0x0000000780000000, 0x0000000784780000, 0x00000007aab00000)
object space 73216K, 70% used [0x0000000780000000,0x000000078323b0d8,0x0000000784780000)
Metaspace used 4180K, capacity 4768K, committed 4864K, reserved 1056768K
class space used 439K, capacity 468K, committed 512K, reserved 1048576K
}
Event: 12.452 GC heap before
{Heap before GC invocations=16 (full 1):
PSYoungGen total 322048K, used 322030K [0x00000007aab00000, 0x00000007c0000000, 0x00000007c0000000)
eden space 307200K, 100% used [0x00000007aab00000,0x00000007bd700000,0x00000007bd700000)
from space 14848K, 99% used [0x00000007bf180000,0x00000007bfffb858,0x00000007c0000000)
to space 20992K, 0% used [0x00000007bd700000,0x00000007bd700000,0x00000007beb80000)
ParOldGen total 73216K, used 51436K [0x0000000780000000, 0x0000000784780000, 0x00000007aab00000)
object space 73216K, 70% used [0x0000000780000000,0x000000078323b0d8,0x0000000784780000)
Metaspace used 4181K, capacity 4768K, committed 4864K, reserved 1056768K
class space used 439K, capacity 468K, committed 512K, reserved 1048576K
Event: 12.508 GC heap after
Heap after GC invocations=16 (full 1):
PSYoungGen total 328192K, used 13353K [0x00000007aab00000, 0x00000007c0000000, 0x00000007c0000000)
eden space 307200K, 0% used [0x00000007aab00000,0x00000007aab00000,0x00000007bd700000)
from space 20992K, 63% used [0x00000007bd700000,0x00000007be40a610,0x00000007beb80000)
to space 20992K, 0% used [0x00000007beb80000,0x00000007beb80000,0x00000007c0000000)
ParOldGen total 73216K, used 63161K [0x0000000780000000, 0x0000000784780000, 0x00000007aab00000)
object space 73216K, 86% used [0x0000000780000000,0x0000000783dae440,0x0000000784780000)
Metaspace used 4181K, capacity 4768K, committed 4864K, reserved 1056768K
class space used 439K, capacity 468K, committed 512K, reserved 1048576K
}
Event: 12.508 GC heap before
{Heap before GC invocations=17 (full 2):
PSYoungGen total 328192K, used 13353K [0x00000007aab00000, 0x00000007c0000000, 0x00000007c0000000)
eden space 307200K, 0% used [0x00000007aab00000,0x00000007aab00000,0x00000007bd700000)
from space 20992K, 63% used [0x00000007bd700000,0x00000007be40a610,0x00000007beb80000)
to space 20992K, 0% used [0x00000007beb80000,0x00000007beb80000,0x00000007c0000000)
ParOldGen total 73216K, used 63161K [0x0000000780000000, 0x0000000784780000, 0x00000007aab00000)
object space 73216K, 86% used [0x0000000780000000,0x0000000783dae440,0x0000000784780000)
Metaspace used 4181K, capacity 4768K, committed 4864K, reserved 1056768K
class space used 439K, capacity 468K, committed 512K, reserved 1048576K
Event: 12.804 GC heap after
Heap after GC invocations=17 (full 2):
PSYoungGen total 328192K, used 478K [0x00000007aab00000, 0x00000007c0000000, 0x00000007c0000000)
eden space 307200K, 0% used [0x00000007aab00000,0x00000007aab00000,0x00000007bd700000)
from space 20992K, 2% used [0x00000007bd700000,0x00000007bd777918,0x00000007beb80000)
to space 20992K, 0% used [0x00000007beb80000,0x00000007beb80000,0x00000007c0000000)
ParOldGen total 116736K, used 72903K [0x0000000780000000, 0x0000000787200000, 0x00000007aab00000)
object space 116736K, 62% used [0x0000000780000000,0x0000000784731c78,0x0000000787200000)
Metaspace used 4181K, capacity 4768K, committed 4864K, reserved 1056768K
class space used 439K, capacity 468K, committed 512K, reserved 1048576K
}
Event: 13.008 GC heap before
{Heap before GC invocations=18 (full 2):
PSYoungGen total 328192K, used 307678K [0x00000007aab00000, 0x00000007c0000000, 0x00000007c0000000)
eden space 307200K, 100% used [0x00000007aab00000,0x00000007bd700000,0x00000007bd700000)
from space 20992K, 2% used [0x00000007bd700000,0x00000007bd777918,0x00000007beb80000)
to space 20992K, 0% used [0x00000007beb80000,0x00000007beb80000,0x00000007c0000000)
ParOldGen total 116736K, used 72903K [0x0000000780000000, 0x0000000787200000, 0x00000007aab00000)
object space 116736K, 62% used [0x0000000780000000,0x0000000784731c78,0x0000000787200000)
Metaspace used 4181K, capacity 4768K, committed 4864K, reserved 1056768K
class space used 439K, capacity 468K, committed 512K, reserved 1048576K
Event: 13.063 GC heap after
Heap after GC invocations=18 (full 2):
PSYoungGen total 328192K, used 12448K [0x00000007aab00000, 0x00000007c0000000, 0x00000007c0000000)
eden space 307200K, 0% used [0x00000007aab00000,0x00000007aab00000,0x00000007bd700000)
from space 20992K, 59% used [0x00000007beb80000,0x00000007bf7a8110,0x00000007c0000000)
to space 20992K, 0% used [0x00000007bd700000,0x00000007bd700000,0x00000007beb80000)
ParOldGen total 116736K, used 73391K [0x0000000780000000, 0x0000000787200000, 0x00000007aab00000)
object space 116736K, 62% used [0x0000000780000000,0x00000007847abc78,0x0000000787200000)
Metaspace used 4181K, capacity 4768K, committed 4864K, reserved 1056768K
class space used 439K, capacity 468K, committed 512K, reserved 1048576K
}
Event: 13.772 GC heap before
{Heap before GC invocations=19 (full 2):
PSYoungGen total 328192K, used 319648K [0x00000007aab00000, 0x00000007c0000000, 0x00000007c0000000)
eden space 307200K, 100% used [0x00000007aab00000,0x00000007bd700000,0x00000007bd700000)
from space 20992K, 59% used [0x00000007beb80000,0x00000007bf7a8110,0x00000007c0000000)
to space 20992K, 0% used [0x00000007bd700000,0x00000007bd700000,0x00000007beb80000)
ParOldGen total 116736K, used 73391K [0x0000000780000000, 0x0000000787200000, 0x00000007aab00000)
object space 116736K, 62% used [0x0000000780000000,0x00000007847abc78,0x0000000787200000)
Metaspace used 4183K, capacity 4768K, committed 4864K, reserved 1056768K
class space used 439K, capacity 468K, committed 512K, reserved 1048576K
Event: 13.819 GC heap after
Heap after GC invocations=19 (full 2):
PSYoungGen total 328192K, used 20960K [0x00000007aab00000, 0x00000007c0000000, 0x00000007c0000000)
eden space 307200K, 0% used [0x00000007aab00000,0x00000007aab00000,0x00000007bd700000)
from space 20992K, 99% used [0x00000007bd700000,0x00000007beb781f0,0x00000007beb80000)
to space 20992K, 0% used [0x00000007beb80000,0x00000007beb80000,0x00000007c0000000)
ParOldGen total 116736K, used 76967K [0x0000000780000000, 0x0000000787200000, 0x00000007aab00000)
object space 116736K, 65% used [0x0000000780000000,0x0000000784b29c98,0x0000000787200000)
Metaspace used 4183K, capacity 4768K, committed 4864K, reserved 1056768K
class space used 439K, capacity 468K, committed 512K, reserved 1048576K
}

HI, don’t know if it’s the same problem or even related, but I also had problems when I upgraded my OS X:

Can you share the sample project that crash (the minimal one) ?

@remy_vd : i tried your solution, I set the renderer to use OpenGL1.1 but it does not work. :joy:

He tried with a simple JME3 application

import com.jme3.app.SimpleApplication;
import com.jme3.material.Material;
import com.jme3.math.ColorRGBA;
import com.jme3.scene.Geometry;
import com.jme3.scene.shape.Box;

/**
* Sample 1 - how to get started with the most simple JME 3 application. Display
* a blue 3D cube and view from all sides by moving the mouse and pressing the
* WASD keys.
*/
public class HelloJME3 extends SimpleApplication {

public static void main(String[] args) {
	HelloJME3 app = new HelloJME3();
	app.start(); // start the game
}

@Override
public void simpleInitApp() {
	Box b = new Box(1, 1, 1); // create cube shape
	Geometry geom = new Geometry("Box", b); // create cube geometry from the
											// shape
	Material mat = new Material(assetManager,
			"Common/MatDefs/Misc/Unshaded.j3md"); // create a simple
													// material
	mat.setColor("Color", ColorRGBA.Blue); // set color of material to blue
	geom.setMaterial(mat); // set the cube's material
	rootNode.attachChild(geom); // make the cube appear in the scene
}
}

But it does not work. Always the same error.

He used OSX Yosemite version 10.10.5

Any help is welcome!

Forcing opengl 1.1 is not really a solution :wink:, you loose like 95% of cool jme stuff.
For me reverting the OS did the trick…

Sorry, I can’t reproduce on the jmonkeyplatform SDK 3.0 (with the jvm provide in the SDK : java :1.7.0_76) :

Dec 07, 2015 1:00:42 PM com.jme3.system.JmeDesktopSystem initialize
INFO: Running on jMonkeyEngine 3.0.10
Dec 07, 2015 1:00:42 PM com.jme3.system.Natives extractNativeLibs
INFO: Extraction Directory: /Users/davidb/work/jme3/BasicGame0
Dec 07, 2015 1:00:42 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: Lwjgl 2.9.0 context running on thread LWJGL Renderer Thread
Dec 07, 2015 1:00:42 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: Adapter: null
Dec 07, 2015 1:00:42 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: Driver Version: null
Dec 07, 2015 1:00:42 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: Vendor: NVIDIA Corporation
Dec 07, 2015 1:00:42 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: OpenGL Version: 2.1 NVIDIA-10.6.47 310.42.05f01
Dec 07, 2015 1:00:42 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: Renderer: NVIDIA GeForce GT 750M OpenGL Engine
Dec 07, 2015 1:00:42 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: GLSL Ver: 1.20
Dec 07, 2015 1:00:42 PM com.jme3.asset.AssetConfig loadText
WARNING: Cannot find loader com.jme3.scene.plugins.blender.BlenderModelLoader
2015-12-07 13:00:42.525 java[88099:3648080] 13:00:42.525 WARNING:  140: This application, or a library it uses, is using the deprecated Carbon Component Manager for hosting Audio Units. Support for this will be removed in a future release. Also, this makes the host incompatible with version 3 audio units. Please transition to the API's in AudioComponent.h.
Dec 07, 2015 1:00:42 PM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: Audio Device: OpenAL Soft
Dec 07, 2015 1:00:42 PM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: Audio Vendor: OpenAL Community
Dec 07, 2015 1:00:42 PM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: Audio Renderer: OpenAL Soft
Dec 07, 2015 1:00:42 PM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: Audio Version: 1.1 ALSOFT 1.15.1
Dec 07, 2015 1:00:42 PM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: AudioRenderer supports 64 channels
Dec 07, 2015 1:00:42 PM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: Audio effect extension version: 1.0
Dec 07, 2015 1:00:42 PM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: Audio max auxilary sends: 4
BUILD SUCCESSFUL (total time: 12 seconds)

I try it on

Maybe someone with the same video card Intel HD 4000, can reproduce ?

I got some jvm crash with some of my jme project but it was with a 3.1.0-SNAPSHOT+ java 1.8 of jME.

we have just changed to java 1.7 (before we used java 1.8) and i got the same errors :joy: :joy:

my brother had this problem. He said he had to force upgrade ant to 1.9.6 while using JDK8. He also noted that during the initial jmonkey start many plugins failed to load and that was fixed with a reboot.

This was with JME 3.1. He mentioned he could not get JME3 to work correctly.

@Failfarm : Our project used maven, not ant. We used 3.0.0.20130526 jme3 library.
I tried with both java 1.7 and java 1.8 but it does not work. Can you ask your friend for give me some more details ?

To make sure the error does not come from other using libraries. I have built a very simple maven-based project
From Eclipse which used JME3, you can import as maven project.

The HelloJME3.java displays a blue 3D cube and view from all sides by moving the mouse and pressing the WASD keys.

And we got always the same error. :joy:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0000000105b1dc38, pid=1460, tid=53779
#
# JRE version: Java(TM) SE Runtime Environment (8.0_40-b27) (build 1.8.0_40-b27)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.40-b25 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# V  [libjvm.dylib+0x306c38]
#
# 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.java.com/bugreport/crash.jsp
#

you can read the full log file at : Dropbox - hs_err_pid1460.log - Simplify your life

we tried on OSX Yosemite version 10.10.5

@remy_vd : Thanks for your suggestion, but we can not request all users to revert their OSX to run our application. :joy:

Good news, with your project and your jar, I can reproduce the issue when I run:

mvn exec:java -Dexec.mainClass="eu.cea.ladis.jme3.helloJME3.HelloJME3"

My suggestion (What I’ll test later, after office) : use the jar for jme 3.0.10 and groupId com.jme3 (like I did via jmonkeyplatform SDK)

@david_bernard_31 : Many thanks for good news. I don’t know why but my clipse don’t understand groupId com.jme3 although in pom file i did.

<repositories>

	<repository>
		<id>jmonkeyengine</id>
		<url>http://updates.jmonkeyengine.org/maven/</url>
	</repository>
   
   
</repositories>

For jme3, it understood only GroupId net.sf.sociaal. Any ideas ???

in eclipse, i did Maven Dependencies and check the option for “Force Update of Snapshot/Releases” and my eclipse now understand. i will test … and let you know the result.

OHHHH yeah, so beautiful, it works now with jar for jme 3.0.10 and groupId com.jme3.

Many thanks to @david_bernard_31, @remy_vd and @Failfarm

1 Like